/* The Star Pusher trading cards, shared by Star Pusher and Binder Battle. Markup comes from StarCards.cardHtml (cards.js). */
:root { --common: #9fb3d9; --rare: #8be9ff; --epic: #c084fc; --legendary: #ffd166; }
.tcard { --rc: var(--common); position: relative; aspect-ratio: 5 / 7; border-radius: 10px; padding: .55em; background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 55%, #fff), var(--rc) 45%, color-mix(in srgb, var(--rc) 60%, #000)); box-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 16px color-mix(in srgb, var(--rc) 40%, transparent); overflow: hidden; display: flex; flex-direction: column; text-align: center; color: #0b1020; }
.tcard.rare { --rc: var(--rare); } .tcard.epic { --rc: var(--epic); } .tcard.legendary { --rc: var(--legendary); }
.tcard .art { flex: 1; border-radius: 7px; background: radial-gradient(circle at 50% 40%, #2b3a7a, #0b1030 75%); display: grid; place-items: center; overflow: hidden; }
.tcard .art svg { width: 82%; height: 82%; overflow: visible; }
.tcard .nm { font-weight: 700; font-size: .78em; margin-top: 5%; line-height: 1.1; }
.tcard .rr { font-size: .6em; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.tcard .st { display: flex; justify-content: space-between; gap: 4px; margin-top: 4%; font-weight: 700; font-size: .72em; }
.tcard .st span { display: inline-flex; align-items: center; gap: 2px; background: rgba(11,16,32,.82); color: #fff; border-radius: 999px; padding: 1px 6px 1px 3px; }
.tcard .st svg { width: 1.05em; height: 1.05em; }
.tcard.epic::after, .tcard.legendary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, rgba(255,140,255,.35) 50%, transparent 65%); background-size: 250% 100%; animation: holo 2.6s ease-in-out infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes holo { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
/* the god pack's Omega Supernova: a rainbow card */
.tcard.god { background: linear-gradient(160deg, #ff5e7a, #ffd166 25%, #7bffb8 50%, #8be9ff 75%, #c084fc); box-shadow: 0 0 18px rgba(255,209,102,.8), 0 0 34px rgba(192,132,252,.6); }
.tcard.god .art { background: radial-gradient(circle at 50% 45%, #4c1d95, #0b1030 75%); }
/* the secret shop card before you buy it: no art, just a big question mark */
.tcard.mystery .art b { font-size: 3.4em; color: #ffd166; text-shadow: 0 0 14px #c084fc, 0 3px 0 rgba(0,0,0,.5); animation: mystery 1.8s ease-in-out infinite; }
@keyframes mystery { 50% { transform: scale(1.12) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .tcard.mystery .art b { animation: none; } }
.tcard.locked { --rc: #2a3157; color: var(--muted); }
.tcard.god.locked { background: linear-gradient(160deg, color-mix(in srgb, var(--rc) 55%, #fff), var(--rc) 45%, color-mix(in srgb, var(--rc) 60%, #000)); box-shadow: none; }
.tcard.locked .art svg { filter: brightness(0) opacity(.35); }
.tcard.locked::after { display: none; }

/* full-art foil cards (Comet Rider Nova): art edge to edge, clear bars over it, and a rainbow foil that slides across */
.tcard.fullart { padding: 0; container-type: inline-size; border: 3px solid #12101f; justify-content: space-between; }
.tcard.fullart .art { position: absolute; inset: 0; border-radius: 0; background: #1a0b3d; z-index: 0; }
.tcard.fullart .art svg { width: 100%; height: 100%; }
.tcard.fullart .fa-top, .tcard.fullart .fa-type { background: linear-gradient(90deg, rgba(255,209,102,.88), rgba(255,122,182,.78) 55%, rgba(139,233,255,.85)); border: 1px solid rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 2px 6px rgba(0,0,0,.45); color: #0b1020; text-align: left; }
.tcard.fullart .fa-top { position: relative; z-index: 2; margin: 5% 5% 0; display: flex; align-items: center; justify-content: space-between; gap: .3em; padding: .25em .5em; border-radius: .5em; }
.tcard.fullart .fa-top .nm { margin: 0; font-size: .74em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard.fullart .gem { display: grid; flex: none; } .tcard.fullart .gem svg { width: 1.15em; height: 1.15em; }
.tcard.fullart .fa-box { position: relative; z-index: 2; margin: 0 5% 5%; display: flex; flex-direction: column; gap: .3em; }
.tcard.fullart .fa-type { padding: .2em .5em; border-radius: .45em; font-size: .56em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard.fullart .fa-flavor { margin: 0; padding: .45em .55em; border-radius: .45em; font-size: .56em; font-style: italic; line-height: 1.25; color: #f4f6ff; text-align: left; background: rgba(26,11,61,.62); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(2px); }
.tcard.fullart .st { margin-top: 0; }
/* the foil: a soft rainbow sliding across the whole card, plus a bright glint */
.tcard.fullart::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: overlay; opacity: .55;
  background: linear-gradient(125deg, transparent 0%, rgba(255,94,122,.45) 14%, rgba(255,209,102,.45) 28%, rgba(123,255,184,.45) 42%, rgba(139,233,255,.45) 56%, rgba(192,132,252,.45) 70%, rgba(255,94,122,.45) 84%, transparent 100%); background-size: 300% 300%; animation: foil 6s linear infinite; }
.tcard.fullart::after { z-index: 4; }
@keyframes foil { 0% { background-position: 0% 0%; } 100% { background-position: 300% 300%; } }
/* small cards (binder pockets, the battle bench) skip the flavour text */
@container (max-width: 130px) { .tcard.fullart .fa-flavor { display: none; } .tcard.fullart .fa-type { font-size: .5em; } }
.tcard.fullart.locked .fa-top, .tcard.fullart.locked .fa-type { background: rgba(42,49,87,.9); color: var(--muted); }
.tcard.fullart.locked::before { display: none; }
@media (prefers-reduced-motion: reduce) { .tcard.fullart::before { animation: none; } }
