.player-reference-slot{grid-column:1/-1;min-width:0;min-height:46px;margin:0 0 16px;display:flex;align-items:center;justify-content:center}
.player-reference-slot .catalogue-shortcut{width:100%;font-size:11px;line-height:1.4;padding:8px 6px;min-height:44px;text-wrap:balance;letter-spacing:0}
.player-panel>.player-identity{grid-row:auto}.player-panel .deck-pile{grid-row:auto}
.avatar-button{width:56px;height:56px;flex-shrink:0;display:grid;place-items:center;padding:0;border:1px solid #efcd83;border-radius:50%;background:radial-gradient(circle at 35% 25%,#684359,#17101f 75%);box-shadow:0 0 0 3px #251329,0 0 18px #ad79e42d;color:#f6d999;overflow:hidden;cursor:zoom-in;transition:box-shadow .2s,transform .2s}
.avatar-button:hover{box-shadow:0 0 0 3px #53334c,0 0 22px #d99bfc66;transform:translateY(-1px)}
.avatar-button.is-empty{cursor:pointer}.avatar-placeholder{display:grid;place-items:center;width:100%;height:100%;font:500 26px var(--title);color:#ead09f}.avatar-placeholder svg{width:66%;height:66%}
.avatar-mini{width:25px;height:25px}.avatar-mini .avatar-placeholder svg{width:78%;height:78%}
.portrait-art{display:block;position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;background:#140d1a;isolation:isolate}
.portrait-art img{display:block;position:absolute;width:var(--portrait-width);max-width:none;height:auto;left:var(--portrait-left);top:var(--portrait-top);pointer-events:none}
.portrait-art:after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 15px #09081330}
button.master-portrait{padding:0;cursor:zoom-in;color:inherit;font:inherit}
#portrait-gallery{width:min(770px,calc(100vw - 24px));padding:24px;background:radial-gradient(ellipse at 50% 0,#53325380,transparent 65%),linear-gradient(140deg,#20152b,#0e0c18);overflow:auto}
.portrait-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:18px}.portrait-heading .eyebrow{font-size:9px;margin:0 0 6px}.portrait-heading h2{font:600 26px/1.3 var(--title);margin:0;color:#f5dcaa;text-wrap:balance}.portrait-heading .portrait-close{flex-shrink:0;padding:8px 12px;font-size:12px}
.portrait-intro{font:13px/1.5 Georgia;color:#d8c2df;text-align:center;text-wrap:balance;margin:0 0 20px}
.portrait-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.portrait-option{min-width:0;border:1px solid #96734265;border-radius:12px;padding:14px 8px 12px;background:linear-gradient(#49304d55,#100e1c99);display:flex;flex-direction:column;align-items:center;gap:7px;box-shadow:inset 0 0 0 3px #190f2266;transition:background .2s,border-color .2s;cursor:zoom-in}
.portrait-option:hover,.portrait-option[aria-pressed=true]{border-color:#f5d88a;background:linear-gradient(#6e456b66,#201424)}
.portrait-option .portrait-art{width:min(102px,100%);height:auto;aspect-ratio:1;border-radius:50%;border:2px solid #cba65b;box-shadow:0 4px 17px #0007,0 0 0 3px #100e1c}
.portrait-option strong{font:600 13px/1.4 var(--title);color:#f0d397;text-align:center;text-wrap:balance}.portrait-option small{font:10px/1.3 'Segoe UI',sans-serif;color:#bfadcb;text-align:center;text-wrap:balance}
.portrait-current{font:11px/1.5 'Segoe UI',sans-serif;color:#c8b6d1;text-align:center;margin:18px 0 0;text-wrap:balance}
.portrait-request{display:flex;flex-direction:column;align-items:center;gap:7px;margin:15px 0 0;text-align:center}.portrait-request a{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:42px;padding:10px 17px;border:1px solid #cba65b;border-radius:7px;background:linear-gradient(#53394388,#251827cc);box-shadow:inset 0 1px #eacf8d24;color:#f2d49a;text-decoration:none;font:600 12px/1.4 var(--title);text-wrap:balance}.portrait-request a:hover{background:#60434888;border-color:#ffe4ab}.portrait-request p{font:11px/1.4 'Segoe UI',sans-serif;color:#bfaacb;text-wrap:balance;margin:0;max-width:390px}
#portrait-view{width:min(470px,calc(100vw - 24px));padding:22px;background:radial-gradient(ellipse at 50% 35%,#55355580,transparent 68%),#120d1d}
#portrait-view .portrait-heading{margin-bottom:14px}#portrait-view .portrait-heading h2{font-size:23px}
.portrait-large{width:min(345px,100%);aspect-ratio:1;margin:0 auto;border-radius:16px;border:2px solid #d7b46c;overflow:hidden;box-shadow:0 0 0 5px #a2834022,0 10px 35px #0008}
.portrait-large .master-portrait{border:0;border-radius:0;width:100%;height:100%;box-shadow:none}
.portrait-view-subtitle{font:12px Georgia;color:#c9b5d2;text-align:center;margin:17px 0 15px;text-wrap:balance}
.portrait-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}.portrait-actions .main-action{font-size:12px;min-width:0;min-height:42px;padding:12px 18px}.portrait-actions .secondary-action{font-size:12px;min-height:42px;padding:10px 15px}
@media(max-width:850px){.player-reference-slot{margin-bottom:11px;min-height:44px}.player-reference-slot .catalogue-shortcut{font-size:9px;padding:7px 4px;min-height:40px}.avatar-button{width:44px;height:44px}.avatar-mini{width:25px;height:25px}.player-panel .deck-pile{grid-row:4/7}}
@media(max-width:520px){.player-reference-slot{min-height:44px;margin-bottom:10px}.player-reference-slot .catalogue-shortcut{font-size:8px;min-height:44px;max-width:100%;padding:6px 3px}.avatar-button{width:36px;height:36px}.avatar-mini{width:23px;height:23px}#portrait-gallery{padding:19px 14px}.portrait-heading h2{font-size:21px}.portrait-heading .eyebrow{font-size:8px;letter-spacing:1.5px}.portrait-intro{font-size:12px;margin-bottom:16px}.portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portrait-option{padding:13px 7px}.portrait-option .portrait-art{width:100px;max-width:100%}.portrait-option strong{font-size:12px}#portrait-view{padding:19px 16px}.portrait-current{font-size:10px}}

/* Les douze personnages sont entiers, sans médaillon. */
.avatar-button.is-full-character,.portrait-option.is-full-character,.portrait-large.is-full-character{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.portrait-art.is-full-character{background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.portrait-art.is-full-character:after{content:none}.portrait-art.is-full-character svg{display:block;width:100%;height:100%;overflow:visible}
.avatar-button.is-full-character{width:76px;height:96px}.avatar-mini.is-full-character{width:32px;height:42px}
.portrait-option.is-full-character{padding:8px 5px}.portrait-option.is-full-character:hover,.portrait-option.is-full-character[aria-pressed=true]{background:#c98af014}
.portrait-option.is-full-character[aria-pressed=true]{outline:1px solid #efcf89;outline-offset:2px}
.portrait-option.is-full-character .portrait-art{width:100%;height:170px;aspect-ratio:auto}
.portrait-large.is-full-character{height:min(55svh,430px);aspect-ratio:auto}
.player-identity:has(.avatar-button.is-full-character),.combatant-name:has(.avatar-button.is-full-character){flex-direction:column;align-items:center;text-align:center;gap:5px}
@media(max-width:850px){.avatar-button.is-full-character{width:62px;height:80px}.avatar-mini.is-full-character{width:30px;height:39px}}
@media(max-width:520px){.avatar-button.is-full-character{width:54px;height:70px}.avatar-mini.is-full-character{width:28px;height:36px}.portrait-option.is-full-character .portrait-art{height:155px}}
