/* Louis TCG — interface (agent INTERFACE). Charte des jeux de Louis : violet nuit, or, rose néon. */
:root {
  --nuit: #140726;
  --nuit-2: #1f0c3a;
  --nuit-3: #2a1150;
  --violet: #7b3fe4;
  --violet-clair: #b48cff;
  --or: #f5c542;
  --or-fonce: #c9962a;
  --rose: #ff3fa4;
  --rose-neon: #ff4fd8;
  --rose-clair: #ff8fd0;
  --cyan: #4fd8ff;
  --vert: #5fe0a0;
  --rouge: #ff5a7a;
  --texte: #f3ecff;
  --texte-doux: #b9a8d9;
  --bord: rgba(180, 140, 255, .26);
  --panneau: linear-gradient(180deg, rgba(43, 18, 82, .88), rgba(22, 8, 44, .92));
  --haut: 68px;
  --titre: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at 50% -10%, #3a1670 0%, var(--nuit-2) 38%, var(--nuit) 75%) fixed, var(--nuit);
  color: var(--texte);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input, textarea { user-select: text; -webkit-user-select: text; }
:focus-visible { outline: 3px solid var(--rose-clair); outline-offset: 2px; }
[hidden] { display: none !important; }
kbd { display: inline-block; min-width: 18px; padding: 1px 6px; margin: 0 2px; border-radius: 6px; border: 2px solid #9b5cff; border-bottom-width: 3px; background: #12041f; color: #fff; font: 900 12px var(--titre); text-align: center; }

/* ---------- Fond ---------- */
#tc-fond { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#tc-fond i {
  position: absolute; bottom: -180px; width: 90px; height: 126px; border-radius: 10px; opacity: .08;
  background: linear-gradient(145deg, var(--or), var(--rose-neon)); box-shadow: 0 0 24px rgba(255, 79, 216, .4);
  animation: tc-monter linear infinite;
}
@keyframes tc-monter { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(calc(-100vh - 360px)) rotate(var(--tour, 50deg)); } }

/* ---------- En-tête ---------- */
#tc-haut {
  position: relative; z-index: 3; height: var(--haut); display: flex; align-items: center; gap: 10px;
  padding: 0 16px; background: linear-gradient(180deg, rgba(20, 7, 38, .95), rgba(20, 7, 38, .6));
  border-bottom: 1px solid var(--bord);
}
#tc-logo {
  margin: 0 6px; font: italic 900 32px var(--titre); line-height: 1; white-space: nowrap; cursor: pointer;
  background: linear-gradient(180deg, #fff6d6 0%, var(--or) 48%, var(--or-fonce) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(245, 197, 66, .45)) drop-shadow(0 0 22px rgba(255, 63, 164, .3));
}
#tc-logo span { background: linear-gradient(180deg, #ffd0f2, var(--rose-neon)); -webkit-background-clip: text; background-clip: text; }
.tc-espace { flex: 1; }
.tc-solde {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 7, 38, .8); border: 1px solid rgba(245, 197, 66, .5); font-weight: 800;
}
.tc-solde b { color: var(--or); font: 900 18px var(--titre); font-variant-numeric: tabular-nums; }
.tc-solde.eclats { border-color: rgba(79, 216, 255, .5); }
.tc-solde.eclats b { color: var(--cyan); }
.tc-solde small { color: var(--texte-doux); }
.tc-solde .ico { font-size: 16px; }
.tc-solde.flash b { animation: tc-flashsolde .9s ease; }
@keyframes tc-flashsolde { 30% { color: #fff; text-shadow: 0 0 14px var(--or); transform: scale(1.25); } }
.tc-profil {
  display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; max-width: 240px;
  background: rgba(43, 18, 82, .85); border: 2px solid rgba(245, 197, 66, .55);
}
.tc-profil:hover { border-color: var(--or); }
.tc-profil-nom { font-weight: 900; color: var(--or); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-tete {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--or);
  background: var(--nuit-3) center / cover no-repeat; display: inline-block;
}

/* ---------- Boutons ---------- */
.tc-btn {
  font: 900 15px var(--titre); border-radius: 14px; border: 2px solid #fff; padding: 9px 14px; color: #2a0838;
  background: linear-gradient(#ffe58a, #f0a524); transition: transform .08s, box-shadow .12s; white-space: nowrap;
}
.tc-btn:hover:not(:disabled) { transform: scale(1.04); box-shadow: 0 0 18px var(--rose-neon); }
.tc-btn:active:not(:disabled) { transform: scale(.97); }
.tc-btn.sec { background: rgba(42, 16, 80, .95); color: #fff; border-color: rgba(190, 130, 255, .8); }
.tc-btn.rose { background: linear-gradient(#ff9fe6, #ff3fa4); color: #fff; }
.tc-btn.danger { background: linear-gradient(#ff9aa8, #e0405a); color: #fff; }
.tc-btn.petit { font-size: 12px; padding: 5px 10px; border-radius: 10px; }
.tc-btn.grand { font-size: 20px; padding: 14px 22px; border-radius: 18px; }
.tc-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.tc-chip {
  cursor: pointer; border-radius: 12px; border: 2px solid rgba(190, 130, 255, .55); padding: 4px 10px;
  font: 800 12px "Segoe UI", Arial, sans-serif; background: rgba(42, 16, 80, .9); color: #fff; white-space: nowrap;
}
.tc-chip:hover { box-shadow: 0 0 10px var(--rose-neon); }
.tc-chip.on { border-color: var(--or); color: var(--or); box-shadow: 0 0 10px rgba(245, 197, 66, .5); }
.tc-input {
  min-width: 0; padding: 8px 12px; border-radius: 12px; border: 2px solid #9b5cff; background: #12041f; color: #fff; outline: none;
}
.tc-input:focus { border-color: var(--or); box-shadow: 0 0 12px rgba(245, 197, 66, .5); }

/* ---------- Vue principale ---------- */
#tc-vue { position: relative; z-index: 1; height: calc(100vh - var(--haut)); overflow-y: auto; overflow-x: hidden; padding: 18px 20px 30px; outline: none; scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.tc-chargement { margin: 20vh auto; text-align: center; font: 900 24px var(--titre); color: var(--or); }
.tc-page { max-width: 1500px; margin: 0 auto; animation: tc-entree .25s ease; }
@keyframes tc-entree { from { opacity: 0; transform: translateY(8px); } }
.tc-titre { margin: 0 0 14px; font: italic 900 28px var(--titre); color: var(--or); text-shadow: 0 0 14px rgba(255, 63, 164, .5); }
.tc-sous { margin: -8px 0 16px; color: var(--texte-doux); font-weight: 600; }
.tc-panneau {
  background: var(--panneau); border: 1px solid var(--bord); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tc-panneau h2 {
  margin: 0 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-clair);
  text-shadow: 0 0 10px rgba(255, 63, 164, .45); display: flex; align-items: center; gap: 8px;
}
.tc-panneau h2 .droite { margin-left: auto; letter-spacing: 0; text-transform: none; color: var(--texte-doux); font-size: 12px; text-shadow: none; }
.tc-vide { padding: 18px 8px; text-align: center; color: var(--texte-doux); line-height: 1.5; }
.tc-note { color: var(--texte-doux); font-size: 12px; font-weight: 600; }
.tc-ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Accueil ---------- */
.tc-accueil { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; }
.tc-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tc-tuile {
  --accent: var(--or); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  min-height: 118px; padding: 14px 16px; border-radius: 18px; color: var(--texte); overflow: hidden;
  background: linear-gradient(130deg, rgba(58, 22, 112, .95), rgba(26, 9, 50, .95));
  border: 2px solid rgba(180, 140, 255, .25); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.tc-tuile:hover, .tc-tuile:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.tc-tuile .ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 8px var(--accent)); }
.tc-tuile b { font: 900 18px var(--titre); color: var(--accent); }
.tc-tuile small { color: var(--texte-doux); font-weight: 600; }
.tc-tuile .pastille { position: absolute; right: 10px; top: 10px; background: var(--rose); color: #fff; border-radius: 999px; padding: 2px 9px; font: 900 12px var(--titre); box-shadow: 0 0 10px var(--rose); }
.tc-tuile.grosse { grid-column: span 2; min-height: 150px; background: linear-gradient(120deg, rgba(122, 40, 160, .95), rgba(40, 12, 80, .95)); }
.tc-tuile.grosse b { font-size: 26px; }
.tc-bonus {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(245, 197, 66, .22), rgba(255, 63, 164, .18)); border: 2px solid var(--or);
  animation: tc-pulse 2s ease-in-out infinite;
}
.tc-bonus b { font: 900 16px var(--titre); color: var(--or); }
@keyframes tc-pulse { 50% { box-shadow: 0 0 22px rgba(245, 197, 66, .55); } }
.tc-jauge { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tc-jauge i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--rose-neon), var(--or)); box-shadow: 0 0 8px var(--rose-neon); transition: width .4s; }
.tc-fil { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.tc-fil-l { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(20, 7, 38, .6); border-left: 4px solid var(--rc, var(--or)); }
.tc-fil-l .tc-tete { width: 30px; height: 30px; }
.tc-fil-l > span:not(.tc-tete) { flex: 1; min-width: 0; line-height: 1.3; }
.tc-fil-l b { color: var(--rc, var(--or)); }
.tc-fil-l small { color: var(--texte-doux); white-space: nowrap; }
.tc-journal { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; font-size: 13px; }
.tc-journal div { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(180, 140, 255, .12); }
.tc-journal div span { flex: 1; }
.tc-journal div b { color: var(--vert); white-space: nowrap; }

/* ---------- Carte (pur CSS) ---------- */
.tc-carte {
  --w: 220px; --tc: #888; --tcc: #bbb; --tcf: #333; --rc: #ccc;
  position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.3968); font-size: calc(var(--w) * .05);
  perspective: calc(var(--w) * 4); border-radius: calc(var(--w) * .055); cursor: pointer; color: #1a1026;
  font-family: "Segoe UI", Arial, sans-serif; line-height: 1.2; outline: none;
}
.tc-carte:focus-visible .tc-recto { box-shadow: 0 0 0 .25em var(--rose-clair), 0 .8em 1.6em rgba(0, 0, 0, .55); }
.tc-in {
  position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d;
  /* --zc = zoom de la carte (ne pas réutiliser --sc : c'est la couleur de série/saison, une couleur ici rendait la transformation invalide) */
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))) scale(var(--zc, 1));
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.tc-recto {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(145deg, var(--tcc), var(--tc) 40%, var(--tcf));
  box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .5), inset 0 0 0 .12em rgba(255, 255, 255, .35);
  transition: box-shadow .3s;
}
.tc-carte.survol .tc-in { transition: transform .07s linear; --zc: 1.03; }
.tc-carte.survol .tc-recto { box-shadow: 0 1.2em 2.4em rgba(0, 0, 0, .6), 0 0 1.4em color-mix(in srgb, var(--tc) 60%, transparent); }
.tc-face {
  position: absolute; inset: .42em; border-radius: .55em; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #fffaf0 0%, color-mix(in srgb, var(--tc) 18%, #fff6e6) 100%);
  box-shadow: inset 0 0 0 .1em var(--rc);
}
.tc-entete { display: flex; align-items: center; gap: .3em; padding: .35em .5em .25em; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 30%, #fff), transparent); }
.tc-nom { flex: 1; min-width: 0; font: 900 1.02em var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.tc-pv { font: 900 .9em var(--titre); color: #c0182c; white-space: nowrap; }
.tc-pv small { font-size: .62em; margin-right: .1em; }
.tc-type-ico { width: 1.45em; height: 1.45em; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9em; background: var(--tc); box-shadow: 0 0 0 .1em #fff, 0 .1em .25em rgba(0, 0, 0, .4); flex: none; }
.tc-illu {
  position: relative; margin: 0 .45em; height: 41%; border-radius: .25em; overflow: hidden; flex: none;
  background: linear-gradient(180deg, #2b1a4f, #1b1036); /* fond neutre pendant le chargement de la photo (plus d'ancien repli coloré) */
  box-shadow: inset 0 0 0 .14em #d8b25a, inset 0 0 1em rgba(0, 0, 0, .35);
}
.tc-illu img.rendu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-illu .visage {
  position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -46%); border-radius: 50%;
  background: center / cover no-repeat; border: .18em solid #fff; box-shadow: 0 0 0 .14em var(--tcf), 0 .4em 1em rgba(0, 0, 0, .45);
}
.tc-illu .motif { position: absolute; inset: 0; opacity: .25; font-size: 1.6em; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; pointer-events: none; }
.tc-bande { display: flex; align-items: center; gap: .35em; margin: .2em .5em 0; font-size: .62em; font-weight: 800; color: #4a3a60; }
.tc-bande .etoiles { color: #e0a800; letter-spacing: -.05em; font-size: 1.15em; }
.tc-bande .etoiles .off { color: #c9bfd6; }
.tc-bande .sp { flex: 1; }
.tc-atks { flex: 1; display: flex; flex-direction: column; gap: .12em; padding: .25em .5em 0; min-height: 0; overflow: hidden; }
.tc-atk { border-bottom: .06em solid rgba(60, 30, 90, .18); padding-bottom: .12em; }
.tc-atk .l1 { display: flex; align-items: center; gap: .3em; }
.tc-atk .nomat { flex: 1; min-width: 0; font-weight: 900; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-atk .puis { font: 900 .9em var(--titre); }
.tc-atk .txt { font-size: .6em; color: #4a3a60; margin-left: 2.2em; line-height: 1.15; }
.tc-pips { display: inline-flex; gap: .1em; flex: none; min-width: 1.9em; }
.tc-pips i { width: .62em; height: .62em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c0, #f5c542 50%, #b07a10); box-shadow: 0 0 .15em rgba(0, 0, 0, .4); display: block; }
.tc-pips i.zero { background: transparent; border: .1em dashed #8a7a9a; box-shadow: none; }
.tc-talent { margin: .15em .5em 0; padding: .15em .35em; border-radius: .3em; font-size: .6em; background: color-mix(in srgb, var(--tc) 22%, transparent); }
.tc-talent b { color: #6a1a8a; }
.tc-flavor { margin: .15em .55em .1em; font-size: .55em; font-style: italic; color: #5a4a6a; line-height: 1.15; max-height: 2.4em; overflow: hidden; }
.tc-pied { display: flex; align-items: center; gap: .3em; padding: .15em .55em .3em; font-size: .55em; font-weight: 800; color: #5a4a6a; }
.tc-pied .sym { color: var(--rc); font-size: 1.25em; text-shadow: 0 0 .15em rgba(0, 0, 0, .35); }
.tc-pied .sp { flex: 1; }
.tc-carte.compact .tc-atk .txt, .tc-carte.compact .tc-flavor, .tc-carte.compact .tc-talent { display: none; }
.tc-carte.compact .tc-atk .nomat { font-size: .95em; }
.tc-carte.compact .tc-bande { font-size: .75em; }
.tc-carte.compact .tc-pied { font-size: .7em; }
/* compteur (livre) */
.tc-qte { position: absolute; right: -.4em; top: -.4em; z-index: 3; min-width: 1.8em; padding: .15em .45em; border-radius: 999px; background: var(--rose); color: #fff; font: 900 .85em var(--titre); text-align: center; box-shadow: 0 0 .6em var(--rose); transform: translateZ(20px); }
.tc-nouveau { position: absolute; left: 50%; top: -.9em; z-index: 4; transform: translateX(-50%) rotate(-4deg); padding: .2em .7em; border-radius: .4em; background: linear-gradient(#ff9fe6, #ff3fa4); color: #fff; font: 900 1em var(--titre); letter-spacing: .05em; box-shadow: 0 0 1em var(--rose-neon); animation: tc-nouv 1s ease-in-out infinite; white-space: nowrap; }
@keyframes tc-nouv { 50% { transform: translateX(-50%) rotate(3deg) scale(1.1); } }

/* cadres spéciaux par rareté */
.tc-carte.r-rare .tc-recto { box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .5), inset 0 0 0 .14em #9fd0ff; }
.tc-carte.r-epique .tc-recto { box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .5), inset 0 0 0 .16em #d4a8ff, 0 0 .8em rgba(176, 107, 255, .5); }
.tc-carte.r-legendaire .tc-recto { background: linear-gradient(135deg, #fff2b0 0%, #f5c542 25%, #a8740f 50%, #ffe27a 70%, #b8860b 100%); background-size: 200% 200%; animation: tc-or 4s linear infinite; }
@keyframes tc-or { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }
.tc-carte.r-mythique .tc-recto { background: linear-gradient(120deg, #ff4f7a, #ffb84f, #fff35f, #5fff9a, #4fd8ff, #8a6bff, #ff4fd8, #ff4f7a); background-size: 300% 300%; animation: tc-arcenciel 3s linear infinite; }
@keyframes tc-arcenciel { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.tc-carte.r-secrete .tc-recto { background: radial-gradient(circle at 30% 20%, #3a3020, #0a0806 60%), #000; box-shadow: 0 .6em 1.4em rgba(0, 0, 0, .7), inset 0 0 0 .16em #f5c542, inset 0 0 0 .32em #000, inset 0 0 0 .4em #c9962a; }
.tc-carte.r-secrete .tc-face { background: linear-gradient(180deg, #1d1810, #0b0907); color: #f5d77a; box-shadow: inset 0 0 0 .1em #c9962a; }
.tc-carte.r-secrete .tc-entete { background: linear-gradient(90deg, rgba(245, 197, 66, .3), transparent); }
.tc-carte.r-secrete .tc-bande, .tc-carte.r-secrete .tc-atk .txt, .tc-carte.r-secrete .tc-flavor, .tc-carte.r-secrete .tc-pied { color: #c9b27a; }
.tc-carte.r-secrete .tc-pv { color: #ff8a6a; }
.tc-carte.r-secrete .tc-talent b { color: #f5c542; }
.tc-carte.r-secrete .tc-atk { border-color: rgba(245, 197, 66, .25); }
.tc-carte.r-secrete .tc-pied .sym { color: #f5c542; }

/* Brillante : reflet holographique qui suit la souris */
.tc-holo, .tc-reflet { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
.tc-holo {
  mix-blend-mode: color-dodge; opacity: .5;
  background:
    repeating-linear-gradient(115deg, #ff3c8e 0%, #ffd23f 7%, #5fff9a 14%, #3fc8ff 21%, #a65cff 28%, #ff3c8e 35%),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, .15) 0 2px, transparent 2px 6px);
  background-size: 400% 400%, 100% 100%;
  background-position: var(--hx, 50%) var(--hy, 50%), 0 0;
  filter: brightness(.75) contrast(1.6) saturate(1.3);
  animation: tc-holo-derive 6s ease-in-out infinite alternate;
}
.tc-carte.survol .tc-holo { animation: none; opacity: .7; }
@keyframes tc-holo-derive { 0% { background-position: 0% 30%, 0 0; } 100% { background-position: 100% 70%, 0 0; } }
.tc-reflet { mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .85), rgba(255, 255, 255, .15) 25%, transparent 55%); opacity: 0; transition: opacity .3s; }
.tc-carte.survol .tc-reflet { opacity: 1; }
.tc-carte.holo .tc-recto::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .5) 40%, rgba(160, 255, 255, .4) 50%, rgba(255, 160, 255, .4) 60%, transparent 80%);
  background-size: 250% 100%; mix-blend-mode: screen; animation: tc-irise 3.5s linear infinite; opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: .42em;
}
@keyframes tc-irise { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.tc-badge-holo { position: absolute; right: .7em; top: 47%; z-index: 3; padding: .1em .45em; border-radius: .4em; font: 900 .55em var(--titre); color: #fff; background: linear-gradient(90deg, #ff3c8e, #ffd23f, #3fc8ff, #a65cff); text-shadow: 0 0 .2em rgba(0, 0, 0, .6); }

/* Silhouette (carte manquante) */
.tc-carte.manque { cursor: default; }
.tc-carte.manque .tc-recto { background: linear-gradient(145deg, #3a3150, #241c36); box-shadow: inset 0 0 0 .12em rgba(255, 255, 255, .08), 0 .4em 1em rgba(0, 0, 0, .4); }
.tc-carte.manque .tc-face { background: linear-gradient(180deg, #2e2644, #1e1830); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .06); align-items: center; justify-content: center; }
.tc-carte.manque .ombre { width: 46%; aspect-ratio: 1; border-radius: 50%; background: center / cover no-repeat; filter: brightness(0) opacity(.55); }
.tc-carte.manque .numero { margin-top: .6em; font: 900 1.7em var(--titre); color: rgba(255, 255, 255, .25); }
.tc-carte.manque .rsym { font-size: 1em; color: rgba(255, 255, 255, .2); }

/* Dos de carte */
.tc-dos {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #5a1f9a, #1a0636 70%);
  box-shadow: inset 0 0 0 .4em #f5c542, inset 0 0 0 .6em #2a0838, 0 .6em 1.4em rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center;
}
.tc-dos::before { content: ""; position: absolute; inset: .9em; border-radius: .6em; background: repeating-conic-gradient(from 0deg, rgba(255, 79, 216, .18) 0 15deg, transparent 15deg 30deg); }
.tc-dos span { position: relative; font: italic 900 2.2em var(--titre); color: var(--or); text-align: center; line-height: .95; text-shadow: 0 0 .4em var(--rose-neon); transform: rotate(-12deg); }

/* ---------- Boosters (choix) ---------- */
.tc-boosters { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; padding: 10px 0 20px; }
.tc-paquet-choix { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 230px; }
.tc-paquet {
  --pa: #7b3fe4; --pb: #ff4fd8; position: relative; width: 190px; height: 290px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, var(--pa), var(--pb)); box-shadow: 0 16px 36px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(255, 255, 255, .25);
  transition: transform .2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff;
}
.tc-paquet::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%); background-size: 250% 100%; animation: tc-irise 3s linear infinite; }
.tc-paquet::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 6px, rgba(0, 0, 0, .15) 6px 12px); }
.tc-paquet .logo { position: relative; font: italic 900 30px var(--titre); color: var(--or); text-shadow: 0 0 12px rgba(0, 0, 0, .6), 0 0 22px var(--rose-neon); text-align: center; line-height: .95; }
.tc-paquet .nomp { position: relative; font: 900 14px var(--titre); text-align: center; padding: 0 8px; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.tc-paquet .visages { position: relative; display: flex; }
.tc-paquet .visages .tc-tete { width: 46px; height: 46px; margin: 0 -6px; border-width: 3px; }
.tc-paquet.lumineux { --pa: #f5c542; --pb: #ff3fa4; }
.tc-paquet.bienvenue { --pa: #2a9dff; --pb: #5fe0a0; }
.tc-paquet-choix:hover .tc-paquet { transform: translateY(-6px) rotate(-2deg); }
.tc-prix { font: 900 18px var(--titre); color: var(--or); }
.tc-offert { color: var(--vert); font-weight: 800; }
.tc-taux { font-size: 12px; color: var(--texte-doux); text-align: center; line-height: 1.4; }
.tc-forcer { margin-top: 16px; padding: 10px 14px; border: 2px dashed rgba(255, 143, 208, .5); border-radius: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- Couches (fenêtres plein écran) ---------- */
.tc-couche { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(8, 2, 16, .78); animation: tc-fondu .2s ease; }
@keyframes tc-fondu { from { opacity: 0; } }
.tc-boite {
  position: relative; width: min(96vw, 1100px); max-height: 94vh; overflow: auto; background: linear-gradient(180deg, #1f0b3a, #140726); isolation: isolate;
  border: 2px solid var(--or); border-radius: 24px; box-shadow: 0 0 34px var(--rose-neon); padding: 18px 22px; color: #fff;
}
.tc-boite h2 { margin: 0 0 10px; color: var(--or); font: italic 900 26px var(--titre); text-shadow: 0 0 12px var(--rose-neon); text-align: center; }
.tc-boite.petite { width: min(92vw, 460px); text-align: center; }
.tc-x { position: absolute; right: 12px; top: 10px; font-size: 18px; border-radius: 12px; border: 2px solid rgba(190, 130, 255, .8); background: rgba(42, 16, 80, .95); color: #fff; padding: 3px 11px; z-index: 5; }
.tc-x:hover { box-shadow: 0 0 12px var(--rose-neon); }
.tc-boutons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Ouverture de booster ---------- */
.tc-ouverture { background: radial-gradient(circle at 50% 45%, #2e0f55 0%, #0b0316 70%); flex-direction: column; overflow: hidden; }
.tc-ouverture .scene { position: relative; width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.tc-ouverture .aide { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--texte-doux); font-weight: 700; z-index: 5; pointer-events: none; }
.tc-ouverture .aide b { color: var(--or); }
.tc-ouverture .aide button { pointer-events: auto; vertical-align: middle; }
.tc-ouverture .tc-x { z-index: 30; }
.tc-paquet.ouvrir { width: 240px; height: 366px; cursor: pointer; animation: tc-flotte 2.4s ease-in-out infinite; }
.tc-paquet.ouvrir .logo { font-size: 38px; }
@keyframes tc-flotte { 50% { transform: translateY(-10px) rotate(1deg); } }
.tc-paquet.tremble { animation: tc-tremble .08s linear infinite; }
@keyframes tc-tremble { 0% { transform: translate(-3px, 1px) rotate(-1deg); } 50% { transform: translate(3px, -1px) rotate(1deg); } 100% { transform: translate(-2px, 2px) rotate(0deg); } }
.tc-dechire { position: absolute; width: 240px; height: 366px; pointer-events: none; }
.tc-dechire .haut, .tc-dechire .bas { position: absolute; left: 0; right: 0; overflow: hidden; }
.tc-dechire .haut { top: 0; height: 22%; clip-path: polygon(0 0, 100% 0, 100% 80%, 92% 100%, 84% 82%, 76% 100%, 68% 84%, 60% 100%, 52% 82%, 44% 100%, 36% 84%, 28% 100%, 20% 82%, 12% 100%, 4% 84%, 0 96%); animation: tc-vole 0.7s cubic-bezier(.3, .7, .4, 1) forwards; }
.tc-dechire .bas { top: 18%; bottom: 0; animation: tc-tombe 0.9s .35s cubic-bezier(.6, 0, .9, .5) forwards; }
.tc-dechire .tc-paquet { width: 240px; height: 366px; position: absolute; left: 0; }
.tc-dechire .bas .tc-paquet { top: -18%; top: calc(-366px * .18); }
@keyframes tc-vole { to { transform: translate(140px, -260px) rotate(38deg); opacity: 0; } }
@keyframes tc-tombe { to { transform: translateY(110vh) rotate(-8deg); } }
.tc-rang { display: flex; gap: 2vw; align-items: center; justify-content: center; flex-wrap: nowrap; padding: 0 2vw; }
.tc-flip { position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.3968); perspective: 1400px; animation: tc-distrib .5s cubic-bezier(.2, .9, .3, 1.2) backwards; }
@keyframes tc-distrib { from { transform: translateY(40vh) scale(.4) rotate(-20deg); opacity: 0; } }
.tc-flip-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); border-radius: calc(var(--w) * .055); }
.tc-flip.retournee .tc-flip-in { transform: rotateY(180deg); }
.tc-flip .verso, .tc-flip .recto { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: inherit; }
.tc-flip .verso { font-size: calc(var(--w) * .05); }
.tc-flip .recto { transform: rotateY(180deg); }
.tc-flip .recto .tc-carte { --w: inherit; }
.tc-flip.suivante { cursor: pointer; }
.tc-flip.suivante .verso { animation: tc-lueur-trem var(--trem, 1s) ease-in-out infinite; }
.tc-flip.suivante::before {
  content: ""; position: absolute; inset: -14%; border-radius: 30%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--lueur, #fff) 0%, transparent 65%); opacity: var(--lop, .5); filter: blur(6px);
  animation: tc-halo 1.1s ease-in-out infinite;
}
.tc-flip.suivante.n6::before { background: conic-gradient(from 0deg, #ff4f7a, #ffd23f, #5fff9a, #4fd8ff, #a65cff, #ff4f7a); border-radius: 50%; filter: blur(16px); animation: tc-tourne 1.4s linear infinite; }
.tc-flip.suivante.n7::before { background: conic-gradient(from 0deg, #f5c542, #000 15%, #fff6d6 30%, #000 45%, #f5c542 60%, #000 75%, #ffe27a 90%, #f5c542); border-radius: 50%; filter: blur(10px); animation: tc-tourne 2.2s linear infinite; opacity: .95; }
@keyframes tc-halo { 50% { transform: scale(1.08); opacity: calc(var(--lop, .5) + .25); } }
@keyframes tc-tourne { to { transform: rotate(360deg); } }
@keyframes tc-lueur-trem {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(calc(var(--amp, 1px) * -1), calc(var(--amp, 1px) * .5)) rotate(calc(var(--amp, 1px) * -.4deg)); }
  50% { transform: translate(var(--amp, 1px), calc(var(--amp, 1px) * -.5)) rotate(calc(var(--amp, 1px) * .4deg)); }
  75% { transform: translate(calc(var(--amp, 1px) * -.5), var(--amp, 1px)) rotate(0); }
}
.tc-flip.vue { opacity: .55; transform: scale(.92); transition: opacity .3s, transform .3s; }
.tc-flip.vue:hover { opacity: 1; transform: none; }
.tc-annonce {
  position: absolute; top: 9vh; left: 0; right: 0; z-index: 8; text-align: center; pointer-events: none;
  font: italic 900 clamp(26px, 5vw, 64px) var(--titre); color: var(--c, #fff); text-shadow: 0 0 20px var(--c, #fff), 0 4px 0 rgba(0, 0, 0, .5);
  animation: tc-annonce 2.2s ease forwards;
}
.tc-annonce small { display: block; font-size: .4em; color: #fff; text-shadow: 0 0 10px #000; }
@keyframes tc-annonce { 0% { transform: scale(2.6); opacity: 0; } 12% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.tc-flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; background: var(--c, #fff); animation: tc-flash .9s ease-out forwards; }
@keyframes tc-flash { 0% { opacity: .42; } 100% { opacity: 0; } }
.tc-rayons { position: fixed; left: 50%; top: 50%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; z-index: 6; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, var(--c, #f5c542) 0 6deg, transparent 6deg 18deg); animation: tc-tourne 9s linear infinite, tc-fondu-rayons 3.5s ease-out forwards;
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 50%); mask: radial-gradient(circle, #000 0%, transparent 50%); }
.tc-rayons.arc { background: repeating-conic-gradient(from 0deg, #ff4f7a 0 5deg, #ffd23f 5deg 10deg, #5fff9a 10deg 15deg, #4fd8ff 15deg 20deg, #a65cff 20deg 25deg, transparent 25deg 36deg); opacity: .65; }
.tc-rayons.noir { background: repeating-conic-gradient(from 0deg, #f5c542 0 3deg, #000 3deg 12deg); opacity: .85; animation: tc-tourne 5s linear infinite; }
@keyframes tc-fondu-rayons { 0% { opacity: 0; } 15% { opacity: .65; } 100% { opacity: 0; } }
.tc-fige { filter: grayscale(1) contrast(1.3) brightness(.7); transition: filter .15s; }
.tc-fige * { animation-play-state: paused !important; }
.tc-secret-voile { position: fixed; inset: 0; z-index: 35; pointer-events: none; background: radial-gradient(circle at 50% 45%, #2a0d4a, #0d0420 70%); animation: tc-secret-voile 4s ease forwards; display: flex; align-items: center; justify-content: center; flex-direction: column; }
@keyframes tc-secret-voile { 0% { opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.tc-secret-voile .couronne { font-size: 22vmin; animation: tc-couronne 4s ease forwards; filter: drop-shadow(0 0 30px #f5c542); }
@keyframes tc-couronne { 0% { transform: scale(.2) translateY(30vh); opacity: 0; } 30% { transform: scale(1) translateY(0); opacity: 1; } 60% { transform: scale(1.05) rotate(-4deg); } 75% { transform: scale(1.1) rotate(4deg); } 88% { transform: scale(3); opacity: 1; } 100% { transform: scale(6); opacity: 0; } }
.tc-secret-voile .mot { font: italic 900 clamp(28px, 6vw, 80px) var(--titre); color: #f5c542; letter-spacing: .1em; text-shadow: 0 0 30px #f5c542; animation: tc-mot 4s ease forwards; }
@keyframes tc-mot { 0%, 35% { opacity: 0; letter-spacing: 1em; } 55% { opacity: 1; letter-spacing: .1em; } 85% { opacity: 1; } 100% { opacity: 0; } }
.tc-secoue { animation: tc-secoue .5s linear; }
@keyframes tc-secoue { 10%, 50%, 90% { transform: translate(-8px, 4px); } 30%, 70% { transform: translate(8px, -4px); } }
.tc-recap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px; max-width: 100%; }
.tc-recap .rang { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.tc-recap h2 { margin: 0; font: italic 900 32px var(--titre); color: var(--or); text-shadow: 0 0 14px var(--rose-neon); }

/* ---------- Livre de collection ---------- */
.tc-coll-haut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 14px; margin-bottom: 12px; }
.tc-filtres { display: flex; flex-direction: column; gap: 8px; }
.tc-filtres .tc-ligne { gap: 6px; }
.tc-prog { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; gap: 4px 8px; align-items: center; font-size: 12px; font-weight: 700; }
.tc-prog .tc-jauge { height: 8px; }
.tc-prog .tot { color: var(--or); font: 900 13px var(--titre); }
.tc-livre { position: relative; display: flex; justify-content: center; align-items: stretch; gap: 0; perspective: 2200px; padding: 6px 54px; }
.tc-livre-page {
  position: relative; padding: 16px; border-radius: 10px; display: grid; grid-template-columns: repeat(3, var(--cw)); grid-auto-rows: calc(var(--cw) * 1.3968); gap: 12px;
  background: linear-gradient(90deg, #2a1150, #331660 8%, #2a1150), #2a1150; border: 2px solid rgba(180, 140, 255, .3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 40px rgba(0, 0, 0, .35); transform-origin: left center; transform-style: preserve-3d;
}
.tc-livre-page.g { border-radius: 14px 4px 4px 14px; transform-origin: right center; }
.tc-livre-page.d { border-radius: 4px 14px 14px 4px; }
.tc-livre-page.g::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; width: 16px; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.tc-livre-page.d::after { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 16px; background: linear-gradient(-90deg, transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.tc-poche { position: relative; border-radius: 8px; background: rgba(10, 4, 20, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); display: flex; align-items: center; justify-content: center; }
.tc-poche .tc-carte { --w: var(--cw); }
.tc-livre-page.tourne-av { animation: tc-tourne-av .45s ease-in; }
.tc-livre-page.tourne-ar { animation: tc-tourne-ar .45s ease-in; }
@keyframes tc-tourne-av { 0% { transform: rotateY(0); } 50% { transform: rotateY(-90deg); filter: brightness(.5); } 51% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes tc-tourne-ar { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); filter: brightness(.5); } 51% { transform: rotateY(-90deg); } 100% { transform: rotateY(0); } }
.tc-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 76px; border-radius: 14px; font: 900 28px var(--titre); border: 2px solid rgba(190, 130, 255, .8); background: rgba(42, 16, 80, .95); color: var(--or); z-index: 2; }
.tc-fleche:hover:not(:disabled) { box-shadow: 0 0 16px var(--rose-neon); }
.tc-fleche:disabled { opacity: .3; cursor: default; }
.tc-fleche.g { left: 0; }
.tc-fleche.d { right: 0; }
.tc-pagenum { text-align: center; color: var(--texte-doux); font-weight: 800; margin-top: 8px; }

/* ---------- Vue détaillée ---------- */
.tc-detail { display: grid; grid-template-columns: auto minmax(260px, 1fr); gap: 22px; align-items: start; }
.tc-detail .gauche { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tc-vitrine { position: relative; width: 100%; height: 260px; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 70%, #3a1066, #140726 70%); border: 2px solid rgba(245, 197, 66, .45); }
.tc-vitrine canvas { display: block; width: 100% !important; height: 100% !important; }
.tc-vitrine .repli { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border-radius: 50%; background: center / cover no-repeat; border: 5px solid var(--or); box-shadow: 0 0 30px var(--rose-neon); animation: tc-vit 4s ease-in-out infinite; }
@keyframes tc-vit { 0%, 100% { transform: rotateY(-25deg) translateY(0); } 50% { transform: rotateY(25deg) translateY(-8px); } }
.tc-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; }
.tc-info { padding: 8px 10px; border-radius: 12px; background: rgba(42, 16, 80, .7); border: 1px solid var(--bord); }
.tc-info small { display: block; color: var(--texte-doux); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tc-info b { font: 900 18px var(--titre); color: var(--or); }
.tc-actions { display: flex; flex-direction: column; gap: 8px; }
.tc-action { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(20, 7, 38, .6); border: 1px solid var(--bord); }
.tc-action .tc-btn { min-width: 150px; }
.tc-action span { flex: 1; color: var(--texte-doux); font-weight: 600; font-size: 13px; }
.tc-statsbar { display: grid; grid-template-columns: 50px 1fr 46px; gap: 6px; align-items: center; font-weight: 800; font-size: 12px; margin: 3px 0; }
.tc-statsbar .tc-jauge { height: 9px; }
.tc-statsbar b { text-align: right; color: var(--or); }

/* ---------- Équipe ---------- */
.tc-slots { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.tc-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tc-slot .vide { width: 180px; height: 251px; border-radius: 12px; border: 3px dashed rgba(190, 130, 255, .5); display: flex; align-items: center; justify-content: center; color: var(--texte-doux); font: 900 16px var(--titre); text-align: center; padding: 10px; }
.tc-slot.choisi .vide, .tc-slot.choisi .tc-carte { box-shadow: 0 0 0 4px var(--or), 0 0 24px var(--or); border-radius: 12px; }
.tc-grille { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tc-faiblesses { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-tpill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-weight: 800; font-size: 12px; background: color-mix(in srgb, var(--tc) 30%, #1a0b30); border: 1px solid var(--tc); white-space: nowrap; }
.tc-tpill.x2 { box-shadow: 0 0 8px var(--rouge); }
.tc-mini-carte-l { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: rgba(42, 16, 80, .6); cursor: pointer; border: 2px solid transparent; }
.tc-mini-carte-l:hover { border-color: var(--rose-neon); }

/* ---------- Combats / arènes ---------- */
.tc-arenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tc-arene {
  --tc: #888; position: relative; padding: 14px; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tc) 45%, #1a0b30), #1a0b30 70%); border: 2px solid color-mix(in srgb, var(--tc) 60%, transparent);
}
.tc-arene .champ { display: flex; align-items: center; gap: 10px; }
.tc-arene .champ .tc-tete { width: 58px; height: 58px; border-width: 3px; border-color: var(--tc); }
.tc-arene b { font: 900 16px var(--titre); }
.tc-arene .phrase { font-style: italic; color: #e6d8ff; font-size: 13px; min-height: 2.4em; }
.tc-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; background: radial-gradient(circle at 35% 30%, #fff, var(--tc) 55%, #000); box-shadow: 0 0 0 3px #f5c542, 0 0 14px var(--tc); flex: none; }
.tc-badge.pas { filter: grayscale(1) brightness(.5); box-shadow: 0 0 0 3px #555; }
.tc-arene .eq { display: flex; gap: 4px; }
.tc-arene .eq .tc-tete { width: 28px; height: 28px; }
.tc-champion-bloc { margin-top: 18px; padding: 18px; border-radius: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(245, 197, 66, .25), rgba(255, 63, 164, .2), rgba(20, 7, 38, .9)); border: 2px solid var(--or); }
.tc-champion-bloc .tc-tete { width: 90px; height: 90px; border-width: 4px; box-shadow: 0 0 20px var(--or); }
.tc-champion-bloc.verrou { filter: grayscale(.7); opacity: .75; }
.tc-badges-rang { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Combat ---------- */
.tc-combat { background: #0b0316; flex-direction: column; align-items: stretch; justify-content: stretch; }
.tc-cb-scene { position: relative; flex: 1 1 58%; min-height: 220px; overflow: hidden; background: radial-gradient(ellipse at 50% 80%, #3a1066, #140726 70%); }
.tc-cb-scene canvas { display: block; width: 100% !important; height: 100% !important; }
.tc-cb-plaque {
  position: absolute; z-index: 4; width: min(340px, 44vw); padding: 8px 12px; border-radius: 16px; pointer-events: none;
  background: rgba(20, 7, 38, .86); border: 2px solid var(--tc, var(--or)); box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.tc-cb-plaque.c0 { left: 14px; bottom: 14px; }
.tc-cb-plaque.c1 { right: 14px; top: 14px; }
.tc-cb-plaque .l1 { display: flex; align-items: center; gap: 6px; }
.tc-cb-plaque .nm { flex: 1; min-width: 0; font: 900 15px var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-cb-plaque .et { color: var(--or); font-size: 12px; white-space: nowrap; }
.tc-cb-plaque .dresseur { font-size: 11px; color: var(--texte-doux); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.tc-cb-plaque .dresseur .tc-tete { width: 18px; height: 18px; border-width: 1px; }
.tc-cb-plaque .equipe { display: inline-flex; gap: 3px; margin-left: auto; }
.tc-cb-plaque .equipe i { width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 4px var(--vert); display: block; }
.tc-cb-plaque .equipe i.ko { background: #555; box-shadow: none; }
.tc-cb-plaque .equipe i.inconnu { background: #8a7aa8; box-shadow: none; }
.tc-pvbar { position: relative; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 5px 0 3px; }
.tc-pvbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; transition: width .5s ease, background .3s; }
.tc-pvbar i.fant { background: rgba(255, 255, 255, .55); transition: width .9s .35s ease; }
.tc-pvbar i.vrai { background: linear-gradient(90deg, #3fe08a, #8affb8); }
.tc-pvbar i.vrai.moyen { background: linear-gradient(90deg, #f5c542, #ffe27a); }
.tc-pvbar i.vrai.bas { background: linear-gradient(90deg, #ff3a5a, #ff8a9a); }
.tc-pvbar span { position: absolute; right: 6px; top: -1px; font: 900 11px var(--titre); color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.tc-energie { display: flex; gap: 3px; align-items: center; }
.tc-energie i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: block; transition: background .3s, box-shadow .3s; }
.tc-energie i.on { background: radial-gradient(circle at 35% 30%, #fff8c0, #f5c542 50%, #b07a10); box-shadow: 0 0 6px var(--or); }
.tc-energie .stt { margin-left: auto; display: flex; gap: 4px; }
.tc-statut { padding: 1px 6px; border-radius: 6px; font: 900 10px var(--titre); color: #fff; }
.tc-statut.brulure { background: #ff6a2a; } .tc-statut.poison { background: #9b3fd4; } .tc-statut.paralysie { background: #d4b020; color: #2a1a00; }
.tc-statut.sommeil { background: #5a6a8a; } .tc-statut.gel { background: #3fb8e0; } .tc-statut.confusion { background: #e05aa0; }
.tc-statut.cran { background: rgba(255, 255, 255, .18); }
.tc-cb-banniere { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; pointer-events: none; text-align: center; max-width: 80%;
  font: italic 900 clamp(16px, 2.4vw, 28px) var(--titre); color: #fff; text-shadow: 0 0 12px var(--rose-neon), 0 3px 0 rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.tc-cb-banniere.on { opacity: 1; }
.tc-cb-meteo { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 4; padding: 4px 12px; border-radius: 999px; background: rgba(20, 7, 38, .8); font-weight: 800; font-size: 13px; }
.tc-cb-chrono { position: absolute; left: 14px; top: 14px; z-index: 5; padding: 6px 12px; border-radius: 12px; font: 900 20px var(--titre); background: rgba(20, 7, 38, .85); border: 2px solid var(--or); color: var(--or); }
.tc-cb-chrono.urgent { color: var(--rouge); border-color: var(--rouge); animation: clignote .5s infinite; }
@keyframes clignote { 50% { opacity: .5; } }
.tc-cb-chiffre { position: absolute; z-index: 6; pointer-events: none; font: 900 34px var(--titre); color: #fff; text-shadow: 0 0 8px #ff3a5a, 0 3px 0 #000; animation: tc-chiffre 1.1s ease-out forwards; }
.tc-cb-chiffre.soin { color: #8affb8; text-shadow: 0 0 8px #3fe08a, 0 3px 0 #000; }
.tc-cb-chiffre.crit { font-size: 44px; color: #ffe27a; }
@keyframes tc-chiffre { 0% { transform: translate(-50%, 0) scale(.5); opacity: 0; } 15% { transform: translate(-50%, -10px) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
.tc-cb-bas { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 12px; padding: 12px; background: linear-gradient(180deg, #1a0a30, #0e0420); border-top: 2px solid var(--bord); max-height: 36vh; }
.tc-cb-actions { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.tc-cb-atks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-cb-atk {
  --tc: #888; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 14px; text-align: left;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 55%, #1a0b30), #1a0b30); border: 2px solid var(--tc); color: #fff; min-height: 62px;
}
.tc-cb-atk:hover:not(:disabled) { box-shadow: 0 0 16px var(--tc); transform: translateY(-1px); }
.tc-cb-atk:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.5); }
.tc-cb-atk .l1 { display: flex; width: 100%; align-items: center; gap: 6px; }
.tc-cb-atk .nm { flex: 1; min-width: 0; font: 900 15px var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-cb-atk .tc-pips i { width: 11px; height: 11px; }
.tc-cb-atk .l2 { font-size: 12px; font-weight: 700; color: #e6d8ff; display: flex; gap: 8px; width: 100%; }
.tc-cb-atk .eff { margin-left: auto; font-weight: 900; }
.tc-cb-atk .eff.sup { color: #7dffb0; } .tc-cb-atk .eff.peu { color: #ffb0b0; }
.tc-cb-atk kbd { position: absolute; right: 6px; bottom: 6px; opacity: .6; }
.tc-cb-atk .raison { font-size: 11px; color: #ffb0c8; }
.tc-cb-autres { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-cb-attente { padding: 14px; text-align: center; color: var(--texte-doux); font-weight: 800; }
.tc-cb-journal { overflow-y: auto; min-height: 80px; max-height: 100%; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); font-size: 13px; line-height: 1.45; }
.tc-cb-journal p { margin: 0; }
.tc-cb-journal p.tour { color: var(--or); font-weight: 900; margin-top: 4px; }
.tc-cb-journal p.fort { color: #7dffb0; font-weight: 800; }
.tc-cb-reserve { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-cb-reserve button { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--tc, #888); background: rgba(42, 16, 80, .9); color: #fff; text-align: left; }
.tc-cb-reserve button:hover:not(:disabled) { box-shadow: 0 0 12px var(--tc); }
.tc-cb-reserve button:disabled { opacity: .4; cursor: not-allowed; }
.tc-cb-reserve .tc-tete { width: 34px; height: 34px; }
.tc-cb-reserve small { display: block; color: var(--texte-doux); font-size: 11px; }
/* combat 2D (repli) */
.tc-2d { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-around; padding: 60px 6% 30px; }
.tc-2d-camp { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform .25s, opacity .5s, filter .3s; }
.tc-2d-camp .tc-carte { cursor: default; }
.tc-2d-camp.c1 { align-self: flex-start; }
.tc-2d-camp.c0 { align-self: flex-end; }
.tc-2d-camp.elan.c0 { transform: translate(40px, -20px) rotate(4deg); }
.tc-2d-camp.elan.c1 { transform: translate(-40px, 20px) rotate(-4deg); }
.tc-2d-camp.touche { animation: tc-touche .45s linear; }
@keyframes tc-touche { 0%, 100% { transform: none; filter: none; } 20% { transform: translateX(-10px); filter: brightness(2.2) saturate(0); } 50% { transform: translateX(10px); } 75% { transform: translateX(-5px); } }
.tc-2d-camp.ko { opacity: 0; transform: translateY(40px) rotate(-8deg); filter: grayscale(1); }
.tc-2d-camp.entre { animation: tc-entre-2d .5s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tc-entre-2d { from { transform: scale(.3) translateY(-60px); opacity: 0; } }
.tc-2d-proj { position: absolute; z-index: 5; width: 46px; height: 46px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff, var(--c, #f5c542) 45%, transparent 70%); box-shadow: 0 0 30px var(--c, #f5c542); transition: left .35s ease-in, top .35s ease-in; }
.tc-cb-fin { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(8, 2, 16, .75); animation: tc-fondu .4s ease; }
.tc-cb-fin .tc-boite { text-align: center; width: min(92vw, 520px); }
.tc-cb-fin h2 { font-size: 44px; }
.tc-gains { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; font-size: 17px; font-weight: 800; }
.tc-gains div { padding: 8px 12px; border-radius: 12px; background: rgba(42, 16, 80, .8); }
.tc-gains b { color: var(--or); }

/* ---------- En ligne / échanges ---------- */
.tc-enligne { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 16px; }
.tc-joueurs { display: flex; flex-direction: column; gap: 8px; }
.tc-joueur { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(42, 16, 80, .7); border: 1px solid var(--bord); flex-wrap: wrap; }
.tc-joueur .nm { flex: 1; min-width: 100px; font-weight: 900; }
.tc-joueur .etat { font-size: 12px; color: var(--texte-doux); }
.tc-joueur .etat.libre { color: var(--vert); }
.tc-point { width: 9px; height: 9px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 8px var(--vert); display: inline-block; }
.tc-point.off { background: #e05a7a; box-shadow: 0 0 8px #e05a7a; }
.tc-point.attente { background: var(--or); box-shadow: 0 0 8px var(--or); animation: clignote 1s infinite; }
.tc-cherche { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(245, 197, 66, .12); border: 2px dashed var(--or); }
.tc-spinner { width: 26px; height: 26px; border-radius: 50%; border: 4px solid rgba(245, 197, 66, .25); border-top-color: var(--or); animation: tc-tourne .8s linear infinite; }
.tc-echange { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.tc-echange .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-echange h3 { margin: 0; font: 900 15px var(--titre); color: var(--cyan); display: flex; align-items: center; gap: 6px; }
.tc-echange h3 .val { margin-left: auto; color: var(--or); font-size: 13px; }
.tc-ech-liste { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 140px; max-height: 52vh; overflow-y: auto; padding: 6px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.tc-ech-liste .tc-carte { --w: 96px; }
.tc-ech-item { position: relative; }
.tc-ech-item .moins { position: absolute; left: -6px; top: -6px; z-index: 5; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: var(--rouge); color: #fff; font-weight: 900; line-height: 1; padding: 0; }
.tc-ech-etat { text-align: center; padding: 8px; border-radius: 12px; font-weight: 900; }
.tc-ech-etat.ok { background: rgba(95, 224, 160, .2); color: var(--vert); }
.tc-ech-etat.att { background: rgba(255, 255, 255, .06); color: var(--texte-doux); }
.tc-ech-compte { font: 900 46px var(--titre); color: var(--or); text-align: center; text-shadow: 0 0 20px var(--or); }

/* ---------- Classements ---------- */
.tc-onglets { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tc-table { width: 100%; border-collapse: collapse; font-weight: 700; }
.tc-table td, .tc-table th { padding: 7px 8px; border-bottom: 1px solid rgba(180, 140, 255, .18); text-align: left; }
.tc-table th { color: var(--cyan); font: 900 12px var(--titre); text-transform: uppercase; letter-spacing: .05em; }
.tc-table td.rg { width: 46px; font: 900 16px var(--titre); color: var(--texte-doux); }
.tc-table tr.top1 td.rg { color: var(--or); } .tc-table tr.top2 td.rg { color: #d9d9e6; } .tc-table tr.top3 td.rg { color: #e09a5a; }
.tc-table tr.moi td { background: rgba(245, 197, 66, .14); }
.tc-table td.sc { text-align: right; font: 900 16px var(--titre); color: var(--or); }
.tc-table .qui { display: flex; align-items: center; gap: 8px; }
.tc-table .qui .tc-tete { width: 30px; height: 30px; }

/* ---------- Mon compte ---------- */
.tc-compte { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tc-code { font: 800 14px Consolas, "Courier New", monospace; padding: 10px; border-radius: 10px; background: #0b0316; border: 1px solid var(--bord); word-break: break-all; user-select: all; -webkit-user-select: all; }
.tc-code.masque { filter: blur(6px); user-select: none; }
.tc-alerte { padding: 8px 12px; border-radius: 12px; background: rgba(255, 90, 122, .15); border: 1px solid var(--rouge); color: #ffc0cc; font-weight: 700; font-size: 13px; }
.tc-skins { display: flex; flex-wrap: wrap; gap: 5px; max-height: 210px; overflow-y: auto; padding: 2px; }
.tc-skins button { width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 3px solid rgba(190, 130, 255, .5); background: center / cover no-repeat; }
.tc-skins button.on { border-color: var(--or); box-shadow: 0 0 12px var(--or); }

/* ---------- Toasts / confirmations ---------- */
#tc-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.tc-toast { max-width: 360px; padding: 10px 14px; border-radius: 14px; background: rgba(20, 7, 38, .96); border: 2px solid var(--or); box-shadow: 0 0 18px rgba(255, 79, 216, .5); font-weight: 700; animation: tc-toast .3s ease; pointer-events: auto; }
.tc-toast.err { border-color: var(--rouge); }
.tc-toast.ok { border-color: var(--vert); }
.tc-toast .tc-btn { margin-top: 6px; margin-right: 6px; }
@keyframes tc-toast { from { transform: translateX(40px); opacity: 0; } }
#tc-fx { position: fixed; inset: 0; z-index: 45; pointer-events: none; width: 100vw; height: 100vh; }
.tc-bouchon { position: fixed; right: 10px; top: 74px; z-index: 15; padding: 3px 9px; border-radius: 8px; background: rgba(255, 63, 164, .25); border: 1px dashed var(--rose-clair); font-size: 11px; font-weight: 800; color: var(--rose-clair); pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tc-accueil, .tc-enligne, .tc-coll-haut { grid-template-columns: 1fr; }
  .tc-echange { grid-template-columns: 1fr 1fr; }
  .tc-echange .col.mien { grid-column: span 2; }
}
@media (max-width: 760px) {
  :root { --haut: 58px; }
  #tc-haut { gap: 6px; padding: 0 8px; }
  #tc-logo { font-size: 22px; margin: 0 2px; }
  .tc-profil-nom, .tc-solde small, #tc-lobby .txt, #tc-retour .txt { display: none; }
  #tc-haut .tc-btn { padding: 7px 10px; }
  .tc-profil { padding: 3px; }
  .tc-solde { padding: 5px 9px; }
  .tc-solde b { font-size: 14px; }
  #tc-vue { padding: 12px 10px 24px; }
  .tc-tuile.grosse { grid-column: span 1; }
  .tc-tuiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .tc-detail { grid-template-columns: 1fr; justify-items: center; }
  .tc-cb-bas { grid-template-columns: 1fr; max-height: 52vh; overflow-y: auto; }
  .tc-cb-journal { max-height: 90px; }
  .tc-cb-atks { grid-template-columns: 1fr 1fr; }
  .tc-cb-atk { min-height: 52px; padding: 6px 8px; }
  .tc-cb-atk .nm { font-size: 13px; }
  .tc-echange { grid-template-columns: 1fr; }
  .tc-echange .col.mien { grid-column: auto; }
  .tc-livre { padding: 6px 40px; }
  .tc-fleche { width: 34px; }
  .tc-boite { padding: 14px; }
  .tc-cb-plaque { width: min(240px, 58vw); padding: 6px 8px; }
  .tc-cb-plaque .nm { font-size: 13px; }
}
@media (max-width: 480px) {
  .tc-solde.eclats { display: none; }
  #tc-logo { font-size: 18px; }
  #tc-haut { gap: 5px; }
  #tc-lobby { padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #tc-fond i { animation: none; display: none; }
}

/* ---------- Classeur : colonne latérale ---------- */
.tc-page.large { max-width: 1880px; }
.tc-coll { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.tc-coll-aside { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1100px) { .tc-coll { grid-template-columns: 1fr; } }

/* ---------- Cartes qu'on fait pivoter (§11) ---------- */
.tc-carte.pivot { --ep: calc(var(--w) * .022); touch-action: none; cursor: grab; }
.tc-carte.pivot.pivote { cursor: grabbing; }
.tc-carte.pivot .tc-in { transition: none; }
.tc-bord { position: absolute; pointer-events: none; background: linear-gradient(90deg, var(--tcf), var(--tcc) 50%, var(--tcf)); }
.tc-carte.r-legendaire .tc-bord, .tc-carte.r-secrete .tc-bord, .tc-carte.ultime .tc-bord { background: linear-gradient(90deg, #7a5208, #ffe27a 50%, #7a5208); }
.tc-carte.r-mythique .tc-bord { background: linear-gradient(90deg, #ff4f7a, #fff35f, #4fd8ff, #a65cff); }
.tc-bord.d { top: 4%; bottom: 4%; right: 0; width: var(--ep); transform-origin: right center; transform: rotateY(-90deg); }
.tc-bord.g { top: 4%; bottom: 4%; left: 0; width: var(--ep); transform-origin: left center; transform: rotateY(90deg); }
.tc-bord.h { left: 4%; right: 4%; top: 0; height: var(--ep); transform-origin: center top; transform: rotateX(-90deg); }
.tc-bord.b { left: 4%; right: 4%; bottom: 0; height: var(--ep); transform-origin: center bottom; transform: rotateX(90deg); }
.tc-verso { position: absolute; inset: 0; border-radius: inherit; transform: translateZ(calc(var(--ep) * -1)) rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: inherit; }
/* Reflet (glare) qui dépend de l'angle */
.tc-carte.pivot .tc-reflet { opacity: calc(var(--glare, .12) * .5); transition: none; }
.tc-carte.pivot.holo .tc-reflet { opacity: calc(var(--glare, .12) * .6); }
.tc-carte.pivot.r-legendaire .tc-reflet { opacity: var(--glare, .12); background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 246, 200, .95), rgba(245, 197, 66, .45) 22%, transparent 55%); }
.tc-carte.pivot.r-mythique .tc-reflet { opacity: var(--glare, .12); mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .8), transparent 28%),
    conic-gradient(from var(--pa, 0deg) at var(--mx, 50%) var(--my, 30%), rgba(255, 79, 122, .35), rgba(255, 243, 95, .35), rgba(95, 255, 154, .35), rgba(79, 216, 255, .35), rgba(166, 92, 255, .35), rgba(255, 79, 122, .35)); }
.tc-carte.pivot.r-secrete .tc-reflet { opacity: var(--glare, .12); mix-blend-mode: screen;
  background: linear-gradient(calc(var(--pa, 0deg) + 115deg), transparent 30%, rgba(245, 197, 66, .7) 46%, rgba(255, 255, 255, .85) 50%, rgba(245, 197, 66, .7) 54%, transparent 70%); }
/* Holo en 3D : bandes irisées qui défilent, glare blanc, paillettes visibles selon l'angle */
.tc-carte.pivot.holo .tc-holo { animation: none; opacity: calc(.28 + var(--ang, 0) * .3); }
.tc-carte.pivot.holo .tc-holo::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  background-size: 320% 100%; background-position: var(--hx, 50%) 0;
}
.tc-paillettes {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge;
  opacity: calc(var(--ang, 0) * .75);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 .06em, transparent .1em),
    radial-gradient(circle, rgba(140, 255, 255, .85) 0 .04em, transparent .08em);
  background-size: .55em .55em, .8em .8em;
  background-position: calc(var(--hx, 50%) * .3) calc(var(--hy, 50%) * .3), calc(var(--mx, 50%) * -.4) calc(var(--my, 50%) * .4);
  -webkit-mask: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 60%); mask: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 60%);
}
.tc-carte:not(.pivot) .tc-paillettes { opacity: .12; }

/* ---------- Cartes à illustration plein cadre (§10) ---------- */
.tc-illu img.rendu { object-fit: cover; object-position: center; }
.tc-carte.ultime .tc-illu { box-shadow: inset 0 0 0 .16em #f5c542, inset 0 0 1.2em rgba(245, 197, 66, .35); }
.eclat-art { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%); background-size: 300% 100%; animation: tc-irise 4.5s linear infinite; }
.tc-carte.ultime .tc-recto {
  background: linear-gradient(135deg, #fff6c8, #f5c542 20%, #8a5a00 40%, #ffe27a 55%, #b8860b 75%, #fff2b0); background-size: 250% 250%; animation: tc-or 3s linear infinite;
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .6), 0 0 1.6em rgba(245, 197, 66, .75), inset 0 0 0 .14em #fff6c8;
}
.tc-carte.ultime .tc-face { box-shadow: inset 0 0 0 .12em #f5c542, inset 0 0 1.5em rgba(245, 197, 66, .25); }
.tc-carte.ultime .tc-nom { background: linear-gradient(180deg, #fff6d6, #f5c542 55%, #c9962a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-vitrine.art { height: 300px; }
.tc-vitrine.art img.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: tc-kenburns 14s ease-in-out infinite alternate; }
@keyframes tc-kenburns { from { transform: scale(1.04) translate(-2%, -1%); } to { transform: scale(1.18) translate(2%, 2%); } }

/* ---------- Séquences Secrète illustrée et Louis d'Or ---------- */
.tc-secret-voile .portrait { position: relative; width: min(46vmin, 420px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #f5c542; box-shadow: 0 0 60px #f5c542, 0 0 140px rgba(245, 197, 66, .6); }
.tc-secret-voile .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-secret-voile .portrait.petit { width: min(34vmin, 300px); animation: tc-couronne 4s ease forwards; }
.tc-secret-voile.ultime { animation-duration: 7.2s; background: radial-gradient(circle, #3a2808, #120a02 75%); }
.tc-secret-voile.ultime .portrait { animation: tc-portrait 7.2s ease forwards; }
@keyframes tc-portrait { 0%, 38% { transform: scale(.3); opacity: 0; filter: brightness(4) blur(12px); } 52% { transform: scale(1.06); opacity: 1; filter: brightness(1.6) blur(0); } 60%, 88% { transform: scale(1); filter: brightness(1); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.tc-secret-voile .rayons-or { position: absolute; left: 50%; top: 50%; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(245, 197, 66, .4) 0 4deg, transparent 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000, transparent 55%); mask: radial-gradient(circle, #000, transparent 55%);
  animation: tc-tourne 12s linear infinite, tc-ult-rayons 7.2s ease forwards; }
@keyframes tc-ult-rayons { 0%, 35% { opacity: 0; } 55%, 100% { opacity: 1; } }
.tc-secret-voile .fente { position: absolute; left: 50%; top: 8%; bottom: 8%; width: 6px; margin-left: -3px; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0), #fff6d6, #f5c542, #fff6d6, rgba(255, 255, 255, 0)); box-shadow: 0 0 40px 10px #f5c542; animation: tc-fente 7.2s ease forwards; }
@keyframes tc-fente { 0%, 16% { transform: scaleY(0); opacity: 0; } 30% { transform: scaleY(1); opacity: 1; } 40% { transform: scaleX(30); opacity: .9; } 50%, 100% { transform: scaleX(90); opacity: 0; } }
.tc-secret-voile.ultime .mot { margin-top: 3vh; animation: tc-mot-ult 7.2s ease forwards; }
@keyframes tc-mot-ult { 0%, 58% { opacity: 0; letter-spacing: 1em; } 70% { opacity: 1; letter-spacing: .12em; } 92% { opacity: 1; } 100% { opacity: 0; } }
.tc-secret-voile .sous { font: 800 clamp(14px, 2vw, 22px) "Segoe UI", sans-serif; color: #fff6d6; opacity: 0; animation: tc-sous 7.2s ease forwards; }
@keyframes tc-sous { 0%, 70% { opacity: 0; } 78%, 92% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Images « clin d'œil » (§12) ---------- */
.tc-reaction {
  position: fixed; right: 3vw; bottom: 11vh; z-index: 42; width: min(230px, 38vw); padding: 8px 8px 10px; border-radius: 12px; pointer-events: none;
  background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 0 3px var(--or); transform: rotate(-8deg);
  animation: tc-rebond .9s cubic-bezier(.3, 1.7, .5, 1) both;
}
.tc-reaction img { display: block; width: 100%; height: auto; max-height: 46vh; aspect-ratio: auto; object-fit: contain; border-radius: 7px; } /* mèmes : format d'origine, jamais rognés */
.tc-reaction span { display: block; margin-top: 6px; text-align: center; font: 900 13px var(--titre); color: #2a0838; line-height: 1.2; }
.tc-reaction.part { animation: tc-part .5s ease-in forwards; }
.tc-reaction.sticker { left: 3vw; right: auto; top: 14vh; bottom: auto; width: min(150px, 30vw); transform: rotate(9deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 0 3px #ff5a7a; }
.tc-reaction.echange { right: 2vw; bottom: 2vh; width: min(200px, 34vw); z-index: 25; }
@keyframes tc-rebond { 0% { transform: translateY(60vh) rotate(25deg) scale(.4); opacity: 0; } 60% { transform: translateY(-14px) rotate(-12deg) scale(1.05); opacity: 1; } 100% { transform: translateY(0) rotate(var(--rot, -8deg)) scale(1); } }
.tc-reaction.sticker { --rot: 9deg; }
@keyframes tc-part { to { transform: translateY(40px) rotate(20deg) scale(.6); opacity: 0; } }
.tc-red { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px auto 0; }
.tc-red img { width: min(190px, 44vw); height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 16px; border: 3px solid #ff5a7a; box-shadow: 0 0 20px rgba(255, 90, 122, .5); transform: rotate(-3deg); animation: tc-red 2.4s ease-in-out infinite; }
.tc-red span { font: 900 14px var(--titre); color: #ff8a9a; }
@keyframes tc-red { 50% { transform: rotate(3deg) translateY(-4px); } }
.tc-moquerie { font-style: italic; color: #ffd0d8; margin: 8px 0 0; }
.tc-illu-vide { display: block; width: min(180px, 50%); margin: 0 auto 10px; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 3px var(--or); }

/* ---------- Monnaie Louis (§12 bis) ---------- */
.tc-piece { display: inline-block; width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.28em; filter: drop-shadow(0 0 3px rgba(245, 197, 66, .55)); }
.tc-solde .ico.tc-piece { width: 24px; height: 24px; vertical-align: -6px; }
.tc-piece-vol { position: fixed; z-index: 70; width: 30px; height: 30px; margin: -15px 0 0 -15px; pointer-events: none; filter: drop-shadow(0 0 6px #f5c542);
  transition: transform .85s cubic-bezier(.45, -0.4, .6, 1), opacity .25s .7s; }
.tc-reaction.questions { left: 50%; right: auto; bottom: 14vh; margin-left: -100px; width: 200px; --rot: -4deg; }
/* ---------- Info inutile ---------- */
.tc-info-inutile { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; cursor: help;
  background: linear-gradient(120deg, rgba(79, 216, 255, .14), rgba(255, 79, 216, .12)); border: 2px dashed rgba(79, 216, 255, .55); transition: transform .15s; }
.tc-info-inutile:hover { transform: rotate(-.6deg) scale(1.01); }
.tc-info-inutile img { width: 120px; height: auto; max-height: 90px; object-fit: contain; border-radius: 12px; flex: none; transform: rotate(-4deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.tc-info-inutile b { font: 900 14px var(--titre); color: var(--cyan); letter-spacing: .04em; text-transform: uppercase; }
.tc-info-inutile p { margin: 4px 0 2px; font: 700 14px "Segoe UI", Arial, sans-serif; color: #fff; line-height: 1.35; }
.tc-info-inutile small { color: var(--texte-doux); font-size: 11px; }
.tc-chargement .tc-info-inutile { font-size: 14px; }
.tc-err-nom { min-height: 18px; margin: 4px 0 0 82px; color: #ff8a9a; font-weight: 800; font-size: 13px; }
.tc-lien { display: block; margin: 10px auto 0; padding: 2px 4px; border: 0; background: none; color: var(--texte-doux); font-size: 12px; text-decoration: underline; opacity: .75; }
.tc-lien:hover { opacity: 1; color: var(--rose-clair); }
.tc-bienvenue .grosse-piece { display: block; width: 110px; height: 110px; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(0 0 18px #f5c542); animation: tc-flotte 2.4s ease-in-out infinite; }
.tc-bienvenue .retro { margin: 12px auto; padding: 12px; border-radius: 16px; background: linear-gradient(120deg, rgba(245, 197, 66, .25), rgba(255, 63, 164, .2)); border: 2px solid var(--or); animation: tc-pulse 2s ease-in-out infinite; }
.tc-bienvenue .retro small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--rose-clair); font-weight: 900; }
.tc-bienvenue .retro b { display: block; font: 900 34px var(--titre); color: var(--or); text-shadow: 0 0 14px rgba(245, 197, 66, .6); }
.tc-bienvenue .retro span { color: #fff; font-weight: 700; }

/* ================= Combat 2D : les cartes s'affrontent (§13) ================= */
.tc-cb-scene.tc-tapis {
  --tc: #7b3fe4; --tcc: #b48cff; --tcf: #2a1150;
  background:
    radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--tc) 38%, transparent) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    radial-gradient(ellipse at 50% 120%, var(--tcf), #0d0420 70%);
  overflow: hidden;
}
.tc-tapis-deco { position: absolute; inset: 6% 10%; border-radius: 50%; pointer-events: none;
  border: 3px dashed color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: inset 0 0 80px color-mix(in srgb, var(--tc) 25%, transparent);
  display: flex; align-items: center; justify-content: center; }
.tc-tapis-deco span { font-size: min(26vh, 220px); opacity: .07; filter: grayscale(.3); }
.tc-tapis-deco::before { content: ""; position: absolute; left: 50%; top: 8%; bottom: 8%; width: 3px; transform: rotate(-32deg); background: color-mix(in srgb, var(--tc) 35%, transparent); }
.tc-tapis.t-feu { --tcf: #3a0c04; } .tc-tapis.t-eau { --tcf: #04203a; } .tc-tapis.t-plante { --tcf: #082a0c; }
.tc-tapis.t-electrique { --tcf: #2e2804; } .tc-tapis.t-roche { --tcf: #2a1f10; } .tc-tapis.t-glace { --tcf: #0c2a33; }
.tc-tapis.t-ombre { --tcf: #14062a; } .tc-tapis.t-neon { --tcf: #2e0629; }

.tc-zone { position: absolute; z-index: 3; display: flex; gap: 16px; align-items: flex-end; max-width: 96%; }
.tc-zone.moi { left: 3%; bottom: 4%; }
.tc-zone.adv { right: 3%; top: 4%; flex-direction: row-reverse; align-items: flex-start; }
.tc-slot-carte { position: relative; flex: none; width: var(--cw, 200px); height: calc(var(--cw, 200px) * 1.3968); border-radius: calc(var(--cw, 200px) * .055);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.tc-carte-combat { position: absolute; inset: 0; transform-origin: 50% 80%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); will-change: transform; }
.tc-carte-combat .tc-carte { cursor: default; }
.tc-cote { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: min(320px, 34vw); }
.tc-zone.adv .tc-cote { align-items: flex-end; }
.tc-zone .tc-cb-plaque { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: 100%; }
.tc-reserve { display: flex; gap: 6px; }
.tc-mini { --tc: #888; position: relative; width: 40px; height: 54px; border-radius: 6px; overflow: hidden; border: 2px solid var(--tc); background: #1a0b30; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); }
.tc-mini .ph { position: absolute; inset: 0 0 6px; background: center / cover no-repeat; }
.tc-mini i { position: absolute; left: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #3fe08a, #8affb8); }
.tc-mini.ko { filter: grayscale(1) brightness(.55); }
.tc-mini.ko::after { content: "✕"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ff5a7a; font: 900 26px var(--titre); text-shadow: 0 0 4px #000; }
.tc-mini.inconnu { background: radial-gradient(circle, #5a1f9a, #1a0636); border-color: #f5c542; display: flex; align-items: center; justify-content: center; color: #f5c542; font: 900 18px var(--titre); }
.tc-st-ico { position: absolute; right: -10px; top: -12px; z-index: 6; font-size: calc(var(--cw, 200px) * .15); min-width: 1em; text-align: center; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .8)); animation: tc-st-flotte 1.6s ease-in-out infinite; pointer-events: none; }
.tc-st-ico.pop { animation: tc-st-pop .5s cubic-bezier(.3, 1.8, .5, 1), tc-st-flotte 1.6s 0.5s ease-in-out infinite; }
@keyframes tc-st-flotte { 50% { transform: translateY(-5px) rotate(6deg); } }
@keyframes tc-st-pop { from { transform: scale(2.6); opacity: 0; } }
.tc-flash-carte { position: absolute; inset: 0; z-index: 5; border-radius: calc(var(--cw, 200px) * .055); background: rgba(255, 255, 255, .55); pointer-events: none; animation: tc-flash-carte .45s ease-out forwards; }
.tc-flash-carte.fort { background: rgba(255, 240, 200, .7); box-shadow: 0 0 40px rgba(255, 220, 120, .8); }
@keyframes tc-flash-carte { to { opacity: 0; } }
.tc-halo-soin { position: absolute; inset: -12%; z-index: 4; border-radius: 30%; pointer-events: none; background: radial-gradient(circle, rgba(125, 255, 176, .45), rgba(63, 224, 138, .15) 50%, transparent 70%); box-shadow: 0 0 40px rgba(63, 224, 138, .6); animation: tc-halo-soin 1.1s ease-out forwards; }
@keyframes tc-halo-soin { 0% { transform: scale(.7); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
.tc-bouclier { position: absolute; inset: -8%; z-index: 4; border-radius: 40%; pointer-events: none; border: 4px solid rgba(160, 230, 255, .9); background: radial-gradient(circle, rgba(160, 230, 255, .12), rgba(160, 230, 255, .3)); box-shadow: 0 0 30px rgba(160, 230, 255, .8); animation: tc-halo-soin .9s ease-out forwards; }
.tc-fissures { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tc-fissures svg { width: 100%; height: 100%; }
.tc-fissures polyline { fill: none; stroke: rgba(20, 10, 30, .9); stroke-width: 2.2; stroke-dasharray: 200; stroke-dashoffset: 200; animation: tc-fissure .3s ease-out forwards; filter: drop-shadow(0 0 2px #fff); }
@keyframes tc-fissure { to { stroke-dashoffset: 0; } }
.tc-fx-vague { position: absolute; z-index: 7; height: 70px; margin-top: -35px; transform-origin: 0 50%; pointer-events: none; border-radius: 40px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c, #2a9dff) 75%, transparent) 40%, color-mix(in srgb, var(--c, #2a9dff) 40%, #fff) 75%, rgba(255, 255, 255, .95));
  -webkit-mask: radial-gradient(ellipse at 100% 50%, #000 40%, transparent 72%); mask: radial-gradient(ellipse at 100% 50%, #000 40%, transparent 72%);
  animation: tc-vague .42s ease-out forwards; }
@keyframes tc-vague { from { clip-path: inset(0 100% 0 0); } 60% { clip-path: inset(0 0 0 0); opacity: 1; } to { clip-path: inset(0 0 0 60%); opacity: .2; } }
.tc-fx-rayon { position: absolute; z-index: 7; height: 14px; margin-top: -7px; transform-origin: 0 50%; pointer-events: none; border-radius: 10px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c, #ff4fd8) 20%, transparent), var(--c, #ff4fd8) 30%, #ffffff 60%, var(--c, #ff4fd8)); box-shadow: 0 0 18px var(--c, #ff4fd8), 0 0 40px color-mix(in srgb, var(--c, #ff4fd8) 60%, transparent);
  animation: tc-rayon .36s ease-out forwards; }
@keyframes tc-rayon { 0% { clip-path: inset(0 100% 0 0); } 40% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; height: 4px; margin-top: -2px; } }
.tc-fx-eclair { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; overflow: visible; }
.tc-fx-eclair polyline { fill: none; stroke: #fff8b0; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--c, #ffd23f)) drop-shadow(0 0 14px var(--c, #ffd23f)); animation: tc-eclair .38s steps(1) forwards; }
@keyframes tc-eclair { 0%, 30%, 60% { opacity: 1; } 15%, 45%, 80%, 100% { opacity: 0; } }
.tc-fx-anneau { position: absolute; z-index: 7; width: 20px; height: 20px; margin: -10px; border-radius: 50%; pointer-events: none; border: 4px solid var(--c, #c8f4ff); box-shadow: 0 0 20px var(--c, #8fe8ff); animation: tc-anneau .65s ease-out forwards; }
@keyframes tc-anneau { to { transform: scale(12); opacity: 0; border-width: 1px; } }
.tc-cb-chiffre.super { font-size: 46px; color: #ffe27a; text-shadow: 0 0 12px #ff8a00, 0 3px 0 #000; }
.tc-cb-chiffre.crit { font-size: 50px; color: #fff; text-shadow: 0 0 14px #ff3a5a, 0 0 30px #ff3a5a, 0 3px 0 #000; }
.tc-cb-chiffre.faible { font-size: 26px; color: #c8c0d8; }
/* Météo : ambiance sur tout le tapis */
.tc-meteo-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s; }
.tc-tapis[class*="meteo-"] .tc-meteo-fx { opacity: 1; }
.meteo-pluie .tc-meteo-fx { background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(140, 200, 255, .35) 18px 19px); background-size: 200px 200px; animation: tc-pluie .5s linear infinite; }
@keyframes tc-pluie { to { background-position: -40px 200px; } }
.meteo-blizzard .tc-meteo-fx { background-image: radial-gradient(circle, rgba(255, 255, 255, .8) 0 2px, transparent 3px), radial-gradient(circle, rgba(220, 245, 255, .6) 0 1.5px, transparent 2.5px); background-size: 90px 90px, 60px 60px; animation: tc-blizzard 2s linear infinite; }
@keyframes tc-blizzard { to { background-position: -180px 180px, -60px 120px; } }
.meteo-canicule .tc-meteo-fx { background: radial-gradient(ellipse at 50% 0%, rgba(255, 170, 60, .35), transparent 60%); animation: tc-canicule 2.4s ease-in-out infinite; }
@keyframes tc-canicule { 50% { filter: blur(1px); opacity: .7; } }
.meteo-orage .tc-meteo-fx { background: linear-gradient(rgba(20, 20, 60, .35), rgba(20, 20, 60, .1)); animation: tc-orage 4s linear infinite; }
@keyframes tc-orage { 0%, 92%, 96%, 100% { background-color: transparent; } 93%, 97% { background-color: rgba(255, 250, 200, .18); } }
.meteo-nuit .tc-meteo-fx { background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .7) 0 1px, transparent 2px), radial-gradient(circle at 70% 35%, rgba(255, 255, 255, .6) 0 1px, transparent 2px), rgba(10, 4, 30, .35); background-size: 140px 120px, 180px 160px, auto; }
.meteo-neon .tc-meteo-fx { background: linear-gradient(120deg, rgba(255, 79, 216, .14), rgba(79, 216, 255, .14), rgba(255, 79, 216, .14)); background-size: 300% 300%; animation: tc-arcenciel 4s linear infinite; }
@media (max-width: 760px) {
  .tc-zone { gap: 8px; }
  .tc-cote { width: calc(100vw - var(--cw, 110px) - 40px); }
  .tc-mini { width: 28px; height: 38px; }
  .tc-zone .tc-cb-plaque .dresseur { display: none; }
}

/* ================= Ouverture carte par carte, en pile ================= */
.tc-ligne-dechirure { position: absolute; left: 0; right: 0; top: 18%; height: 26px; pointer-events: none; z-index: 3; }
.tc-ligne-dechirure i { position: absolute; left: 6%; right: 6%; top: 50%; border-top: 3px dashed rgba(255, 255, 255, .75); }
.tc-ligne-dechirure i::after { content: ""; position: absolute; left: 0; top: -4px; height: 5px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #fff, #f5c542); box-shadow: 0 0 10px #f5c542; border-radius: 3px; }
.tc-ligne-dechirure span { position: absolute; left: 0; right: 0; top: -16px; text-align: center; font: 900 11px var(--titre); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); animation: tc-clin 1.4s ease-in-out infinite; }
@keyframes tc-clin { 50% { opacity: .45; transform: translateX(6px); } }
.tc-paquet.ouvrir { touch-action: none; }
.tc-pile { position: relative; width: var(--w); height: calc(var(--w) * 1.3968); perspective: 1400px; }
.tc-pile-dos, .tc-pile-top { position: absolute; inset: 0; border-radius: calc(var(--w) * .055); }
.tc-pile-dos { font-size: calc(var(--w) * .05); filter: brightness(.85); }
.tc-pile-top { z-index: 5; touch-action: none; cursor: grab; transform-style: preserve-3d; }
.tc-pile-top.tenue { cursor: grabbing; }
.tc-pile-top .tc-carte { --w: inherit; }
.tc-pile-top > .tc-dos { font-size: calc(var(--w) * .05); }
.tc-pile-top::before { content: ""; position: absolute; inset: -6%; z-index: -1; border-radius: 12%; pointer-events: none; background: radial-gradient(circle, var(--lueur, #fff), transparent 68%); opacity: 0; filter: blur(8px); }
.tc-pile-top.lueur-1::before { opacity: .25; } .tc-pile-top.lueur-2::before { opacity: .4; } .tc-pile-top.lueur-3::before { opacity: .55; }
.tc-pile-top.lueur-4::before, .tc-pile-top.lueur-5::before, .tc-pile-top.lueur-6::before { opacity: .75; animation: tc-halo 1.4s ease-in-out infinite; }
.tc-pile-top.scellee { cursor: pointer; animation: tc-lueur-trem .2s linear infinite; --amp: 1.5px; }
.tc-pile-top.scellee.n3 { --amp: 2.5px; } .tc-pile-top.scellee.n4 { --amp: 3.5px; } .tc-pile-top.scellee.n5, .tc-pile-top.scellee.n6 { --amp: 5px; animation-duration: .1s; }
.tc-pile-top.scellee::before { opacity: .8; animation: tc-halo 1s ease-in-out infinite; }
.tc-pile-top.scellee.n5::before { background: conic-gradient(from 0deg, #ff4f7a, #ffd23f, #5fff9a, #4fd8ff, #a65cff, #ff4f7a); border-radius: 50%; filter: blur(14px); animation: tc-tourne 1.4s linear infinite; }
.tc-pile-top.scellee.n6::before { background: conic-gradient(from 0deg, #f5c542, #2a1a05 20%, #fff6d6 40%, #2a1a05 60%, #f5c542); border-radius: 50%; filter: blur(12px); animation: tc-tourne 2s linear infinite; }
.tc-pile-top.monte::before { opacity: 1; transform: scale(1.25); transition: transform .8s, opacity .8s; }
.tc-pile-top.tremble-fort { animation: tc-lueur-trem .07s linear infinite; --amp: 6px; }
.tc-pile-compte { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font: 900 13px var(--titre); color: var(--texte-doux); }
@keyframes tc-pile-sort { from { transform: translateY(45vh) scale(.6) rotate(-12deg); opacity: 0; } }
.tc-balayage { position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit; overflow: hidden; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 79, 216, .5) 42%, rgba(255, 255, 255, .85) 50%, rgba(79, 216, 255, .5) 58%, transparent 70%); background-size: 300% 100%; animation: tc-balayage 1.2s ease-out forwards; }
@keyframes tc-balayage { from { background-position: 150% 0; } to { background-position: -60% 0; } }
.tc-ouverture.tc-assombri::after { content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(12, 4, 24, .6) 70%); animation: tc-fondu .6s ease forwards; }
.tc-onde { position: fixed; z-index: 9; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none; border: 6px solid #f5c542; box-shadow: 0 0 30px #f5c542, inset 0 0 20px #fff6d6; animation: tc-onde 1s ease-out forwards; }
@keyframes tc-onde { to { transform: scale(30); opacity: 0; border-width: 1px; } }
.tc-lumiere-monte { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, color-mix(in srgb, var(--c, #b06bff) 55%, transparent), transparent 60%); animation: tc-lum-monte 1.3s ease-in forwards; }
@keyframes tc-lum-monte { from { transform: translateY(70%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.tc-eclat-rare { position: absolute; inset: -20%; z-index: 9; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c, #3fa9ff) 70%, #fff), transparent 60%); animation: tc-eclat-rare .9s ease-out forwards; }
@keyframes tc-eclat-rare { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
/* récapitulatif en éventail */
.tc-eventail { position: relative; width: calc(var(--w) * 3.4); max-width: 96vw; height: calc(var(--w) * 1.6); }
.tc-eventail-c { position: absolute; left: 50%; bottom: 0; margin-left: calc(var(--w) * -.5); transform-origin: 50% 160%; transform: rotate(calc(var(--i) * 10deg)) translateX(calc(var(--i) * var(--w) * .18)); transition: transform .25s; animation: tc-eventail-in .55s cubic-bezier(.2, .9, .3, 1.2) backwards; }
.tc-eventail-c:hover, .tc-eventail-c:focus-within { transform: rotate(calc(var(--i) * 10deg)) translateX(calc(var(--i) * var(--w) * .18)) translateY(-28px) scale(1.06); z-index: 5; }
@keyframes tc-eventail-in { from { transform: rotate(0) translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tc-pile-top.scellee, .tc-pile-top.tremble-fort { animation: none; }
  .tc-ligne-dechirure span { animation: none; }
}

/* ================= Rareté visible au premier coup d'œil (cadre + halo + badge) =================
   Le cadre suit la RARETÉ (le type reste visible dans l'en-tête, l'icône et l'illustration). */
.tc-carte.r-commune .tc-recto { background: linear-gradient(145deg, #eceef3, #b4b6c2 40%, #7c7e8a 75%, #c9cbd4); box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .45), inset 0 0 0 .1em rgba(255, 255, 255, .5); }
.tc-carte.r-peu_commune .tc-recto { background: linear-gradient(145deg, #e2fbe9, #86dba6 38%, #3f8f62 72%, #c8efd6); box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .45), inset 0 0 0 .12em #d8ffe6, 0 0 .35em rgba(76, 217, 123, .45); }
.tc-carte.r-rare .tc-recto { background: linear-gradient(145deg, #d6eeff, #3fa9ff 38%, #1556a8 70%, #a8dbff); box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .45), inset 0 0 0 .13em #dff2ff, 0 0 .6em rgba(63, 169, 255, .7); }
.tc-carte.r-epique .tc-recto { background: linear-gradient(145deg, #f0dcff, #b05cff 38%, #5a1aa8 70%, #e0bcff); box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .45), inset 0 0 0 .14em #f3e2ff, 0 0 .9em rgba(176, 92, 255, .85); animation: tc-pulse-epique 2.2s ease-in-out infinite; }
@keyframes tc-pulse-epique { 50% { box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .45), inset 0 0 0 .14em #f3e2ff, 0 0 1.6em rgba(196, 120, 255, 1); } }
.tc-carte.r-legendaire .tc-face { inset: .6em; }
.tc-carte.r-legendaire .tc-recto { box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .5), inset 0 0 0 .16em #fff6c8, inset 0 0 0 .3em rgba(168, 116, 15, .6), 0 0 1.2em rgba(245, 197, 66, .9); }
.tc-carte.r-mythique .tc-face { inset: .55em; }
.tc-carte.r-mythique .tc-recto { box-shadow: 0 .5em 1.2em rgba(0, 0, 0, .5), inset 0 0 0 .14em rgba(255, 255, 255, .8), 0 0 .8em #ff4fd8, 0 0 1.6em rgba(79, 216, 255, .8); }
.tc-carte.r-secrete .tc-face { inset: .55em; }
.tc-carte.r-secrete .tc-recto { box-shadow: 0 .5em 1.4em rgba(0, 0, 0, .7), inset 0 0 0 .16em #f5c542, inset 0 0 0 .32em #000, inset 0 0 0 .4em #c9962a, 0 0 1.2em rgba(245, 197, 66, .85); }
/* reflet qui court sur le cadre (Rare et mieux) et étincelles (Légendaire, Secrète) : uniquement sur le cadre */
.tc-carte.r-rare .tc-recto::before, .tc-carte.r-epique .tc-recto::before, .tc-carte.r-legendaire .tc-recto::before,
.tc-carte.r-mythique .tc-recto::before, .tc-carte.r-secrete .tc-recto::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; padding: .42em;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .85) 48%, transparent 60%); background-size: 260% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: tc-reflet-cadre 3.2s linear infinite;
}
.tc-carte.r-rare .tc-recto::before { animation-duration: 4.5s; opacity: .8; }
.tc-carte.r-legendaire .tc-recto::before, .tc-carte.r-secrete .tc-recto::before {
  padding: .6em;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .95) 48%, transparent 60%),
    radial-gradient(circle, #fff 0 .08em, transparent .14em), radial-gradient(circle, #fff6c8 0 .06em, transparent .12em);
  background-size: 260% 100%, 2.2em 2.6em, 1.7em 1.9em;
  animation: tc-reflet-cadre 2.6s linear infinite, tc-etincelles 1.8s ease-in-out infinite;
}
@keyframes tc-reflet-cadre { from { background-position: 160% 0, 0 0, 0 0; } to { background-position: -60% 0, 0 0, 0 0; } }
@keyframes tc-etincelles { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.6) drop-shadow(0 0 .15em #fff6c8); } }
.tc-carte.ultime .tc-recto { box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .6), 0 0 1.8em rgba(245, 197, 66, 1), inset 0 0 0 .14em #fff6c8; }
.tc-carte.ultime .tc-face { background: linear-gradient(180deg, #3a2a08, #1a1204); }
/* badge de rareté : grand symbole lisible même en vignette, nom de la rareté au survol (title) */
.tc-rbadge {
  position: absolute; left: 50%; bottom: 0; z-index: 4; transform: translate(-50%, 55%);
  min-width: 2.2em; padding: .12em .55em; border-radius: 999px; text-align: center; white-space: nowrap;
  font: 900 max(9px, 1.05em) / 1.15 "Segoe UI Symbol", "Segoe UI Emoji", "Segoe UI", sans-serif; letter-spacing: -.04em;
  color: #fff; background: var(--rb, #888); border: .12em solid rgba(255, 255, 255, .9); box-shadow: 0 .15em .4em rgba(0, 0, 0, .5), 0 0 .5em var(--rb, #888);
  text-shadow: 0 .06em .12em rgba(0, 0, 0, .6);
}
.tc-carte.r-commune .tc-rbadge { --rb: #8a8c98; }
.tc-carte.r-peu_commune .tc-rbadge { --rb: #2fae63; }
.tc-carte.r-rare .tc-rbadge { --rb: #1f86e8; }
.tc-carte.r-epique .tc-rbadge { --rb: #8a3be0; }
.tc-carte.r-legendaire .tc-rbadge { --rb: linear-gradient(135deg, #fff2b0, #f5c542 45%, #a8740f); color: #3a2400; text-shadow: none; box-shadow: 0 .15em .4em rgba(0, 0, 0, .5), 0 0 .7em #f5c542; }
.tc-carte.r-mythique .tc-rbadge { --rb: linear-gradient(90deg, #ff4f7a, #ffd23f, #5fff9a, #4fd8ff, #a65cff); box-shadow: 0 .15em .4em rgba(0, 0, 0, .5), 0 0 .7em #ff4fd8; }
.tc-carte.r-secrete .tc-rbadge { --rb: linear-gradient(135deg, #1a1408, #000); border-color: #f5c542; color: #f5c542; box-shadow: 0 .15em .4em rgba(0, 0, 0, .6), 0 0 .8em #f5c542; }
.tc-carte.compact .tc-rbadge { font-size: max(10px, 1.25em); }
/* Vignettes en masse (classeur, grilles) : cadres et halos gardés, animations coupées sauf au survol */
.tc-carte.calme:not(.survol) .tc-recto, .tc-carte.calme:not(.survol) .tc-recto::before, .tc-carte.calme:not(.survol) .tc-recto::after,
.tc-carte.calme:not(.survol) .tc-holo, .tc-carte.calme:not(.survol) .eclat-art { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tc-carte .tc-recto, .tc-carte .tc-recto::before, .tc-carte .tc-recto::after { animation: none !important; }
}

.tc-illu-cadre { position: relative; flex: none; margin: 0 .45em; height: 41%; }
.tc-illu-cadre > .tc-illu { margin: 0; height: 100%; }
.tc-illu-cadre + .tc-bande { margin-top: .75em; }

/* ================= Combat : la scène a la priorité, le journal est borné ================= */
.tc-combat { display: flex; flex-direction: column; }
.tc-combat .tc-cb-scene { flex: 1 1 auto; min-height: 58vh; }
.tc-combat .tc-cb-bas { flex: 0 0 auto; max-height: 40vh; overflow: hidden; position: relative; align-items: start; }
.tc-combat .tc-cb-actions { overflow-y: auto; max-height: calc(40vh - 24px); }
.tc-combat .tc-cb-journal { height: 120px; max-height: 120px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tc-cb-jbtn { display: none; }
@media (max-width: 760px) {
  .tc-combat .tc-cb-scene { min-height: 52vh; }
  .tc-combat .tc-cb-bas { max-height: 46vh; overflow-y: auto; }
  .tc-combat .tc-cb-journal { height: 3.6em; max-height: 3.6em; font-size: 12px; transition: max-height .25s, height .25s; }
  .tc-combat .tc-cb-journal.ouvert { height: 30vh; max-height: 30vh; }
  .tc-cb-jbtn { display: block; position: absolute; right: 14px; bottom: calc(3.6em + 18px); z-index: 3; padding: 2px 8px; border-radius: 8px; border: 1px solid rgba(190, 130, 255, .7); background: rgba(42, 16, 80, .95); color: #fff; font: 800 11px "Segoe UI", sans-serif; }
  .tc-cb-jbtn.on { bottom: calc(30vh + 18px); }
}
/* panneau bas à hauteur FIXE : la scène garde toujours la même taille */
.tc-combat .tc-cb-bas { height: clamp(170px, 28vh, 230px); max-height: none; flex: 0 0 auto; }
.tc-combat .tc-cb-actions { height: 100%; max-height: none; overflow-y: auto; }
.tc-combat .tc-cb-journal { height: auto; max-height: 100%; }
@media (min-width: 761px) { .tc-combat .tc-cb-journal { max-height: min(120px, 100%); align-self: end; } }
@media (max-width: 760px) {
  .tc-combat .tc-cb-bas { height: 44vh; overflow-y: auto; }
  .tc-combat .tc-cb-actions { height: auto; }
  .tc-combat .tc-cb-journal { height: 3.6em; max-height: 3.6em; }
  .tc-combat .tc-cb-journal.ouvert { height: 30vh; max-height: 30vh; }
}

/* ---------- Guide (types, faiblesses) ---------- */
.tc-gpuce { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; margin: 2px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--c) 55%, #140726); box-shadow: inset 0 0 0 1.5px var(--c); white-space: nowrap; }
.tc-gvide { opacity: .6; font-size: 12px; }
.tc-gl { margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.tc-gl > b { margin-right: 6px; font-size: 13px; }
.tc-gl .ok, .tc-gfiche .ok, .tc-gboite .ok, .tc-panneau .ok { color: #6dff9a; }
.tc-gl .ko, .tc-gfiche .ko, .tc-gboite .ko, .tc-panneau .ko { color: #ff8a9a; }
.tc-gtablew { overflow-x: auto; margin: 10px 0 14px; }
.tc-gtable { border-collapse: separate; border-spacing: 2px; font-size: 12px; margin: 0 auto; }
.tc-gtable th { padding: 4px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c, #3a2a5a) 45%, #140726); color: #fff; white-space: nowrap; text-align: left; }
.tc-gtable thead th { text-align: center; font-size: 16px; }
.tc-gtable th.coin { background: transparent; font-size: 11px; opacity: .7; }
.tc-gtable td { width: 34px; height: 26px; text-align: center; border-radius: 6px; background: rgba(255, 255, 255, .05); font-weight: 900; }
.tc-gtable td.x2 { background: #1f8a4a; color: #eafff0; }
.tc-gtable td.xd { background: #8a2a3a; color: #ffe0e5; }
.tc-gtable td.x0 { background: #3a3a44; color: #ccc; }
.tc-gtable tbody tr:hover th, .tc-gtable tbody tr:hover td { outline: 1px solid rgba(255, 255, 255, .35); }
.tc-ggrille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tc-gfiche { border-radius: 14px; padding: 10px 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 28%, #1c0d33), #140726); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.tc-gtete { font-size: 18px; font-weight: 900; margin-bottom: 4px; color: #fff; }
.tc-gul { margin: 6px 0; padding-left: 20px; line-height: 1.6; }
.tc-gboite { max-width: 560px; }
.tc-gboite.large { max-width: 95vw; }

/* ================= Decks (§15) ================= */
.tc-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.tc-deck { padding: 14px; border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(140deg, rgba(58, 22, 112, .92), rgba(26, 9, 50, .95)); border: 2px solid rgba(180, 140, 255, .25); transition: border-color .15s, transform .15s; }
.tc-deck:hover { border-color: var(--rose-neon); transform: translateY(-2px); }
.tc-deck.actif { border-color: var(--or); box-shadow: 0 0 18px rgba(245, 197, 66, .35); }
.tc-deck.incomplet { border-style: dashed; }
.tc-dk-tete { display: flex; align-items: center; gap: 8px; }
.tc-dk-tete b { flex: 1; min-width: 0; font: 900 17px var(--titre); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-dk-actif { padding: 2px 8px; border-radius: 999px; background: linear-gradient(#ffe58a, #f0a524); color: #2a0838; font: 900 11px var(--titre); white-space: nowrap; }
.tc-dk-ko { padding: 2px 8px; border-radius: 999px; background: rgba(255, 90, 122, .2); border: 1px solid #ff5a7a; color: #ffb0c0; font: 800 11px "Segoe UI", sans-serif; white-space: nowrap; margin-left: 4px; }
.tc-dk-ok { padding: 2px 8px; border-radius: 999px; background: rgba(95, 224, 160, .18); border: 1px solid #5fe0a0; color: #a8ffd0; font: 800 11px "Segoe UI", sans-serif; white-space: nowrap; margin-right: 4px; }
.tc-dk-vigs { display: flex; gap: 6px; }
.tc-dk-vig { width: var(--t, 56px); height: calc(var(--t, 56px) * 1.25); border-radius: 8px; background: #1a0b30 center / cover no-repeat; border: 3px solid var(--tc, #888); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); flex: none; }
.tc-dk-vig.r-rare { border-color: #3fa9ff; } .tc-dk-vig.r-epique { border-color: #b05cff; box-shadow: 0 0 10px rgba(176, 92, 255, .7); }
.tc-dk-vig.r-legendaire, .tc-dk-vig.r-secrete { border-color: #f5c542; box-shadow: 0 0 10px rgba(245, 197, 66, .8); }
.tc-dk-vig.r-mythique { border-color: #ff4fd8; box-shadow: 0 0 8px #ff4fd8, 0 0 14px rgba(79, 216, 255, .6); }
.tc-dk-vig.vide { display: flex; align-items: center; justify-content: center; border-style: dashed; border-color: rgba(190, 130, 255, .5); color: var(--texte-doux); font: 900 20px var(--titre); }
.tc-dk-choix { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; padding: 2px; }
.tc-dk-ligne { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; text-align: left; color: #fff;
  background: rgba(42, 16, 80, .8); border: 2px solid rgba(180, 140, 255, .25); flex-wrap: wrap; }
button.tc-dk-ligne:hover:not(:disabled) { border-color: var(--rose-neon); }
.tc-dk-ligne.on { border-color: var(--or); box-shadow: 0 0 16px rgba(245, 197, 66, .45); background: rgba(80, 40, 20, .55); }
.tc-dk-ligne.incomplet { opacity: .5; cursor: not-allowed; }
.tc-dk-ligne.fixe { justify-content: space-between; }
.tc-dk-txt { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.tc-dk-txt b { font: 900 15px var(--titre); }
.tc-dk-txt small { display: flex; flex-wrap: wrap; gap: 4px; color: var(--texte-doux); }
.tc-dk-arene { padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .45); line-height: 2; }
.tc-dk-retirer { position: absolute; right: -8px; top: -8px; z-index: 5; width: 28px; height: 28px; border-radius: 50%; padding: 0; border: 2px solid #fff; background: #e0405a; color: #fff; font-weight: 900; }

.tc-cb-atk .l2 { padding-right: 26px; }

/* Quêtes & Succès (§16) : l'écran a quitté le TCG pour le lobby (/#quetes) ; il ne reste que la notification. */
/* notification « Succès débloqué ! » / « Quête terminée ! » */
#tc-notifs { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.tc-notif-obj { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 18px; text-align: left; color: #fff; cursor: pointer;
  background: linear-gradient(110deg, rgba(42, 16, 80, .97), rgba(20, 7, 38, .97)); border: 2px solid var(--vert); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(95, 224, 160, .5);
  animation: tc-notif-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.tc-notif-obj.succes { border-color: var(--or); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 30px rgba(245, 197, 66, .65); }
.tc-notif-obj .ico { font-size: 34px; animation: tc-notif-ico 1s ease-in-out infinite; }
.tc-notif-obj .txt { display: flex; flex-direction: column; }
.tc-notif-obj small { font: 900 12px var(--titre); color: var(--vert); text-transform: uppercase; letter-spacing: .08em; }
.tc-notif-obj.succes small { color: var(--or); }
.tc-notif-obj b { font: 900 17px var(--titre); }
.tc-notif-obj em { font-style: normal; font-weight: 800; font-size: 12px; color: #ffe9a8; }
.tc-notif-obj.part { animation: tc-notif-out .45s ease-in forwards; }
@keyframes tc-notif-in { from { transform: translateY(-60px) scale(.7); opacity: 0; } }
@keyframes tc-notif-out { to { transform: translateY(-40px) scale(.85); opacity: 0; } }
@keyframes tc-notif-ico { 50% { transform: rotate(-12deg) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .tc-notif-obj .ico { animation: none; } }

/* =====================================================================
   §17.3 — NOUVEAU STYLE : appli de collection moderne + verre dépoli
   (surcharge finale : tout ce qui précède reste valable sauf ce qui est redéfini ici ;
    les effets forts sont gardés pour les raretés, l'ouverture et les combats)
   ===================================================================== */
:root {
  --police: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --titre: "Nunito", "Segoe UI", system-ui, sans-serif;
  --verre: rgba(255, 255, 255, .075);
  --verre-fort: rgba(255, 255, 255, .11);
  --verre-bord: rgba(255, 255, 255, .14);
  --verre-ombre: 0 12px 40px rgba(8, 3, 24, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  --flou: blur(18px) saturate(1.3);
  --lavande: #c9b8ff;
  --or-doux: #f3cf6b;
  --texte: #f6f2ff;
  --texte-doux: #b8acd8;
  --rayon: 22px;
}
body {
  font-family: var(--police); font-weight: 600; letter-spacing: .005em;
  background:
    radial-gradient(60vw 50vh at 12% 8%, rgba(167, 139, 250, .22), transparent 70%),
    radial-gradient(50vw 45vh at 92% 18%, rgba(244, 114, 182, .12), transparent 70%),
    radial-gradient(70vw 60vh at 50% 110%, rgba(99, 102, 241, .18), transparent 70%),
    linear-gradient(165deg, #2a1d4f 0%, #1b1238 45%, #0e0a20 100%) fixed;
}
#tc-fond i { opacity: .035; box-shadow: none; }
.tc-carte, .tc-carte * { font-family: "Segoe UI", Arial, sans-serif; } /* le rendu des cartes ne change pas */
.tc-carte .tc-nom, .tc-carte .tc-pv, .tc-carte .tc-atk .puis { font-family: "Arial Black", "Segoe UI Black", sans-serif; }

/* --- en-tête en verre --- */
#tc-haut { margin: 10px 12px 0; height: calc(var(--haut) - 10px); border-radius: 20px; border: 1px solid var(--verre-bord);
  background: rgba(30, 20, 60, .55); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); box-shadow: var(--verre-ombre); }
#tc-logo { font: 900 26px var(--titre); font-style: normal; letter-spacing: -.01em; filter: none;
  background: linear-gradient(180deg, #fff7dc, var(--or-doux)); -webkit-background-clip: text; background-clip: text; }
#tc-logo span { background: linear-gradient(180deg, #ffffff, var(--lavande)); -webkit-background-clip: text; background-clip: text; }
.tc-solde { background: var(--verre); border: 1px solid var(--verre-bord); box-shadow: none; }
.tc-solde b { font: 900 17px var(--titre); color: var(--or-doux); }
.tc-solde.eclats b { color: #a5e8ff; }
.tc-profil { background: var(--verre); border: 1px solid var(--verre-bord); }
.tc-profil:hover { border-color: rgba(255, 255, 255, .3); }
.tc-profil-nom { color: #fff; font-weight: 800; }
.tc-tete { border: 2px solid rgba(255, 255, 255, .55); }
#tc-vue { height: calc(100vh - var(--haut)); padding-top: 22px; }

/* --- boutons, pastilles, champs --- */
.tc-btn { font: 800 15px var(--titre); border: 0; border-radius: 14px; padding: 10px 16px; color: #2a1a05;
  background: linear-gradient(180deg, #ffe08e, #f2bd4c); box-shadow: 0 6px 18px rgba(242, 189, 76, .25), inset 0 1px 0 rgba(255, 255, 255, .6); }
.tc-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(242, 189, 76, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.tc-btn.sec { color: #fff; background: var(--verre-fort); border: 1px solid var(--verre-bord); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.tc-btn.sec:hover:not(:disabled) { background: rgba(255, 255, 255, .17); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.tc-btn.rose { color: #fff; background: linear-gradient(180deg, #c4a6ff, #8b6cf0); box-shadow: 0 6px 18px rgba(139, 108, 240, .3); }
.tc-btn.danger { color: #fff; background: linear-gradient(180deg, #ff9db0, #e8566f); box-shadow: 0 6px 18px rgba(232, 86, 111, .25); }
.tc-btn.grand { font-size: 18px; padding: 13px 22px; border-radius: 16px; }
.tc-btn.petit { font-size: 12.5px; padding: 6px 11px; border-radius: 11px; }
.tc-chip { font: 700 12.5px var(--police); border: 1px solid var(--verre-bord); background: var(--verre); border-radius: 999px; padding: 5px 12px; }
.tc-chip:hover { box-shadow: none; background: rgba(255, 255, 255, .14); }
.tc-chip.on { color: #2a1a05; background: linear-gradient(180deg, #ffe08e, #f2bd4c); border-color: transparent; box-shadow: none; }
.tc-input { border: 1px solid var(--verre-bord); background: rgba(10, 6, 25, .45); border-radius: 14px; }
.tc-input:focus { border-color: var(--lavande); box-shadow: 0 0 0 3px rgba(201, 184, 255, .2); }
:focus-visible { outline: 3px solid rgba(201, 184, 255, .8); }

/* --- titres et panneaux en verre --- */
.tc-titre { font: 900 30px var(--titre); font-style: normal; color: #fff; text-shadow: none; letter-spacing: -.015em; }
.tc-sous { color: var(--texte-doux); font-weight: 600; }
.tc-sous b { color: var(--or-doux); }
.tc-panneau { background: var(--verre); border: 1px solid var(--verre-bord); border-radius: var(--rayon); box-shadow: var(--verre-ombre);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); padding: 18px 20px; }
.tc-panneau h2 { font: 800 13px var(--titre); letter-spacing: .1em; color: var(--lavande); text-shadow: none; }
.tc-jauge { background: rgba(255, 255, 255, .1); }
.tc-jauge i { background: linear-gradient(90deg, #a78bfa, var(--or-doux)); box-shadow: none; }
.tc-alerte { border-radius: 16px; background: rgba(255, 120, 140, .12); border: 1px solid rgba(255, 140, 160, .45); }
.tc-note b { color: #fff; }

/* --- accueil : tuiles en verre --- */
.tc-tuile { background: var(--verre); border: 1px solid var(--verre-bord); border-radius: var(--rayon); box-shadow: var(--verre-ombre);
  backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); }
.tc-tuile:hover, .tc-tuile:focus-visible { border-color: rgba(255, 255, 255, .28); box-shadow: 0 16px 44px rgba(8, 3, 24, .45), inset 0 1px 0 rgba(255, 255, 255, .16); transform: translateY(-2px); }
.tc-tuile .ico { filter: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, .06)); }
.tc-tuile b { font: 900 18px var(--titre); color: #fff; }
.tc-tuile.grosse { background: linear-gradient(135deg, rgba(167, 139, 250, .28), rgba(255, 255, 255, .06)); }
.tc-tuile.grosse b { font-size: 24px; }
.tc-tuile .pastille { background: #f2bd4c; color: #2a1a05; box-shadow: none; font: 900 12px var(--titre); }
.tc-bonus { border-radius: var(--rayon); border: 1px solid rgba(243, 207, 107, .5); background: linear-gradient(110deg, rgba(243, 207, 107, .18), rgba(255, 255, 255, .05)); animation: none; }
.tc-bonus b { color: var(--or-doux); }
.tc-info-inutile { border: 1px solid var(--verre-bord); background: var(--verre); border-radius: var(--rayon); }
.tc-fil-l { background: rgba(255, 255, 255, .05); border-radius: 14px; }

/* --- fenêtres (couches) en verre --- */
.tc-couche { background: rgba(10, 6, 25, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tc-boite { background: linear-gradient(180deg, rgba(48, 34, 92, .92), rgba(26, 17, 52, .94)); border: 1px solid var(--verre-bord); border-radius: 26px;
  box-shadow: 0 30px 80px rgba(5, 2, 15, .6), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); }
.tc-boite h2 { font: 900 24px var(--titre); font-style: normal; color: #fff; text-shadow: none; }
.tc-x { border: 1px solid var(--verre-bord); background: var(--verre-fort); border-radius: 12px; }
.tc-x:hover { box-shadow: none; background: rgba(255, 255, 255, .18); }
.tc-toast { background: rgba(30, 20, 60, .9); border: 1px solid var(--verre-bord); border-radius: 16px; box-shadow: 0 12px 30px rgba(5, 2, 15, .5); backdrop-filter: var(--flou); }
.tc-toast.ok { border-color: rgba(110, 231, 183, .55); }
.tc-toast.err { border-color: rgba(255, 140, 160, .6); }

/* --- grilles de cartes aérées : quantité en pastille en bas --- */
.tc-qte { top: auto; right: auto; bottom: -.7em; left: 50%; transform: translateX(-50%) translateZ(20px); min-width: 2.4em; padding: .2em .6em;
  background: rgba(20, 12, 40, .88); border: 1px solid rgba(255, 255, 255, .35); color: #fff; box-shadow: 0 .3em .8em rgba(0, 0, 0, .4); font: 900 .85em var(--titre); }
.tc-grille { gap: 22px 16px; }
.tc-livre-page { background: rgba(255, 255, 255, .05); border: 1px solid var(--verre-bord); box-shadow: var(--verre-ombre); }
.tc-poche { background: rgba(255, 255, 255, .03); border-radius: 12px; }
.tc-fleche { background: var(--verre-fort); border: 1px solid var(--verre-bord); color: #fff; border-radius: 16px; }
.tc-fleche:hover:not(:disabled) { box-shadow: none; background: rgba(255, 255, 255, .2); }
.tc-tpill { background: color-mix(in srgb, var(--tc) 22%, rgba(255, 255, 255, .06)); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); }
.tc-spill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12px;
  background: color-mix(in srgb, var(--sc) 24%, rgba(255, 255, 255, .06)); border: 1px solid color-mix(in srgb, var(--sc) 60%, transparent); }

/* --- boosters : 4 séries illustrées --- */
.tc-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-top: 6px; }
.tc-serie-choix { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 26px; background: var(--verre); border: 1px solid var(--verre-bord);
  box-shadow: var(--verre-ombre); backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); }
.tc-paquet-serie { --sc: #b48cff; position: relative; aspect-ratio: 3 / 4.2; border-radius: 20px; overflow: hidden; transition: transform .25s;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 70%, #1b1238), #1b1238); box-shadow: 0 18px 40px rgba(5, 2, 15, .45); }
.tc-serie-choix:hover .tc-paquet-serie { transform: translateY(-4px) rotate(-1deg); }
.tc-paquet-serie .ill { position: absolute; inset: 0; background: center / cover no-repeat; }
.tc-paquet-serie .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 40, .1) 30%, rgba(20, 10, 40, .85)),
  linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%); background-size: 100% 100%, 250% 100%; animation: tc-irise 5s linear infinite; }
.tc-paquet-serie .marque { position: absolute; left: 14px; top: 12px; padding: 3px 10px; border-radius: 999px; font: 900 11px var(--titre); color: #fff; background: rgba(20, 10, 40, .5); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.tc-paquet-serie .nom { position: absolute; left: 14px; right: 14px; bottom: 34px; font: 900 22px var(--titre); color: #fff; line-height: 1.05; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.tc-paquet-serie .secrete { position: absolute; left: 14px; bottom: 12px; font: 800 12px var(--police); color: var(--or-doux); }
.tc-paquet-serie::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 6px, rgba(0, 0, 0, .12) 6px 12px); opacity: .7; }
.tc-serie-info p { margin: 0 0 6px; color: var(--texte-doux); font-size: 13px; line-height: 1.35; }
.tc-serie-prog { display: flex; align-items: center; gap: 8px; font: 800 12px var(--police); }
.tc-serie-prog .tc-jauge { flex: 1; }
.tc-serie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-serie-btns .tc-btn { flex: 1; }
.tc-bienvenue-bloc { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px; border-radius: var(--rayon); background: linear-gradient(110deg, rgba(110, 231, 183, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(110, 231, 183, .45); flex-wrap: wrap; }
.tc-bienvenue-bloc div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.tc-bienvenue-bloc span { color: var(--texte-doux); font-size: 13px; }

/* --- decks, combats : harmonisation verre --- */
.tc-deck, .tc-arene, .tc-joueur, .tc-dk-ligne { background: var(--verre); border: 1px solid var(--verre-bord); border-radius: 20px; box-shadow: var(--verre-ombre); }
.tc-deck.actif { border-color: rgba(243, 207, 107, .7); box-shadow: var(--verre-ombre), 0 0 0 1px rgba(243, 207, 107, .4); }
.tc-champion-bloc { border-radius: var(--rayon); border: 1px solid rgba(243, 207, 107, .5); }
.tc-cb-bas { background: rgba(20, 12, 42, .82); border-top: 1px solid var(--verre-bord); backdrop-filter: var(--flou); }
.tc-cb-plaque { background: rgba(20, 12, 42, .72); border: 1px solid color-mix(in srgb, var(--tc, #b48cff) 55%, transparent); border-radius: 16px; backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(5, 2, 15, .45); }
.tc-cb-atk { border-radius: 16px; border-width: 1px; }
.tc-cb-journal { background: rgba(255, 255, 255, .04); border-radius: 14px; }
#tc-retour, #tc-lobby { border-radius: 14px; }
.tc-bouchon { border-radius: 999px; }

/* --- la Route (§18) --- */
.tc-route-cadre { position: relative; max-width: 820px; margin: 0 auto; border-radius: 30px; overflow: hidden; border: 1px solid var(--verre-bord); box-shadow: var(--verre-ombre); }
.tc-route { position: relative; width: 100%; }
.tc-route-bande { position: absolute; left: 0; right: 0; }
.tc-route-bande.ch-1 { background: linear-gradient(0deg, rgba(110, 231, 183, .16), rgba(167, 139, 250, .14)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 40px, transparent 40px 80px); }
.tc-route-bande.ch-2 { background: linear-gradient(0deg, rgba(96, 165, 250, .18), rgba(99, 102, 241, .16)), radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .06) 0 2px, transparent 3px) 0 0 / 60px 60px; }
.tc-route-bande.ch-3 { background: linear-gradient(0deg, rgba(243, 207, 107, .14), rgba(192, 132, 252, .2)); }
.tc-route-bande.ch-4 { background: linear-gradient(0deg, rgba(52, 211, 153, .16), rgba(251, 146, 60, .16)), radial-gradient(circle at 70% 40%, rgba(255, 255, 255, .05) 0 3px, transparent 4px) 0 0 / 70px 70px; }
.tc-route-bande.ch-5 { background: radial-gradient(circle at 30% 35%, rgba(199, 125, 255, .22), transparent 45%), radial-gradient(circle at 75% 70%, rgba(64, 224, 208, .14), transparent 45%), repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .025) 0 12deg, transparent 12deg 24deg), linear-gradient(0deg, rgba(120, 60, 200, .2), rgba(40, 20, 90, .25)); } /* Le Louiverse : portails */
.tc-route-bande.ch-sommet { background: radial-gradient(circle at 50% 20%, rgba(243, 207, 107, .3), transparent 60%), radial-gradient(circle, rgba(255, 255, 255, .5) 0 1px, transparent 2px) 0 0 / 46px 46px, linear-gradient(0deg, rgba(192, 132, 252, .2), rgba(20, 10, 40, .4)); }
.tc-route-sep { position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(20, 12, 42, .75); border: 1px solid var(--verre-bord); backdrop-filter: var(--flou); box-shadow: var(--verre-ombre); }
.tc-route-sep span { font-size: 20px; } .tc-route-sep b { font: 900 14px var(--titre); color: #fff; letter-spacing: .02em; }
.tc-route-sep.ch-sommet { border-color: rgba(243, 207, 107, .7); } .tc-route-sep.ch-sommet b { color: var(--or-doux); }
.tc-route-chemin { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.tc-route-chemin path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tc-route-chemin .fond { stroke: rgba(255, 255, 255, .16); stroke-width: 14; stroke-dasharray: 2 18; }
.tc-route-chemin .fait { stroke: rgba(243, 207, 107, .75); stroke-width: 6; }
.tc-noeud { --tc: #b48cff; position: absolute; z-index: 2; width: 74px; height: 74px; margin: -37px 0 0 -37px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.tc-noeud .med { position: absolute; inset: 0; border-radius: 50%; background: #2a1d4f center / cover no-repeat; border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 24px rgba(5, 2, 15, .5), 0 0 0 3px color-mix(in srgb, var(--tc) 70%, transparent); transition: transform .2s; }
.tc-noeud:hover .med { transform: scale(1.08); }
.tc-noeud .ty { position: absolute; right: -6px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--tc); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.tc-noeud .etat { position: absolute; left: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.tc-noeud .etat.ok { background: #34d399; color: #062b1d; border: 2px solid #fff; }
.tc-noeud .etat.lock { background: rgba(20, 12, 42, .9); border: 2px solid rgba(255, 255, 255, .5); }
.tc-noeud .lab { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: flex; flex-direction: column; align-items: center;
  background: rgba(20, 12, 42, .75); border: 1px solid var(--verre-bord); backdrop-filter: blur(8px); }
.tc-noeud .lab b { font: 800 12px var(--titre); color: #fff; } .tc-noeud .lab small { font: 800 10px var(--police); color: var(--or-doux); }
.tc-noeud.verrou .med { filter: grayscale(1) brightness(.55); border-color: rgba(255, 255, 255, .35); box-shadow: 0 8px 18px rgba(5, 2, 15, .45); }
.tc-noeud.verrou .ty { filter: grayscale(1); } .tc-noeud.verrou .lab { opacity: .6; }
.tc-noeud.battue .med { border-color: #a7f3d0; }
.tc-noeud.actuelle .med { border-color: var(--or-doux); animation: tc-noeud-pulse 1.6s ease-in-out infinite; }
@keyframes tc-noeud-pulse { 0%, 100% { box-shadow: 0 10px 24px rgba(5, 2, 15, .5), 0 0 0 3px rgba(243, 207, 107, .7); } 50% { box-shadow: 0 10px 24px rgba(5, 2, 15, .5), 0 0 0 10px rgba(243, 207, 107, .18); } }
.tc-noeud.boss { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.tc-noeud.boss .med { border-width: 5px; border-color: #f3cf6b; }
.tc-noeud.boss::before { content: "👑"; position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 24px; z-index: 3; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.tc-noeud.sommet { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
.tc-noeud.sommet .med { border-radius: 26px; border-color: #f3cf6b; box-shadow: 0 14px 30px rgba(5, 2, 15, .55), 0 0 26px rgba(243, 207, 107, .45); }
.tc-route-entr { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 18px auto 0; padding: 14px 18px; border-radius: var(--rayon); background: var(--verre); border: 1px solid var(--verre-bord); box-shadow: var(--verre-ombre); flex-wrap: wrap; }
.tc-route-entr div { flex: 1; min-width: 200px; display: flex; flex-direction: column; } .tc-route-entr span { color: var(--texte-doux); font-size: 13px; }
.tc-apercu { width: min(94vw, 560px); }
.tc-ap-tete { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; text-align: left; }
.tc-ap-tete small { color: var(--lavande); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.tc-ap-tete h2 { margin: 2px 0; text-align: left; font-size: 22px; }
.tc-ap-tete p { margin: 4px 0 0; color: var(--texte-doux); font-style: italic; }
.tc-ap-equipe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 12px; }
.tc-ap-ligne { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.tc-ap-rec { padding: 10px 12px; border-radius: 14px; background: rgba(243, 207, 107, .1); border: 1px solid rgba(243, 207, 107, .35); }

/* --- barre de navigation flottante en verre (mobile) --- */
#tc-nav { display: none; }
@media (max-width: 760px) {
  #tc-haut { margin: 8px 8px 0; border-radius: 18px; }
  #tc-nav { display: flex; position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 18;
    gap: 2px; padding: 6px; border-radius: 24px; width: min(96vw, 440px); justify-content: space-between;
    background: rgba(30, 20, 60, .62); border: 1px solid var(--verre-bord); box-shadow: 0 14px 40px rgba(5, 2, 15, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
    backdrop-filter: var(--flou); -webkit-backdrop-filter: var(--flou); }
  #tc-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border: 0; border-radius: 18px; background: none; color: var(--texte-doux); font: 800 10.5px var(--police); }
  #tc-nav button span { font-size: 20px; line-height: 1.1; }
  #tc-nav button.on { color: #2a1a05; background: linear-gradient(180deg, #ffe08e, #f2bd4c); }
  #tc-vue { padding-bottom: 100px; }
  .tc-series { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tc-paquet-serie .nom { font-size: 16px; bottom: 30px; }
  .tc-serie-choix { padding: 10px; border-radius: 20px; }
  .tc-noeud { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .tc-noeud.boss { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
  .tc-noeud.sommet { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
}
@media (max-width: 760px) { .tc-combat ~ #tc-nav, body:has(.tc-couche) #tc-nav { display: none; } }
.tc-paquet-serie .bas { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.tc-paquet-serie .bas .nom, .tc-paquet-serie .bas .secrete { position: static; }
@media (max-width: 760px) { .tc-paquet-serie .bas .nom { font-size: 15px; } .tc-paquet-serie .bas .secrete { font-size: 11px; } }

/* ================= §20 Booster Légendaire (paquet doré et noir) ================= */
.tc-boss-bloc { display: flex; gap: 22px; align-items: center; margin: 4px 0 22px; padding: 18px 20px; border-radius: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(243, 207, 107, .2), rgba(20, 12, 4, .55) 55%, rgba(243, 207, 107, .12)); border: 1px solid rgba(243, 207, 107, .55);
  box-shadow: 0 18px 50px rgba(5, 2, 15, .5), 0 0 40px rgba(243, 207, 107, .18), inset 0 1px 0 rgba(255, 246, 214, .25); backdrop-filter: blur(18px) saturate(1.3); }
.tc-boss-bloc.vide { opacity: .78; box-shadow: var(--verre-ombre); }
.tc-boss-paquet { position: relative; flex: none; width: 150px; aspect-ratio: 3 / 4.2; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 35%, #3a2a08, #0b0703 70%); border: 3px solid #f3cf6b; box-shadow: 0 16px 36px rgba(0, 0, 0, .6), 0 0 26px rgba(243, 207, 107, .55), inset 0 0 0 3px #000, inset 0 0 0 5px #c9962a;
  animation: tc-boss-flotte 3s ease-in-out infinite; }
.tc-boss-bloc.vide .tc-boss-paquet { filter: grayscale(.5) brightness(.75); animation: none; }
.tc-boss-paquet .brille { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 246, 214, .7) 45%, transparent 58%); background-size: 260% 100%; animation: tc-irise 2.6s linear infinite; }
.tc-boss-paquet .marque { position: relative; font: 900 11px var(--titre); color: #f3cf6b; letter-spacing: .08em; }
.tc-boss-paquet b { position: relative; font: 900 22px var(--titre); line-height: 1.02; text-align: center; background: linear-gradient(180deg, #fff6d6, #f3cf6b 55%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-boss-paquet .couronne { position: relative; font-size: 30px; filter: drop-shadow(0 0 8px #f3cf6b); }
.tc-boss-paquet .nb { position: absolute; right: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffe08e, #f2bd4c); color: #2a1a05; font: 900 14px var(--titre); }
@keyframes tc-boss-flotte { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.tc-boss-txt { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.tc-boss-txt h3 { margin: 0; font: 900 24px var(--titre); color: #fff6d6; }
.tc-boss-txt h3 .nb { font-size: 18px; color: #f3cf6b; }
.tc-boss-txt p { margin: 0; color: var(--texte-doux); }
.tc-boss-series .tc-chip.on { background: linear-gradient(180deg, #ffe08e, #f2bd4c); }
.tc-boss-ouvrir { align-self: flex-start; background: linear-gradient(180deg, #fff1b8, #f3cf6b 45%, #c9962a); box-shadow: 0 8px 26px rgba(243, 207, 107, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
.tc-or { color: #f3cf6b; }
.tc-gain-boss { background: linear-gradient(110deg, rgba(243, 207, 107, .25), rgba(20, 12, 4, .4)) !important; border: 1px solid rgba(243, 207, 107, .6); }
/* prélude : montée de tension dorée avant l'ouverture */
.tc-prelude-boss { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(243, 207, 107, .35), rgba(40, 26, 6, .75) 45%, rgba(14, 9, 3, .9) 80%); animation: tc-fondu .35s ease; }
.tc-prelude-boss .tc-boss-paquet { width: min(46vw, 230px); animation: tc-prelude-trem 1.25s ease-in forwards; }
.tc-prelude-boss.part { opacity: 0; transition: opacity .3s; }
@keyframes tc-prelude-trem { 0% { transform: scale(.7); } 30% { transform: scale(1) rotate(0); } 60% { transform: scale(1.04) translate(-3px, 1px) rotate(-1deg); } 70% { transform: scale(1.05) translate(4px, -2px) rotate(1.5deg); } 80% { transform: scale(1.07) translate(-5px, 2px) rotate(-2deg); } 90% { transform: scale(1.1) translate(5px, -1px) rotate(2deg); } 100% { transform: scale(1.18); filter: brightness(1.6); } }
@media (max-width: 760px) { .tc-boss-paquet { width: 110px; } .tc-boss-txt h3 { font-size: 19px; } .tc-boss-bloc { padding: 14px; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .tc-boss-paquet, .tc-prelude-boss .tc-boss-paquet { animation: none; } }

/* ===== Ouverture multiple (×1 / ×5 / ×10) ===== */
.tc-qte-choix { display: flex; gap: 6px; justify-content: center; margin: 8px 0 2px; }
.tc-qte-choix .tc-chip { min-width: 52px; justify-content: center; font-weight: 800; }
.tc-qte-choix .tc-chip:disabled { opacity: .38; cursor: not-allowed; }
.tc-boss-txt .tc-qte-choix { justify-content: flex-start; }
.tc-serie-btns .tc-btn:disabled, .tc-boss-ouvrir:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.tc-mode-ouv { flex-wrap: wrap; justify-content: center; }
.tc-rapide { overflow-y: auto; }
.tc-rapide-zone { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 16px 28px; box-sizing: border-box; }
.tc-rapide-titre { margin: 0; font-size: clamp(20px, 3vw, 30px); text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.tc-rapide-grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: min(1500px, 100%); }
.tc-rapide-grille .tc-flip .tc-nouveau { font-size: 10px; }
.tc-rapide-bas { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 40px; }
.tc-rapide-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tc-rapide-r { padding: 5px 12px; border-radius: 999px; background: rgba(20, 10, 40, .72); border: 1px solid var(--rc); color: #fff; font-size: 14px; box-shadow: 0 0 12px color-mix(in srgb, var(--rc) 35%, transparent); }
.tc-rapide-r b { color: var(--rc); }
.tc-rapide-r i { color: #ff8fd0; font-style: normal; }
/* Charge de l'attaque ultime (calée sur la charge sonore de 1,2 s) */
.tc-ult-charge { animation: tc-ult-charge var(--charge, 1280ms) cubic-bezier(.5, 0, .9, .6) forwards; }
@keyframes tc-ult-charge {
  0% { filter: drop-shadow(0 0 0 transparent) brightness(1); transform: scale(1); }
  70% { filter: drop-shadow(0 0 22px var(--cu, #ff4fd8)) brightness(1.25); transform: scale(1.05) translateY(-4px); }
  92% { filter: drop-shadow(0 0 34px #fff) brightness(1.6); transform: scale(1.08) translateY(-6px); }
  100% { filter: drop-shadow(0 0 0 transparent) brightness(1); transform: scale(1); }
}

/* ---------- Cartes très remplies : l'illustration garde TOUJOURS la même taille (41 %), c'est le texte qui se resserre ---------- */
.tc-carte.dense .tc-atk .txt { font-size: .55em; line-height: 1.1; }
.tc-carte.dense .tc-talent { font-size: .55em; }
.tc-carte.dense .tc-flavor { font-size: .5em; max-height: 2.2em; }
.tc-carte.tres-dense .tc-illu-cadre + .tc-bande { margin-top: .6em; }
.tc-carte.tres-dense .tc-atk { padding-bottom: .06em; }
.tc-carte.tres-dense .tc-atk .nomat { font-size: .76em; }
.tc-carte.tres-dense .tc-atk .txt { font-size: .5em; line-height: 1.08; }
.tc-carte.tres-dense .tc-talent { font-size: .5em; padding: .1em .3em; }
.tc-carte.tres-dense .tc-flavor { display: none; }
.tc-carte .tc-pied { flex: none; }

/* ===== §21 Communauté ===== */
.tc-qui { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; }
.tc-qui.lien { cursor: pointer; border-radius: 999px; }
.tc-qui.lien:hover .tc-qui-nom, .tc-qui.lien:focus-visible .tc-qui-nom { text-decoration: underline; }
.tc-qui.lien:focus-visible { outline: 2px solid var(--or, #f5c542); outline-offset: 2px; }
.tc-qui .tc-tete { flex: none; }
.tc-qui-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-qui.seul-nom { display: inline; margin-right: .25em; }
.tc-qui.seul-nom .tc-qui-nom { white-space: normal; }
.tc-joueur .tc-qui.nm { flex: 1; flex-wrap: wrap; row-gap: 0; }
.tc-joueur .tc-qui.nm .etat { flex-basis: 100%; padding-left: 46px; margin-top: -6px; }
.tc-joueur .tc-qui.nm .etat i { opacity: .85; }
/* fil en direct */
.tc-direct { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); animation: tc-direct 1.6s infinite; vertical-align: middle; margin-right: 4px; }
@keyframes tc-direct { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); } }
.tc-fil-ev { border-left-color: rgba(255, 255, 255, .25); }
.tc-fil-ev[data-type="tirage"] { border-left-color: #b48cff; }
.tc-fil-ev[data-type="boss"], .tc-fil-ev[data-type="succes"], .tc-fil-ev[data-type="objectif"] { border-left-color: #f5c542; }
.tc-fil-ev[data-type="kart"], .tc-fil-ev[data-type="record"], .tc-fil-ev[data-type="rush"] { border-left-color: #4fd8ff; }
.tc-fil-ev[data-type="echange"], .tc-fil-ev[data-type="nouveau"] { border-left-color: #5fe0a0; }
.tc-fil-ico { flex: none; width: 22px; text-align: center; font-size: 18px; }
.tc-fil-tx { flex: 1; min-width: 0; line-height: 1.35; }
.tc-fil-tx .tc-qui-nom { color: #fff; }
.tc-fil-ev small { flex: none; opacity: .65; font-size: 11px; }
.tc-fil-ev.cliquable { cursor: pointer; }
.tc-fil-ev.cliquable:hover { background: rgba(60, 30, 100, .7); }
.tc-fil-ev.neuf { animation: tc-fil-neuf .9s ease; }
@keyframes tc-fil-neuf { from { transform: translateX(-14px); opacity: 0; background: rgba(245, 197, 66, .35); } }
/* objectif communautaire */
.tc-objcom-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tc-objcom-titre .ico { font-size: 34px; line-height: 1; }
.tc-objcom-titre b { font-size: 17px; }
.tc-objcom-jauge { position: relative; height: 16px; overflow: visible; margin: 6px 0 22px; }
.tc-objcom-jauge > i { background: linear-gradient(90deg, #5fe0a0, #4fd8ff, #b48cff); border-radius: inherit; }
.tc-objcom-jauge.fini > i { background: linear-gradient(90deg, #f5c542, #fff6d6, #f5c542); }
.tc-objcom-jauge .palier { position: absolute; top: -3px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.tc-objcom-jauge .palier.ok { background: #f5c542; box-shadow: 0 0 8px #f5c542; }
.tc-objcom-jauge .palier em { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; font-style: normal; opacity: .75; white-space: nowrap; }
.tc-objcom-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tc-objcom-top { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tc-objcom-l { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.tc-objcom-l.moi { background: rgba(245, 197, 66, .12); }
.tc-objcom-l .rg { width: 24px; text-align: center; }
.tc-objcom-l .tc-qui { flex: 1; }
.tc-objcom-l .n { color: var(--or, #f5c542); }
/* fiche joueur */
.tc-fiche { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; }
.tc-fiche-tete { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(180, 140, 255, .25), rgba(79, 216, 255, .12)); margin-right: 34px; }
.tc-fiche-tete .tc-tete.grand { width: 96px; height: 96px; border-width: 4px; flex: none; }
.tc-fiche-id { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tc-fiche-id { text-shadow: 0 1px 3px rgba(10, 4, 30, .85), 0 0 10px rgba(10, 4, 30, .5); }
.tc-fiche-id .tc-note { color: #fff; opacity: .85; }
.tc-fiche-nom { margin: 0; text-align: left; font-size: 26px; }
.tc-fiche-route { font-size: 12px; font-weight: 800; color: #f5c542; }
.tc-fiche-etat { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tc-fiche-btns { margin: 14px 0 4px; justify-content: flex-start; }
.tc-fiche-btns a.tc-btn { text-decoration: none; }
.tc-fiche-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.tc-fiche-bloc { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.tc-fiche-bloc h3 { margin: 0 0 10px; font-size: 15px; }
.tc-fiche-vitrine { grid-column: 1 / -1; }
.tc-vitrine-cartes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tc-fiche-serie { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.tc-fiche-serie .tc-jauge { height: 8px; }
.tc-fiche-jeu { margin-bottom: 8px; }
.tc-fiche-jeu > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tc-fiche-jeu span { padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); font-weight: 800; font-size: 13px; }
.tc-fiche-jeu small { display: block; font-weight: 600; font-size: 10px; opacity: .7; }
.tc-fiche-succes, .tc-fiche-rangs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tc-fiche-succes span, .tc-fiche-rangs span { padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .25); font-size: 13px; }
.tc-fiche-succes small { opacity: .6; font-size: 10px; }
.tc-fiche-succes .niv-or { box-shadow: inset 0 0 0 1px #f5c542; }
.tc-fiche-succes .niv-argent { box-shadow: inset 0 0 0 1px #d9dde6; }
.tc-fiche-succes .niv-bronze { box-shadow: inset 0 0 0 1px #cd7f32; }
.tc-fiche-succes .niv-platine, .tc-fiche-succes .niv-diamant { box-shadow: inset 0 0 0 1px #4fd8ff; }
@media (max-width: 600px) {
  .tc-fiche-tete { flex-direction: column; text-align: center; margin-right: 0; margin-top: 30px; }
  .tc-fiche-id { align-items: center; }
  .tc-fiche-nom { text-align: center; }
  .tc-fiche-grille { grid-template-columns: 1fr; }
}
/* vitrine (compte) */
.tc-vitrine-vide { width: 120px; height: calc(120px * 1.3968); border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-size: 34px; opacity: .6; }
@media (max-width: 600px) { .tc-vitrine-vide { width: 96px; height: calc(96px * 1.3968); } }
/* sélecteur de cartes */
.tc-choix-cartes { width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 30px); display: flex; flex-direction: column; }
.tc-choix-sel { display: flex; gap: 8px; justify-content: center; margin: 4px 0 10px; flex-wrap: wrap; }
.tc-choix-case { width: 150px; height: 46px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .25); display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 13px; box-sizing: border-box; }
.tc-choix-case .plus { margin: auto; font-size: 22px; opacity: .6; }
.tc-choix-case.pleine { border-style: solid; border-color: var(--or, #f5c542); cursor: pointer; background: rgba(245, 197, 66, .08); }
.tc-choix-case .ill { width: 30px; height: 30px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.tc-choix-case .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-choix-grille { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-content: flex-start; padding: 10px 4px; margin-top: 8px; }
.tc-choix-c { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; border-radius: 12px; padding: 4px; outline: none; }
.tc-choix-c small { max-width: 104px; font-size: 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-choix-c:hover, .tc-choix-c:focus-visible { background: rgba(255, 255, 255, .08); }
.tc-choix-c.on { background: rgba(245, 197, 66, .2); box-shadow: 0 0 0 2px var(--or, #f5c542); }
.tc-choix-c .tc-carte { pointer-events: none; }
/* tableau des échanges */
.tc-offres h2 .droite { float: right; }
.tc-offres-l { display: flex; flex-direction: column; gap: 10px; }
.tc-offre { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.tc-offre.mien { border-color: rgba(245, 197, 66, .45); }
.tc-offre-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-offre-msg { margin: 6px 0 2px; font-style: italic; opacity: .9; font-size: 14px; }
.tc-offre-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.tc-offre-cols > div { min-width: 0; }
.tc-offre-cols > div > small { display: block; opacity: .75; margin-bottom: 4px; }
.tc-offre-btns { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 520px) { .tc-offre-cols { grid-template-columns: 1fr; } }
.tc-minis { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-mini { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 8px 3px 3px; border-radius: 10px; border: 1px solid var(--rc, #888); background: rgba(10, 4, 24, .55); color: inherit; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.tc-mini .ill { width: 26px; height: 26px; border-radius: 7px; background-size: cover; background-position: center; flex: none; }
.tc-mini .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-mini .nm b { color: var(--rc); }
.tc-mini i { font-style: normal; font-weight: 900; }
.tc-mini i.ok { color: #5fe0a0; }
.tc-mini i.manque { color: #f5c542; }
.tc-pub-offre { width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 10px; }
.tc-pub-zone h3 { margin: 0 0 6px; font-size: 15px; }
.tc-pub-zone .tc-ligne { align-items: flex-start; }
.tc-pub-zone .tc-minis { flex: 1; }
/* tiroir de chat */
.tc-chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 17; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--verre-bord, rgba(255, 255, 255, .14)); background: rgba(40, 24, 80, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 24px; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 0, 0, .4); }
.tc-chat-btn:hover, .tc-chat-btn.on { background: rgba(255, 79, 216, .55); }
.tc-chat-btn .pastille { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff3b5c; font-size: 12px; font-weight: 900; line-height: 20px; box-sizing: border-box; }
.tc-chat-btn .pastille[hidden] { display: none; }
.tc-chat { position: fixed; right: 18px; bottom: 84px; z-index: 17; width: 340px; height: min(520px, calc(100vh - 170px)); display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--verre-bord, rgba(255, 255, 255, .14)); background: rgba(24, 14, 52, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 50px rgba(0, 0, 0, .5); overflow: hidden; animation: tc-fondu .2s ease; }
.tc-chat[hidden] { display: none; }
.tc-chat-haut { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tc-chat-haut b { flex: none; }
.tc-chat-etat { flex: 1; font-size: 11px; opacity: .65; }
.tc-chat-haut .tc-x { position: static; }
.tc-chat-liste { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tc-chat-m { display: flex; gap: 8px; align-items: flex-start; }
.tc-chat-col { min-width: 0; flex: 1; }
.tc-chat-nom { font-size: 12px; cursor: pointer; }
.tc-chat-nom:hover { text-decoration: underline; }
.tc-chat-bulle { margin-top: 2px; padding: 5px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tc-chat-m.moi .tc-chat-bulle { background: rgba(180, 140, 255, .18); }
.tc-chat-m.mention .tc-chat-bulle { box-shadow: inset 0 0 0 1px #f5c542; background: rgba(245, 197, 66, .14); }
.tc-chat-m.sys { font-size: 12px; opacity: .8; align-items: center; padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.tc-chat-m.err { color: #ff8fa3; }
.tc-at { color: #f5c542; }
.tc-chat-saisie { display: flex; gap: 6px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.tc-chat-saisie .tc-input { flex: 1; min-width: 0; }
body:has(.tc-combat) .tc-chat-btn, body:has(.tc-combat) .tc-chat, body:has(.tco.vis) .tc-chat-btn, body:has(.tc-rapide) .tc-chat-btn { display: none; }
@media (max-width: 760px) {
  .tc-chat-btn { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; font-size: 21px; }
  .tc-chat { left: 8px; right: 8px; width: auto; bottom: calc(144px + env(safe-area-inset-bottom, 0px)); height: min(460px, calc(100vh - 230px)); }
}
.tc-fiche-id .tc-fiche-nom[class*="lc-couleur-"]:not(.lc-couleur-neon) { text-shadow: none; filter: drop-shadow(0 1px 2px rgba(10, 4, 30, .8)); }
.tc-fil-tx .tc-fil-quand { display: block; margin-top: 1px; }
.tc-fil-ev[data-type="route"], .tc-fil-ev[data-type="serie"] { border-left-color: #f5c542; }
.tc-fil-ev[data-type="tournoi"], .tc-fil-ev[data-type="rafle"] { border-left-color: #4fd8ff; }
.tc-fil-ev[data-type="arrivee"], .tc-fil-ev[data-type="boutique"] { border-left-color: #5fe0a0; }
.tc-offre.indispo { opacity: .7; }
.tc-offre-indispo { margin-top: 4px; color: #ffb36b; }
.tc-reacs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tc-reacs:empty { display: none; }
.tc-reac { padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.tc-reac.moi { border-color: #f5c542; background: rgba(245, 197, 66, .15); }
.tc-reac-plus { margin-top: 2px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: inherit; font-size: 11px; opacity: 0; cursor: pointer; transition: opacity .15s; }
.tc-chat-m:hover .tc-reac-plus, .tc-reac-plus:focus-visible { opacity: .7; }
@media (hover: none) { .tc-reac-plus { opacity: .5; } }
.tc-reac-menu { display: inline-flex; gap: 2px; margin-left: 4px; padding: 2px 4px; border-radius: 999px; background: rgba(10, 4, 24, .9); border: 1px solid rgba(255, 255, 255, .15); }
.tc-reac-menu button { border: 0; background: none; font-size: 17px; cursor: pointer; padding: 0 2px; }
.tc-reac-menu button:hover { transform: scale(1.25); }

/* ---------- Boost ×2 des pièces ---------- */
.tc-boost { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 4px 10px; border-radius: 999px; font: 900 13px var(--titre, Nunito, sans-serif);
  color: #2a1600; background: linear-gradient(135deg, #ffe27a, #f5b942); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 4px 14px rgba(245, 185, 66, .45); animation: tc-boost-pulse 1.6s ease-in-out infinite; white-space: nowrap; }
@keyframes tc-boost-pulse { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 4px 22px rgba(245, 185, 66, .8); } }

/* ===== §22 Classeur fluide ===== */
.tc-coll-barre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tc-coll-barre .tc-vue-coll { margin: 0 0 0 auto; }
.tc-btn-up { background: linear-gradient(135deg, #ffe27a, #f5c542 55%, #e09a1a); color: #2a1600; box-shadow: 0 0 0 0 rgba(245, 197, 66, .6); animation: tc-up-halo 2.2s ease-in-out infinite; }
@keyframes tc-up-halo { 50% { box-shadow: 0 0 18px 2px rgba(245, 197, 66, .55); } }
.tc-compteurs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 10px; font-size: 13px; }
.tc-compteurs b { font-size: 15px; }
.tc-complete { color: #5fe0a0; }
/* défilement continu */
.tc-coll-zone.continu { display: flex; flex-direction: column; gap: 10px; }
.tc-continu { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--cw) + 12px), 1fr)); gap: 12px; justify-items: center; }
.tc-continu .tc-poche { width: calc(var(--cw) + 10px); height: calc(var(--cw) * 1.3968 + 10px); content-visibility: auto; contain-intrinsic-size: calc(var(--cw) + 10px) calc(var(--cw) * 1.3968 + 10px); }
.tc-coll-fin { text-align: center; margin: 10px 0 30px; }
.tc-serie-tete { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto auto; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border-left: 4px solid var(--sc); }
.tc-serie-tete b { font-size: 16px; }
.tc-serie-tete .tc-jauge { height: 8px; }
.tc-serie-tete.complete { background: linear-gradient(90deg, rgba(95, 224, 160, .14), rgba(255, 255, 255, .04)); }
.tc-badge-complete { padding: 3px 10px; border-radius: 999px; background: #5fe0a0; color: #062b18; font-weight: 900; font-size: 12px; animation: tc-badge-in .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tc-badge-in { from { transform: scale(.3); opacity: 0; } }
@media (max-width: 600px) { .tc-serie-tete { grid-template-columns: 1fr auto; } .tc-serie-tete .tc-jauge { grid-column: 1 / -1; grid-row: 2; } .tc-badge-complete { grid-column: 1 / -1; justify-self: start; } }
/* pastille ⬆ */
.tc-poche { position: relative; }
.tc-up { position: absolute; top: -6px; right: -6px; z-index: 3; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 999px; border: 2px solid #fff6d6; background: radial-gradient(circle at 35% 30%, #fff3b0, #f5c542 55%, #d48a10); color: #3a1f00; font: 900 15px/26px Nunito, sans-serif; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .45), 0 0 12px rgba(245, 197, 66, .7); animation: tc-up-saut 1.6s ease-in-out infinite; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tc-up small { font-size: 11px; margin-left: 1px; vertical-align: top; }
.tc-up:hover, .tc-up:focus-visible { transform: scale(1.15); animation-play-state: paused; outline: none; box-shadow: 0 3px 12px rgba(0, 0, 0, .5), 0 0 20px #f5c542; }
.tc-up.long { animation: none; transform: scale(1.25); }
@keyframes tc-up-saut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.tc-poche.travail .tc-up { opacity: .5; pointer-events: none; }
.tc-poche.max::after { content: "★5"; position: absolute; bottom: 4px; left: 6px; font-size: 10px; font-weight: 900; color: #f5c542; text-shadow: 0 1px 2px #000; pointer-events: none; }
.tc-pulse { animation: tc-pulse .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tc-pulse { 40% { transform: scale(1.08); filter: brightness(1.35) drop-shadow(0 0 14px #f5c542); } }
/* carte obtenue : la silhouette se remplit en se retournant */
.tc-obtenue { animation: tc-obtenue .9s cubic-bezier(.3, 1.3, .5, 1) backwards; }
@keyframes tc-obtenue { 0% { transform: perspective(700px) rotateY(90deg); filter: brightness(0) saturate(0); } 55% { filter: brightness(.6) saturate(.4); } 100% { transform: none; filter: none; } }
/* aperçu au survol */
.tc-apercu-survol { position: fixed; z-index: 30; pointer-events: none; animation: tc-apercu-survol .18s ease-out; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)); }
@keyframes tc-apercu-survol { from { opacity: 0; transform: scale(.92); } }
/* récapitulatif « Tout améliorer » */
.tc-recap-up { width: min(900px, calc(100vw - 24px)); text-align: center; }
.tc-recap-cpt { font-size: 34px; font-weight: 900; color: #f5c542; text-shadow: 0 0 18px rgba(245, 197, 66, .6); margin: 2px 0 8px; }
.tc-recap-bande { display: flex; gap: 12px; overflow-x: auto; padding: 14px 8px 8px; scroll-snap-type: x proximity; justify-content: safe center; }
.tc-recap-c { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .55; transition: opacity .25s, transform .25s; scroll-snap-align: center; }
.tc-recap-c small { font-size: 11px; line-height: 1.2; max-width: 124px; }
.tc-recap-c.actif, .tc-recap-c.fait { opacity: 1; }
.tc-recap-c.actif:not(.fait) { transform: translateY(-6px) scale(1.04); }
/* assistant Optimiser */
.tc-optim { width: min(94vw, 520px); }
.tc-optim-etape { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 8px 0; border-radius: 12px; background: rgba(255, 255, 255, .05); cursor: pointer; text-align: left; }
.tc-optim-etape input { margin-top: 4px; width: 18px; height: 18px; accent-color: #f5c542; }
/* vue détaillée : actions et navigation */
.tc-action-up .tc-ligne { gap: 8px; flex-wrap: wrap; }
.tc-det-nav { position: fixed; top: 50%; z-index: 21; width: 46px; height: 64px; margin-top: -32px; border: 1px solid var(--verre-bord, rgba(255, 255, 255, .14)); border-radius: 14px; background: rgba(30, 20, 60, .7); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tc-det-nav:hover { background: rgba(255, 79, 216, .45); }
.tc-det-nav.g { left: 10px; }
.tc-det-nav.d { right: 10px; }
@media (max-width: 760px) { .tc-det-nav { top: auto; bottom: 12px; margin-top: 0; width: 52px; height: 48px; } }
.tc-detail.glisse-d { animation: tc-glisse-d .28s ease-out; }
.tc-detail.glisse-g { animation: tc-glisse-g .28s ease-out; }
@keyframes tc-glisse-d { from { transform: translateX(40px); opacity: .2; } }
@keyframes tc-glisse-g { from { transform: translateX(-40px); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .tc-up, .tc-btn-up, .tc-obtenue, .tc-pulse { animation: none !important; } }
.tc-filtres.replie > :not(h2) { display: none; }
.tc-filtres h2.tc-repli { cursor: pointer; margin-bottom: 0; }
.tc-filtres h2.tc-repli::after { content: " ▾"; }
.tc-filtres.replie h2.tc-repli::after { content: " ▸"; }
.tc-filtres:not(.replie) h2.tc-repli { margin-bottom: 10px; }

/* ---------- Série : emblème dans le pied + liseré sous l'illustration ---------- */
.tc-emb { display: inline-flex; width: 1.35em; height: 1.35em; flex: none; }
.tc-emb svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--sc); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 .06em rgba(0, 0, 0, .55)) drop-shadow(0 .05em .05em rgba(0, 0, 0, .35)); }
.tc-emb svg .p { fill: var(--sc); stroke: rgba(40, 20, 60, .55); stroke-width: .8; }
.tc-emb svg .r { stroke: rgba(255, 255, 255, .8); stroke-width: 1; }
.tc-emb svg .c { fill: rgba(70, 40, 0, .55); stroke: none; }
.tc-carte.a-serie .tc-illu-cadre::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -.38em; height: 2px; border-radius: 2px; pointer-events: none;
  background: var(--sc); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .28), 0 0 .35em color-mix(in srgb, var(--sc) 70%, transparent); }
.tc-carte.a-serie.holo .tc-illu-cadre::after { background: linear-gradient(90deg, var(--sc), #fff 50%, var(--sc)); background-size: 220% 100%; animation: tc-lisere 3.2s linear infinite; }
@keyframes tc-lisere { to { background-position: -220% 0; } }
.tc-carte.calme:not(.survol).holo .tc-illu-cadre::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .tc-carte.a-serie.holo .tc-illu-cadre::after { animation: none; } }

/* ===================================================================
   Absolue (ordre 7, Louis Gauffre) : au-dessus de la Secrète.
   Cadre arc-en-ciel + or blanc qui tourne, halo nacré, nom doré.
   Animations coupées pour .calme (vignettes en masse) et prefers-reduced-motion.
   =================================================================== */
@property --abs-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tc-carte.r-absolue .tc-recto {
  background: conic-gradient(from var(--abs-a, 0deg), #fff4c2, #ff4f7a, #ffd23f, #5fff9a, #4fd8ff, #b05cff, #ff4fd8, #fff4c2);
  box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .6), inset 0 0 0 .14em #ffffff, inset 0 0 0 .3em rgba(245, 197, 66, .9),
    0 0 1.1em rgba(255, 244, 194, .95), 0 0 2.4em rgba(255, 143, 208, .6), 0 0 3.6em rgba(79, 216, 255, .35);
  animation: tc-abs-tourne 6s linear infinite, tc-abs-halo 2.6s ease-in-out infinite;
}
@keyframes tc-abs-tourne { to { --abs-a: 360deg; } }
@keyframes tc-abs-halo {
  50% { box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .6), inset 0 0 0 .14em #ffffff, inset 0 0 0 .3em rgba(245, 197, 66, 1),
    0 0 1.6em rgba(255, 255, 255, 1), 0 0 3.2em rgba(255, 143, 208, .85), 0 0 4.8em rgba(79, 216, 255, .55); }
}
.tc-carte.r-absolue .tc-face { inset: .62em; background: linear-gradient(180deg, #fffdf6 0%, #fff4d6 55%, #ffeef8 100%); color: #2e1a00; box-shadow: inset 0 0 0 .12em #f5c542, inset 0 0 1.2em rgba(255, 244, 194, .9); }
.tc-carte.r-absolue .tc-entete { background: linear-gradient(90deg, rgba(255, 214, 102, .55), rgba(255, 143, 208, .25) 60%, transparent); }
.tc-carte.r-absolue .tc-nom { background: linear-gradient(90deg, #b8860b, #e0457a 35%, #2a8fd8 70%, #b8860b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-carte.r-absolue .tc-illu { box-shadow: inset 0 0 0 .16em #fff4c2, inset 0 0 0 .3em #f5c542, inset 0 0 1.2em rgba(255, 244, 194, .5); }
.tc-carte.r-absolue .tc-talent b, .tc-carte.r-absolue .tc-pied .sym { color: #c98a00; }
.tc-carte.r-absolue .tc-atk { border-color: rgba(245, 197, 66, .45); }
.tc-carte.r-absolue .tc-rbadge { --rb: conic-gradient(#fff4c2, #ff4f7a, #ffd23f, #5fff9a, #4fd8ff, #b05cff, #fff4c2); border-color: #fff; color: #2e1a00; text-shadow: 0 0 .2em #fff;
  box-shadow: 0 .15em .4em rgba(0, 0, 0, .5), 0 0 .9em #fff4c2, 0 0 1.4em #ff8fd0; }
/* liseré lumineux qui court sur le cadre + étincelles (plus dense que la Secrète) */
.tc-carte.r-absolue .tc-recto::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; padding: .62em;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 1) 48%, transparent 64%),
    radial-gradient(circle, #fff 0 .09em, transparent .15em), radial-gradient(circle, #fff4c2 0 .07em, transparent .13em);
  background-size: 240% 100%, 1.6em 1.9em, 1.2em 1.4em;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: tc-reflet-cadre 2s linear infinite, tc-etincelles 1.2s ease-in-out infinite;
}
.tc-carte.r-absolue .tc-bord { background: linear-gradient(90deg, #b05cff, #fff4c2 30%, #ffd23f 50%, #fff4c2 70%, #4fd8ff); }
.tc-carte.calme:not(.survol).r-absolue .tc-recto, .tc-carte.calme:not(.survol).r-absolue .tc-recto::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tc-carte.r-absolue .tc-recto, .tc-carte.r-absolue .tc-recto::before { animation: none !important; }
}

/* Classeur : l'emplacement de l'Absolue, mystérieux tant qu'on ne l'a pas, très mis en valeur une fois obtenue */
.tc-carte.manque.manque-absolue .tc-recto { background: conic-gradient(from 0deg, #2a1a40, #3a2a10, #2a1040, #10243a, #2a1a40); box-shadow: inset 0 0 0 .12em rgba(255, 244, 194, .35), 0 0 1em rgba(255, 244, 194, .25); }
.tc-carte.manque.manque-absolue .tc-face { background: radial-gradient(circle at 50% 40%, #2c2048, #120a22 75%); box-shadow: inset 0 0 0 .1em rgba(255, 244, 194, .3); }
.tc-carte.manque.manque-absolue .ombre { filter: none; background: none; display: flex; align-items: center; justify-content: center; font-size: 2.4em; opacity: .55;
  text-shadow: 0 0 .3em #fff4c2; animation: tc-abs-mystere 3.6s ease-in-out infinite; }
.tc-carte.manque.manque-absolue .numero { color: rgba(255, 244, 194, .55); letter-spacing: .1em; }
.tc-carte.manque.manque-absolue .rsym { color: rgba(255, 244, 194, .5); font-size: .72em; font-weight: 800; }
@keyframes tc-abs-mystere { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: .85; transform: scale(1.06); } }
.tc-poche.poche-absolue { background: radial-gradient(circle, rgba(255, 244, 194, .08), transparent 70%); box-shadow: inset 0 0 0 1px rgba(255, 244, 194, .35); }
.tc-poche.poche-absolue::before { content: "♾️ ABSOLUE"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 5; font: 900 9px var(--titre); letter-spacing: .12em; color: #fff4c2; text-shadow: 0 0 6px #ff8fd0; pointer-events: none; white-space: nowrap; }
.tc-poche.poche-absolue.obtenue { background: radial-gradient(circle, rgba(255, 244, 194, .35), rgba(255, 143, 208, .12) 55%, transparent 75%);
  box-shadow: inset 0 0 0 2px #fff4c2, 0 0 18px rgba(255, 244, 194, .8), 0 0 34px rgba(255, 143, 208, .45); animation: tc-abs-poche 2.8s ease-in-out infinite; }
@keyframes tc-abs-poche { 50% { box-shadow: inset 0 0 0 2px #fff, 0 0 26px rgba(255, 255, 255, .95), 0 0 48px rgba(79, 216, 255, .55); } }
@media (prefers-reduced-motion: reduce) { .tc-poche.poche-absolue.obtenue, .tc-carte.manque.manque-absolue .ombre { animation: none; } }

/* ouverture rapide : lueur de la meilleure carte quand c'est l'Absolue */
.tc-flip.suivante.n8::before { background: conic-gradient(from 0deg, #fff4c2, #ff4f7a, #ffd23f, #fff, #5fff9a, #4fd8ff, #b05cff, #fff4c2); border-radius: 50%; filter: blur(14px); animation: tc-tourne 1.1s linear infinite; opacity: 1; }
.tc-dk-vig.r-absolue { border-color: #fff4c2; box-shadow: 0 0 10px #fff4c2, 0 0 18px rgba(255, 143, 208, .7); }
.tc-reaction.absolue { width: min(300px, 46vw); background: linear-gradient(135deg, #fff4c2, #fff 40%, #ffe27a); box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 4px #f5c542, 0 0 40px #fff4c2; transform: rotate(-5deg); }
.tc-reaction.absolue span { font-size: 15px; }
.tc-reaction.absolue.bis { right: auto; left: 3vw; bottom: 18vh; width: min(220px, 36vw); transform: rotate(7deg); }
.tc-secret-voile.absolue { background: radial-gradient(circle at 50% 45%, #5a4a20, #1a0d30 70%); }
.tc-secret-voile.absolue .mot { background: linear-gradient(90deg, #fff4c2, #ff4f7a, #ffd23f, #5fff9a, #4fd8ff, #b05cff, #fff4c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-secret-voile.absolue .couronne { filter: drop-shadow(0 0 30px #fff4c2) drop-shadow(0 0 60px #ff8fd0); }
.tc-bonus-coll { font-size: .62em; font-style: normal; padding: .1em .45em; border-radius: 999px; background: linear-gradient(90deg, #3a2a08, #2a1040); color: #f5c542; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .5); vertical-align: middle; }

/* ===================================================================
   Synergies (série Mondes Alternatifs)
   =================================================================== */
.tc-det-syn { margin: 10px 0; padding: 8px 12px; border-radius: 14px; background: rgba(199, 125, 255, .12); box-shadow: inset 0 0 0 1px rgba(199, 125, 255, .35); }
.tc-det-syn p { margin: 4px 0; font-size: 14px; line-height: 1.35; }
.tc-det-syn b { color: #e2b8ff; }
.tc-det-duo { all: unset; cursor: pointer; font-weight: 900; color: #ffd36a; text-decoration: underline dotted; text-underline-offset: 3px; }
.tc-det-duo:hover, .tc-det-duo:focus-visible { color: #fff; outline: none; }
.tc-syn { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-width: 0; max-width: 100%; }
.tc-syn-i { display: inline-block; max-width: 100%; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; color: #f3e2ff;
  background: rgba(199, 125, 255, .18); box-shadow: inset 0 0 0 1px rgba(199, 125, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-dk-txt { min-width: 0; }
.tc-dk-txt .tc-syn { margin-top: 3px; }
.tc-deck .tc-syn { margin-top: 6px; }
.tc-dk-recherche { width: 100%; margin: 0 0 8px; box-sizing: border-box; }

/* Combat : coût d'attaque réduit (soutien) / augmenté */
.tc-cout-reduit { display: inline-flex; filter: drop-shadow(0 0 2px rgba(76, 217, 123, .8)); }
.tc-cout-reduit .tc-pips i { background: radial-gradient(circle at 35% 30%, #e6ffe0, #4cd97b 50%, #1f8a45); box-shadow: 0 0 .35em #4cd97b; }
.tc-cout-hausse { display: inline-flex; }
.tc-cout-hausse .tc-pips i { background: radial-gradient(circle at 35% 30%, #ffe0e0, #ff5a5a 50%, #a01818); }

/* Nouvelles météos de combat */
.meteo-fertile .tc-meteo-fx { background: radial-gradient(ellipse at 50% 110%, rgba(110, 230, 90, .32), transparent 60%); animation: tc-canicule 3s ease-in-out infinite; }
.meteo-gravier .tc-meteo-fx { background-image: radial-gradient(circle, rgba(200, 160, 110, .8) 0 1.5px, transparent 2.5px), radial-gradient(circle, rgba(140, 105, 70, .7) 0 2px, transparent 3px);
  background-size: 70px 70px, 110px 110px; animation: tc-blizzard 1.4s linear infinite; }
.meteo-arcenciel .tc-meteo-fx { background: linear-gradient(120deg, rgba(255, 79, 122, .13), rgba(255, 210, 63, .13), rgba(95, 255, 154, .13), rgba(79, 216, 255, .13), rgba(176, 92, 255, .13), rgba(255, 79, 122, .13));
  background-size: 300% 300%; animation: tc-arcenciel 5s linear infinite; }
@media (prefers-reduced-motion: reduce) { .meteo-fertile .tc-meteo-fx, .meteo-gravier .tc-meteo-fx, .meteo-arcenciel .tc-meteo-fx { animation: none; } }

/* Combat : crans gardés par les cartes du banc (ils restent sur la carte au changement) */
.tc-reserve .tc-mini .tc-mini-crans { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: 1px 1px; font: 900 8px/1.05 var(--titre); text-align: center; color: #fff; background: rgba(20, 8, 40, .78); word-break: break-word; pointer-events: none; }
.tc-reserve .tc-mini.a-crans { box-shadow: 0 4px 10px rgba(0, 0, 0, .45), 0 0 6px rgba(255, 210, 63, .6); }
.tc-crans-banc { display: block; color: #ffd36a; font-weight: 800; }
.tc-note-crans { opacity: .75; font-size: .92em; }

/* Guide : chances des boosters (calculées depuis les données) */
.tc-chances h3 { margin: 14px 0 6px; font: 900 15px var(--titre); color: #fff; }
.tc-chances-onglets { flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.tc-chances-onglets .tc-chip { box-shadow: inset 0 -3px 0 var(--sc, transparent); }
.tc-chances-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tc-chances-t { min-width: 320px; font-size: 13px; }
.tc-chances-t td { vertical-align: top; }
.tc-chances-t td.num { font: 900 15px var(--titre); color: var(--or); width: 3em; text-align: center; }
.tc-chances-t small { opacity: .75; font-weight: 700; }
.tc-chances-pill { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; background: color-mix(in srgb, var(--c) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.tc-chances-carte { display: inline-block; margin: 1px 10px 1px 0; white-space: nowrap; font-size: 12.5px; }
.tc-chances-abs td { background: linear-gradient(90deg, rgba(255, 244, 194, .1), rgba(255, 143, 208, .08), transparent); }
.tc-chances-notes { margin-top: 10px; font-size: 13px; }
@media (max-width: 560px) { .tc-chances-t { font-size: 12px; } .tc-chances-t td, .tc-chances-t th { padding: 5px 4px; } .tc-chances-carte { white-space: normal; display: block; } }

/* =====================================================================
   Variante DORÉE (au-dessus de la Brillante, 3× plus rare) : carte entièrement en or.
   Cadre or massif, fond doré, illustration teintée or/sépia, reflet métallique qui suit la souris / le doigt
   (comme le holo), coupé par .calme (vignettes en masse) et prefers-reduced-motion. Bloc autonome (fin de fichier).
   ===================================================================== */
.tc-carte.dore { --or-c: #ffe9a0; --or-m: #e2ac2f; --or-f: #8a5a0c; }
.tc-carte.dore .tc-recto, .tc-carte.dore.r-legendaire .tc-recto, .tc-carte.dore.r-mythique .tc-recto, .tc-carte.dore.r-secrete .tc-recto, .tc-carte.dore.r-absolue .tc-recto {
  background: linear-gradient(135deg, #fff6cf 0%, #f7d46a 14%, #b8862a 30%, #ffeaa6 46%, #c8901c 60%, #fff1b8 74%, #a86f12 88%, #f5c542 100%);
  background-size: 220% 220%; animation: tc-dore-cadre 6s linear infinite;
  box-shadow: 0 .6em 1.5em rgba(0, 0, 0, .55), 0 0 1.1em rgba(255, 196, 60, .55), inset 0 0 0 .1em #fff4c8, inset 0 0 0 .22em #a8740f, inset 0 0 0 .3em #ffe18a;
}
@keyframes tc-dore-cadre { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }
.tc-carte.dore .tc-face, .tc-carte.dore.r-secrete .tc-face, .tc-carte.dore.r-absolue .tc-face {
  background: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .45), transparent 55%), linear-gradient(180deg, #ffeeb5 0%, #f2cf6e 45%, #dca43a 100%);
  color: #3a2400; box-shadow: inset 0 0 0 .1em #b8862a, inset 0 0 .9em rgba(140, 90, 10, .35);
}
.tc-carte.dore .tc-entete, .tc-carte.dore.r-secrete .tc-entete { background: linear-gradient(90deg, rgba(255, 246, 205, .95), rgba(214, 160, 40, .4)); }
.tc-carte.dore .tc-nom { color: #3a2400; text-shadow: 0 .05em 0 rgba(255, 250, 225, .8); }
.tc-carte.dore .tc-pv, .tc-carte.dore.r-secrete .tc-pv { color: #9a1a10; }
.tc-carte.dore .tc-bande, .tc-carte.dore .tc-atk .txt, .tc-carte.dore .tc-flavor, .tc-carte.dore .tc-pied,
.tc-carte.dore.r-secrete .tc-bande, .tc-carte.dore.r-secrete .tc-atk .txt, .tc-carte.dore.r-secrete .tc-flavor, .tc-carte.dore.r-secrete .tc-pied { color: #5a3d08; }
.tc-carte.dore .tc-atk, .tc-carte.dore.r-secrete .tc-atk { border-color: rgba(138, 90, 12, .3); }
.tc-carte.dore .tc-talent { background: rgba(255, 236, 170, .6); }
.tc-carte.dore .tc-talent b, .tc-carte.dore.r-secrete .tc-talent b { color: #7a4a00; }
.tc-carte.dore .tc-pied .sym { color: #8a5a0c; }
.tc-carte.dore .tc-type-ico { box-shadow: 0 0 0 .1em #ffe9a0, 0 0 0 .18em #a8740f, 0 .1em .25em rgba(0, 0, 0, .4); }
/* illustration teintée or / sépia */
.tc-carte.dore .tc-illu { box-shadow: inset 0 0 0 .16em #f5c542, inset 0 0 0 .26em #8a5a0c, inset 0 0 1.2em rgba(120, 70, 0, .45); background: radial-gradient(circle at 50% 38%, #ffe9a0, #d39b2a 55%, #6a4208); }
.tc-carte.dore .tc-illu img.rendu, .tc-carte.dore .tc-illu .visage { filter: sepia(.95) saturate(2.1) hue-rotate(-10deg) brightness(1.02) contrast(1.12); }
.tc-carte.dore .tc-illu .visage { border-color: #ffe9a0; box-shadow: 0 0 0 .14em #8a5a0c, 0 .4em 1em rgba(0, 0, 0, .45); }
.tc-carte.dore .tc-illu .motif { filter: sepia(1) saturate(2); opacity: .3; }
.tc-carte.dore .tc-illu::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(160deg, rgba(255, 240, 190, .55), rgba(200, 140, 30, .25) 55%, rgba(90, 50, 0, .4)); }
/* reflet métallique : bande d'or blanc qui suit le pointeur (--hx/--hy, comme le holo) et dérive doucement */
.tc-dore, .tc-dore-grain { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
.tc-dore {
  mix-blend-mode: overlay; opacity: .6;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 250, 225, 0) 30%, rgba(255, 250, 225, .9) 45%, rgba(255, 214, 110, .6) 52%, rgba(255, 250, 225, 0) 66%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px);
  background-size: 300% 300%, 100% 100%;
  background-position: var(--hx, 50%) var(--hy, 50%), 0 0;
  animation: tc-dore-derive 5s ease-in-out infinite alternate;
}
@keyframes tc-dore-derive { 0% { background-position: 0% 20%, 0 0; } 100% { background-position: 100% 80%, 0 0; } }
.tc-carte.survol.dore .tc-dore { animation: none; opacity: .95; }
.tc-dore-grain {
  mix-blend-mode: color-dodge; opacity: calc(.15 + var(--ang, 0) * .6);
  background-image: radial-gradient(circle, rgba(255, 246, 200, .95) 0 .05em, transparent .09em), radial-gradient(circle, rgba(255, 200, 80, .8) 0 .04em, transparent .08em);
  background-size: .5em .5em, .75em .75em;
  background-position: calc(var(--hx, 50%) * .3) calc(var(--hy, 50%) * .3), calc(var(--mx, 50%) * -.4) calc(var(--my, 50%) * .4);
  -webkit-mask: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 65%); mask: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0%, transparent 65%);
}
.tc-carte.dore .tc-recto::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, .75) 45%, rgba(255, 220, 120, .6) 52%, transparent 72%);
  background-size: 260% 100%; mix-blend-mode: screen; animation: tc-irise 3.2s linear infinite; opacity: .7;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: .42em;
}
.tc-carte.pivot.dore .tc-dore { animation: none; opacity: calc(.45 + var(--ang, 0) * .5); }
.tc-carte.pivot.dore .tc-reflet { opacity: var(--glare, .12); mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 250, 225, .95), rgba(255, 200, 80, .45) 24%, transparent 55%); }
.tc-carte.dore.survol .tc-recto { box-shadow: 0 1.2em 2.4em rgba(0, 0, 0, .6), 0 0 1.8em rgba(255, 196, 60, .8), inset 0 0 0 .1em #fff4c8, inset 0 0 0 .22em #a8740f, inset 0 0 0 .3em #ffe18a; }
.tc-badge-dore { position: absolute; right: .7em; top: 47%; z-index: 3; padding: .1em .5em; border-radius: .4em; font: 900 .58em var(--titre); letter-spacing: .04em;
  color: #3a2400; background: linear-gradient(180deg, #fff6cf, #f5c542 45%, #b8862a); box-shadow: 0 0 0 .08em #8a5a0c, 0 0 .6em rgba(255, 196, 60, .9); text-shadow: 0 .05em 0 rgba(255, 250, 225, .7); }
/* coupé pour les vignettes en masse et pour prefers-reduced-motion */
.tc-carte.calme:not(.survol).dore .tc-recto, .tc-carte.calme:not(.survol).dore .tc-recto::after, .tc-carte.calme:not(.survol) .tc-dore { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .tc-carte.dore .tc-recto, .tc-carte.dore .tc-recto::after, .tc-dore { animation: none !important; }
}
/* textes, pastilles et puces dorées dans l'interface */
.tc-txt-dore { color: #ffd36b; text-shadow: 0 0 6px rgba(255, 196, 60, .55); }
.tc-fil-l.dore { border-left-color: #ffcf4a; background: linear-gradient(90deg, rgba(255, 207, 74, .18), rgba(20, 7, 38, .6) 60%); }
.tc-pastille-dore { position: absolute; left: 2px; bottom: 2px; z-index: 4; padding: 1px 6px; border-radius: 999px; font: 900 11px var(--titre); color: #3a2400;
  background: linear-gradient(180deg, #fff6cf, #f5c542 50%, #b8862a); box-shadow: 0 0 0 1px #8a5a0c, 0 0 8px rgba(255, 196, 60, .8); pointer-events: none; }
.tc-chip.chip-dore { border-color: #ffcf4a; color: #ffd36b; }
.tc-chip.chip-dore.on { color: #2a1a05; background: linear-gradient(180deg, #fff1b8, #f5c542 55%, #c8901c); border-color: #8a5a0c; box-shadow: 0 0 12px rgba(255, 196, 60, .7); }
.tc-flip.lueur-or, .tco-lueur-or { filter: drop-shadow(0 0 14px rgba(255, 200, 70, .95)) drop-shadow(0 0 30px rgba(255, 170, 30, .6)); animation: tc-lueur-or 1.2s ease-in-out 2; }
@keyframes tc-lueur-or { 50% { filter: drop-shadow(0 0 22px rgba(255, 220, 110, 1)) drop-shadow(0 0 44px rgba(255, 170, 30, .8)); } }
@media (prefers-reduced-motion: reduce) { .tc-flip.lueur-or, .tco-lueur-or { animation: none; } }
/* ouverture (opening.js) */
.tco-badge-b.tco-badge-dore { color: #3a2400; background: linear-gradient(90deg, #fff6cf, #f5c542, #b8862a, #ffe9a0, #fff6cf); background-size: 200% 100%; text-shadow: 0 .05em 0 rgba(255, 250, 225, .7); box-shadow: 0 0 .8em rgba(255, 196, 60, .9);
  filter: none; animation: tc-badge-or 2.4s linear infinite; }
@keyframes tc-badge-or { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .tco-badge-b.tco-badge-dore { animation: none; } }
.tco-balayage.or::before { background: linear-gradient(100deg, transparent 30%, rgba(255, 246, 205, .7) 42%, rgba(255, 210, 90, .75) 50%, rgba(255, 246, 205, .7) 58%, transparent 70%) !important; }
.tco-repli.dore { background: linear-gradient(135deg, #fff6cf, #f5c542 40%, #b8862a) !important; color: #3a2400 !important; }
.tco-annonce.dore .m { background: linear-gradient(180deg, #fff6cf, #ffcf4a 50%, #c8901c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 12px rgba(255, 196, 60, .8)); }

/* =====================================================================
   Saisons (D.saisons), séries « à part » (Mondes Alternatifs) et boosters de série gagnés sur la Route
   ===================================================================== */
.tc-saison { --sc: #f5c542; margin: 18px 0 8px; padding: 10px 14px; border-radius: 14px; border-left: 4px solid var(--sc);
  background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 20%, transparent), rgba(20, 7, 38, .35) 70%); }
.tc-saison-t { font: 900 18px var(--titre); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tc-saison-i { font-size: 1.15em; }
.tc-saison-a { margin-top: 3px; font-size: 13px; color: var(--texte-doux, #cbbbe6); }
.tc-saison-route { font: 800 11.5px var(--police, inherit); padding: 2px 9px; border-radius: 999px; color: #fff; background: color-mix(in srgb, var(--sc) 45%, rgba(0, 0, 0, .3)); box-shadow: inset 0 0 0 1px var(--sc); }
.tc-serie-choix.a-part { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc, #c77dff) 50%, transparent); }
.tc-serie-route { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #e6d4ff; }
.tc-serie-route b { color: #ffd36b; }
.tc-btn.or { color: #3a2400; background: linear-gradient(180deg, #fff1b8, #f5c542 55%, #c8901c); box-shadow: 0 6px 16px rgba(245, 197, 66, .35); }
.tc-prog .tc-prog-saison { grid-column: 1 / -1; margin-top: 6px; padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--sc, #f5c542) 45%, transparent); font: 900 12.5px var(--titre); color: var(--sc, #f5c542); }
.tc-prog .tc-prog-saison:first-child { margin-top: 0; border-top: 0; }
.tc-prog .tc-prog-saison small { font: 700 11px var(--police, inherit); color: var(--texte-doux, #cbbbe6); margin-left: 4px; }
.tc-chances-saison { flex-basis: 100%; margin-top: 4px; font: 900 12.5px var(--titre); color: var(--sc, #f5c542); }
.tc-chances-saison small { font: 700 11px var(--police, inherit); color: var(--texte-doux, #cbbbe6); margin-left: 4px; }
.tc-booster-serie { color: var(--sc, #f5c542); text-shadow: 0 0 6px color-mix(in srgb, var(--sc, #f5c542) 55%, transparent); }

/* ---------- Guide : synergies ---------- */
.tc-gsyn-liste { display: flex; flex-direction: column; gap: 6px; }
.tc-gsyn-ligne { display: block; width: 100%; text-align: left; padding: 8px 12px; min-height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: inherit; font: inherit; font-size: 14px; line-height: 1.35; cursor: pointer; }
.tc-gsyn-ligne:hover, .tc-gsyn-ligne:focus-visible { background: rgba(199, 125, 255, .14); border-color: rgba(199, 125, 255, .5); }
.tc-gsyn-ligne .tc-note { display: block; margin-top: 2px; }

/* Pendant une ouverture de booster (×1 : .tco, ×5/×10 : .tcm), les pop-ups « Succès débloqué » / quêtes
   sont masquées pour ne pas couvrir les paquets ni bloquer le glisser (elles réapparaissent à la fermeture si elles sont encore là). */
body:has(.tco, .tcm) #tc-notifs { opacity: 0; visibility: hidden; pointer-events: none; }

/* =====================================================================
   DA 2026-12 — nouvelle direction artistique de l'interface (surcharge finale).
   Palette : fond #160D2B, surfaces #251642, violet #7138C8, or #F5C84C, cyan #56D8E9.
   Surfaces pleines (plus de verre dépoli), lueurs sobres, coins arrondis, Nunito.
   Les cartes elles-mêmes (raretés, Secrètes, Absolue, Dorées) ne sont PAS touchées ici.
   ===================================================================== */
:root {
  --da-fond: #160d2b;
  --da-surface: #251642;
  --da-surface-2: #2f1c53;
  --da-surface-3: #1c1035;
  --da-ligne: rgba(190, 160, 255, .14);
  --da-ligne-forte: rgba(190, 160, 255, .26);
  --da-violet: #7138c8;
  --da-violet-clair: #a98bf0;
  --da-or: #f5c84c;
  --da-or-clair: #ffd970;
  --da-cyan: #56d8e9;
  --da-texte: #f4efff;
  --da-texte-doux: #b3a6d3;
  --da-ombre: 0 6px 20px rgba(6, 2, 18, .35);
  --da-rayon: 18px;
  /* les variables « verre » de l'ancienne charte deviennent des surfaces pleines */
  --verre: var(--da-surface);
  --verre-fort: var(--da-surface-2);
  --verre-bord: var(--da-ligne);
  --verre-ombre: var(--da-ombre);
  --flou: none;
  --rayon: var(--da-rayon);
  --panneau: var(--da-surface);
  --bord: var(--da-ligne);
  --texte: var(--da-texte);
  --texte-doux: var(--da-texte-doux);
  --lavande: #cdbcff;
  --or-doux: var(--da-or);
  --haut: 64px;
}
html { background: var(--da-fond); }
body {
  background-color: var(--da-fond);
  background-image:
    radial-gradient(1000px 520px at 50% -160px, rgba(113, 56, 200, .30), transparent 70%),
    radial-gradient(760px 520px at 100% 105%, rgba(86, 216, 233, .05), transparent 70%);
  background-attachment: fixed;
  color: var(--da-texte);
}
#tc-fond { display: none; }
:focus-visible { outline: 3px solid var(--da-cyan); outline-offset: 2px; }
.ico svg, svg.tc-svg { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- En-tête : logo, navigation (bureau), soldes, profil ---------- */
#tc-haut {
  margin: 0; height: var(--haut); padding: 0 20px; gap: 12px; border-radius: 0; border: 0;
  border-bottom: 1px solid var(--da-ligne); background: rgba(29, 17, 56, .96); box-shadow: 0 4px 18px rgba(6, 2, 18, .25);
  backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; filter: none;
}
#tc-logo {
  flex: none; display: flex; align-items: center; height: 100%; margin: 0 -14px 0 -16px; padding: 0; line-height: 0;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none; border-radius: 12px;
}
#tc-logo img { display: block; height: 54px; width: auto; transition: transform .15s; }
#tc-logo:hover img { transform: scale(1.03); }
#tc-logo:focus-visible { outline-offset: -4px; }
#tc-lobby, #tc-retour { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; }
#tc-lobby .ico { font-size: 20px; }
#tc-retour { display: none !important; } /* bureau : « Accueil » est dans la navigation */
.tc-solde {
  height: 40px; align-items: center; gap: 7px; padding: 0 13px; border-radius: 12px;
  background: var(--da-surface-3); border: 1px solid var(--da-ligne); box-shadow: none;
}
.tc-solde b { font: 900 16px var(--titre); color: var(--da-or); }
.tc-solde.eclats b { color: var(--da-cyan); }
.tc-solde .tc-piece { width: 20px; height: 20px; }
.tc-profil { height: 44px; gap: 9px; padding: 3px 14px 3px 3px; border-radius: 14px; background: var(--da-surface-2); border: 1px solid var(--da-ligne); }
.tc-profil:hover { border-color: var(--da-ligne-forte); background: #382262; }
.tc-profil .tc-tete { width: 36px; height: 36px; border-radius: 11px; border: 2px solid rgba(245, 200, 76, .7); }
.tc-profil-nom { color: var(--da-texte); font-weight: 800; }

/* navigation principale : dans l'en-tête sur ordinateur et tablette (barre du bas sur téléphone, voir plus bas) */
@media (min-width: 761px) {
  #tc-nav {
    display: flex; position: static; transform: none; width: auto; margin: 0 0 0 6px; padding: 0; gap: 2px;
    background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  #tc-nav button {
    flex: none; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border: 0; border-radius: 12px; background: none; color: var(--da-texte-doux); font: 800 14.5px var(--police); white-space: nowrap;
    transition: background .15s, color .15s;
  }
  #tc-nav button .ico { font-size: 19px; line-height: 0; }
  #tc-nav button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
  #tc-nav button.on { color: #fff; background: var(--da-violet); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 14px rgba(113, 56, 200, .35); }
  #tc-nav button.on .ico { color: var(--da-or); }
  /* la barre de musique du lobby (en haut au centre) couvrirait la navigation : coin bas-gauche hors fenêtres */
  body:not(:has(.tc-couche)) .la-barre { top: auto !important; bottom: 16px; left: 16px; transform: none; }
  body:not(:has(.tc-couche)) .la-barre.la-pilule { border-top: 1px solid rgba(245, 197, 66, .45); border-radius: 999px; }
}
@media (min-width: 761px) and (max-width: 1279px) { #tc-lobby .txt { display: none; } #tc-lobby { width: 40px; padding: 0; justify-content: center; } }
@media (min-width: 761px) and (max-width: 1199px) { .tc-profil-nom { display: none; } .tc-profil { padding: 3px; } }
@media (min-width: 761px) and (max-width: 1099px) {
  #tc-haut { gap: 8px; padding: 0 14px; }
  #tc-nav button { flex-direction: column; justify-content: center; gap: 2px; height: 52px; min-width: 60px; padding: 0 8px; font-size: 11.5px; }
  #tc-nav button .ico { font-size: 20px; }
}
@media (min-width: 761px) and (max-width: 919px) {
  #tc-lobby, .tc-solde.eclats { display: none; }
  #tc-logo img { height: 46px; }
  #tc-nav { margin-left: 0; }
  #tc-nav button { min-width: 54px; padding: 0 5px; }
}

/* ---------- Vue principale ---------- */
#tc-vue { height: calc(100vh - var(--haut)); padding: 24px 24px 40px; scrollbar-color: #4a2d80 transparent; }
.tc-page { max-width: 1320px; }
.tc-titre { font: 900 28px var(--titre); font-style: normal; letter-spacing: -.01em; color: #fff; text-shadow: none; }
.tc-sous { color: var(--da-texte-doux); }
.tc-sous b, .tc-note b { color: #fff; }
.tc-chargement { color: var(--da-texte); font: 900 22px var(--titre); }

/* ---------- Boutons, pastilles, champs ---------- */
.tc-btn {
  font: 800 15px var(--police); border: 0; border-radius: 12px; padding: 10px 18px; color: #24133f;
  background: var(--da-or); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px rgba(245, 200, 76, .16);
  transition: background .15s, transform .08s, box-shadow .15s;
}
.tc-btn:hover:not(:disabled) { background: var(--da-or-clair); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 18px rgba(245, 200, 76, .26); }
.tc-btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.tc-btn.sec { color: var(--da-texte); background: var(--da-surface-2); border: 0; box-shadow: inset 0 0 0 1px var(--da-ligne-forte); }
.tc-btn.sec:hover:not(:disabled) { background: #3a2464; box-shadow: inset 0 0 0 1px rgba(190, 160, 255, .38); }
.tc-btn.rose { color: #fff; background: var(--da-violet); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 14px rgba(113, 56, 200, .3); }
.tc-btn.rose:hover:not(:disabled) { background: #8048d8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 18px rgba(113, 56, 200, .4); }
.tc-btn.or { color: #24133f; background: var(--da-or); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 14px rgba(245, 200, 76, .2); }
.tc-btn.danger { color: #fff; background: #d9536c; box-shadow: none; }
.tc-btn.danger:hover:not(:disabled) { background: #e5627a; }
.tc-btn.grand { font-size: 17px; padding: 13px 22px; border-radius: 14px; }
.tc-btn.petit { font-size: 13px; padding: 6px 12px; border-radius: 10px; }
.tc-btn:disabled { opacity: .45; filter: saturate(.4); }
.tc-btn svg.tc-svg { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.18em; margin-left: .25em; stroke-width: 2.6; }
.tc-chip { font: 700 13px var(--police); color: var(--da-texte); background: var(--da-surface-2); border: 1px solid var(--da-ligne); border-radius: 999px; padding: 5px 12px; }
.tc-chip:hover { background: #3a2464; box-shadow: none; }
.tc-chip.on { color: #24133f; background: var(--da-or); border-color: transparent; box-shadow: none; }
.tc-input { background: var(--da-surface-3); border: 1px solid var(--da-ligne-forte); border-radius: 12px; color: var(--da-texte); }
.tc-input:focus { border-color: var(--da-violet-clair); box-shadow: 0 0 0 3px rgba(113, 56, 200, .3); }
.tc-x { border: 0; background: var(--da-surface-2); box-shadow: inset 0 0 0 1px var(--da-ligne-forte); border-radius: 12px; color: var(--da-texte); }
.tc-x:hover { background: #3a2464; box-shadow: inset 0 0 0 1px rgba(190, 160, 255, .38); }
kbd { border: 1px solid var(--da-ligne-forte); border-bottom-width: 2px; background: var(--da-surface-3); }

/* ---------- Panneaux et fenêtres ---------- */
.tc-panneau { background: var(--da-surface); border: 1px solid var(--da-ligne); border-radius: var(--da-rayon); box-shadow: var(--da-ombre); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 18px 20px; }
.tc-panneau h2 { font: 800 16px var(--titre); letter-spacing: 0; text-transform: none; color: #fff; text-shadow: none; }
.tc-panneau h2 .droite { font-size: 12.5px; font-weight: 700; color: var(--da-texte-doux); }
.tc-jauge { background: var(--da-surface-3); box-shadow: inset 0 0 0 1px var(--da-ligne); }
.tc-jauge i { background: linear-gradient(90deg, var(--da-violet), var(--da-or)); box-shadow: none; }
.tc-couche { background: rgba(12, 6, 26, .74); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tc-boite { background: var(--da-surface); border: 1px solid var(--da-ligne-forte); border-radius: 22px; box-shadow: 0 24px 60px rgba(5, 2, 15, .6); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tc-boite h2 { font: 900 23px var(--titre); font-style: normal; color: #fff; text-shadow: none; }
.tc-toast { background: var(--da-surface-2); border: 1px solid var(--da-ligne-forte); border-radius: 14px; box-shadow: 0 12px 30px rgba(5, 2, 15, .5); backdrop-filter: none; }
.tc-toast.ok { border-color: rgba(110, 231, 183, .55); }
.tc-toast.err { border-color: rgba(255, 140, 160, .6); }
.tc-chat-btn { background: var(--da-surface-2); border: 1px solid var(--da-ligne-forte); box-shadow: var(--da-ombre); backdrop-filter: none; }
.tc-bouchon { background: rgba(86, 216, 233, .12); border: 1px dashed rgba(86, 216, 233, .6); color: var(--da-cyan); }
.tc-deck, .tc-arene, .tc-joueur, .tc-dk-ligne, .tc-serie-choix, .tc-route-entr { backdrop-filter: none; -webkit-backdrop-filter: none; }
.tc-bienvenue-bloc { background: linear-gradient(110deg, rgba(86, 216, 233, .14), var(--da-surface) 70%); border: 1px solid rgba(86, 216, 233, .4); }
.tc-bienvenue .grosse-piece { filter: drop-shadow(0 6px 16px rgba(245, 200, 76, .35)); }
.tc-bienvenue .retro { background: linear-gradient(120deg, rgba(245, 200, 76, .16), rgba(113, 56, 200, .2)); border: 1px solid rgba(245, 200, 76, .6); animation: none; }
.tc-bienvenue .retro small { color: var(--da-cyan); letter-spacing: .1em; }
.tc-bienvenue .retro b { color: var(--da-or); text-shadow: none; }
.tc-deck.actif { border-color: rgba(245, 200, 76, .7); box-shadow: var(--da-ombre), 0 0 0 1px rgba(245, 200, 76, .35); }
.tc-dk-actif { background: var(--da-or); color: #24133f; }
.tc-dk-txt > .tc-dk-actif { align-self: flex-start; }
.tc-dk-ligne.on { border-color: rgba(245, 200, 76, .8); box-shadow: 0 0 0 1px rgba(245, 200, 76, .35); background: rgba(245, 200, 76, .08); }
button.tc-dk-ligne:hover:not(:disabled) { border-color: var(--da-ligne-forte); }
/* fenêtres plein écran (combat, ouverture de secours) : fond opaque, la page ne transparaît plus */
.tc-couche.tc-combat { background: radial-gradient(1000px 600px at 50% 30%, #23133f, var(--da-fond) 72%); }
.tc-couche.tc-ouverture { background: rgba(14, 7, 30, .94); }

/* menu « Plus » (fenêtre : ordinateur ; feuille du bas : téléphone) */
.tc-menu-plus { width: min(94vw, 520px); }
.tc-menu-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.tc-menu-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; text-align: left; color: var(--da-texte);
  background: var(--da-surface-2); border: 1px solid var(--da-ligne); box-shadow: none; transition: background .15s, border-color .15s; }
.tc-menu-item:hover { background: #3a2464; border-color: var(--da-ligne-forte); }
.tc-menu-item .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--da-violet-clair); background: rgba(113, 56, 200, .2); }
.tc-menu-item b { font: 800 15px var(--titre); }
.tc-menu-item.on { border-color: rgba(245, 200, 76, .75); box-shadow: 0 0 0 1px rgba(245, 200, 76, .3); }
.tc-menu-item.large { grid-column: 1 / -1; min-height: 56px; }

/* ---------- Accueil : bannière + raccourcis + infos ---------- */
.tc-accueil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 20px; align-items: start; max-width: 1280px; margin: 0 auto; }
.tc-acc-principal, .tc-acc-cote { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tc-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "txt cartes" "stats stats"; gap: 16px 24px;
  padding: 26px 28px 20px; border-radius: 22px; overflow: hidden; border: 1px solid var(--da-ligne-forte); box-shadow: var(--da-ombre);
  background: radial-gradient(380px 260px at 86% 42%, rgba(113, 56, 200, .5), transparent 72%), linear-gradient(135deg, #2e1b54, #221340 70%);
}
.tc-hero-txt { grid-area: txt; min-width: 0; align-self: center; }
.tc-hero-sur { margin: 0 0 6px; font: 800 12px var(--police); letter-spacing: .08em; text-transform: uppercase; color: var(--da-cyan); }
.tc-hero h2 { margin: 0; font: 900 30px/1.12 var(--titre); letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
.tc-hero h2 .tc-piece { width: .9em; height: .9em; vertical-align: -.08em; }
.tc-hero-p { margin: 8px 0 18px; max-width: 54ch; color: var(--da-texte-doux); font-size: 15px; line-height: 1.45; }
.tc-hero-act { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-hero-cartes { grid-area: cartes; position: relative; width: 236px; height: 172px; align-self: center; }
.tc-hero-cartes .d { position: absolute; left: 50%; top: 50%; width: 96px; height: 134px; margin: -67px 0 0 -48px; border-radius: 8px; font-size: 4.8px; box-shadow: 0 10px 24px rgba(5, 2, 15, .5); }
.tc-hero-cartes .d:nth-child(1) { transform: translate(-64px, 12px) rotate(-13deg); }
.tc-hero-cartes .d:nth-child(2) { transform: translateY(-6px); z-index: 2; }
.tc-hero-cartes .d:nth-child(3) { transform: translate(64px, 12px) rotate(13deg); }
.tc-hero-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 16px; border-top: 1px solid var(--da-ligne); }
.tc-hero-stats div { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(22, 13, 43, .55); border: 1px solid var(--da-ligne); }
.tc-hero-stats dt { font-size: 12px; font-weight: 700; color: var(--da-texte-doux); }
.tc-hero-stats dd { margin: 0; font-size: 13px; font-weight: 800; color: #fff; }
.tc-raccourcis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tc-raccourci {
  --accent: var(--da-violet-clair); display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; text-align: left;
  border-radius: 16px; background: var(--da-surface); border: 1px solid var(--da-ligne); color: var(--da-texte); transition: background .15s, border-color .15s;
}
.tc-raccourci:hover { background: var(--da-surface-2); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.tc-raccourci .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.tc-raccourci .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-raccourci b { font: 800 15px var(--titre); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-raccourci small { font-size: 12.5px; color: var(--da-texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-raccourci .chev { flex: none; width: 16px; height: 16px; color: var(--da-texte-doux); opacity: .7; }
.tc-pieces-jour .tc-note { margin: 10px 0 0; line-height: 1.45; }
.tc-pieces-jour .tc-jauge i { background: var(--da-or); }
.tc-objcom-jauge > i { background: linear-gradient(90deg, var(--da-violet), var(--da-cyan)); }
.tc-objcom-jauge.fini > i { background: var(--da-or); }
.tc-objcom-jauge .palier { background: rgba(255, 255, 255, .3); }
.tc-objcom-jauge .palier.ok { background: var(--da-or); box-shadow: none; }
.tc-objcom-l { background: var(--da-surface-3); }
.tc-objcom-l.moi { background: rgba(245, 200, 76, .12); }
/* info inutile, en direct, journal */
.tc-info-inutile { gap: 14px; padding: 14px; border-radius: var(--da-rayon); background: var(--da-surface); border: 1px solid var(--da-ligne); box-shadow: var(--da-ombre); cursor: pointer; }
.tc-info-inutile:hover { transform: none; border-color: var(--da-ligne-forte); }
.tc-info-inutile img { width: 76px; height: 64px; max-height: none; object-fit: cover; transform: none; border-radius: 12px; box-shadow: none; }
.tc-info-inutile b { font: 800 12px var(--police); letter-spacing: .08em; color: var(--da-cyan); }
.tc-info-inutile p { font: 700 14px/1.4 var(--police); }
.tc-fil { max-height: 380px; gap: 6px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #4a2d80 transparent; }
.tc-fil-l { background: var(--da-surface-3); border-radius: 12px; border-left-width: 3px; padding: 8px 10px; }
.tc-fil .tc-fil-l > .tc-fil-ico, .tc-fil .tc-fil-l > .tc-qui { flex: none; }
.tc-fil .tc-fil-l > .tc-fil-tx { flex: 1 1 auto; }
.tc-fil-ico { width: 20px; font-size: 16px; }
.tc-fil-ev.cliquable:hover { background: var(--da-surface-2); }
.tc-fil-l.dore { background: linear-gradient(90deg, rgba(245, 200, 76, .16), var(--da-surface-3) 60%); }
.tc-journal { max-height: none; font-size: 13.5px; gap: 0; }
.tc-journal div { align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--da-ligne); }
.tc-journal div:last-of-type { border-bottom: 0; }
.tc-journal div b { color: var(--da-or); }
.tc-journal div small { white-space: nowrap; }
.tc-journal div.cache { display: none; }
.tc-journal.tout div.cache { display: flex; }
.tc-journal-tout { align-self: center; margin-top: 10px; }
@media (max-width: 1279px) {
  .tc-raccourci .chev { display: none; }
  .tc-raccourci small { white-space: normal; }
}
@media (max-width: 1099px) {
  .tc-accueil { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}

/* ---------- Dos des cartes : logo vertical, liseré or, fond violet profond à motif discret ---------- */
.tc-dos {
  background:
    radial-gradient(62% 40% at 50% 50%, rgba(113, 56, 200, .6), transparent 72%),
    repeating-linear-gradient(45deg, rgba(190, 160, 255, .07) 0 .12em, transparent .12em 1.1em),
    repeating-linear-gradient(-45deg, rgba(190, 160, 255, .07) 0 .12em, transparent .12em 1.1em),
    linear-gradient(165deg, #2c1a50 0%, #1b0f33 60%, #160d2b 100%);
  box-shadow: inset 0 0 0 .34em #f5c84c, inset 0 0 0 .52em #160d2b, 0 .5em 1.2em rgba(0, 0, 0, .45);
}
.tc-dos::before { inset: .95em; border-radius: .55em; background: none; border: .09em solid rgba(245, 200, 76, .4); }
.tc-dos span {
  position: relative; z-index: 1; width: 96%; aspect-ratio: 560 / 373; transform: none;
  background: url("/tcg/assets/logo-tcg-vertical.webp") center / contain no-repeat;
  font-size: 0; line-height: 0; color: transparent; text-shadow: none; overflow: hidden;
}

/* emplacements vides du classeur : mêmes teintes que l'interface (l'Absolue garde son emplacement spécial) */
.tc-carte.manque:not(.manque-absolue) .tc-recto { background: linear-gradient(145deg, #2a1a4a, #1c1035); box-shadow: inset 0 0 0 .12em rgba(190, 160, 255, .12), 0 .4em 1em rgba(0, 0, 0, .35); }
.tc-carte.manque:not(.manque-absolue) .tc-face { background: linear-gradient(180deg, #24163f, #1a0f31); box-shadow: inset 0 0 0 .1em rgba(190, 160, 255, .08); }
.tc-carte.manque:not(.manque-absolue) .numero { color: rgba(205, 188, 255, .3); }
.tc-poche { background: rgba(28, 16, 53, .6); box-shadow: inset 0 0 0 1px var(--da-ligne); }

@media (prefers-reduced-motion: reduce) {
  .tc-direct { animation: none; }
  #tc-logo img, .tc-btn, .tc-raccourci { transition: none; }
}

/* ===== Visuels finaux des boosters (assets/boosters/*.webp, 720 × 1260) : écran Boosters + prélude du Légendaire =====
   Le visuel contient déjà logo, saison, nom et « 5 cartes » : aucun texte par-dessus. Légère inclinaison 3D alternée
   (casse la ligne de regard), ombre portée pour la profondeur, redressement au survol. --pv = le visuel (masque du reflet). */
.tc-serie-choix.a-visuel { background: radial-gradient(75% 42% at 50% 26%, color-mix(in srgb, var(--sc) 26%, transparent), transparent 72%), var(--verre); }
.tc-paquet-visuel { --pry: 5deg; --prz: -1deg; --psx: 9px; position: relative; flex: none; width: min(74%, 230px); aspect-ratio: 720 / 1260; margin: 2px auto 4px;
  transform: perspective(900px) rotateY(var(--pry)) rotateX(2.5deg) rotate(var(--prz)); transform-origin: 50% 55%;
  filter: drop-shadow(var(--psx) 16px 13px rgba(5, 2, 15, .5)); transition: transform .4s cubic-bezier(.2, 1.25, .4, 1), filter .4s; }
.tc-series > .tc-serie-choix:nth-child(even) .tc-paquet-visuel { --pry: -5deg; --prz: 1deg; --psx: -9px; }
.tc-paquet-visuel img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.tc-paquet-visuel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .7) 48%, rgba(255, 240, 190, .35) 52%, transparent 62%) 150% 0 / 260% 100% no-repeat;
  -webkit-mask: var(--pv) 0 0 / 100% 100% no-repeat; mask: var(--pv) 0 0 / 100% 100% no-repeat; transition: background-position 1s ease, opacity .3s; }
.tc-serie-choix:hover .tc-paquet-visuel, .tc-serie-choix:focus-within .tc-paquet-visuel, .tc-boss-bloc:hover .tc-paquet-visuel.boss, .tc-boss-bloc:focus-within .tc-paquet-visuel.boss {
  transform: perspective(900px) translateY(-6px) rotateY(0deg) rotateX(0deg) rotate(0deg) scale(1.03);
  filter: drop-shadow(0 22px 18px rgba(5, 2, 15, .55)) drop-shadow(0 0 16px color-mix(in srgb, var(--sc, #f3cf6b) 45%, transparent)); }
.tc-serie-choix:hover .tc-paquet-visuel::after, .tc-boss-bloc:hover .tc-paquet-visuel.boss::after { opacity: 1; background-position: -110% 0; }
.tc-serie-secrete { font: 800 12px var(--police); color: var(--or-doux); margin: 0 0 4px !important; }
/* Booster Légendaire : visuel doré, lueur or ; en gris s'il n'y en a aucun à ouvrir */
.tc-paquet-visuel.boss { --pry: -6deg; --prz: 0deg; --psx: -9px; --sc: #f3cf6b; width: 168px; margin: 0;
  filter: drop-shadow(var(--psx) 16px 13px rgba(5, 2, 15, .55)) drop-shadow(0 0 18px rgba(243, 207, 107, .35)); }
.tc-boss-bloc.vide .tc-paquet-visuel.boss { filter: grayscale(.5) brightness(.75) drop-shadow(var(--psx) 14px 12px rgba(5, 2, 15, .5)); }
.tc-prelude-boss .tc-paquet-visuel { width: min(46vw, 230px); margin: 0; transform: none; filter: drop-shadow(0 0 30px rgba(243, 207, 107, .6)); animation: tc-prelude-trem 1.25s ease-in forwards; }
@media (max-width: 760px) { .tc-paquet-visuel.boss { width: 118px; } }
@media (max-width: 480px) {
  .tc-serie-choix > .tc-paquet-visuel { grid-row: 1 / span 3; width: 100%; margin: 0; }
  .tc-serie-choix.a-visuel { background: radial-gradient(40% 60% at 18% 30%, color-mix(in srgb, var(--sc) 24%, transparent), transparent 75%), var(--verre); }
}
@media (hover: none) { .tc-paquet-visuel::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tc-paquet-visuel { transition: none; }
  .tc-paquet-visuel::after { display: none; }
  .tc-prelude-boss .tc-paquet-visuel { animation: none; }
}

/* Éditeur de deck : glisser une carte pour changer l'ordre */
.tc-slots .tc-slot { transition: transform .15s ease, opacity .15s ease; }
.tc-slots .tc-slot.tc-slot-glisse { opacity: .35; }
.tc-slots .tc-slot.tc-slot-cible { transform: scale(1.03); outline: 2px dashed #F5C84C; outline-offset: 6px; border-radius: 14px; }
.tc-slot-fantome { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .6)); cursor: grabbing; }
.tc-slot-fantome .tc-dk-retirer, .tc-slot-fantome .tc-note { display: none; }
@media (hover: hover) { .tc-slots .tc-slot .tc-carte { cursor: grab; } }
