/* The trading card, as Pigeon Packs draws it (packs/collect.css, the ".cd" rules and their two fonts), copied here
   so the Coop's binder shows the cards as they really look. Keep the two in step: a change to the card there is
   made here too. Everything on the card is in em, so the binder sizes it with one font-size. */
.cd { --r0: #9aa0aa; --r1: #6fcf97; --r2: #e6c05e; --r3: #c48cff; --r4: #8fd8ff; }
@font-face { font-family: "PP Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "PP Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "PP Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "PP Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "PP Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "PP Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-mono-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "PP Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "PP Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-mono-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "PP Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-mono-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
.cd { --c: var(--r0); --disp: "PP Anton", "Impact", "Arial Narrow", sans-serif; --tiny: "PP Space Mono", ui-monospace, monospace;
  position: relative; display: block; width: 12.9em; height: 18.1em; overflow: hidden; border-radius: .9em; color: #f4f4f6; text-align: left;
  background: #0f1014; box-shadow: inset 0 0 0 .1em color-mix(in srgb, var(--c) 60%, transparent);
  transform: perspective(42em) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.cd.tilting { transition: transform .08s linear; }
.cd[data-r="1"] { --c: var(--r1); } .cd[data-r="2"] { --c: var(--r2); } .cd[data-r="3"] { --c: var(--r3); } .cd[data-r="4"] { --c: var(--r4); }
.cd-in { position: absolute; inset: .5em; }
.cd-art { position: absolute; left: 0; right: 0; top: 0; height: 11.2em; overflow: hidden; border-radius: .5em; background: #0e0f13; box-shadow: 0 0 0 .1em var(--c); }
.cd-pic { position: absolute; z-index: 0; left: -15%; top: -1%; width: 130%; max-width: none; height: auto; pointer-events: none; user-select: none; } /* zoomed past the game logo in the key art */
.cd-art[data-game="order"] .cd-pic, .cd-art[data-game="zeus"] .cd-pic { top: 1%; }
.cd-art[data-game="plague-of-hexes"] .cd-pic { left: -24%; top: 2%; }
.cd-tag { position: absolute; z-index: 2; left: calc(.45em / .46); top: calc(.45em / .46); padding: .55em .75em .5em; border-radius: .35em; background: var(--c); color: #0d0e12;
  font: 700 .46em/1 var(--tiny); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.cd-no { position: absolute; z-index: 2; right: calc(.45em / .7); top: calc(.45em / .7); padding: .2em .4em .15em; border-radius: .25em; background: #0d0e12; color: #fff;
  font: 400 .7em/1 var(--disp); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cd-band { position: absolute; left: 0; right: 0; top: 11.2em; bottom: 0; padding: .6em .2em 0; display: flex; flex-direction: column; overflow: hidden; }
.cd-big { position: absolute; right: -.04em; bottom: -.2em; font: 400 6.2em/1 var(--disp); color: color-mix(in srgb, var(--c) 13%, transparent); pointer-events: none; }
.cd-name { position: relative; font: 400 1.62em/1.02 var(--disp); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-name.long { font-size: 1.24em; line-height: 1.33; }
.cd-stats { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: .6em; margin-top: .5em; }
.cd-stats span { display: grid; gap: .3em; min-width: 0; }
.cd-stats small { font: 700 .4em/1 var(--tiny); letter-spacing: .14em; text-transform: uppercase; color: #8b8b94; }
.cd-stats b { font: 400 .86em/1 var(--disp); letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd-ft { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: .55em 0 .25em; border-top: 1px solid #ffffff1c;
  font: 400 .42em/1 var(--tiny); letter-spacing: .16em; text-transform: uppercase; color: #8b8b94; }
.cd-ft i { width: 4.8em; height: 1.6em; background: #fff; opacity: .5; -webkit-mask: url(/assets/brand/wordmark.webp) right center / contain no-repeat; mask: url(/assets/brand/wordmark.webp) right center / contain no-repeat; }
/* rarity as material: Rare and up get holo foil bands across the art, Epic and up glitter, Secret rare a holo keyline */
.cd[data-r="2"] .cd-art::before, .cd[data-r="3"] .cd-art::before, .cd[data-r="4"] .cd-art::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 1.1em, color-mix(in srgb, var(--c) 60%, #fff) 1.6em, transparent 2.1em, transparent 3.4em); background-size: 200% 100%;
  background-position: calc(var(--mx, 50%) * 2) 0; animation: cd-foil 8s linear infinite; }
.cd.tilting .cd-art::before { animation: none; }
@keyframes cd-foil { from { background-position: 0 0; } to { background-position: 200% 0; } }
.cd[data-r="3"] .cd-art::after, .cd[data-r="4"] .cd-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .8;
  background: radial-gradient(circle at 20% 30%, #fff 0 .5px, transparent 1px), radial-gradient(circle at 70% 60%, #fff 0 .5px, transparent 1px), radial-gradient(circle at 45% 80%, #fff 0 .4px, transparent .9px), radial-gradient(circle at 85% 20%, #fff 0 .4px, transparent .9px);
  background-size: 2.3em 2.1em, 1.9em 2.6em, 2.8em 1.7em, 1.6em 1.9em; }
.cd[data-r="4"] .cd-art { box-shadow: 0 0 0 .1em #fff, 0 0 0 .2em #ff9ad5, 0 0 0 .3em #8fc8ff; }
.cd[data-r="4"] .cd-tag { background: linear-gradient(100deg, #ffc2e6, #fff0b3 35%, #c2ffe6 65%, #c2dcff); } /* the gradient renders holo foil */
.cd[data-r="4"] .cd-art::before { opacity: .5; background-image: repeating-linear-gradient(115deg, transparent 0 1em, #ff9ad5 1.4em, #ffe58a 1.8em, #8fffd1 2.2em, #8fc8ff 2.6em, transparent 3em, transparent 4em); }
/* a card you haven't found: the character as a silhouette */
.cd.locked { --c: #3f3f46; }
.cd.locked .cd-pic { filter: grayscale(1) brightness(.32) blur(.28em); transform: scale(1.06); }
.cd.locked .cd-art::after { content: "?"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font: 400 4.6em/1 var(--disp); color: #ffffff38; }
.cd.locked .cd-name, .cd.locked .cd-stats b { color: #71717a; }
.cd.locked .cd-tag { color: #d4d4d8; }
@media (prefers-reduced-motion: reduce) { .cd-art::before { animation: none !important; } }
