/* =========================================================
   v0.104 : RAID TACTIQUE — nouvelle vue (diorama, caméra, personnages façon Dofus) et interface au style des Marches du Velm.
   Tout est rangé sous .tcf.tq (l'écran de combat) pour passer devant les anciennes règles de codex.css et combat.css.
   ========================================================= */
.tcf.tq { --vg1: #c9a55a; --vg2: #e8c77a; --vg3: #5a4a2c; --vink: #efe6d2; --vmute: #a99f8a; --vgreen: #6fe0a8; --vred: #e0705a;
  --mine: #8cc4ff; --bot: #7fd6c2; --foe: #ff6a55; --selc: #e8c77a;
  font-family: 'IM Fell English', Georgia, serif; font-size: clamp(11px, .9vw, 15px); line-height: 1.3; color: var(--vink); background: #07090a; }
.tcf.tq .sc, .tcf.tq h4, .tcf.tq .tq-rd b, .tcf.tq .tq-bn b, .tcf.tq .tq-hn b, .tcf.tq .tq-ph b, .tcf.tq .tq-banner b { font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; }
.tcf.tq button { font-family: inherit; }
.tcf.tq .link-btn { color: #cbbfa6; font-style: italic; text-shadow: none; padding: 0; min-height: 0; background: none; border: 0; box-shadow: none; cursor: pointer; }
.tcf.tq .link-btn:hover { color: var(--vg2); }
.tcf.tq .link-btn.on { color: var(--vgreen); }
.tcf.tq .ok { color: var(--vgreen); } .tcf.tq .bad { color: #ff8a7a; }

/* ---------- scène : fond du diorama, brume, lueur de braise ---------- */
body.tc-full .tcf.tq .tcf-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none;
  background: radial-gradient(ellipse at 50% 115%, rgba(122, 42, 20, .5), transparent 55%), radial-gradient(ellipse 70% 62% at 45% 50%, #1b1724 0%, #0b0a11 68%, #050608 100%); }
.tcf.tq .tq-tint { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(ellipse 80% 75% at 45% 50%, transparent 58%, rgba(3, 6, 6, .55) 100%), linear-gradient(90deg, rgba(7, 9, 10, .5), transparent 10% 90%, rgba(7, 9, 10, .5)); }
.tcf.tq .tq-vtop { position: absolute; left: 0; right: 0; top: 0; height: 7.5em; z-index: 5; pointer-events: none; background: linear-gradient(180deg, rgba(11, 15, 14, .96), rgba(11, 15, 14, .72) 62%, transparent); }
.tcf.tq .tc-map { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .55s cubic-bezier(.2, .7, .2, 1); border: 0; background: none; overflow: visible; }
.tcf.tq .tc-svg, .tcf.tq .tc-ovl, .tcf.tq .tq-top, .tcf.tq .tq-pil { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tcf.tq .tc-ovl, .tcf.tq .tq-top, .tcf.tq .tq-pil, .tcf.tq .tq-lay, .tcf.tq .tq-side { pointer-events: none; }
.tcf.tq .tq-top { z-index: 3000; }
.tcf.tq .tc-fxl { z-index: 3100; }

/* ---------- sol : grille translucide sur les dalles ---------- */
body.tc-full .tcf.tq .tc-hex { fill: rgba(16, 14, 24, .22); stroke: rgba(236, 228, 206, .09); stroke-width: 1; fill-opacity: 1 !important; animation: none !important; transition: fill .12s; }
body.tc-full .tcf.tq .tc-hex:hover { stroke: rgba(232, 199, 122, .7); stroke-width: 1.6; }
body.tc-full .tcf.tq .tc-hex.height { fill: rgba(70, 64, 92, .75); stroke: rgba(236, 228, 206, .22); }
.tcf.tq .tq-side { fill: #2a2534; stroke: #0009; stroke-width: 1; }
body.tc-full .tcf.tq .tc-hex.pillar { fill: #0b0a12; stroke: #2a2534; cursor: default; }
body.tc-full .tcf.tq .tc-hex.altar { fill: rgba(92, 74, 40, .55); stroke: rgba(160, 130, 80, .5); }
body.tc-full .tcf.tq .tc-hex.shelter { stroke: rgba(232, 199, 122, .35); stroke-dasharray: 3 3; }
body.tc-full .tcf.tq .tc-hex.bones { fill: rgba(78, 66, 46, .45); }
body.tc-full .tcf.tq .tc-hex.portal { fill: rgba(80, 40, 130, .55); stroke: #b08aff; stroke-width: 2; }
body.tc-full .tcf.tq .tc-hex.gal { fill: rgba(42, 34, 54, .45); }
body.tc-full .tcf.tq .tc-hex.plate { fill: rgba(58, 90, 106, .55); stroke: #8fd8ff; stroke-width: 2.2; }
body.tc-full .tcf.tq .tc-hex.burn { fill: rgba(106, 42, 16, .6); stroke: #ff8a3a; }
body.tc-full .tcf.tq .tc-hex.fallen { fill: #050407; stroke: #14111a; cursor: default; }
.tcf.tq .tc-lbl { fill: #cdbb92; font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; font-size: 9px; letter-spacing: .06em; text-anchor: middle; pointer-events: none; }
.tcf.tq .tc-lbl.alt { fill: #cdbb92; font-size: 8.5px; }

/* calques de lecture (mêmes règles que la maquette « Lecture du sol ») */
.tcf.tq .tq-edge { fill: none; stroke-linecap: round; }
.tcf.tq .tq-edge.mv { stroke: #8cc4ff; stroke-width: 2.6; filter: drop-shadow(0 0 3px rgba(140, 196, 255, .7)); }
.tcf.tq .tq-mv { fill: #5aa0ff; stroke: #8cc4ff; stroke-opacity: .18; }
.tcf.tq .tq-mv2 { fill: #8cc4ff; fill-opacity: .12; }
.tcf.tq .tq-edge.mv2, .tcf.tq .tq-edge.rep { stroke: #cfe5ff; stroke-width: 1.8; stroke-dasharray: 5 4; animation: tqMar 1s linear infinite; }
.tcf.tq .tq-edge.tele { stroke: #ff6a55; stroke-width: 2.4; }
.tcf.tq .tq-edge.thr { stroke: #b98cff; stroke-width: 2.4; }
.tcf.tq .tq-rg { fill: #e8c77a; fill-opacity: .09; stroke: #e8c77a; stroke-opacity: .14; }
.tcf.tq .tq-edge.rg { stroke: #e8c77a; stroke-width: 2.2; stroke-opacity: .85; }
.tcf.tq .tq-pv { fill: #ffbe3c; animation: tqPul 1.1s ease-in-out infinite alternate; }
.tcf.tq .tq-edge.pv { stroke: #ffe08a; stroke-width: 2.6; filter: drop-shadow(0 0 3px rgba(255, 224, 138, .8)); }
.tcf.tq .tq-pvo { fill: #e8c77a; fill-opacity: .12; }
.tcf.tq .tq-edge.pvo { stroke: #c99a3a; stroke-width: 1.8; stroke-dasharray: 5 3; }
.tcf.tq .tq-start { fill: #efe6d2; fill-opacity: .1; }
.tcf.tq .tq-edge.start { stroke: #efe6d2; stroke-width: 2; stroke-dasharray: 6 4; }
.tcf.tq .tq-rip { animation: tqRip .42s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes tqRip { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes tqPul { from { fill-opacity: .38; } to { fill-opacity: .7; } }
@keyframes tqMar { to { stroke-dashoffset: -14; } }
.tcf.tq .tq-tl rect { fill: #2a0e0c; stroke: #ff6a55; } .tcf.tq .tq-tl text { fill: #ffd2c8; font: 600 9.5px 'IM Fell English SC', Georgia, serif; text-anchor: middle; }
.tcf.tq .tq-tl.heal rect { stroke: #6fe0a8; fill: #0c2a1e; } .tcf.tq .tq-tl.heal text { fill: #bff5da; }
/* survol : trajet, coût, menaces */
.tcf.tq .tq-path0 { fill: none; stroke: #000; stroke-opacity: .5; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.tcf.tq .tq-path { fill: none; stroke: #e8c77a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tcf.tq .tq-dest { fill: #e8c77a; fill-opacity: .18; stroke: #e8c77a; stroke-width: 2.2; }
.tcf.tq .tq-thl { stroke: #c9a4ff; stroke-width: 1.8; stroke-dasharray: 3 3; animation: tqMar 1s linear infinite; }
.tcf.tq .tq-badge rect { fill: #1a1508; stroke: #e8c77a; } .tcf.tq .tq-badge text { fill: #f4e2b0; font: 700 11px Georgia, serif; text-anchor: middle; }
.tcf.tq .tq-badge.thr rect { fill: #1e1430; stroke: #b98cff; } .tcf.tq .tq-badge.thr text, .tcf.tq .tq-badge.tele text { fill: #e2d2ff; font-size: 9.5px; font-weight: 600; text-anchor: start; }
.tcf.tq .tq-badge.tele rect { fill: #2a0e0c; stroke: #ff6a55; } .tcf.tq .tq-badge.tele text { fill: #ffd2c8; }
/* trajets prévus des autres héros, portée du sort survolé dans la barre */
.tcf.tq .tc-ghost { fill: none; stroke: rgba(232, 199, 122, .6); stroke-width: 1.6; stroke-dasharray: 4 3; }
.tcf.tq .tc-path { stroke: rgba(232, 199, 122, .55); stroke-width: 2.4; } .tcf.tq .tc-path.sel { stroke: #e8c77a; }
.tcf.tq .tc-dest { fill: #7fd6c2; stroke: #0b0f0e; }
.tcf.tq .tc-rng { fill: #e8c77a; fill-opacity: .12; stroke: #e8c77a; stroke-opacity: .45; stroke-width: 1.2; }
.tcf.tq .tc-rng.aa, .tcf.tq .tc-rng.ae { fill-opacity: .3; } .tcf.tq .tc-rng.tg { fill: none; stroke: #ffe08a; stroke-opacity: 1; stroke-width: 2.6; } .tcf.tq .tc-rng.me { fill: none; stroke: none; }

/* ---------- personnages : modèle debout + cercle de camp (façon Dofus) ---------- */
.tcf.tq .tc-tok { --c: var(--mine); transform: translate(-50%, -100%); transition: left .32s ease, top .32s ease; display: flex; flex-direction: column; align-items: center; }
.tcf.tq .tc-tok.c-bot { --c: var(--bot); } .tcf.tq .tc-tok.c-foe { --c: var(--foe); } .tcf.tq .tc-tok.sel, .tcf.tq .tc-tok.acting { --c: var(--selc); }
.tcf.tq .tc-spr { position: relative; transform: none !important; width: calc(46px * var(--k, 1)); height: calc(46px * var(--k, 1)); display: flex; align-items: flex-end; justify-content: center; filter: drop-shadow(0 calc(2px * var(--k, 1)) calc(2px * var(--k, 1)) rgba(0, 0, 0, .6)) !important; animation: none !important; }
.tcf.tq .tc-spr::after { content: none; }
.tcf.tq .tc-spr img, .tcf.tq .tc-spr .px { width: 100% !important; height: auto; max-width: none !important; image-rendering: pixelated; }
.tcf.tq .tc-tok:not(.enemy) .tc-spr { transform: scaleX(-1) !important; }
.tcf.tq .tc-tok.big .tc-spr { width: calc(86px * var(--k, 1)); height: calc(86px * var(--k, 1)); }
.tcf.tq .tc-tok.mid .tc-spr { width: calc(62px * var(--k, 1)); height: calc(62px * var(--k, 1)); }
.tcf.tq .tq-ring { position: absolute; left: 50%; bottom: 0; width: calc(32px * var(--k, 1)); height: calc(14px * var(--k, 1)); transform: translate(-50%, 50%); border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: 0 0 0 calc(1.5px * var(--k, 1)) var(--c); z-index: -1; }
.tcf.tq .tc-tok.big .tq-ring { width: calc(76px * var(--k, 1)); height: calc(32px * var(--k, 1)); }
.tcf.tq .tc-tok.mid .tq-ring { width: calc(46px * var(--k, 1)); height: calc(20px * var(--k, 1)); }
.tcf.tq .tc-tok.sel .tq-ring, .tcf.tq .tc-tok.acting .tq-ring { background: radial-gradient(closest-side, rgba(232, 199, 122, .55), rgba(232, 199, 122, .12)); box-shadow: 0 0 0 calc(2.2px * var(--k, 1)) var(--selc), 0 0 calc(10px * var(--k, 1)) rgba(232, 199, 122, .6); }
.tcf.tq .tc-tok.sel::before, .tcf.tq .tc-tok.acting::before { content: ""; position: absolute; left: 50%; bottom: 0; width: calc(22px * var(--k, 1)); height: calc(56px * var(--k, 1)); transform: translateX(-50%); border: 0; border-radius: 0; animation: none;
  background: linear-gradient(0deg, rgba(232, 199, 122, .32), transparent); box-shadow: none; z-index: -1; }
.tcf.tq .tc-tok.sel:not(.acting)::after { content: "▼"; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); color: var(--selc); font-size: calc(11px * var(--k, 1)); margin-bottom: calc(1px * var(--k, 1)); text-shadow: 0 0 4px #000; animation: none; width: auto; height: auto; background: none; }
.tcf.tq .tc-tok.can .tq-ring { outline: calc(1.4px * var(--k, 1)) dashed var(--selc); outline-offset: calc(3px * var(--k, 1)); }
.tcf.tq .tc-tok.ko { opacity: .4; filter: grayscale(1); }
.tcf.tq .tq-rk { position: absolute; left: 50%; bottom: 0; transform: translate(calc(-50% - 17px * var(--k, 1)), 45%); min-width: calc(12px * var(--k, 1)); height: calc(12px * var(--k, 1)); padding: 0 calc(2px * var(--k, 1)); border-radius: calc(7px * var(--k, 1)); display: grid; place-items: center;
  font: 400 calc(8.5px * var(--k, 1)) 'IM Fell English SC', Georgia, serif; font-style: normal; color: var(--c); background: #0d0b12; box-shadow: 0 0 0 calc(1px * var(--k, 1)) var(--c); }
.tcf.tq .tc-tok.big .tq-rk { transform: translate(calc(-50% - 38px * var(--k, 1)), 30%); }
.tcf.tq .tq-up { order: -1; display: grid; gap: 1px; justify-items: center; margin-bottom: calc(2px * var(--k, 1)); }
.tcf.tq .tc-hp, .tcf.tq .tc-mp { display: block; width: calc(30px * var(--k, 1)) !important; height: calc(3.4px * var(--k, 1)) !important; border-radius: 0; background: #000c; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); overflow: hidden; margin: 0; }
.tcf.tq .tc-mp { height: calc(2px * var(--k, 1)) !important; } .tcf.tq .tc-mp i { display: block; height: 100%; background: #5aa0ff; }
.tcf.tq .tc-tok.big .tc-hp { width: calc(64px * var(--k, 1)) !important; height: calc(4.4px * var(--k, 1)) !important; }
.tcf.tq .tc-hp i { background: #7fcf8a; } .tcf.tq .tc-tok.enemy .tc-hp i { background: #e0685f; }
.tcf.tq .tc-lb, .tcf.tq .tc-num { display: none; }
.tcf.tq .tc-tok .tc-fx { left: 50%; margin-left: calc(14px * var(--k, 1)); top: calc(10px * var(--k, 1)); }
.tcf.tq .tc-chan { font-size: calc(7.5px * var(--k, 1)); white-space: nowrap; }
.tcf.tq .tc-plab { font: 400 calc(8px * var(--k, 1)) 'IM Fell English SC', Georgia, serif; color: #cdbb92; white-space: nowrap; margin-top: calc(6px * var(--k, 1)); }
.tcf.tq .tc-tok.portal { transform: translate(-50%, -50%); }
.tcf.tq .tc-tok.tgt::after { bottom: calc(100% + 4px * var(--k, 1)); }
/* silhouette derrière un pilier : le sprite en couleur de camp, par-dessus le décor */
.tcf.tq .tq-ghost { position: absolute; z-index: 2900; pointer-events: none; width: calc(46px * var(--k, 1)); height: calc(46px * var(--k, 1)); transform: translate(-50%, -100%) scaleX(-1); opacity: .55; background: var(--mine);
  -webkit-mask: var(--m) center bottom / 100% auto no-repeat; mask: var(--m) center bottom / 100% auto no-repeat; image-rendering: pixelated; }
.tcf.tq .tq-ghost.c-bot { background: var(--bot); } .tcf.tq .tq-ghost.c-foe, .tcf.tq .tq-ghost.enemy { background: var(--foe); transform: translate(-50%, -100%); } .tcf.tq .tq-ghost.sel { background: var(--selc); }
.tcf.tq .tq-ghost.big { width: calc(86px * var(--k, 1)); height: calc(86px * var(--k, 1)); }
.tcf.tq .tcf-fc { transform: translate(-50%, calc(-100% - 40px)) scale(var(--iz, 1)); transform-origin: 50% 100%; z-index: 3050; }

/* ---------- panneaux : filet doré, losanges (comme .vm-pa) ---------- */
.tcf.tq .tq-pa { position: absolute; z-index: 30; border-radius: 2px; color: var(--vink);
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 165, 90, .10), transparent 60%), linear-gradient(180deg, rgba(18, 23, 22, .95), rgba(10, 13, 13, .96));
  box-shadow: 0 0 0 1px var(--vg1), 0 0 0 .26em #0b0f0e, 0 0 0 .32em var(--vg3), 0 .8em 2em rgba(0, 0, 0, .7); }
.tcf.tq .tq-pa::before, .tcf.tq .tq-pa::after { content: ""; position: absolute; left: calc(50% - .34em); top: -.4em; width: .68em; height: .68em; transform: rotate(45deg); background: var(--vg1); box-shadow: 0 0 0 .13em #0b0f0e; z-index: 2; pointer-events: none; }
.tcf.tq .tq-pa::after { top: auto; bottom: -.4em; }
.tcf.tq .tq-ph, .tcf.tq .tq-team h4 { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding-bottom: .5em; margin: 0 0 .3em;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 90, .55) 20%, rgba(201, 165, 90, .55) 80%, transparent) 0 100% / 100% 1px no-repeat, radial-gradient(circle, var(--vg1) .11em, transparent .16em) 50% 100% / .64em .64em no-repeat; }
.tcf.tq .tq-ph b { color: var(--vg2); font-size: 1.15em; }
.tcf.tq .tq-ph span, .tcf.tq .tq-pings, .tcf.tq .tq-row2 { display: flex; gap: .3em; flex-wrap: wrap; }
.tcf.tq .tq-ph button, .tcf.tq .tq-pings button, .tcf.tq .tq-row2 button, .tcf.tq .tq-cam button, .tcf.tq .tq-speed button, .tcf.tq .tq-step {
  font: 400 .88em 'IM Fell English SC', Georgia, serif; color: #cbbfa6; background: rgba(11, 15, 14, .88); border: 0; border-radius: 0; box-shadow: inset 0 0 0 1px #3a3020; padding: .3em .6em; cursor: pointer; min-height: 0; clip-path: none; text-shadow: none; }
.tcf.tq .tq-ph button.on, .tcf.tq .tq-cam button.on, .tcf.tq .tq-speed button.on, .tcf.tq .tq-step.on { color: #f4e2b0; background: radial-gradient(ellipse, rgba(111, 224, 168, .22), transparent 75%), #0f1512; box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .45), inset 0 0 .9em rgba(111, 224, 168, .3); }
.tcf.tq .tq-ph button:hover, .tcf.tq .tq-pings button:hover, .tcf.tq .tq-row2 button:hover, .tcf.tq .tq-cam button:hover, .tcf.tq .tq-speed button:hover, .tcf.tq .tq-step:hover:not(:disabled) { filter: brightness(1.25); }
.tcf.tq .tq-step:disabled { opacity: .45; cursor: default; } .tcf.tq .tq-step.ok { color: var(--vgreen); }

/* ---------- frise des actions (haut gauche) ---------- */
.tcf.tq .tq-fz { position: absolute; left: 1em; top: .5em; z-index: 30; display: flex; align-items: flex-start; gap: .22em; padding-top: 1.7em; max-width: calc(100% - min(25%, 400px) - 3em); }
.tcf.tq .tq-rd { display: grid; padding: .3em .7em 0 0; white-space: nowrap; }
.tcf.tq .tq-rd b { font-size: 1.6em; color: #f4e2b0; line-height: 1; } .tcf.tq .tq-rd b::first-letter { font-family: 'UnifrakturCook', serif; color: var(--vg2); font-size: 1.2em; }
.tcf.tq .tq-rd small { font: 400 .7em 'IM Fell English SC', Georgia, serif; color: var(--vmute); letter-spacing: .1em; text-transform: uppercase; }
.tcf.tq .tq-fs { --c: var(--mine); position: relative; width: 3.8em; display: grid; justify-items: center; gap: .16em; padding: 0; background: none; border: 0; box-shadow: none; cursor: pointer; color: inherit; min-height: 0; clip-path: none; transition: width .25s, opacity .25s; }
.tcf.tq .tq-fs.c-bot { --c: var(--bot); } .tcf.tq .tq-fs.c-foe { --c: #8a3a2a; }
.tcf.tq .tq-rg { width: 2.8em; height: 2.8em; border-radius: 50%; overflow: hidden; position: relative; background: radial-gradient(circle, #1e2624, #07090a 75%); box-shadow: 0 0 0 .1em var(--c), 0 0 0 .26em #0b0f0e, 0 0 0 .33em var(--vg3); transition: width .25s, height .25s; }
.tcf.tq .tq-fs.fo .tq-rg { border-radius: .6em; background: radial-gradient(circle, #2a1a14, #07090a 75%); }
.tcf.tq .tq-fs.bg .tq-rg { width: 3.3em; height: 3.3em; box-shadow: 0 0 0 .1em var(--vred), 0 0 0 .26em #0b0f0e, 0 0 0 .33em var(--vg1), 0 0 1em rgba(224, 112, 90, .35); }
.tcf.tq .tq-rg .se-face { position: absolute; inset: 0; display: block; width: auto; height: auto; overflow: hidden; }
.tcf.tq .tq-rg .se-face img, .tcf.tq .tq-mp .se-face img, .tcf.tq .tq-rl .p .se-face img, .tcf.tq .tq-ns .se-face img { position: absolute; width: 175%; height: auto; max-width: none; left: -37%; top: -38%; image-rendering: pixelated; }
.tcf.tq .tq-fs.al .tq-rg .se-face, .tcf.tq .tq-mp .se-face, .tcf.tq .tq-rl:not(.fo) .p .se-face, .tcf.tq .tq-ns:not(.fo) .se-face { transform: scaleX(-1); }
.tcf.tq .tq-fs.sel .tq-rg, .tcf.tq .tq-fs.cu .tq-rg { box-shadow: 0 0 0 .12em var(--vg2), 0 0 0 .28em #0b0f0e, 0 0 0 .36em var(--vg1), 0 0 1.1em rgba(232, 199, 122, .5); }
.tcf.tq .tq-nu { position: absolute; top: 1.95em; left: .05em; min-width: 1.5em; height: 1.5em; display: grid; place-items: center; font: 400 .72em 'IM Fell English SC', Georgia, serif; font-style: normal; color: var(--c); background: #0b0f0e; border-radius: 1em; box-shadow: 0 0 0 1px var(--c); }
.tcf.tq .tq-fs.c-foe .tq-nu { color: var(--foe); box-shadow: 0 0 0 1px var(--foe); }
.tcf.tq .tq-fs.bg .tq-nu { top: 2.35em; }
.tcf.tq .tq-hpb { width: 2.5em; height: .28em; background: #07090a; box-shadow: inset 0 0 0 1px #3a3020; } .tcf.tq .tq-hpb i { display: block; height: 100%; background: #7fcf8a; } .tcf.tq .tq-fs.fo .tq-hpb i { background: #e0685f; }
.tcf.tq .tq-ch { font: 400 .62em 'IM Fell English SC', Georgia, serif; font-style: normal; padding: .05em .55em; border-radius: .7em; white-space: nowrap; max-width: 6.4em; overflow: hidden; text-overflow: ellipsis; }
.tcf.tq .tq-ch.ok { color: #9af0c8; background: rgba(63, 138, 98, .12); box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .45); }
.tcf.tq .tq-ch.todo { color: #12100a; background: linear-gradient(180deg, #f0d9a0, var(--vg1)); box-shadow: 0 0 .5em rgba(232, 199, 122, .4); }
.tcf.tq .tq-ch.bot { color: #cbbfa6; background: rgba(11, 15, 14, .88); box-shadow: inset 0 0 0 1px #3a3020; }
.tcf.tq .tq-ch.tele { color: #f0b49a; background: rgba(224, 112, 90, .12); box-shadow: inset 0 0 0 1px rgba(224, 112, 90, .5); }
.tcf.tq .tq-ch.res { color: #f4e2b0; background: rgba(11, 15, 14, .9); box-shadow: inset 0 0 0 1px var(--vg1); }
.tcf.tq .tq-bd { position: absolute; top: -.25em; right: .25em; width: 1.4em; height: 1.4em; border-radius: 50%; display: grid; place-items: center; font-size: .7em; font-style: normal; color: var(--b); background: #0b0f0e; box-shadow: 0 0 0 1px var(--b); }
.tcf.tq .tq-fs.sk .tq-rg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 46%, #ff6a55 46% 54%, transparent 54%); }
.tcf.tq .tq-fs.sk .tq-rg .se-face { opacity: .4; }
.tcf.tq .tq-fs.dn { width: 2.5em; opacity: .5; } .tcf.tq .tq-fs.dn .tq-rg { width: 1.9em; height: 1.9em; } .tcf.tq .tq-fs.dn .tq-nu { top: 1.15em; left: -.35em; } .tcf.tq .tq-fs.dn .tq-hpb { width: 1.7em; }
.tcf.tq .tq-fs.cu { width: 5.4em; } .tcf.tq .tq-fs.cu .tq-rg { width: 3.7em; height: 3.7em; } .tcf.tq .tq-fs.cu .tq-nu { top: 2.7em; } .tcf.tq .tq-fs.cu .tq-ch { max-width: 6.8em; }
.tcf.tq .tq-hd { position: absolute; top: -1.35em; left: 50%; transform: translateX(-50%); color: var(--vg2); font-style: normal; }
.tcf.tq .tq-more { align-self: center; font: 400 .8em 'IM Fell English SC', Georgia, serif; color: var(--vmute); box-shadow: inset 0 0 0 1px #3a3020; padding: .2em .6em; cursor: pointer; }
.tcf.tq .tq-nx { display: grid; gap: .25em; padding: .25em 0 0 .55em; margin-left: .25em; border-left: 1px dashed var(--vg3); }
.tcf.tq .tq-nx b { font: 400 .95em 'IM Fell English SC', Georgia, serif; color: var(--vmute); white-space: nowrap; }
.tcf.tq .tq-nx span { display: flex; gap: .2em; }
.tcf.tq .tq-ns { --c: var(--mine); position: relative; width: 1.8em; height: 1.8em; border-radius: 50%; overflow: hidden; background: #07090a; box-shadow: 0 0 0 1px var(--c); opacity: .65; }
.tcf.tq .tq-ns.c-bot { --c: var(--bot); } .tcf.tq .tq-ns.c-foe { --c: #8a3a2a; border-radius: .4em; }
.tcf.tq .tq-ns .se-face { position: absolute; inset: 0; display: block; overflow: hidden; }
.tcf.tq .tq-ns b { position: absolute; top: -.1em; right: -.05em; z-index: 1; font-size: .7em; } .tcf.tq .tq-ns b.up { color: var(--vgreen); } .tcf.tq .tq-ns b.dn { color: var(--foe); }
.tcf.tq .tq-arc { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.tcf.tq .tq-arcp { fill: none; stroke: #ffd166; stroke-width: 1.6; stroke-dasharray: 4 3; }
.tcf.tq .tq-arcb { fill: #2a2208; stroke: #ffd166; } .tcf.tq .tq-arct { fill: #ffe9a8; font: 400 10px 'IM Fell English SC', Georgia, serif; text-anchor: middle; }

/* ---------- carte du boss (haut droite) ---------- */
.tcf.tq .tq-boss { right: 1.2em; top: .9em; width: min(25%, 400px); padding: .6em .8em .7em; display: grid; gap: .35em; }
.tcf.tq .tq-bn { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; }
.tcf.tq .tq-bn b { color: #f4e2b0; font-size: 1.25em; } .tcf.tq .tq-bn b::first-letter { font-family: 'UnifrakturCook', serif; color: var(--vg2); font-size: 1.25em; }
.tcf.tq .tq-bn small, .tcf.tq .tq-alt small { font-style: italic; color: var(--vmute); white-space: nowrap; }
.tcf.tq .tq-bar { display: block; position: relative; height: .5em; background: #07090a; box-shadow: inset 0 0 0 1px #3a3020; overflow: hidden; }
.tcf.tq .tq-bar i { position: absolute; left: 1px; top: 1px; bottom: 1px; max-width: calc(100% - 2px); }
.tcf.tq .tq-bar.red i { background: linear-gradient(90deg, #a8321f, #ff6a55); } .tcf.tq .tq-bar.gold i { background: linear-gradient(90deg, #a8843f, #e8c77a); }
.tcf.tq .tq-bar.hp i { background: linear-gradient(90deg, #3f8a52, #7fcf8a); } .tcf.tq .tq-bar.mp i { background: linear-gradient(90deg, #2f5aa0, #5aa0ff); }
.tcf.tq .tq-bar.thin { height: .38em; } .tcf.tq .tq-bar.thin i { background: var(--rc, #e8c77a); }
.tcf.tq .tq-pills { display: flex; flex-wrap: wrap; gap: .25em; }
.tcf.tq .tq-pill { font-size: .78em; padding: .1em .5em; color: #cbbfa6; background: rgba(11, 15, 14, .88); box-shadow: inset 0 0 0 1px #3a3020; white-space: nowrap; }
.tcf.tq .tq-pill.warn { color: #f0b49a; background: rgba(224, 112, 90, .1); box-shadow: inset 0 0 0 1px rgba(224, 112, 90, .5); }
.tcf.tq .tq-pill.ok { color: var(--vgreen); box-shadow: inset 0 0 0 1px rgba(111, 224, 168, .45); }
.tcf.tq .tq-alt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5em; align-items: center; font-size: .9em; }

/* ---------- colonne de droite : équipe, mini-carte, journal ---------- */
.tcf.tq .tq-right { position: absolute; right: 1.2em; top: 10.4em; bottom: 12.6em; width: min(16%, 250px); z-index: 30; display: flex; flex-direction: column; gap: .9em; }
.tcf.tq .tq-right > .tq-pa { position: relative; }
.tcf.tq .tq-team { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: .55em .5em; display: grid; gap: .18em; align-content: start; }
.tcf.tq .tq-team h4 { margin-top: .2em; font-size: .78em; letter-spacing: .1em; text-transform: uppercase; color: var(--vmute); }
.tcf.tq .tq-mate { --c: var(--mine); display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: .45em; align-items: center; padding: .25em .35em; background: none; border: 0; border-radius: 0; box-shadow: none; color: inherit; text-align: left; cursor: pointer; min-height: 0; clip-path: none; }
.tcf.tq .tq-mate.c-bot { --c: var(--bot); }
.tcf.tq .tq-mate.on, .tcf.tq .tq-mate.acting { background: radial-gradient(ellipse, rgba(232, 199, 122, .12), transparent 75%); box-shadow: inset 0 0 0 1px var(--vg1); }
.tcf.tq .tq-mate.far { opacity: .45; } .tcf.tq .tq-mate.ko { opacity: .4; filter: grayscale(1); }
.tcf.tq .tq-mp { position: relative; width: 2em; height: 2em; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #1e2624, #07090a 75%); box-shadow: 0 0 0 .09em var(--c), 0 0 0 .2em #0b0f0e; }
.tcf.tq .tq-mp .se-face { position: absolute; inset: 0; display: block; overflow: hidden; }
.tcf.tq .tq-mn { display: grid; gap: .15em; min-width: 0; }
.tcf.tq .tq-mnh { display: flex; justify-content: space-between; gap: .3em; font-size: .9em; } .tcf.tq .tq-mnh b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tcf.tq .tq-mnh small { font-style: italic; color: var(--vmute); white-space: nowrap; }
.tcf.tq .tq-mnh small.st-ok { color: var(--vgreen); } .tcf.tq .tq-mnh small.st-cur { color: var(--vg2); } .tcf.tq .tq-mnh small.st-bad { color: #ff8a7a; }
.tcf.tq .tq-mate .bar { display: block; position: relative; height: .36em; border-radius: 0; background: #07090a; box-shadow: inset 0 0 0 1px #3a3020; overflow: hidden; }
.tcf.tq .tq-mate .bar .fill { position: absolute; left: 1px; top: 1px; bottom: 1px; border-radius: 0; } .tcf.tq .tq-mate .bar .fill.hp { background: #7fcf8a; } .tcf.tq .tq-mate .bar .fill.hp.low { background: #e0685f; } .tcf.tq .tq-mate .bar .fill.shield { background: #cfe5ff99; }
.tcf.tq .tq-mate .hpT { display: none; }
.tcf.tq .tq-far { font-style: italic; color: var(--vmute); font-size: .78em; }
.tcf.tq .tq-mini { flex: none; padding: .35em; cursor: pointer; } .tcf.tq .tq-mini svg { display: block; width: 100%; height: auto; }
.tcf.tq .tq-jl { flex: none; display: grid; gap: .2em; padding: .45em .6em; text-align: left; border: 0; color: inherit; cursor: pointer; font-size: .85em; min-height: 0; clip-path: none; }
.tcf.tq .tq-jl b { font: 400 .9em 'IM Fell English SC', Georgia, serif; letter-spacing: .1em; text-transform: uppercase; color: var(--vmute); }
.tcf.tq .tq-jl span { color: #d8cdb4; }
.tcf.tq .lg-foe, .tcf.tq .lg-bad, .tcf.tq .lg-warn { color: #f0b49a; } .tcf.tq .lg-ok { color: var(--vgreen); }

/* ---------- outils à gauche et panneaux à la demande ---------- */
.tcf.tq .tq-tools { position: absolute; left: 1em; top: 7.6em; z-index: 31; display: grid; gap: .4em; justify-items: start; }
.tcf.tq .tq-tool { display: flex; align-items: center; gap: .5em; padding: .1em .3em .1em .1em; background: none; border: 0; box-shadow: none; color: #cbbfa6; font: 400 .92em 'IM Fell English SC', Georgia, serif; cursor: pointer; white-space: nowrap; min-height: 0; clip-path: none; text-shadow: 0 1px 2px #000; }
.tcf.tq .tq-tool i { font-style: normal; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; color: var(--vg2); background: #07090a; box-shadow: 0 0 0 .1em var(--vg1), 0 0 0 .26em #0b0f0e, 0 0 0 .32em var(--vg3); }
.tcf.tq .tq-tool.on { color: #f4e2b0; } .tcf.tq .tq-tool.on i { color: var(--vgreen); box-shadow: 0 0 0 .1em var(--vgreen), 0 0 0 .26em #0b0f0e, 0 0 0 .32em #2f6a55, 0 0 .8em rgba(111, 224, 168, .4); }
.tcf.tq .tq-tool small { color: var(--vg2); font-family: 'IM Fell English', Georgia, serif; font-style: italic; }
.tcf.tq .tq-tool kbd { font: .78em Georgia, serif; color: #8a7a5a; box-shadow: inset 0 0 0 1px #3a3020; padding: 0 .3em; background: none; border: 0; }
.tcf.tq .tq-dock { position: absolute; left: 12em; top: 7.6em; z-index: 31; width: min(23%, 340px); max-height: calc(100% - 7.6em - 13.5em); overflow-y: auto; scrollbar-width: thin; display: grid; gap: 1.1em; padding: .45em .45em .5em; }
.tcf.tq .tq-dock .tq-pa { position: relative; padding: .55em .65em .65em; font-size: .9em; }
.tcf.tq .tq-mrow { position: relative; display: flex; justify-content: space-between; gap: .4em; padding: .22em .45em; margin-top: .2em; overflow: hidden; background: rgba(11, 15, 14, .82); box-shadow: inset 0 0 0 1px rgba(201, 165, 90, .14); }
.tcf.tq .tq-mrow .f { position: absolute; inset: 0 auto 0 0; opacity: .4; }
.tcf.tq .tq-mrow span { position: relative; display: flex; align-items: center; gap: .35em; white-space: nowrap; } .tcf.tq .tq-mrow small { color: var(--vmute); font-style: italic; }
.tcf.tq .tq-mrow .dot { width: .6em; height: .6em; border-radius: 50%; }
.tcf.tq .tq-mtot { display: block; margin-top: .4em; color: var(--vmute); font-style: italic; }
.tcf.tq .tq-wrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2em .5em; padding: .3em .45em; margin-top: .25em; background: rgba(11, 15, 14, .82); box-shadow: inset 0 0 0 1px rgba(201, 165, 90, .14); }
.tcf.tq .tq-wrow b { font-weight: 400; color: #f4e2b0; } .tcf.tq .tq-tags { grid-column: 1 / -1; display: flex; gap: .25em; flex-wrap: wrap; }
.tcf.tq .tq-chat .tcf-clog { max-height: 12em; overflow-y: auto; font-size: .95em; display: grid; gap: .15em; background: none; }
.tcf.tq .tq-chat .tcf-say input { width: 100%; margin-top: .4em; font: inherit; color: var(--vink); background: #07090a; border: 0; box-shadow: inset 0 0 0 1px #3a3020; padding: .35em .5em; }
.tcf.tq .tq-pings { margin-top: .4em; }
.tcf.tq .tq-lg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3em .6em; }
.tcf.tq .tq-lg span { display: flex; gap: .4em; align-items: center; font-size: .92em; }
.tcf.tq .tq-lg i { flex: none; width: 1.15em; height: 1.05em; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.tcf.tq .lg-mv { background: #5aa0ffaa; } .tcf.tq .lg-mvt { background: repeating-linear-gradient(45deg, #b98cff 0 2px, #5aa0ff66 2px 5px); } .tcf.tq .lg-rg { background: #e8c77a55; } .tcf.tq .lg-pv { background: #ffbe3c; }
.tcf.tq .lg-tele { background: repeating-linear-gradient(45deg, #ff6a55 0 3px, #ff4a3a55 3px 7px); } .tcf.tq .lg-thr { background: repeating-linear-gradient(45deg, #c9a4ff 0 2px, #b98cff22 2px 5px); }
.tcf.tq .lg-nolos { background: repeating-linear-gradient(-45deg, #8a8494 0 1px, #00000066 1px 4px); } .tcf.tq .lg-start { background: #efe6d244; box-shadow: inset 0 0 0 1px #efe6d2; }
.tcf.tq .lg-height { background: #46405c; } .tcf.tq .lg-shelter { background: #5c4a28; } .tcf.tq .lg-bones { background: #4e422e; }
.tcf.tq .lg-plate { background: #3a5a6a; } .tcf.tq .lg-burn { background: #6a2a10; } .tcf.tq .lg-fallen { background: #050407; box-shadow: inset 0 0 0 1px #3a3448; }
.tcf.tq .tq-rl { --c: var(--mine); display: grid; grid-template-columns: 1.6em 1.9em minmax(0, 1fr); gap: .45em; align-items: center; padding: .2em .35em; margin-top: .18em; background: rgba(11, 15, 14, .82); box-shadow: inset 0 0 0 1px rgba(201, 165, 90, .12); }
.tcf.tq .tq-rl.c-bot { --c: var(--bot); } .tcf.tq .tq-rl.c-foe { --c: var(--foe); background: rgba(224, 112, 90, .06); }
.tcf.tq .tq-rl .n { font: 400 .9em 'IM Fell English SC', Georgia, serif; font-style: normal; color: var(--c); text-align: center; }
.tcf.tq .tq-rl .p { position: relative; width: 1.8em; height: 1.8em; border-radius: 50%; overflow: hidden; background: #07090a; box-shadow: 0 0 0 1px var(--c); } .tcf.tq .tq-rl.fo .p { border-radius: .4em; }
.tcf.tq .tq-rl .p .se-face { position: absolute; inset: 0; display: block; overflow: hidden; }
.tcf.tq .tq-rl .t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tcf.tq .tq-rl .t b { font-weight: 400; color: #f4e2b0; } .tcf.tq .tq-rl .t span { color: #cbbfa6; font-style: italic; }
.tcf.tq .tq-rl .t .red { color: #f0b49a; } .tcf.tq .tq-rl .t .int { color: #ffd166; } .tcf.tq .tq-rl .t .todo { color: var(--vg2); }
.tcf.tq .tq-rl.cu, .tcf.tq .tq-rl.sel { box-shadow: inset 0 0 0 1px var(--vg2), 0 0 .6em rgba(232, 199, 122, .3); } .tcf.tq .tq-rl.dn { opacity: .45; }

/* ---------- caméra ---------- */
.tcf.tq .tq-bl { position: absolute; left: 1em; bottom: 1em; width: min(25%, 390px); z-index: 30; display: grid; gap: .8em; }
.tcf.tq .tq-cam { display: flex; gap: .3em; flex-wrap: wrap; }
.tcf.tq .tq-arw { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.tcf.tq .tq-ar { position: absolute; transform: translate(-50%, -50%); width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; pointer-events: auto; cursor: pointer; padding: 0; min-height: 0; clip-path: none;
  color: #ff6a55; background: #2a0e0c; border: 0; box-shadow: 0 0 0 1px #ff6a55, 0 0 .8em rgba(255, 106, 85, .4); }
.tcf.tq .tq-ar i { font-style: normal; font-size: 1.05em; line-height: 1; } .tcf.tq .tq-ar small { position: absolute; top: 100%; margin-top: .2em; color: #ffd2c8; font-size: .8em; text-shadow: 0 1px 2px #000; }

/* ---------- fiche du héros (bas gauche) ---------- */
.tcf.tq .tq-hero { position: relative; width: 100%; padding: .65em .75em .6em; display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: .35em .7em; align-items: center; }
.tcf.tq .tq-hero.empty { display: block; }
.tcf.tq .tq-face { grid-row: span 2; position: relative; width: 4em; height: 4em; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #1e2624, #07090a 75%); box-shadow: 0 0 0 .1em var(--vg2), 0 0 0 .28em #0b0f0e, 0 0 0 .36em var(--vg1), 0 0 1em rgba(232, 199, 122, .35); }
.tcf.tq .tq-face .se-face { position: absolute; inset: 0; display: block; overflow: hidden; transform: scaleX(-1); }
.tcf.tq .tq-face .se-face img { position: absolute; width: 175%; height: auto; max-width: none; left: -37%; top: -30%; image-rendering: pixelated; }
.tcf.tq .tq-hn { display: grid; min-width: 0; }
.tcf.tq .tq-hn b { color: #f4e2b0; font-size: 1.45em; line-height: 1.05; } .tcf.tq .tq-hn b::first-letter { font-family: 'UnifrakturCook', serif; color: var(--vg2); font-size: 1.2em; }
.tcf.tq .tq-hn small { font-style: italic; color: var(--vmute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcf.tq .tq-stats { display: grid; gap: .22em; font-size: .88em; }
.tcf.tq .tq-st { display: grid; grid-template-columns: 1.7em minmax(0, 1fr) auto; gap: .4em; align-items: center; }
.tcf.tq .tq-st > i { color: var(--vmute); } .tcf.tq .tq-st > b { font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcf.tq .tq-hfx { grid-column: 1 / -1; min-height: 0; margin: 0; }
.tcf.tq .tq-steps { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: .3em; }
.tcf.tq .tq-step { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.tcf.tq .tq-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2em .8em; font-size: .88em; }

/* ---------- barre d'actions (bas centre) et fiche du sort ---------- */
.tcf.tq .tq-acts { left: calc(2.2em + min(25%, 390px)); right: calc(2.4em + min(21%, 330px)); bottom: 1em; padding: .45em .55em .55em; display: grid; gap: .35em; }
.tcf.tq .tq-albl { display: flex; justify-content: space-between; gap: .6em; font: 400 .76em 'IM Fell English SC', Georgia, serif; letter-spacing: .1em; text-transform: uppercase; color: var(--vmute); white-space: nowrap; overflow: hidden; }
.tcf.tq .tq-albl .link-btn { text-transform: none; letter-spacing: 0; }
.tcf.tq .tq-slots { display: flex; gap: .35em; align-items: stretch; }
.tcf.tq .tq-slot { position: relative; flex: 1 1 0; min-width: 0; max-width: 5.4em; aspect-ratio: 1 / 1.08; display: grid; place-items: center; align-content: start; padding: .55em .15em .15em; border: 0; border-radius: 0; cursor: pointer; color: var(--vink); min-height: 0; clip-path: none;
  background: radial-gradient(circle, #141b19, #07090a 80%); box-shadow: inset 0 0 0 1px #3a3020; }
.tcf.tq .tq-slot svg { width: 72%; height: auto; }
.tcf.tq .tq-slot:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--vg1); }
.tcf.tq .tq-slot.on { background: radial-gradient(ellipse, rgba(232, 199, 122, .2), transparent 75%), #12100a; box-shadow: inset 0 0 0 1px var(--vg2), 0 0 .9em rgba(232, 199, 122, .45); }
.tcf.tq .tq-slot.off { opacity: .45; cursor: default; }
.tcf.tq .tq-slot.off[data-cd]:not([data-cd=""])::after { content: attr(data-cd); position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.35em; color: var(--vink); background: #0009; }
.tcf.tq .tq-slot.lim { box-shadow: inset 0 0 0 1px #8a6ac0; }
.tcf.tq .tq-k { position: absolute; top: .12em; left: .3em; font: 400 .68em 'IM Fell English SC', Georgia, serif; font-style: normal; color: var(--vmute); }
.tcf.tq .tq-el { position: absolute; top: .3em; right: .3em; width: .5em; height: .5em; border-radius: 50%; background: var(--e); }
.tcf.tq .tq-c { position: absolute; top: 50%; right: .25em; font: 400 .66em 'IM Fell English SC', Georgia, serif; font-style: normal; color: #7fb0ff; }
.tcf.tq .tq-sn { font-size: .64em; line-height: 1.05; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d8cdb4; }
.tcf.tq .tq-gauge { position: absolute; left: .3em; right: .3em; bottom: 1.3em; height: .28em; background: #07090a; box-shadow: inset 0 0 0 1px #3a3020; } .tcf.tq .tq-gauge i { display: block; height: 100%; background: #b98cff; }
.tcf.tq .tq-div { width: 1px; flex: none; background: var(--vg3); }
.tcf.tq .tq-tipw { position: absolute; left: calc(2.2em + min(25%, 390px)); width: min(34%, 520px); bottom: 10.4em; z-index: 32; pointer-events: none; }
.tcf.tq .tq-tip { position: relative; padding: .5em .7em; display: grid; gap: .25em; font-size: .92em; }
.tcf.tq .tq-tip::before, .tcf.tq .tq-tip::after { display: none; }
.tcf.tq .tq-tip b { font: 400 1.15em 'IM Fell English SC', Georgia, serif; color: #f4e2b0; } .tcf.tq .tq-tip small { font-style: italic; color: var(--vmute); }

/* ---------- fin de manche (bas droite), options, résolution ---------- */
.tcf.tq .tq-end { position: absolute; right: 1.2em; bottom: 1em; width: min(21%, 330px); z-index: 30; display: grid; gap: .45em; }
.tcf.tq .tq-end > small { text-align: center; font-style: italic; color: var(--vmute); text-shadow: 0 1px 2px #000; }
.tcf.tq .tq-go { position: relative; width: 100%; height: 3em; border: 0; border-radius: 0; cursor: pointer; min-height: 0; clip-path: none;
  font: 400 1.4em 'IM Fell English SC', Georgia, serif; color: #ffe6c8; background: radial-gradient(ellipse at 50% 50%, rgba(240, 110, 60, .34), transparent 70%), linear-gradient(180deg, #2a1410, #120806);
  box-shadow: 0 0 0 1px #f0a070, 0 0 0 .26em #0b0f0e, 0 0 0 .32em var(--vg1), inset 0 0 1.3em rgba(240, 110, 60, .45), 0 0 1.3em rgba(240, 110, 60, .3); text-shadow: 0 0 .7em rgba(240, 120, 60, .7); }
.tcf.tq .tq-go::before, .tcf.tq .tq-go::after { content: ""; position: absolute; top: calc(50% - .3em); left: -.36em; width: .6em; height: .6em; transform: rotate(45deg); background: #f0a070; box-shadow: 0 0 0 .12em #0b0f0e; }
.tcf.tq .tq-go::after { left: auto; right: -.36em; }
.tcf.tq .tq-go:hover { filter: brightness(1.15); }
.tcf.tq .tq-ok { width: 100%; padding: .5em; border: 0; border-radius: 0; cursor: pointer; min-height: 0; clip-path: none; font: 400 1em 'IM Fell English SC', Georgia, serif; color: #f4e2b0; background: #0b0f0e; box-shadow: 0 0 0 1px var(--vg1), 0 0 0 .2em #0b0f0e, 0 0 0 .26em var(--vg3); }
.tcf.tq .tq-ok:hover { filter: brightness(1.25); }
.tcf.tq .tq-row2 button { flex: 1; }
.tcf.tq .tq-net { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; }
.tcf.tq .tq-menu { right: 0; bottom: calc(100% + .9em); min-width: 17em; padding: .4em; display: grid; gap: .2em; z-index: 40; }
.tcf.tq .tq-menu::before, .tcf.tq .tq-menu::after { display: none; }
.tcf.tq .tq-menu button { display: block; text-align: left; padding: .45em .6em; border: 0; background: none; box-shadow: none; color: var(--vink); cursor: pointer; min-height: 0; clip-path: none; }
.tcf.tq .tq-menu button:hover { background: rgba(201, 165, 90, .15); } .tcf.tq .tq-menu button b { font-weight: 400; color: var(--vg2); }
.tcf.tq .tq-speed { left: 50%; bottom: 1.2em; transform: translateX(-50%); padding: .4em; display: flex; gap: .35em; }
.tcf.tq .tq-speed::before, .tcf.tq .tq-speed::after { display: none; }
.tcf.tq .tq-banner { left: 50%; top: 8.4em; transform: translateX(-50%); padding: .5em 1.3em; display: flex; gap: .7em; align-items: baseline; white-space: nowrap; z-index: 33; }
.tcf.tq .tq-banner b { font-size: 1.45em; color: #f4e2b0; } .tcf.tq .tq-banner b::first-letter { font-family: 'UnifrakturCook', serif; color: var(--vg2); font-size: 1.2em; }
.tcf.tq .tq-banner i { font-style: normal; color: var(--vmute); }
.tcf.tq .tq-banner.foe b { color: #ffc2b4; }
.tcf.tq .tc-float { font-family: Georgia, serif; font-size: calc(15px * var(--k, 1)); }
.tcf.tq .tc-float.crit { font-size: calc(19px * var(--k, 1)); }
.tcf.tq .tc-cast { font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; background: #0b0f0e; box-shadow: 0 0 0 1px var(--vg1); border: 0; }
.tcf.tq .tcf-res { position: absolute; inset: 0; display: grid; place-items: center; }
.tcf.tq .tcf-rot { z-index: 60; }

/* ---------- vue analyse : sans décor, carte en diagonale ---------- */
body.tc-full .tcf.tq.ana .tcf-stage { background: #0a0b0f; }
.tcf.tq.ana .tq-tint { background: none; }

/* ---------- téléphone (paysage) ---------- */
.tcf.tq.phone { font-size: 10.5px; }
.tcf.tq.phone .tq-fz { left: .5em; top: .2em; max-width: calc(100% - 15em); }
.tcf.tq.phone .tq-boss { width: 13.5em; right: .6em; top: .6em; padding: .4em .55em; }
.tcf.tq.phone .tq-boss .tq-pills .tq-pill:not(.warn) { display: none; }
.tcf.tq.phone .tq-right { right: .6em; top: 8.6em; bottom: 9em; width: 3.4em; }
.tcf.tq.phone .tq-team { padding: .35em .25em; } .tcf.tq.phone .tq-team h4, .tcf.tq.phone .tq-mn, .tcf.tq.phone .tq-far { display: none; }
.tcf.tq.phone .tq-mate { grid-template-columns: 2em; padding: .2em; } .tcf.tq.phone .tq-jl { display: none; }
.tcf.tq.phone .tq-tools { top: 7em; left: .5em; } .tcf.tq.phone .tq-tool span, .tcf.tq.phone .tq-tool kbd, .tcf.tq.phone .tq-tool small { display: none; }
.tcf.tq.phone .tq-dock { left: 3.6em; top: 6.6em; width: 46%; max-height: calc(100% - 15em); }
.tcf.tq.phone .tq-bl { left: .5em; bottom: .5em; width: 31%; gap: .5em; } .tcf.tq.phone .tq-hero { grid-template-columns: 3em minmax(0, 1fr); padding: .45em .5em; }
.tcf.tq.phone .tq-face { width: 3em; height: 3em; } .tcf.tq.phone .tq-hfx, .tcf.tq.phone .tq-links, .tcf.tq.phone .tq-hn small, .tcf.tq.phone .tq-st:nth-child(3) { display: none; }
.tcf.tq.phone .tq-acts { left: calc(31% + 1.3em); right: calc(18% + 1.6em); bottom: .5em; } .tcf.tq.phone .tq-albl { display: none; } .tcf.tq.phone .tq-sn { display: none; }
.tcf.tq.phone .tq-end { width: 18%; right: .6em; bottom: .5em; } .tcf.tq.phone .tq-end > small, .tcf.tq.phone .tq-row2 { display: none; }
.tcf.tq.phone .tq-go { height: auto; padding: .5em .2em; font-size: 1.15em; }
.tcf.tq.phone .tq-tipw { display: none; }
.tcf.tq.phone .tq-banner { top: 6.6em; }

@media (prefers-reduced-motion: reduce) {
  .tcf.tq .tc-map { transition: none; }
  .tcf.tq .tq-rip, .tcf.tq .tq-pv, .tcf.tq .tq-edge.mv2, .tcf.tq .tq-edge.rep, .tcf.tq .tq-thl { animation: none; }
}
/* portraits : le visage remplit son médaillon (la classe .se-face fixe sinon une hauteur de 40 px) */
.tcf.tq .tq-rg .se-face, .tcf.tq .tq-face .se-face, .tcf.tq .tq-mp .se-face, .tcf.tq .tq-rl .p .se-face, .tcf.tq .tq-ns .se-face { width: 100%; height: 100% !important; align-items: stretch; }
.tcf.tq.phone .tq-boss { width: 16em; font-size: .92em; } .tcf.tq.phone .tq-bn b { font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tcf.tq.phone .tq-bn small { display: none; }
.tcf.tq.net .tq-right { bottom: 15.2em; }
.tcf.tq .tc-float { font-size: calc(11px * var(--k, 1)); } .tcf.tq .tc-float.crit { font-size: calc(14px * var(--k, 1)); } .tcf.tq .tc-float.int { font-size: calc(12px * var(--k, 1)); }
