/* Shared palette: game, visual catalog and card workshop. */
.portrait-card,.location-card{
 --guild-color:#8a494d;--frame:#9d6062;--frame-dark:#572e33;
 --frame-wash:#6f363cd9;--panel-wash:#dec2c2bf;--ink-wash:#eee1decc;
 --guild-edge:#b27f81;--card-ink:#301e20;
}
.portrait-card.ruin,.location-card.ruin-site{
 --guild-color:#7b5891;--frame:#906ea3;--frame-dark:#462f55;
 --frame-wash:#603c74d9;--panel-wash:#d3c5ddbf;--ink-wash:#e9e3ebcc;
 --guild-edge:#a890b6;--card-ink:#2d1c38;
}
.portrait-card.scholar,.location-card.scholar{
 --guild-color:#496a91;--frame:#6486a7;--frame-dark:#2c3f59;
 --frame-wash:#3b5775d9;--panel-wash:#c4d2e1bf;--ink-wash:#e1e8eecc;
 --guild-edge:#8fabc0;--card-ink:#1c2c40;
}
.portrait-card.instinct,.location-card.instinct{
 --guild-color:#456f51;--frame:#62876a;--frame-dark:#253f2e;
 --frame-wash:#375841d9;--panel-wash:#c7d5c4bf;--ink-wash:#e2e9dfcc;
 --guild-edge:#8ba589;--card-ink:#203526;
}
.portrait-card.knowledge,.location-card.knowledge,.workshop .location-card.knowledge{
 --guild-color:#77797d;--frame:#94979b;--frame-dark:#414448;
 --frame-wash:#5e6165d9;--panel-wash:#d1d1d3bf;--ink-wash:#e8e8eacc;
 --guild-edge:#b3b5b8;--card-ink:#292c31;
}
.portrait-card .card-heading,.location-card .location-heading{background:linear-gradient(100deg,var(--frame-wash),color-mix(in srgb,var(--guild-color) 65%,transparent));border-bottom-color:var(--guild-edge)}
.portrait-card .card-face,.catalog-cards .portrait-card .card-face,.location-card .location-face{border-color:var(--guild-edge)}
.portrait-card .cost,.location-card .difficulty,.portrait-card .stat-medallion{background:color-mix(in srgb,var(--frame-dark) 88%,transparent);border-color:var(--guild-edge)}
.portrait-card .identity-band,.location-copy .identity-band{border-color:var(--guild-edge)}
.portrait-card .guild-mark,.location-card .guild-mark{color:var(--frame-dark)}
.portrait-card .rules-box p,.location-card .rules-box p{color:var(--card-ink)}
.portrait-card .rules-box,.location-card .rules-box{border-color:var(--guild-edge)}
/* APT: ivory metal edge, collector line, archway-and-path set seal. */
.portrait-card .card-face,.catalog-cards .portrait-card .card-face,.location-card .location-face{position:relative;border:1px solid #e8d7aa;box-shadow:inset 0 0 0 2px #1b241cb0,0 4px 14px #0006;padding-bottom:15px}
.portrait-card .cost{background:var(--frame-dark);border-color:#e8d7aa}
.identity-band{position:relative;padding-right:28px!important}
.collection-symbol{display:block;position:absolute;right:5px;top:50%;transform:translateY(-50%);width:19px;height:22px;background-position:center;background-size:contain;background-repeat:no-repeat;filter:drop-shadow(0 1px .4px #0005)}
.collection-symbol.rarity-C{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2050%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23565046%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23272720%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23metal%29%22%20stroke%3D%22%2324231e%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2043V22Q8%2010%2024%203Q40%2010%2040%2022V43H30V23Q30%2018%2024%2014Q18%2018%2018%2023V43Z%22%2F%3E%3Cpath%20d%3D%22M5%2043H43V47H5Z%22%2F%3E%3Cpath%20d%3D%22M20%2043L25%2035L22%2030L27%2024L25%2033L30%2038L27%2043Z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M11%2037V22Q11%2012%2024%206%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221.2%22%2F%3E%3C%2Fsvg%3E")}
.collection-symbol.rarity-I{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2050%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23eef5fa%22%2F%3E%3Cstop%20offset%3D%2224%25%22%20stop-color%3D%22%23aebfcd%22%2F%3E%3Cstop%20offset%3D%2246%25%22%20stop-color%3D%22%23fcffff%22%2F%3E%3Cstop%20offset%3D%2254%25%22%20stop-color%3D%22%23748899%22%2F%3E%3Cstop%20offset%3D%2278%25%22%20stop-color%3D%22%23c5d3df%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23f0f5f8%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23metal%29%22%20stroke%3D%22%23354754%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2043V22Q8%2010%2024%203Q40%2010%2040%2022V43H30V23Q30%2018%2024%2014Q18%2018%2018%2023V43Z%22%2F%3E%3Cpath%20d%3D%22M5%2043H43V47H5Z%22%2F%3E%3Cpath%20d%3D%22M20%2043L25%2035L22%2030L27%2024L25%2033L30%2038L27%2043Z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M11%2037V22Q11%2012%2024%206%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221.2%22%2F%3E%3C%2Fsvg%3E")}
.collection-symbol.rarity-R{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2050%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22metal%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23fff0a6%22%2F%3E%3Cstop%20offset%3D%2224%25%22%20stop-color%3D%22%23c69631%22%2F%3E%3Cstop%20offset%3D%2246%25%22%20stop-color%3D%22%23fff2a8%22%2F%3E%3Cstop%20offset%3D%2254%25%22%20stop-color%3D%22%23ad741c%22%2F%3E%3Cstop%20offset%3D%2278%25%22%20stop-color%3D%22%23e2b74e%22%2F%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23fff0a0%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22url%28%23metal%29%22%20stroke%3D%22%23694415%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2043V22Q8%2010%2024%203Q40%2010%2040%2022V43H30V23Q30%2018%2024%2014Q18%2018%2018%2023V43Z%22%2F%3E%3Cpath%20d%3D%22M5%2043H43V47H5Z%22%2F%3E%3Cpath%20d%3D%22M20%2043L25%2035L22%2030L27%2024L25%2033L30%2038L27%2043Z%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M11%2037V22Q11%2012%2024%206%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221.2%22%2F%3E%3C%2Fsvg%3E")}
.collector-code{position:absolute;bottom:2px;left:7px;right:7px;height:11px;line-height:11px;font:9px/11px Georgia,serif;color:#f1e4bd;text-shadow:0 1px 2px #000;letter-spacing:.65px;text-align:left;background:#17201ac9;padding:0 4px;border-radius:2px;pointer-events:none}

/* Reserve the collector footer without clipping the three attributes. */
.portrait-card .stat-medallion{min-height:26px;padding:2px}.portrait-card .stat-medallion img{height:20px}

/* Filosofias: símbolos vetoriais próprios. */
.card-heading,.location-heading{position:relative;padding-right:24px!important}.card-heading:after,.location-heading:after{content:"";position:absolute;right:3px;top:6px;width:19px;height:20px;background:center/contain no-repeat var(--philosophy-symbol);pointer-events:none}
.portrait-card,.location-card{--philosophy-symbol:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22%2326332b%22%20stroke%3D%22%23eadbb3%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%209L24%205L40%209V25Q37%2039%2024%2045Q11%2039%208%2025Z%22%2F%3E%3Cpath%20d%3D%22M24%202L28%2012L25%2031H23L20%2012ZM15%2031H33M24%2031V43%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.portrait-card.ruin,.location-card.ruin-site{--philosophy-symbol:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22%2326332b%22%20stroke%3D%22%23eadbb3%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012L15%2022L20%209L24%2020L29%207L34%2022L44%2012L39%2037H8Z%22%2F%3E%3Cpath%20d%3D%22M8%2042H20M28%2042H39M27%205L21%2018L28%2025L21%2034L26%2046%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.portrait-card.scholar,.location-card.scholar{--philosophy-symbol:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22%2326332b%22%20stroke%3D%22%23eadbb3%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%2012Q14%205%203%2010V38Q15%2033%2024%2041Q33%2033%2045%2038V10Q34%205%2024%2012ZM24%2012V41%22%2F%3E%3Cpath%20d%3D%22M12%2024Q24%2011%2036%2024Q24%2037%2012%2024Z%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%224%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.portrait-card.instinct,.location-card.instinct{--philosophy-symbol:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22%2326332b%22%20stroke%3D%22%23eadbb3%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%208C10-2%206%2013%2010%2018C-2%2023%207%2034%2020%2028M24%208C38-2%2042%2013%2038%2018C50%2023%2041%2034%2028%2028M24%2014V34C24%2047%206%2047%208%2037C10%2030%2018%2035%2014%2039M24%2034C24%2047%2042%2047%2040%2037C38%2030%2030%2035%2034%2039M16%2019L24%2027L32%2019%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.portrait-card.knowledge,.location-card.knowledge{--philosophy-symbol:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22%2326332b%22%20stroke%3D%22%23eadbb3%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%202L29%2018L46%2024L29%2029L24%2046L19%2029L2%2024L19%2018Z%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%225%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2224%22%20r%3D%2217%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}

.pioneer-card .card-heading h3{font-size:11px;line-height:1.05}.pioneer-card .cost{font-size:12px}

/* Vitalidade: mesmo medalhão dos atributos, centralizado acima do rodapé. */
.pioneer-card .card-face{position:relative}
.pioneer-card .card-heading{padding-left:10px}
.pioneer-card .rules-area{padding-bottom:39px}
.pioneer-card .vitality-medallion{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);width:49px;box-sizing:border-box;min-height:28px;z-index:3}

/* Frame refinado: dimensão externa preservada pelo border-box. */
.portrait-card .card-face,.catalog-cards .portrait-card .card-face,.location-card .location-face{border-width:4px;box-sizing:border-box;box-shadow:inset 0 0 0 1px #1b241ce6,0 4px 14px #0006}
.portrait-card .rules-area{padding-left:5px;padding-right:5px}
.portrait-card .cost,.location-card .difficulty{background-color:var(--frame-dark);background-image:none;opacity:1;box-shadow:0 1px 3px #0008}
.card-heading:after,.location-heading:after{background-color:var(--frame-dark);border:1px solid #e8d7aa;border-radius:3px;opacity:1;right:4px;top:5px;width:20px;height:21px;background-size:17px 18px}
.card-heading,.location-heading{padding-right:29px!important}
.pioneer-card .vitality-medallion{width:31px;min-height:24px;height:24px;grid-template-columns:1fr;padding:1px 3px;bottom:16px}
.pioneer-card .vitality-medallion strong{font-size:13px}
.pioneer-card .rules-area{padding-bottom:33px}

/* Campos sólidos sobre a ilustração, inclusive atributos de valor zero. */
.portrait-card .cost,.location-card .difficulty,.portrait-card .stat-medallion{background:var(--frame-dark);opacity:1}
.portrait-card .card-heading:after,.location-card .location-heading:after{background-color:var(--frame-dark);opacity:1}

/* Ornamentação abaixo dos medalhões: não deve atravessar campos sólidos. */
.portrait-card:before,.location-card:before{content:none}
.portrait-card .card-face:after,.location-card .location-face:after{
 content:"";position:absolute;inset:0;z-index:1;
 background:url(assets/frame-ornament.svg) center/100% 100% no-repeat;
 pointer-events:none;border-radius:6px;
}
.location-card .location-face{isolation:isolate}
.portrait-card .cost,.location-card .difficulty,
.portrait-card .card-heading:after,.location-card .location-heading:after{z-index:2}
.portrait-card .stat-medallion{position:relative;z-index:2}
.pioneer-card .vitality-medallion{position:absolute}

/* Tipografia mais discreta, preservando os números dos medalhões. */
.portrait-card .card-heading h3{font-size:12px}
.pioneer-card .card-heading h3{font-size:10.5px}
.location-card .location-heading h3{font-size:12px}
.portrait-card .rules-box p{font-size:10.5px}
.location-card .location-copy .rules-box p,
.location-card .location-copy .rules-box .passive{font-size:9.5px}
