/* Shared selection treatment for character cards in both editions. */
.class-tile .class-picture .source-class-framed-art{display:block;width:100%;height:100%;box-sizing:border-box;padding:9px 5px;overflow:hidden}
.custom-class-symbol{display:flex!important;align-items:flex-start;justify-content:center;font:38px/1 Georgia,serif;color:#77777e}
.class-tile.custom-class-choice .class-picture img{mask-image:none;filter:none}
.class-tile:has(.class-role-flag){padding-top:36px}
.class-tile>.class-role-flag{position:absolute;left:12px;top:0;z-index:2;margin:0;padding:6px 9px;border-radius:0 0 8px 8px;background:#57445e;color:white;font:700 12px/1.2 'DM Sans',sans-serif;letter-spacing:.4px}
.class-tile>.class-role-flag[data-class-role="Primary"]{background:#803b43}
.class-tile>.class-role-flag[data-class-role="Secondary"]{background:#236c76}
.class-tile>.class-role-flag[data-class-role="Tertiary"]{background:#67477b}
#adnd-class-gallery .class-gallery{max-height:none;overflow:visible;margin:0;padding:3px;align-items:stretch}
.class-tile>.class-selection-facts{grid-column:2;grid-row:4;display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left;font-size:12px;line-height:1.35}
.class-selection-facts>small{display:block;margin:0 0 5px;padding:0;font-size:12px;line-height:1.35}
.class-selection-facts>.class-requirements-heading{font-weight:700;margin-bottom:2px}
.class-tile:has(.class-selection-facts) .class-picture{grid-row:1/5}
.race-requirements{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.35;text-align:left}
.race-requirements>strong{font-weight:700;margin-bottom:2px}
.adnd-ability-targets{margin-bottom:18px}
.adnd-ability-targets .race-requirements{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px 14px;margin-top:8px}
.adnd-ability-targets .race-requirements>strong{flex-basis:100%}
.class-tile,.option-tile,.adnd-race-card,.adnd-option,.painted-portrait,.skill-choice,.spell-choice,.weapon-choice{
 border-radius:12px;
 overflow:hidden;
}
.class-tile,.origin-tile,.race-tile,.adnd-race-card,.adnd-option{position:relative}
.class-tile.selected,.origin-tile.selected,.race-tile.selected,.adnd-race-card.selected,.adnd-option.selected{
 background:linear-gradient(150deg,#eed5b7,#d4bdd1);
 border-color:#8f493f;
 outline:2px solid #8f493f;
 outline-offset:-2px;
}
.class-tile.selected .class-picture{background:transparent!important}
.origin-gallery .origin-tile.selected .origin-caption{background:transparent}
.class-tile.selected::before,.origin-tile.selected::before,.race-tile.selected::before,.adnd-race-card.selected::before,.adnd-option.selected::before{
 content:"CHOSEN";
 position:absolute;
 right:12px;
 top:0;
 z-index:2;
 padding:6px 11px;
 border:0;
 border-radius:0 0 8px 8px;
 background:rgba(153,32,49,.92);
 color:#fff;
 font-family:'DM Sans',sans-serif;
 font-size:12px;
 font-weight:700;
 font-style:normal;
 line-height:1.2;
 letter-spacing:1.2px;
 pointer-events:none;
}
