/* Full Art pulls (js/fullart.js, js/cardface.js fullArtFront, js/screens-cards.js shelf / inspect / pack reveal).
   Rules: js/economy.js FULL_ART_*. Palette: gold #ffd36e + the promo rainbow (#ff9de2 #9ad8ff #fff4a8 #b7ffcf). */

/* ---------------- showcase card (.lc.fa-card): holo shimmer, glare, FULL ART stamp, parallax tilt ---------------- */
.lc.fa-card { aspect-ratio: 560 / 832; background: #140c24; transform: perspective(900px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg)); transition: transform .35s var(--ease-out, ease-out), filter .3s;
  box-shadow: 0 0 0 2px rgba(255, 225, 150, .9), 0 0 26px rgba(255, 211, 110, .45), 0 16px 34px rgba(0, 0, 0, .6); will-change: transform; }
.lc.fa-card.fa-promo { aspect-ratio: 2 / 3; }
.lc.fa-card.fa-tilting { transition: transform .08s linear; }
.lc.fa-card::after, .lc.fa-on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 3px; z-index: 5;
  background: conic-gradient(from var(--ang, 0deg), #ffd36e, #ff9de2, #9ad8ff, #fff4a8, #b7ffcf, #ffd36e);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAng 4s linear infinite; }
.fa-holo { position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: color-dodge; opacity: .42;
  background: conic-gradient(from var(--ang, 0deg) at var(--gx, 50%) var(--gy, 40%), rgba(255, 120, 220, .32), rgba(120, 220, 255, .32), rgba(255, 250, 150, .32), rgba(140, 255, 190, .32), rgba(255, 120, 220, .32));
  animation: spinAng 7s linear infinite; }
.fa-holo::after { content: ""; position: absolute; inset: 0; mix-blend-mode: overlay;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 3cqw, rgba(255, 255, 255, .22) 3.5cqw, rgba(255, 255, 255, 0) 4.2cqw 8cqw); background-size: 200% 200%; animation: faStripes 6s linear infinite; }
@keyframes faStripes { to { background-position: 200% 0; } }
.fa-glare { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 45%); }
.lc.fa-card:hover .fa-glare, .lc.fa-card.fa-tilting .fa-glare { opacity: 1; }
.fa-stamp { position: absolute; top: 3.2%; right: 4.5%; z-index: 4; display: inline-flex; align-items: center; gap: .9cqw; padding: 1.3cqw 3.2cqw 1.1cqw 2.6cqw; border-radius: 99px; pointer-events: none;
  font: 900 4.6cqw/1 var(--font-title, Cinzel, serif); letter-spacing: .14em; color: #2b1600; white-space: nowrap;
  background: linear-gradient(180deg, #fff3c4, #f2c14e 55%, #b67a1c); box-shadow: 0 0 0 .45cqw rgba(255, 255, 255, .85), 0 .8cqw 2cqw rgba(0, 0, 0, .55), 0 0 3cqw rgba(255, 211, 110, .75); }
.fa-stamp i { font-style: normal; color: #7a3d00; }
.lc.fa-card .plate, .lc.fa-card .lp-plate { z-index: 3; }
/* not pulled yet: a dim silhouette */
.lc.fa-card.fa-locked { box-shadow: 0 0 0 1px rgba(255, 225, 150, .25), 0 10px 24px rgba(0, 0, 0, .5); transform: none; }
.lc.fa-card.fa-locked::after { display: none; }
.lc.fa-card.fa-locked img { filter: grayscale(1) brightness(.3) contrast(1.25) blur(1.5px); }
.lc.fa-card.fa-locked .plate, .lc.fa-card.fa-locked .lp-plate { opacity: .35; }
.fa-lock { position: absolute; left: 50%; top: 42%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; z-index: 3;
  border: .6cqw solid rgba(255, 211, 110, .45); background: rgba(10, 5, 24, .7); }
.fa-lock i { font-style: normal; font-size: 12cqw; color: rgba(255, 211, 110, .55); }

/* ---------------- a Leader with its Full Art switched on (battle, hub, leader select) ---------------- */
.lc.fa-on .fa-holo { opacity: .34; }
.lc.fa-on .fa-stamp { top: 12%; right: auto; left: 4%; font-size: 4.4cqw; }
.lc.fa-on .plate, .lc.fa-on .lpow { z-index: 3; }

/* ---------------- playable promo face with its full art (cardface.js fullArtFront) ---------------- */
.card .face.lcf.fa-face { background: #140c24; }
.card .face.lcf.fa-face > .fa-art { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.card .face.lcf.fa-face > .fa-bar, .card .face.lcf.fa-face > .fa-panel, .card .face.lcf.fa-face > .fa-gem { position: absolute; z-index: 1; pointer-events: none; }
.fa-face .fa-bar { left: 3.2%; top: 3%; width: 65%; height: 13.2%; border-radius: 3.4cqw; background: linear-gradient(180deg, rgba(20, 10, 40, .78), rgba(20, 10, 40, .6));
  box-shadow: inset 0 0 0 .45cqw rgba(255, 225, 150, .7), 0 .8cqw 2cqw rgba(0, 0, 0, .45); backdrop-filter: blur(3px); }
.fa-face .fa-gem { left: 89.58%; top: 6.9%; width: 17cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--fc) 60%, #fff), var(--fd) 75%); box-shadow: 0 0 0 .8cqw #e9c46a, 0 0 0 1.3cqw rgba(60, 30, 0, .7), 0 1cqw 2.4cqw rgba(0, 0, 0, .6); }
.fa-face .fa-panel { left: 4%; right: 4%; top: 55.2%; bottom: 2.4%; border-radius: 4.4cqw; background: linear-gradient(180deg, rgba(14, 7, 30, .66), rgba(14, 7, 30, .82));
  box-shadow: inset 0 0 0 .45cqw rgba(255, 225, 150, .55), 0 -1cqw 3cqw rgba(0, 0, 0, .35); backdrop-filter: blur(4px); }
.lcf.fa-face .cf-name { color: #fff4d6; text-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .9); }
.lcf.fa-face .cf-name .cf-ep, .lcf.fa-face.cf-tiny .cf-name .cf-ep { color: #f2d9a6; font-style: italic; }
.lcf.fa-face .cf-type { color: #f6e7c8; text-shadow: 0 .2cqw .8cqw rgba(0, 0, 0, .9); }
.lcf.fa-face .cf-rules { color: #f3ecff; text-shadow: 0 .2cqw .6cqw rgba(0, 0, 0, .8); }
.lcf.fa-face .cf-t b { color: #ffd98a; } .lcf.fa-face .cf-t em { color: #ffe9b8; }
.lcf.fa-face .cf-f { color: #d9c7a6; background: linear-gradient(90deg, transparent, rgba(255, 225, 150, .5), transparent) top center / 40% 1px no-repeat; }
.card .face.lcf.fa-face > .fa-stamp { top: 49.4%; right: 5.5%; font-size: 3.4cqw; padding: .9cqw 2.4cqw .8cqw 2cqw; }
.lcf.fa-face.cf-tiny > .fa-stamp { font-size: 4.2cqw; top: 48.2%; }
.card .face.lcf.fa-face > .fa-holo { z-index: 0; opacity: .34; } /* over the art, under the glass panels */
.card:has(.fa-face) .face { box-shadow: 0 0 0 1px rgba(255, 225, 150, .6), 0 0 16px rgba(255, 211, 110, .35), 0 6px 16px rgba(0, 0, 0, .55); }

/* ---------------- Collection shelf ---------------- */
.grid .slotc.fa-slot { display: flex; justify-content: center; }
.grid .slotc.fa-slot .fa-card { height: 100%; width: auto; cursor: pointer; }
.grid .slotc.fa-slot:not(.owned0) .fa-card:hover { transform: perspective(900px) translateY(-8px) scale(1.05) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg)); }
.fa-where, .fa-off, .fa-n { position: absolute; z-index: 6; pointer-events: none; white-space: nowrap; font: 800 11px/1.2 var(--font-ui, Inter, sans-serif); letter-spacing: .06em; border-radius: 99px; }
.fa-where { left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 10px; color: #ffe9b0; background: rgba(12, 6, 26, .88); border: 1px solid rgba(255, 211, 110, .4); }
.fa-off { left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 10px; color: #d9c8f0; background: rgba(12, 6, 26, .85); }
.fa-n { top: -8px; right: 2px; padding: 3px 9px; color: #2b1600; background: linear-gradient(180deg, #fff0c2, #f2c14e); }
body.mobile .fa-where, body.mobile .fa-off { font-size: 15px; } body.mobile .fa-n { font-size: 15px; }
body.portrait .fa-where, body.portrait .fa-off { font-size: 20px; padding: 6px 14px; bottom: 16px; } body.portrait .fa-n { font-size: 20px; padding: 4px 12px; }

/* ---------------- inspect ---------------- */
#inspect .fa-stage .big { display: flex; justify-content: center; }
#inspect .fa-stage .big .fa-card { height: 100%; width: auto; }
.fa-chip, .lc-rar.fa-rar { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 11px; border-radius: 99px; font: 900 12px/1.2 var(--font-ui, Inter, sans-serif); letter-spacing: .16em; text-transform: uppercase;
  color: #2b1600; background: linear-gradient(110deg, #ffd36e, #ff9de2 35%, #9ad8ff 60%, #fff4a8 85%); background-size: 200% 100%; animation: lcfHolo 5s linear infinite; box-shadow: 0 0 14px rgba(255, 211, 110, .5); }
.fa-chip i, .lc-rar.fa-rar i { font-style: normal; }
.lc-rar.fa-rar i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: #fff; box-shadow: 0 0 6px #fff; }
.fa-ctl { gap: 12px; }
.fa-switch { appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 211, 110, .35); background: rgba(12, 6, 26, .55); color: #fff4d6; text-align: left; cursor: pointer; font: inherit; }
.fa-switch > i { flex: none; position: relative; width: 50px; height: 28px; border-radius: 99px; background: #3a2d52; transition: background .25s; }
.fa-switch > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #d9c8f0; transition: transform .25s var(--ease-back, ease), background .25s; }
.fa-switch.on > i { background: linear-gradient(90deg, #f2c14e, #ff9de2); }
.fa-switch.on > i::after { transform: translateX(22px); background: #fff; }
.fa-switch span { display: flex; flex-direction: column; gap: 2px; } .fa-switch b { font-size: 15px; } .fa-switch small { font-size: 12.5px; color: #cdbfe6; }
.fa-switch:disabled { opacity: .6; }
.fa-row { appearance: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px dashed rgba(255, 211, 110, .35); background: rgba(12, 6, 26, .4); color: #e8dcc0; font: 700 13px var(--font-ui, Inter, sans-serif); cursor: pointer; text-align: left; }
.fa-row.own { border-style: solid; color: #ffe9b0; box-shadow: 0 0 14px rgba(255, 211, 110, .25); }
.fa-row i { font-style: normal; color: #ffd36e; } .fa-row span { flex: 1; } .fa-row .lci { width: 16px; height: 16px; transform: rotate(-90deg); }
body.mobile .fa-switch b { font-size: 21px; } body.mobile .fa-switch small { font-size: 17px; } body.mobile .fa-row { font-size: 18px; } body.mobile .fa-chip { font-size: 16px; }
body.portrait .fa-switch b { font-size: 24px; } body.portrait .fa-switch small { font-size: 19px; } body.portrait .fa-switch > i { width: 70px; height: 38px; }
body.portrait .fa-switch > i::after { width: 30px; height: 30px; top: 4px; left: 4px; } body.portrait .fa-switch.on > i::after { transform: translateX(32px); }
body.portrait .fa-row { font-size: 21px; padding: 12px 16px; } body.portrait .fa-chip { font-size: 18px; padding: 7px 16px; }

/* ---------------- pack opening ---------------- */
#opening .labels .pk-lab span.lc-rar.fa-rar { display: inline-flex; font: 900 11.5px/1.2 var(--font-ui, Inter, sans-serif); letter-spacing: .16em; padding: 5px 13px; border-radius: 99px; color: #2b1600;
  background: linear-gradient(110deg, #ffd36e, #ff9de2 35%, #9ad8ff 60%, #fff4a8 85%); background-size: 200% 100%; animation: lcfHolo 5s linear infinite; box-shadow: 0 0 16px rgba(255, 211, 110, .7); }
#opening .labels .pk-lab span.pk-fa-note { display: block; margin-top: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(10, 5, 24, .9); border: 1px solid rgba(255, 211, 110, .45); color: #ffe9b0; font: 800 11.5px var(--font-ui, Inter, sans-serif); }
.pk-rc.pk-rc-fa b { color: #2b1600; background: linear-gradient(180deg, #fff0c2, #f2c14e); }
.pk-fa-note { display: block; margin-top: 6px; padding: 4px 10px; border-radius: 99px; font: 800 11.5px var(--font-ui, Inter, sans-serif); color: #ffe9b0; background: rgba(10, 5, 24, .9); border: 1px solid rgba(255, 211, 110, .45); white-space: nowrap; text-align: center; }
#opening .labels .pk-lab { display: flex; flex-direction: column; align-items: center; }
.pk-banner.fa-banner small.fa-bs { color: transparent; background: linear-gradient(110deg, #ffd36e, #ff9de2 30%, #9ad8ff 55%, #fff4a8 80%, #ffd36e); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  text-shadow: none; animation: lcfHolo 3s linear infinite; font-size: 18px; letter-spacing: .5em; }
#opening::after { content: ""; position: absolute; inset: -20%; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: conic-gradient(from var(--ang, 0deg), rgba(255, 211, 110, .0), rgba(255, 157, 226, .5), rgba(154, 216, 255, .5), rgba(255, 244, 168, .55), rgba(183, 255, 207, .45), rgba(255, 211, 110, .0));
  filter: blur(40px); }
#opening.fa-burst::after { animation: faBurst 2.4s ease-out, spinAng 3s linear infinite; }
@keyframes faBurst { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: .95; } 100% { opacity: 0; transform: scale(1.15); } }
.pk-fcell.pk-fa { animation-duration: .9s; }
.pk-fcell .pk-fa-card { height: 280px; width: auto; animation: faFlipIn 1.2s cubic-bezier(.2, .9, .3, 1.1) both; animation-delay: calc(var(--i) * 140ms + 500ms); }
@keyframes faFlipIn { 0% { transform: perspective(900px) rotateY(180deg) scale(.8); filter: brightness(0); } 55% { filter: brightness(1.8); } 100% { transform: perspective(900px); filter: none; } }
body.portrait .pk-fcell .pk-fa-card { height: 358px; }
body.mobile .pk-fa-note { font-size: 16px; } body.portrait .pk-fa-note { font-size: 19px; padding: 6px 14px; }
body.mobile #opening .labels .pk-lab .lc-rar.fa-rar { font-size: 17px; } body.portrait #opening .labels .pk-lab .lc-rar.fa-rar { font-size: 20px; padding: 8px 18px; }

/* shop note + odds */
.note .fa-note { color: #ffe9b0; } .note .fa-note i { font-style: normal; color: #ffd36e; }

/* ---------------- calm modes ---------------- */
body.fx-low .fa-holo, body.fx-low .fa-holo::after, body.fx-low .lc.fa-card::after, body.fx-low .lc.fa-on::after, body.fx-low .fa-chip, body.fx-low .lc-rar.fa-rar,
body.fx-low #opening.fa-burst::after, body.fx-low .pk-fcell .pk-fa-card, body.fx-low .pk-banner.fa-banner small.fa-bs { animation: none !important; }
body.fx-low .lc.fa-card { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fa-holo, .fa-holo::after, .lc.fa-card::after, .lc.fa-on::after, .fa-chip, .lc-rar.fa-rar, #opening.fa-burst::after, .pk-fcell .pk-fa-card, .pk-banner.fa-banner small.fa-bs { animation: none !important; }
  .lc.fa-card { transform: none !important; }
}

/* ---------------- Traveler's Pack (special codes) + shop code field ---------------- */
#shop .packs.has-trav .shoppack { width: 232px; }
#shop .packs.has-trav .shoppack img { max-width: 222px; }
#shop .shoppack.trav .sp-tilt img { filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .7)) hue-rotate(0deg) saturate(1.15); }
.tv-foil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35; border-radius: 8px;
  background: conic-gradient(from var(--ang, 0deg), rgba(255, 157, 226, .5), rgba(154, 216, 255, .5), rgba(255, 244, 168, .5), rgba(183, 255, 207, .5), rgba(255, 157, 226, .5));
  -webkit-mask: url("../assets/packs/6.webp") center / contain no-repeat; mask: url("../assets/packs/6.webp") center / contain no-repeat; animation: spinAng 6s linear infinite; }
.tv-n { position: absolute; right: 8px; top: 30px; z-index: 3; font: 900 22px/1 var(--font-title); font-style: normal; color: #2b1600; padding: 7px 12px; border-radius: 99px;
  background: linear-gradient(180deg, #fff0c2, #f2c14e 55%, #c98a22); box-shadow: 0 0 18px rgba(242, 193, 78, .8); }
#shop .shoppack.trav .nm { background: linear-gradient(110deg, #ffd36e, #ff9de2 30%, #9ad8ff 55%, #fff4a8 80%, #ffd36e); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: lcfHolo 4s linear infinite; }
.tv-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 10px 0 6px; }
.tv-col { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px 14px; border-radius: 16px; cursor: pointer; font: inherit; color: #fff4d6;
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--c) 35%, transparent), rgba(12, 6, 26, .85) 70%);
  transition: transform .2s var(--ease-back, ease), box-shadow .2s; }
.tv-col:hover, .tv-col:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--c), 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); }
.tv-col .setgem { width: 26px; height: 26px; }
.tv-col b { font: 900 17px var(--font-title); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 60%, #fff); }
.tv-col span { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3; }
body.portrait .tv-pick { grid-template-columns: 1fr; gap: 14px; } body.portrait .tv-col { flex-direction: row; justify-content: flex-start; padding: 18px 22px; gap: 18px; }
body.portrait .tv-col b { font-size: 28px; } body.portrait .tv-col span { font-size: 20px; text-align: left; } body.portrait .tv-col .setgem { width: 40px; height: 40px; }
body.mobile .tv-col b { font-size: 22px; } body.mobile .tv-col span { font-size: 16px; }
#shop .note .sp-code { appearance: none; border: 1px solid rgba(232, 186, 90, .45); background: rgba(12, 6, 26, .6); color: #f6d98a; font: 800 12.5px var(--font-ui, Inter, sans-serif); letter-spacing: .08em;
  padding: 5px 14px; border-radius: 99px; cursor: pointer; }
#shop .note .sp-code:hover { background: rgba(242, 193, 78, .18); }
body.mobile #shop .note .sp-code { font-size: 18px; padding: 8px 18px; } body.portrait #shop .note .sp-code { font-size: 20px; padding: 10px 20px; }
.sp-codef { display: flex; gap: 10px; margin: 8px 0; }
.sp-codef input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(232, 186, 90, .45); background: rgba(10, 5, 24, .8); color: #fff4d6; font: 700 16px var(--font-ui, Inter, sans-serif); letter-spacing: .12em; text-transform: uppercase; }
.sp-ok { color: #b7ffcf; font: 900 20px var(--font-title); text-align: center; } .sp-ok:empty { display: none; }
body.portrait .sp-codef input { font-size: 24px; padding: 16px 18px; } body.portrait .sp-ok { font-size: 30px; }
body.fx-low .tv-foil, body.fx-low #shop .shoppack.trav .nm { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .tv-foil, #shop .shoppack.trav .nm { animation: none !important; } }

/* ---------------- pack opening polish ---------------- */
/* the tear-me hint sits under the pack, not over its label (landscape) */
body:not(.portrait) #opening.pk-ready .hint { bottom: 36px; }
/* no-WebGL fallback: the row sits in the middle of the stage instead of hugging the top */
body:not(.portrait) .pk-fallback { top: 50%; transform: translateY(-62%); }
