.fcb { position:relative; color:var(--text); font-family:var(--font-sans);
  /* Variables non définies globalement → valeurs de repli scopées au module. */
  --font-display: var(--font-sans, 'Instrument Sans', ui-sans-serif, system-ui, sans-serif);
  --font-numeric: var(--font-sans, 'Instrument Sans', ui-sans-serif, system-ui, sans-serif);
  --shadow-md: 0 8px 24px rgba(0,0,0,.18);
  background:
    radial-gradient(circle at 20% 4%, rgba(var(--accent-rgb),.06), transparent 36%),
    radial-gradient(circle at 84% 96%, rgba(var(--accent-2-rgb),.07), transparent 42%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2)); }

.fcb-viewport { position:relative; width:100%; height:100%; min-height:0; overflow:hidden; touch-action:none; cursor:grab; }
.fcb-viewport.grabbing { cursor:grabbing; }

.fcb-zoom { position:absolute; right:14px; bottom:14px; z-index:20; display:flex; flex-direction:column; gap:8px; }
.fcb-zoom button { width:40px; height:40px; border-radius:12px; border:1px solid rgba(var(--text-rgb),.14); background:rgba(var(--card-rgb),.9); backdrop-filter:blur(10px); color:var(--text); font-family:var(--font-display); font-size:20px; font-weight:600; line-height:1; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:var(--shadow-md); transition:border-color .2s, transform .15s; -webkit-tap-highlight-color:transparent; }
.fcb-zoom button:hover { border-color:rgba(var(--accent-rgb),.5); }
.fcb-zoom button:active { transform:scale(.93); }
.fcb-zoom button[data-zoom="reset"] { font-size:17px; }

.fcb-stage { position:absolute; left:50%; top:50%; width:1200px; height:1200px; transform-origin:50% 50%; will-change:transform; }
.fcb-layer { position:absolute; inset:0; }

.fcb-svg { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; overflow:visible; }
.fcb-guide { fill:none; stroke:rgba(var(--text-rgb),.05); stroke-width:1; }
.fcb-conn { fill:none; stroke:var(--c, var(--accent)); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; opacity:.8; transition:stroke .2s, opacity .2s, stroke-width .2s, filter .2s; }
.fcb-conn.dashed { stroke-dasharray:2 7; stroke-width:2.4; opacity:.55; }

.fcb-node { position:absolute; z-index:3; }
.fcb-node[href] { cursor:pointer; text-decoration:none; }
.fcb-disc-inner { width:100%; height:100%; transform-origin:50% 50%; }
.fcb-disc { width:100%; height:100%; border-radius:999px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); position:relative; transition:box-shadow .22s, border-color .22s, background .22s, opacity .22s; }
.fcb-flag { width:100%; height:100%; object-fit:cover; display:block; border-radius:999px; }

.fcb-layer.dimmed .fcb-node:not(.hl) .fcb-disc { opacity:.26; }
.fcb-layer.dimmed .fcb-conn:not(.hl) { opacity:.09; }
.fcb-conn.hl { stroke:var(--accent); stroke-width:3.8; opacity:1; filter:drop-shadow(0 0 5px rgba(var(--accent-rgb),.6)); }
.fcb-conn:not(.dashed).hl { stroke-dasharray:1; animation:fcbConnDraw .34s cubic-bezier(.4,0,.2,1); }
@keyframes fcbConnDraw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
.fcb-node.hl .fcb-disc { border-color:var(--accent) !important; box-shadow:0 0 0 2px rgba(var(--accent-rgb),.55), 0 0 22px rgba(var(--accent-rgb),.5); transform:scale(1.07); }
.fcb-layer.dimmed .fcb-node.opp .fcb-disc { opacity:1; }
.fcb-node.opp .fcb-disc { border-color:rgba(var(--negative-strong-rgb),.7) !important; box-shadow:0 0 0 1.5px rgba(var(--negative-strong-rgb),.3), 0 0 14px rgba(var(--negative-strong-rgb),.28); }

.fcb-mark { position:absolute; z-index:5; width:24px; height:24px; display:flex; align-items:center; justify-content:center; text-decoration:none; cursor:pointer; }
.fcb-mark-dot { width:11px; height:11px; border-radius:999px; background:var(--bg-2); border:1.7px solid var(--c, var(--accent)); transition:transform .2s, box-shadow .2s; }
.fcb-mark:hover .fcb-mark-dot { transform:scale(1.3); box-shadow:0 0 10px rgba(var(--accent-rgb),.6); }
.fcb-score { display:none; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:3px 8px; border-radius:10px; background:var(--accent); color:var(--on-accent); font-family:var(--font-numeric); font-weight:800; line-height:1; letter-spacing:.4px; white-space:nowrap; box-shadow:0 2px 10px rgba(0,0,0,.45); }
.fcb-score.draw { background:var(--accent-2); }
.fcb-score-main { font-size:16px; }
.fcb-pen { font-family:var(--font-sans); font-weight:700; font-size:8.5px; letter-spacing:.2px; opacity:.9; }
.fcb-mark.hl { z-index:8; }
.fcb-mark.hl .fcb-mark-dot { display:none; }
.fcb-mark.hl .fcb-score, .fcb-mark:hover .fcb-score { display:flex; }
.fcb-mark-final { z-index:7; }
.fcb-mark-final.hl .fcb-score, .fcb-mark-final:hover .fcb-score { display:flex; }
.fcb-layer.dimmed .fcb-mark:not(.hl) { opacity:.16; }

.fcb-trophy-glow { position:absolute; width:250px; height:250px; left:50%; top:50%; transform:translate(-50%,-44%); background:radial-gradient(circle, rgba(var(--accent-rgb),.24), transparent 62%); filter:blur(4px); animation:fcbTrophyPulse 3.6s ease-in-out infinite; }
@keyframes fcbTrophyPulse { 0%,100% { opacity:.7; transform:translate(-50%,-44%) scale(1); } 50% { opacity:1; transform:translate(-50%,-44%) scale(1.06); } }
