/* Printed numbers are replaced by live game statistics, without altering source art. */
.panafrican-card{background:#18221f!important}
.panafrican-card>img{clip-path:inset(0 0 19% 0)}
.panafrican-card .stat-band{left:5%!important;top:82%!important;width:90%!important;height:15%!important}
body[data-piece-view="avatars"] #board .panafrican-card>img{clip-path:none}
body[data-piece-view="avatars"] #board .panafrican-card .stat-band{top:auto!important;left:0!important;width:100%!important;height:23%!important}
.innate-badge{position:absolute;right:4px;top:4px;color:#ffe09a;font:14px/1 sans-serif;filter:drop-shadow(0 1px 2px #000)}
.ability-targets{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
#ability-controls{display:flex;justify-content:center;margin:4px 0}
.ability-description{font-size:12px!important;line-height:1.3!important}
.panafrican-card[data-camp="0"]{--camp-bright:#168dff;--camp-dark:#063c82}
.panafrican-card[data-camp="1"]{--camp-bright:#ff343f;--camp-dark:#8c101c}
#board .panafrican-card{border:4px solid var(--camp-bright)!important;box-shadow:0 0 0 1px #09121b,0 0 9px var(--camp-bright)!important;box-sizing:border-box}
#board .panafrican-card:after{content:"";position:absolute;inset:0 0 auto;height:6px;background:var(--camp-bright);z-index:5;pointer-events:none}
#board .panafrican-card .stat-band{background:var(--camp-dark)!important}
#board .panafrican-card .stat-band svg>rect{fill:var(--camp-dark);stroke:var(--camp-bright)}
#board .panafrican-card .stat-band svg>path{stroke:var(--camp-bright)}
.inspector-card .panafrican-card,.duel-figure .panafrican-card{border-color:var(--camp-bright)!important}

.game-rules{text-align:left;line-height:1.5}.game-rules h3{margin:20px 0 8px}.game-rules ul{display:block;padding-left:24px;margin:0}.game-rules li{display:list-item;margin:8px 0;padding-left:3px}

.panafrican-card>.innate-badge{top:19%;right:5px;z-index:6;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#17232c;border:1px solid #ffe09a;font-size:12px;pointer-events:none}body[data-piece-view="avatars"] #board .panafrican-card>.innate-badge{top:9px;right:3px;width:14px;height:14px;font-size:10px}

.betrayal-badge{position:absolute;left:4px;top:22%;z-index:7;background:#221a31;color:#ffe7a3;border:1px solid #ffe7a3;border-radius:50%;width:18px;height:18px;text-align:center;font:bold 16px/16px sans-serif;pointer-events:none}

.fusion-description{text-align:left;line-height:1.5}.fusion-description li{margin:8px 0}
/* Dedicated status positions: royalty left, innate ability right, spells below it. */
#board .card .royal-badge,body[data-piece-view="avatars"] #board .card .royal-badge{left:3%!important;right:auto!important;top:4%!important;width:20%!important;height:20%!important;padding:1%!important;aspect-ratio:1}
#board .card>.innate-badge,body[data-piece-view="avatars"] #board .card>.innate-badge{left:auto!important;right:3%!important;top:4%!important;width:20%!important;height:20%!important;font-size:10px}
body[data-piece-view="avatars"] #board .avatar-spells{right:3%;top:31%;gap:3px;width:20%}
body[data-piece-view="avatars"] #board .avatar-medallion{width:100%;height:auto;aspect-ratio:1;font-size:12cqw}
#board .cell>.badge,#board .cell.enchanted-piece>.badge{top:32%;right:5%;max-width:34%;padding:1px 2px;font-size:10px;z-index:7}
#board .card>.betrayal-badge{left:3%;top:32%;width:20%;height:20%;font-size:12px;line-height:1;display:grid;place-items:center}
#inspector .inspector-card .card .royal-badge,#inspector .inspector-card .card[data-unit-id="0"] .royal-badge{top:15%;left:5%;right:auto;width:18%}
#inspector .inspector-card .card>.innate-badge{top:16%;right:5%;left:auto}
#inspector .inspector-card .card>.betrayal-badge{top:43%;left:5%}
body[data-piece-view="avatars"] #board .avatar-spells{top:29%;width:18%;gap:2px}

.catalog-card-heading{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}.catalog-card-heading .catalog-card{margin:0}.inspiration-sheet{max-width:680px;margin:auto}.inspiration-sheet p{line-height:1.65}.inspiration-origin{color:#dbc28f}.inspiration-sheet a{color:#e7c789;text-decoration:underline}body[data-map] #inspector .inspector-inspiration{position:absolute;top:390px;right:0;z-index:3;padding:4px 8px;font-size:12px;min-height:26px;background:#302a23;color:#f8ead3;border:1px solid #a4845e;border-radius:5px}body[data-map] #inspector:has(#ability-controls) .inspector-inspiration{top:390px}

#board .board-rank,#board .board-file{position:absolute;z-index:8;pointer-events:none;background:#30251b;color:#fff0d0;border:1px solid #b89a63;border-radius:3px;font:bold 17px/23px Georgia;text-align:center;width:23px;height:23px;text-shadow:none}#board .board-rank{left:-27px;top:calc(50% - 12px)}#board .board-file{left:calc(50% - 12px);bottom:-27px}#board .cell.grid-left,#board .cell.grid-bottom{overflow:visible!important}
