/* V16 Card Foundry: visual production layer; source data never embedded in art. */
.cf-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 22px;padding:18px 20px;margin:0 0 24px;background:linear-gradient(125deg,#17283d,#080f1c 60%,#15263a);border:1px solid #d6b87a77;box-shadow:0 15px 40px #0005}
.cf-label{font:500 23px Georgia,serif;color:#f1d493;margin-bottom:5px}
.cf-controls p{margin:0;color:#d7e2ee;font-size:13px;line-height:1.5}
.cf-controls small{display:block;color:#b9c8d8;font-size:11px;letter-spacing:0;margin-top:7px;text-transform:none}
.cf-modes{display:flex;flex-wrap:wrap;gap:6px}
.cf-modes button{background:#06111f;border:1px solid #c7a57081;color:#e4d4b4;padding:9px 11px;min-height:43px;font-size:12px;white-space:nowrap;cursor:pointer}
.cf-modes button.active,.cf-modes button[aria-pressed=true]{background:linear-gradient(125deg,#e4c588,#987140);color:#08101d;border-color:#f6dda6;font-weight:700}
#cardGrid .cf-card{--cf-accent:#e8cc9a;min-height:408px;aspect-ratio:auto!important;overflow:hidden;isolation:isolate;border:1px solid var(--cf-accent);border-radius:11px;background:linear-gradient(140deg,#1b2a39,#060b13 65%);box-shadow:0 5px 0 #0009,0 11px 26px #0009,inset 0 0 15px #c69a3929;transition:transform .24s ease,box-shadow .24s ease;display:block}
#cardGrid .cf-card:before{inset:0;z-index:4;background:linear-gradient(110deg,transparent 25%,#fff4d325 50%,transparent 75%);pointer-events:none}
#cardGrid .cf-card:hover,#cardGrid .cf-card:focus-visible{transform:translateY(-5px);box-shadow:0 12px 40px #000b,0 0 29px color-mix(in srgb,var(--cf-accent),transparent 52%)}
.cf-frame{position:relative;display:flex;flex-direction:column;height:100%;min-height:408px;margin:5px;border:1px solid #dfd4a04d;border-radius:7px;overflow:hidden;background:linear-gradient(170deg,#172339,#080e18 90%);isolation:isolate}
.cf-frame:before{content:'';pointer-events:none;position:absolute;inset:5px;border:1px solid #ebd9a034;border-radius:5px;z-index:3}
.cf-topline{padding:7px 11px 0;display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:9px;letter-spacing:.1em;color:#e4d5b6;text-transform:uppercase}
.cf-serial{font-variant-numeric:tabular-nums;opacity:.8}
.cf-kind{color:var(--cf-accent);font-weight:700}
.cf-name{position:relative;z-index:2;min-height:39px;padding:4px 11px 7px;margin:0;font:400 clamp(14px,1.4vw,20px)/1.09 Georgia,serif;text-wrap:balance;color:#fff0c7;text-shadow:0 1px 5px #000}
.cf-art{height:207px;position:relative;overflow:hidden;flex:1;min-height:166px;border-block:1px solid #dec88b66;background:#172c3b}
.cf-art .artzone{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto!important;background:#101e2b}
.cf-art .artzone .atlasimg{position:absolute;inset:0;display:block;background-size:1000% 1200%;background-repeat:no-repeat}
.cf-art .artzone img{width:100%;height:100%;object-fit:cover}
.cf-art-fade{position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(180deg,#05090d55,transparent 21%,transparent 66%,#060b14e0 100%),radial-gradient(circle at 60% 15%,#fff9bc12,transparent 50%)}
.cf-art-source{position:absolute;bottom:7px;left:8px;z-index:2;background:#071220c9;border:1px solid #f0ce8e4d;color:#eadab8;padding:1px 6px;font-size:8px;text-transform:uppercase;letter-spacing:.07em}
.cf-mana{position:relative;z-index:2;display:flex;justify-content:flex-end;gap:5px;min-height:37px;margin-top:-24px;margin-right:9px}
.cf-cost{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:34px;height:34px;padding:3px 6px;border:1px solid #f2dfb3a8;border-radius:28px;background:radial-gradient(circle,#39455b,#071322 78%);box-shadow:0 2px 12px #000c;color:#fff4d7;font-size:13px}
.cf-cost img{width:18px;height:18px;object-fit:contain;filter:drop-shadow(0 0 4px #fff8)}
.cf-cost b{font-size:12px}
.cf-bottom{padding:4px 11px 11px;min-height:129px;display:flex;flex-direction:column}
.cf-marks{border-bottom:1px solid #bca67766;padding:1px 0 5px;display:flex;gap:7px;justify-content:space-between;color:var(--cf-accent);text-transform:uppercase;letter-spacing:.07em;font-size:9px;font-weight:700}
.cf-rules{color:#e7e7df;font-size:11px;line-height:1.37;margin:7px 0 0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5}
.cf-edge{position:absolute;z-index:3;right:7px;top:41px;color:var(--cf-accent);text-shadow:0 0 9px var(--cf-accent);pointer-events:none}
#cardGrid .cf-card[data-rarity="Legendary"]{border-width:2px;background:linear-gradient(130deg,#624d26,#0c1424 48%,#392a14)}
#cardGrid .cf-card[data-rarity="Ascendant"]{border-width:2px;box-shadow:0 0 22px #d9c27b56,0 13px 35px #000a;background:linear-gradient(130deg,#7b6829,#101328 45%,#513e1d)}
#cardGrid .cf-card[data-rarity="Ascendant"] .cf-edge{font-size:30px;animation:cf-pulse 5s ease-in-out infinite}
#cardGrid .cf-card[data-house="Briarthorn Assembly"] .cf-frame{background:linear-gradient(150deg,#132923,#070e18)}
#cardGrid .cf-card[data-house="Ashen Dominion"] .cf-frame{background:linear-gradient(150deg,#342019,#0c111b)}
#cardGrid .cf-card[data-house="Dawnfire Exiles"] .cf-frame{background:linear-gradient(150deg,#302720,#101623)}
#cardGrid .cf-card[data-house="Epoch Legion"] .cf-frame{background:linear-gradient(150deg,#19263e,#080f22)}
#cardGrid .cf-legacy{height:auto}
.cf-modal-extra{margin-top:18px;border-top:1px solid #dbba756b;padding-top:14px}
.cf-modal-label{color:#f3d8a4;font-weight:700;letter-spacing:.08em;font-size:11px;text-transform:uppercase}
.cf-modal-note{font-size:12px;color:#becadb}
.cf-modal-actions{display:flex;flex-wrap:wrap;gap:7px}
.cf-modal-actions button{border:1px solid #d8b7778a;background:#101e31;color:#f7e2b6;min-height:38px;padding:7px 11px;font-size:12px}
.cf-modal-actions button:hover{background:#243651}
.cf-copy-state{font-size:11px;color:#b5d6e4;min-height:18px;margin:8px 0 0}
@keyframes cf-pulse{50%{text-shadow:0 0 29px #fce4a9;filter:brightness(1.4)}}
@media(max-width:1180px){#cardGrid .cf-card,.cf-frame{min-height:390px}.cf-name{font-size:17px}}
@media(max-width:660px){.cf-controls{padding:13px}.cf-label{font-size:21px}.cf-modes{width:100%}.cf-modes button{flex:1 1 auto;font-size:11px}#cardGrid .cf-card,.cf-frame{min-height:352px}.cf-topline{font-size:8px}.cf-name{font-size:15px;min-height:45px}.cf-art{min-height:126px}.cf-bottom{min-height:123px;padding:4px 6px 9px}.cf-marks{font-size:8px}.cf-rules{font-size:10px;line-height:1.26}.cf-cost{width:30px;min-width:30px;height:30px;padding:1px}.cf-cost img{width:15px;height:15px}.cf-mana{margin-top:-21px}}
@media(prefers-reduced-motion:reduce){#cardGrid .cf-card,#cardGrid .cf-card:before,.cf-edge{animation:none!important;transition:none!important}#cardGrid .cf-card:hover{transform:none!important}}
body.v15-still .cf-edge{animation:none!important}