/* Manga collection: inked portrait plates, dark ink panels and selective foil. */
#characterGallery.ag-deck .ag-card-face{
 background:linear-gradient(128deg,#70818e 0%,#edf4f1 14%,#a4c6cd 22%,#c4b9d7 33%,#f1efe3 46%,#697c8f 58%,#c6dede 70%,#c9bad5 82%,#eef4ed 94%);
 background-size:165% 165%;background-position:var(--foil-x) var(--foil-y);
 box-shadow:inset 0 0 0 1px #f8ffff,inset 0 0 0 4px #1b2634,inset 0 0 0 6px #d7e3e2,0 3px 8px #0009;
}
#characterGallery.ag-deck .ag-card-face::before{inset:12px;background:linear-gradient(120deg,#111b2a,#080d17 62%,#1b2536);border-color:#c9d8df80;box-shadow:inset 0 1px #fff3}
#characterGallery.ag-deck .ag-card-masthead{color:#c3ccd1;letter-spacing:3px}
#characterGallery.ag-deck .ag-card-masthead b{color:#e2e7df;text-shadow:0 1px #000;font-size:27px}
#characterGallery.ag-deck .ag-card-caption{
 left:24px;right:24px;top:59px;height:51px;
 color:#eef6ff;background:linear-gradient(105deg,#112035,#080f1e 52%,#14283b);
 border-top:1px solid #84cdd970;border-bottom:2px solid #83c8db75;
 font-weight:800;letter-spacing:-.7px;text-shadow:0 2px #0009;
}
#characterGallery.ag-deck .ag-card-art{background:#09111f;border-radius:2px;border:1px solid #c6d5db;box-shadow:0 0 0 3px #070c14,0 0 0 4px #9aaebd80}
#characterGallery.ag-deck .ag-card-art img{left:-3px;top:-3px;width:590px;height:336px;object-fit:cover;object-position:center 30%;filter:none;transform-origin:center}
#characterGallery.ag-deck .ag-card-art::after{height:12px;background:linear-gradient(transparent,#060c1470)}
/* Foil stays strongest at the edges so the inked face remains crisp. */
#characterGallery.ag-deck .ag-holo-foil{opacity:.85;-webkit-mask-image:linear-gradient(90deg,#000,#000b 20%,#0003 40%,#0003 63%,#000b 83%,#000);mask-image:linear-gradient(90deg,#000,#000b 20%,#0003 40%,#0003 63%,#000b 83%,#000)}
#characterGallery.ag-deck .ag-holo-foil::before{opacity:.65}
#characterGallery.ag-deck .ag-holo-foil::after{opacity:.85}
#characterGallery.ag-deck .ag-card-edition{color:#dce4e6;font:700 21px/29px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.4px}
#characterGallery.ag-deck .ag-card-state{color:var(--card-accent);font:700 19px/29px Arial,sans-serif;letter-spacing:.5px}
#characterGallery.ag-deck .ag-card-copy{
 background:linear-gradient(115deg,#142334,#0a1525 58%,#111e30);
 border:1px solid #86afc66b;border-radius:2px;
 box-shadow:0 0 0 3px #070d17,0 0 0 4px #a9bdc47a,inset 0 1px #c3eaff20;
}
#characterGallery.ag-deck .ag-card-role{color:#dceeff;border-color:#83b3cf45}
#characterGallery.ag-deck .ag-card-description{color:#f1f6fd}
#characterGallery.ag-deck .ag-card-profile dl{border-color:#83b3cf45}
#characterGallery.ag-deck .ag-card-profile dt{color:#a8c2d5}
#characterGallery.ag-deck .ag-card-profile dd{color:#d9e9f4}
#characterGallery.ag-deck .ag-card-fact{color:#c5d4e6}
#characterGallery.ag-deck .ag-card-footer{color:#bccbd3}
#characterGallery.ag-deck .ag-card-footer>span{color:#e1e7de;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px;letter-spacing:1px}

/* JS drives the optical position continuously on touch screens too. */
:is(#characterGallery,#artefactGallery).ag-deck .ag-holo-foil{background-size:200% 150%;background-position:var(--foil-x) var(--foil-y);background-image:radial-gradient(ellipse at var(--foil-x) var(--foil-y),#d9ffff65,transparent 42%),linear-gradient(115deg,transparent 4%,#76efffaa 19%,#94ffce88 27%,#f6de9990 34%,#e9a4ff99 42%,#789dff99 50%,transparent 65%)}
:is(#characterGallery,#artefactGallery).ag-deck .ag-holo-foil::after{inset:-25%;animation:none;transform:translateX(var(--foil-sweep,0%));background:linear-gradient(112deg,transparent 27%,#a6eeff20 38%,#dbffff99 47%,#e8b5ff66 53%,transparent 66%)}
:is(#characterGallery,#artefactGallery).ag-deck.ag-light-tracking .ag-holo-foil::after{opacity:.85}
:is(#characterGallery,#artefactGallery).ag-deck .ag-card:not([data-position=active]) .ag-holo-foil{opacity:.25}
@media(prefers-reduced-motion:reduce){:is(#characterGallery,#artefactGallery).ag-deck .ag-holo-foil::after{transform:none!important;opacity:.4}}

/* Story identity: individual engraved marks, useful labels, no arbitrary rarity/debut data. */
:is(#characterGallery,#artefactGallery).ag-deck .ag-identity-crest{position:absolute;top:35px;left:25px;width:43px;height:43px;color:var(--card-accent);z-index:6;filter:drop-shadow(0 0 5px color-mix(in srgb,var(--card-accent) 35%,transparent));pointer-events:none}
:is(#characterGallery,#artefactGallery).ag-deck .ag-identity-crest svg{width:100%;height:100%}
#characterGallery.ag-deck .ag-identity-crest{top:19px;left:auto;right:32px;width:32px;height:32px}
#characterGallery.ag-deck .ag-card-masthead b{visibility:hidden}
#characterGallery.ag-deck .ag-card-profile dl{grid-template-columns:1fr 1fr}
#characterGallery.ag-deck .ag-card-copy{gap:10px}
#characterGallery.ag-deck .ag-card-edition{font:700 18px/29px Arial,sans-serif;letter-spacing:.3px}
#characterGallery.ag-deck .ag-card-state{font-size:18px;text-transform:none}
#artefactGallery.ag-deck .ag-card-edition{left:45px;right:45px;top:476px;font-size:17px;letter-spacing:.4px}
#artefactGallery.ag-deck .ag-card-copy{top:524px;left:53px;right:53px;width:524px;gap:17px}
#artefactGallery.ag-deck .ag-card-role{text-align:left;font-size:25px;line-height:30px;color:var(--card-accent)}
#artefactGallery.ag-deck .ag-card-description{font-size:27px;line-height:34px}
:is(#characterGallery,#artefactGallery).ag-deck .ag-card-footer{left:34px;right:34px;top:827px;height:34px;gap:16px;font-size:15px;letter-spacing:.1px}
:is(#characterGallery,#artefactGallery).ag-deck .ag-signature{display:flex;align-items:center;gap:8px;color:var(--card-accent);font:500 16px/19px Arial,sans-serif;max-width:260px;text-align:right}
:is(#characterGallery,#artefactGallery).ag-deck .ag-signature svg{width:32px;height:32px;flex:none}
#artefactGallery.ag-deck .ag-card-art .ag-object-stamp{position:absolute;display:block;width:52px;height:52px;left:48%;top:48%;z-index:4;color:#c3c9b8;opacity:.82;mix-blend-mode:screen;filter:drop-shadow(0 1px 1px #000);pointer-events:none}
#artefactGallery.ag-deck .ag-object-stamp svg{width:100%;height:100%}
#artefactGallery.ag-deck .ag-object-stamp[data-object=case]{left:47%;top:52%;transform:rotate(-5deg);width:74px;height:57px;color:#b4d2cf}
#artefactGallery.ag-deck .ag-object-stamp[data-object=ledger]{left:42%;top:27%;transform:rotate(-12deg);width:78px;height:78px;color:#d2b57e}
#artefactGallery.ag-deck .ag-object-stamp[data-object=file]{left:46%;top:30%;transform:rotate(10deg);width:75px;height:85px;color:#d4c5a3}
#artefactGallery.ag-deck .ag-object-stamp[data-object=photograph]{left:24%;top:65%;width:35px;height:35px;transform:rotate(-5deg);color:#897246;mix-blend-mode:multiply}
#artefactGallery.ag-deck .ag-object-stamp[data-object=map]{left:69%;top:57%;width:44px;height:44px;color:#76512d;mix-blend-mode:multiply}
#artefactGallery.ag-deck .ag-object-stamp[data-object=drone]{left:46%;top:23%;width:31px;height:31px;transform:rotate(12deg)}
#artefactGallery.ag-deck .ag-object-stamp[data-object=lamp]{left:47%;top:78%;width:33px;height:28px;color:#edd8a5}
#artefactGallery.ag-deck .ag-object-stamp[data-object=device]{left:47%;top:74%;width:40px;height:27px;color:#e6ccff}
#artefactGallery.ag-deck .ag-object-stamp[data-object=fragment]{left:44%;top:66%;width:27px;height:30px;color:#e7ceff;transform:rotate(20deg)}
#artefactGallery.ag-deck .ag-object-stamp[data-object=seed]{left:46%;top:60%;width:32px;height:45px;color:#d8efa5;opacity:.6}
