/* THÈMES RACIAUX — la « matière » de chaque race pour les deux colonnes de la fiche et leurs encarts.
   Généré par outils/gen_themes.py (textures et ornements en SVG, sans image à fournir).
   Désactivé par body.deco-sobre (bouton ✦ de la fiche). */
body:not(.deco-sobre) #fiche, body:not(.deco-sobre) #fiche-droite { background-image: var(--m-tex, none); }
body:not(.deco-sobre) .fiche .bloc { position: relative; background-image: var(--m-bloc, none); border: var(--m-bord, 1px solid var(--t-bloc-bord)); border-radius: var(--m-rayon, 8px); box-shadow: var(--m-ombre, none); }
body:not(.deco-sobre) .fiche .bloc::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: var(--m-coin, none); background-repeat: no-repeat; background-size: var(--m-coin-t, 0) var(--m-coin-t, 0); background-position: var(--m-coin-p, right top); }
body:not(.deco-sobre) .fiche .bloc-entete h3 { font-family: var(--m-police, inherit); font-size: var(--m-taille, 13px); text-transform: var(--m-transf, uppercase); letter-spacing: var(--m-esp, 1px); font-weight: normal; }
body:not(.deco-sobre) .fiche .bloc-entete { padding-right: 38px; }

body:not(.deco-sobre) .fiche .bloc-entete h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body:not(.deco-sobre) .fiche h2 { font-family: var(--m-h2, Georgia, serif); font-size: var(--m-h2t, 22px); font-weight: normal; }
body:not(.deco-sobre) .fiche .fiche-ligne { border-bottom: var(--m-sep, 1px solid var(--t-champ)); }
body:not(.deco-sobre) .fiche .bloc-corps { position: relative; z-index: 1; }
body[data-race="humain"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.98 0 0 0 0 0.9 0 0 0 0 0.7 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #6e5a3e; --m-rayon: 6px; --m-ombre: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 0 0 3px rgba(150,120,80,.18); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Humain", Georgia, serif; --m-taille: 15px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px dashed rgba(201,183,156,.25); --m-h2: "AWEN Humain", Georgia, serif; --m-h2t: 26px; }
body[data-race="nain"], :root { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.75 0 0 0 0 0.72 0 0 0 0 0.7 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.68 0 0 0 0 0.66 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 2px solid #5d544c; --m-rayon: 2px; --m-ombre: inset 0 2px 0 rgba(255,255,255,.06), inset 0 -3px 0 rgba(0,0,0,.35); --m-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%239a8f84' stroke='%233b342e' stroke-width='1'%3E%3Ccircle cx='7' cy='7' r='3.2'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1' fill='%23d8cfc4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%239a8f84' stroke='%233b342e' stroke-width='1'%3E%3Ccircle cx='7' cy='7' r='3.2'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1' fill='%23d8cfc4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg fill='%239a8f84' stroke='%233b342e' stroke-width='1'%3E%3Ccircle cx='7' cy='7' r='3.2'/%3E%3C/g%3E%3Ccircle cx='6' cy='6' r='1' fill='%23d8cfc4'/%3E%3C/svg%3E"); --m-coin-t: 14px; --m-coin-p: left 3px top 3px, left 3px bottom 3px, right 3px bottom 3px; --m-police: "AWEN Nain", Georgia, serif; --m-taille: 13px; --m-transf: uppercase; --m-esp: 2px; --m-sep: 1px solid rgba(0,0,0,.35); --m-h2: "AWEN Nain", Georgia, serif; --m-h2t: 22px; }
body[data-race="barbare"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.75 0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 2px solid #6a3b30; --m-rayon: 10px 16px 7px 14px / 14px 8px 16px 10px; --m-ombre: inset 0 0 12px rgba(0,0,0,.45); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Barbare", Georgia, serif; --m-taille: 15px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px solid rgba(160,90,70,.25); --m-h2: "AWEN Barbare", Georgia, serif; --m-h2t: 26px; }
body[data-race="barbare"]:not(.deco-sobre) .fiche .bloc { border-left: 4px double #7a3a2a; }
body[data-race="haut-elfe"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.88 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.92 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #c9a54a; --m-rayon: 12px; --m-ombre: inset 0 0 0 3px rgba(31,42,79,1), inset 0 0 0 4px rgba(201,165,74,.45); --m-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M2 30 C2 14 14 2 30 2' fill='none' stroke='%23d4b25a' stroke-width='1.2'/%3E%3Cpath d='M6 30 C6 18 18 6 30 6' fill='none' stroke='%23d4b25a' stroke-width='0.7' opacity='0.7'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%23d4b25a'/%3E%3Cpath d='M14 4 q3 4 0 8 M4 14 q4 3 8 0' fill='none' stroke='%23d4b25a' stroke-width='0.8'/%3E%3C/svg%3E"); --m-coin-t: 30px; --m-coin-p: left 3px top 3px; --m-police: "AWEN Elfe", Georgia, serif; --m-taille: 17px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px solid rgba(201,165,74,.18); --m-h2: "AWEN Elfe", Georgia, serif; --m-h2t: 28px; }
body[data-race="demi-elfe"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.95 0 0 0 0 0.92 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #8fb1ad; --m-rayon: 9px; --m-ombre: inset 0 0 0 2px rgba(0,0,0,.2); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Elfe", Georgia, serif; --m-taille: 16px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px solid rgba(143,177,173,.18); --m-h2: "AWEN Elfe", Georgia, serif; --m-h2t: 27px; }
body[data-race="elfe-sylvain"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.35' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.6 0 0 0 0 0.35 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.75 0 0 0 0 0.4 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #4d6e40; --m-rayon: 16px 4px 16px 4px; --m-ombre: inset 0 0 10px rgba(20,40,15,.5); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Elfe", Georgia, serif; --m-taille: 17px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px solid rgba(120,170,100,.18); --m-h2: "AWEN Elfe", Georgia, serif; --m-h2t: 28px; }
body[data-race="elfe-noir"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.7 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.5 0 0 0 0 0.75 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #8d85a3; --m-rayon: 0; --m-ombre: inset 0 0 0 1px rgba(0,0,0,.6), inset 0 0 14px rgba(106,45,140,.25); --m-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg fill='none' stroke='%23b9b2c8' stroke-width='0.6' opacity='0.75'%3E%3Cpath d='M0 0 L34 0 M0 0 L0 34 M0 0 L30 12 M0 0 L12 30 M0 0 L24 24'/%3E%3Cpath d='M8 0 Q8 6 0 8 M16 0 Q14 12 0 16 M26 0 Q22 20 0 26'/%3E%3C/g%3E%3Ccircle cx='19' cy='17' r='2.2' fill='%231a1222' stroke='%23b9b2c8' stroke-width='0.5'/%3E%3C/svg%3E"); --m-coin-t: 34px; --m-coin-p: left 0 top 0; --m-police: "AWEN Elfe Noir", Georgia, serif; --m-taille: 16px; --m-transf: none; --m-esp: 1px; --m-sep: 1px solid rgba(141,133,163,.18); --m-h2: "AWEN Elfe Noir", Georgia, serif; --m-h2t: 26px; }
body[data-race="elfe-noir"]:not(.deco-sobre) .fiche .bloc { clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
body[data-race="orque"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.3' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.35 0 0 0 0 0.2 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.38 0 0 0 0 0.2 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 2px solid #5a3a22; --m-rayon: 3px; --m-ombre: inset 0 0 0 2px rgba(0,0,0,.3), inset 0 0 18px rgba(122,74,42,.35); --m-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%237a4a2a' stroke='%232b1b10' stroke-width='1'/%3E%3Cpath d='M5 7h4M7 5v4' stroke='%232b1b10' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%237a4a2a' stroke='%232b1b10' stroke-width='1'/%3E%3Cpath d='M5 7h4M7 5v4' stroke='%232b1b10' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cg%3E%3Ccircle cx='7' cy='7' r='3.5' fill='%237a4a2a' stroke='%232b1b10' stroke-width='1'/%3E%3Cpath d='M5 7h4M7 5v4' stroke='%232b1b10' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"); --m-coin-t: 14px; --m-coin-p: left 4px top 4px, left 4px bottom 4px, right 4px bottom 4px; --m-police: "AWEN Orque", Georgia, serif; --m-taille: 17px; --m-transf: none; --m-esp: 1px; --m-sep: 1px solid rgba(0,0,0,.35); --m-h2: "AWEN Orque", Georgia, serif; --m-h2t: 28px; }
body[data-race="demi-orque"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.55 0 0 0 0 0.55 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 2px solid #3e4749; --m-rayon: 6px; --m-ombre: inset 0 0 0 4px rgba(0,0,0,.18); --m-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='2.2' fill='%23a9a39a' stroke='%233a3532' stroke-width='0.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='2.2' fill='%23a9a39a' stroke='%233a3532' stroke-width='0.6'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='2.2' fill='%23a9a39a' stroke='%233a3532' stroke-width='0.6'/%3E%3C/svg%3E"); --m-coin-t: 8px; --m-coin-p: left 6px top 6px, left 6px bottom 6px, right 6px bottom 6px; --m-police: "AWEN Orque", Georgia, serif; --m-taille: 16px; --m-transf: none; --m-esp: 1px; --m-sep: 1px dotted rgba(200,212,210,.25); --m-h2: "AWEN Orque", Georgia, serif; --m-h2t: 26px; }
body[data-race="ogre"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.25' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.56 0 0 0 0 0.5 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 4px solid #4a433c; --m-rayon: 5px; --m-ombre: inset 0 -4px 0 rgba(0,0,0,.3); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Creature", Georgia, serif; --m-taille: 17px; --m-transf: uppercase; --m-esp: 1px; --m-sep: 2px solid rgba(0,0,0,.3); --m-h2: "AWEN Creature", Georgia, serif; --m-h2t: 27px; }
body[data-race="gobelin"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.7 0 0 0 0 0.8 0 0 0 0 0.3 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.75 0 0 0 0 0.85 0 0 0 0 0.3 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 2px dashed #a3b04a; --m-rayon: 7px 3px 9px 4px; --m-ombre: inset 0 0 0 3px rgba(42,48,23,1), inset 0 0 0 4px rgba(181,106,44,.5); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Gobelin", Georgia, serif; --m-taille: 16px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px dashed rgba(163,176,74,.3); --m-h2: "AWEN Gobelin", Georgia, serif; --m-h2t: 26px; }
body[data-race="gobelin"]:not(.deco-sobre) .fiche .bloc:nth-child(odd) { transform: rotate(-0.5deg); }
body[data-race="gobelin"]:not(.deco-sobre) .fiche .bloc:nth-child(even) { transform: rotate(0.4deg); }
body[data-race="semi-homme"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.015 0.25' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.7 0 0 0 0 0.45 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.6 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #7d6a3a; --m-rayon: 14px; --m-ombre: inset 0 0 0 1px rgba(0,0,0,.2); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Semi-Homme", Georgia, serif; --m-taille: 16px; --m-transf: none; --m-esp: 0; --m-sep: 1px solid rgba(230,224,180,.15); --m-h2: "AWEN Semi-Homme", Georgia, serif; --m-h2t: 26px; }
body[data-race="semi-homme"]:not(.deco-sobre) .fiche .bloc-entete { background: repeating-conic-gradient(rgba(170,50,40,0.55) 0 25%, rgba(240,230,200,0.12) 0 50%) 0 0 / 12px 12px; border-radius: 13px 13px 0 0; }
body[data-race="semi-homme"]:not(.deco-sobre) .fiche .bloc.replie .bloc-entete { border-radius: 13px; }
body[data-race="semi-homme"]:not(.deco-sobre) .fiche .bloc-entete h3 { color: #fff4d6; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
body[data-race="gnome-forets-nord"] { --m-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.7 0 0 0 0 0.6 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bloc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.0' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.75 0 0 0 0 0.65 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --m-bord: 1px solid #5d7a6f; --m-rayon: 18px 18px 8px 8px; --m-ombre: inset 0 0 10px rgba(0,0,0,.35); --m-coin: none; --m-coin-t: 0; --m-coin-p: right top; --m-police: "AWEN Gnome", Georgia, serif; --m-taille: 17px; --m-transf: none; --m-esp: 0.5px; --m-sep: 1px solid rgba(207,224,216,.14); --m-h2: "AWEN Gnome", Georgia, serif; --m-h2t: 27px; }
body:not(.deco-sobre) .fiche .bloc::before { content: ''; position: absolute; right: 5px; top: 4px; width: 24px; height: 24px; pointer-events: none; background: var(--m-metier, none) no-repeat center / contain; opacity: .9; z-index: 2; }
body[data-metier="guerrier"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6 L24 24 M26 6 L8 24 M20 26 l6 -6 M6 20 l6 6 M4 4 l4 1 l-1 -4 M28 4 l-4 1 l1 -4'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6 L24 24 M26 6 L8 24 M20 26 l6 -6 M6 20 l6 6 M4 4 l4 1 l-1 -4 M28 4 l-4 1 l1 -4'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="ninja"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3 L19 13 L29 16 L19 19 L16 29 L13 19 L3 16 L13 13 Z'/%3E%3Ccircle cx='16' cy='16' r='2.5'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3 L19 13 L29 16 L19 19 L16 29 L13 19 L3 16 L13 13 Z'/%3E%3Ccircle cx='16' cy='16' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="voleur"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 9 Q16 5 21 9 L19 12 Q25 16 24 24 Q16 29 8 24 Q7 16 13 12 Z M13 12 L19 12'/%3E%3Cpath d='M14 19 q2 -2 4 0 q-2 2 0 4'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 9 Q16 5 21 9 L19 12 Q25 16 24 24 Q16 29 8 24 Q7 16 13 12 Z M13 12 L19 12'/%3E%3Cpath d='M14 19 q2 -2 4 0 q-2 2 0 4'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="pretre"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 h14 q0 10 -7 12 q-7 -2 -7 -12 Z M16 18 v6 M11 27 h10 M12 24 h8'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 h14 q0 10 -7 12 q-7 -2 -7 -12 Z M16 18 v6 M11 27 h10 M12 24 h8'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="mage"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 27 L20 13'/%3E%3Cpath d='M23 4 l1.5 4 l4 1.5 l-4 1.5 l-1.5 4 l-1.5 -4 l-4 -1.5 l4 -1.5 Z'/%3E%3Cpath d='M8 6 l1 2 l2 1 l-2 1 l-1 2 l-1 -2 l-2 -1 l2 -1 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 27 L20 13'/%3E%3Cpath d='M23 4 l1.5 4 l4 1.5 l-4 1.5 l-1.5 4 l-1.5 -4 l-4 -1.5 l4 -1.5 Z'/%3E%3Cpath d='M8 6 l1 2 l2 1 l-2 1 l-1 2 l-1 -2 l-2 -1 l2 -1 Z'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="paladin"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3 L27 7 Q27 21 16 29 Q5 21 5 7 Z M16 9 v14 M10 14 h12'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3 L27 7 Q27 21 16 29 Q5 21 5 7 Z M16 9 v14 M10 14 h12'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="ranger"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4 Q22 16 8 28 M8 4 L8 28 M5 16 H28 M24 13 L28 16 L24 19'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4 Q22 16 8 28 M8 4 L8 28 M5 16 H28 M24 13 L28 16 L24 19'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="menestrel"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='21' rx='7' ry='6'/%3E%3Cpath d='M16 16 L26 5 M24 4 l4 4 M10 21 h0.1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='21' rx='7' ry='6'/%3E%3Cpath d='M16 16 L26 5 M24 4 l4 4 M10 21 h0.1'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="pirate"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 5 v20 M10 10 h12 M7 19 q2 8 9 8 q7 0 9 -8 M5 21 l2 -3 l3 2 M27 21 l-2 -3 l-3 2'/%3E%3Ccircle cx='16' cy='5' r='2'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 5 v20 M10 10 h12 M7 19 q2 8 9 8 q7 0 9 -8 M5 21 l2 -3 l3 2 M27 21 l-2 -3 l-3 2'/%3E%3Ccircle cx='16' cy='5' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="marchand"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4 v22 M10 27 h12 M6 9 h20 M6 9 l-3 8 h6 Z M26 9 l-3 8 h6 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4 v22 M10 27 h12 M6 9 h20 M6 9 l-3 8 h6 Z M26 9 l-3 8 h6 Z'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="ingenieur"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='5'/%3E%3Cpath d='M16 4 v4 M16 24 v4 M4 16 h4 M24 16 h4 M7.5 7.5 l3 3 M21.5 21.5 l3 3 M7.5 24.5 l3 -3 M21.5 10.5 l3 -3'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='5'/%3E%3Cpath d='M16 4 v4 M16 24 v4 M4 16 h4 M24 16 h4 M7.5 7.5 l3 3 M21.5 21.5 l3 3 M7.5 24.5 l3 -3 M21.5 10.5 l3 -3'/%3E%3C/g%3E%3C/svg%3E"); }
body[data-metier="bourgeois-noble"] { --m-metier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%232a1f12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 24 L4 10 L11 16 L16 6 L21 16 L28 10 L27 24 Z M6 28 h20'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d9b45a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 24 L4 10 L11 16 L16 6 L21 16 L28 10 L27 24 Z M6 28 h20'/%3E%3C/g%3E%3C/svg%3E"); }
.fiche .bouton-deco { position: absolute; top: 0; right: 40px; padding: 2px 8px; font-size: 14px; line-height: 1.2; background: transparent; border: 1px solid var(--t-bord); color: var(--t-doux); border-radius: 6px; }
.fiche .bouton-deco:hover, .fiche .bouton-deco.actif { color: var(--parchemin); border-color: var(--t-doux); background: var(--t-bloc); }
.fiche h2 { padding-right: 76px; }
