/* =====================================================================
   Lane 3: Collection, card inspect/craft, Deck Lab, Shop + pack opening.
   Markup comes from js/screens-cards.js. Loaded after arena.css.
   ===================================================================== */

/* ---------- shared bits ---------- */
.lci { width: 18px; height: 18px; flex: none; display: block; }
.setgem { display: block; width: 16px; height: 20px; flex: none; clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 35%, #fff) 0%, var(--c) 45%, var(--d, #222) 100%); }
.lc-shard { display: inline-flex; align-items: center; gap: 6px; }
.lc-shard > i, i.lc-shard > i { display: block; width: 11px; height: 15px; flex: none; clip-path: polygon(50% 0, 100% 34%, 78% 100%, 22% 100%, 0 34%);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 30%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); }
.lc-rar { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border-radius: 99px; white-space: nowrap;
  font: 800 11.5px/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--r);
  background: color-mix(in srgb, var(--r) 13%, rgba(10, 5, 24, .9)); border: 1px solid color-mix(in srgb, var(--r) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--r) 25%, transparent); }
.lc-rar i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--r); box-shadow: 0 0 8px var(--r); flex: none; }

/* ---------- filter bar (Collection + Deck Lab) ---------- */
.cl-bar { position: absolute; top: 98px; left: 30px; right: 30px; height: 54px; z-index: 4; display: flex; align-items: center; gap: 14px; }
.cl-bar .fb { flex: 1; min-width: 0; height: 100%; }
.cl-bar .cnt { flex: none; color: var(--ink-dim, #b7a8d6); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.cl-bar .cnt b { color: var(--gold-1, #f6d98a); font: 800 16px var(--font-title); margin-right: 3px; }
.cf { display: flex; align-items: center; gap: 10px; height: 100%; min-width: 0; }
.cf-g { display: flex; gap: 2px; padding: 3px; border-radius: 12px; flex: none;
  background: linear-gradient(180deg, rgba(8, 4, 18, .82), rgba(20, 11, 40, .78)); border: 1px solid rgba(232, 186, 90, .2); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.cf-g button, .cf-tog, .cf-clear { appearance: none; border: 0; cursor: pointer; color: #cbb9ee; background: transparent; font: 700 13px var(--font-ui); letter-spacing: .03em;
  height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 7px; position: relative;
  transition: background .2s, color .2s, transform .2s var(--ease-back), box-shadow .2s; }
.cf-g button:hover, .cf-tog:hover { color: #fff; background: rgba(168, 107, 255, .16); }
.cf-g button:active { transform: scale(.95); }
.cf-g button.on, .cf-tog.on { color: #fff; background: linear-gradient(180deg, rgba(120, 70, 210, .8), rgba(70, 34, 140, .85)); box-shadow: 0 0 0 1px rgba(232, 186, 90, .5) inset, 0 4px 12px rgba(90, 40, 180, .45); }
.cf-set { width: 40px; }
.cf-set .setgem { opacity: .55; transform: scale(.92); transition: opacity .2s, transform .25s var(--ease-back); }
.cf-set:hover .setgem { opacity: .9; }
.cf-set.on { background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 45%, transparent), rgba(20, 10, 40, .6) 72%) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 80%, #fff) inset, 0 0 16px color-mix(in srgb, var(--c) 55%, transparent) !important; }
.cf-set.on .setgem { opacity: 1; transform: scale(1.12); filter: drop-shadow(0 0 5px var(--c)); }
/* the Promo filter: a rainbow star (the promo badge colours), so it never reads as a second Gold gem */
.cf-set.cf-promo .setgem { clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%); width: 20px; height: 20px;
  background: linear-gradient(135deg, #ff9de2, #9ad8ff 40%, #fff4a8 70%, #b7ffcf); }
.cf-set.cf-promo { --c: #ff9de2 !important; margin-right: 6px; }
.cf-type { padding: 0 12px; }
.cf-type .lci { width: 16px; height: 16px; }
.cf-own button { padding: 0 14px; }
.cf-tog { padding: 0 14px 0 10px; flex: none; background: linear-gradient(180deg, rgba(8, 4, 18, .82), rgba(20, 11, 40, .78)); border: 1px solid rgba(232, 186, 90, .2); border-radius: 12px; height: 46px; }
.cf-tog i { width: 30px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: background .2s; }
.cf-tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #cbb9ee; transition: transform .25s var(--ease-back), background .2s; }
.cf-tog.on i { background: linear-gradient(90deg, var(--gold-3, #a8741c), var(--gold-2, #e2b04a)); }
.cf-tog.on i::after { transform: translateX(12px); background: #fff4d6; }
.cf-sort, .cf-search { position: relative; display: flex; align-items: center; flex: none; color: var(--gold-2, #e2b04a); }
.cf-sort .lci, .cf-search .lci { position: absolute; left: 11px; width: 16px; height: 16px; pointer-events: none; z-index: 1; }
.cf-sort select { appearance: none; -webkit-appearance: none; height: 46px; padding: 0 30px 0 34px; border-radius: 12px; font: 700 13px var(--font-ui); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #e2b04a 50%), linear-gradient(135deg, #e2b04a 50%, transparent 50%) !important; }
.page .cf-sort select { background: linear-gradient(180deg, rgba(8, 4, 18, .85), rgba(22, 12, 44, .85)) !important; }
.cf-sort::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--gold-2, #e2b04a); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.cf-search { flex: 1 1 180px; min-width: 150px; max-width: 320px; }
.cf-search .search { width: 100%; height: 46px; padding: 0 14px 0 36px; border-radius: 12px; font: 500 14px var(--font-ui); user-select: text; -webkit-user-select: text; }
.cf-clear { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid rgba(232, 186, 90, .3); background: rgba(12, 6, 28, .7); color: var(--gold-1, #f6d98a); }
.cf-clear:hover { background: rgba(255, 90, 70, .18); color: #fff; }
.cf-clear.hide { opacity: 0; pointer-events: none; transform: scale(.7); }

/* ---------- card grid (Collection + Deck Lab) ---------- */
#collection .grid, #deckbuilder .grid { top: 164px; bottom: 112px; gap: 30px 18px; padding: 16px 10px 40px; align-content: start; }
.grid .slotc { transition: filter .25s; }
.grid .slotc::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -16px; height: 46px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--rc, #b98aff) 0%, transparent 70%); opacity: 0; transform: scaleX(.6); filter: blur(4px);
  transition: opacity .3s, transform .35s var(--ease-out); }
.grid .slotc:hover::before { opacity: .85; transform: scaleX(1); }
.grid .slotc .card { transition: transform .32s var(--ease-back), filter .3s; }
.grid .slotc .card:hover { transform: translateY(-10px) scale(1.06); }
.grid .slotc .card:active { transform: translateY(-4px) scale(1.02); transition-duration: .1s; }
.grid .slotc .card .face { transition: box-shadow .3s; }
.grid .slotc .card:hover .face { box-shadow: 0 18px 30px rgba(0, 0, 0, .6), 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent), 0 0 22px color-mix(in srgb, var(--rc) 45%, transparent); }
.cpips { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 6; pointer-events: none; }
.cpips i { width: 8px; height: 8px; transform: rotate(45deg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(232, 186, 90, .45); transition: background .3s, box-shadow .3s; }
.cpips i.on { background: linear-gradient(135deg, #fff0c2, #e2b04a 60%, #a8741c); border-color: #fff0c2; box-shadow: 0 0 8px rgba(242, 193, 78, .8); }
.cpips.pop i.on { animation: pipPop .6s var(--ease-back); }
@keyframes pipPop { 0% { transform: rotate(45deg) scale(.4); } 60% { transform: rotate(45deg) scale(1.6); } 100% { transform: rotate(45deg) scale(1); } }
#collection .owned0 .card { filter: grayscale(.85) brightness(.4) contrast(1.05); }
#collection .owned0 .card:hover { filter: grayscale(.6) brightness(.62); }
.clock { position: absolute; left: 50%; top: 38%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; z-index: 6; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, rgba(60, 36, 110, .95), rgba(10, 5, 24, .95)); border: 1px solid rgba(232, 186, 90, .6); color: var(--gold-1, #f6d98a);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .6), 0 0 14px rgba(242, 193, 78, .25); transition: transform .3s var(--ease-back); }
.clock .lci { width: 20px; height: 20px; }
.slotc:hover .clock { transform: translateY(-10px) scale(1.06); }
.ccraft { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 6; pointer-events: none; white-space: nowrap;
  font: 800 10px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; color: #2b1600;
  background: linear-gradient(180deg, #ffe39a, #d99a2b); box-shadow: 0 0 12px rgba(242, 193, 78, .6); }
.slotc.isnew .card .face { box-shadow: 0 0 0 2px #ffe08a, 0 0 22px rgba(242, 193, 78, .7), 0 6px 16px rgba(0, 0, 0, .55); animation: newGlow 2.4s ease-in-out infinite; }
@keyframes newGlow { 50% { box-shadow: 0 0 0 2px #fff0c2, 0 0 34px rgba(242, 193, 78, .95), 0 6px 16px rgba(0, 0, 0, .55); } }
.cnew { position: absolute; top: -9px; left: -6px; z-index: 7; pointer-events: none; font: 900 11px var(--font-ui); letter-spacing: .16em; padding: 4px 9px; border-radius: 6px;
  color: #2b1600; background: linear-gradient(180deg, #fff0c2, #f2c14e 55%, #c98a22); box-shadow: 0 4px 10px rgba(0, 0, 0, .5), 0 0 14px rgba(242, 193, 78, .7); }
.cg-in { animation: cgIn .38s var(--ease-out) both; }
@keyframes cgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cl-band { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; padding: 2px 4px 8px; margin-bottom: -12px; border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--gold-line, rgba(232,186,90,.55)), transparent 70%) 1; }
.cl-band b { font: 800 17px var(--font-title); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-1, #f6d98a); }
.cl-band span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.cl-band + .slotc, .cl-band ~ .cl-band { margin-top: 0; }
.ccraft.promo { background: linear-gradient(180deg, #e9dcff, #a86bff); color: #1a0736; box-shadow: 0 0 12px rgba(168,107,255,.6);
  white-space: normal; width: 86%; text-align: center; text-transform: none; letter-spacing: .02em; line-height: 1.2; font-size: 11px; border-radius: 10px; padding: 5px 8px; bottom: 8%; }
body.mobile .cl-band b { font-size: 24px; } body.mobile .cl-band span { font-size: 18px; }
.cl-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; font-size: 16px; }

/* ---------- collection header ---------- */
#collection .top { gap: 18px; }
.cl-prog { display: flex; align-items: center; gap: 10px; flex: none; }
.cl-prog svg { width: 46px; height: 46px; transform: rotate(-90deg); overflow: visible; }
.cl-prog circle { fill: none; stroke-width: 4.5; }
.cl-prog .bg { stroke: rgba(255, 255, 255, .1); }
.cl-prog .fg { stroke: var(--gold-2, #e2b04a); stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(242, 193, 78, .7)); transition: stroke-dashoffset 1s var(--ease-out); }
.cl-prog b { display: block; font: 800 19px/1.1 var(--font-title); color: #fff4d6; }
.cl-prog b small { font-size: 13px; color: var(--muted); }
.cl-prog span { font: 700 10.5px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cl-shards { display: flex; gap: 2px; padding: 4px; border-radius: 99px; flex: none;
  background: linear-gradient(180deg, rgba(10, 6, 22, .9), rgba(26, 14, 50, .85)); border: 1px solid rgba(232, 186, 90, .3); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.cl-shards .lc-shard { padding: 6px 12px 6px 10px; border-radius: 99px; }
.cl-shards .lc-shard:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.cl-shards .lc-shard b { font: 800 15px var(--font-title); color: #f3ecff; min-width: 14px; }
.cl-shards .lc-shard > i { filter: drop-shadow(0 0 4px var(--c)); }
.albumsbtn { display: inline-flex !important; align-items: center; gap: 8px; flex: none; }
.albumsbtn .lci { width: 18px; height: 18px; }
.albumsbtn em { font: 800 12px var(--font-ui); font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #ff4a3a; color: #fff; box-shadow: 0 0 10px #ff4a3a; }

/* ---------- card inspect / craft ---------- */
#inspect .box.ci-box { display: grid; grid-template-columns: 420px 480px; gap: 48px; padding: 38px 46px; align-items: center; text-align: left; overflow: hidden; max-width: none; }
.ci-box > * { position: relative; z-index: 1; }
.ci-box > .ci-bg { position: absolute; inset: 0; z-index: 0; background-size: cover, cover; background-position: center; opacity: .2; filter: blur(22px) saturate(1.3);
  transform: scale(1.2); -webkit-mask: linear-gradient(90deg, #000 20%, transparent 85%); mask: linear-gradient(90deg, #000 20%, transparent 85%); pointer-events: none; }
.ci-x { position: absolute !important; top: 16px; right: 16px; z-index: 3 !important; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(12, 6, 28, .75); border: 1px solid rgba(232, 186, 90, .35); color: var(--gold-1, #f6d98a); transition: background .2s, transform .2s var(--ease-back); }
.ci-x:hover { background: rgba(120, 70, 210, .5); transform: rotate(90deg); }
.ci-stage { width: 420px; height: 588px; }
.ci-halo { position: absolute; inset: 6% -6%; border-radius: 50%; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--rc) 55%, transparent), transparent 68%); filter: blur(20px); opacity: .55; pointer-events: none;
  animation: ciHalo 4s ease-in-out infinite; }
@keyframes ciHalo { 50% { opacity: .8; transform: scale(1.04); } }
.ci-stage.crafted .ci-halo { animation: ciFlare 1.2s var(--ease-out); }
@keyframes ciFlare { 0% { opacity: .5; transform: scale(1); } 35% { opacity: 1; transform: scale(1.3); filter: blur(10px) brightness(1.8); } 100% { opacity: .55; transform: scale(1); } }
.ci-stage .big { position: relative; z-index: 1; }
.ci-glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 7.5cqw; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .38), rgba(255, 230, 180, .08) 30%, transparent 55%); mix-blend-mode: overlay; }
.card.glaring .ci-glare { opacity: 1; }
.ci-info { max-height: 640px; overflow-y: auto; padding: 2px 8px 2px 0; display: flex; flex-direction: column; gap: 12px; user-select: text; }
.ci-eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2, #e2b04a); }
#inspect .ci-info h3 { font: 900 34px/1.1 var(--font-title); letter-spacing: .03em; margin: 0; color: #fff4d6; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.ci-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ci-type { color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.ci-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ci-stats > span { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(232, 186, 90, .18); font: 700 12px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ci-stats i { font: 900 17px var(--font-title); font-style: normal; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; text-shadow: 0 1px 2px #000; }
.ci-cost i { background: radial-gradient(circle at 35% 30%, #d9c2ff, #7a3fd8 60%, #3a1a78); box-shadow: 0 0 10px rgba(168, 107, 255, .6); }
.ci-pow i { background: radial-gradient(circle at 35% 30%, #ff9a7a, #b3231a); }
.ci-hp i { background: radial-gradient(circle at 35% 30%, #8fe7ff, #1464b4); }
.ci-rules { font: 20px/1.5 var(--font-card); white-space: pre-line; padding: 14px 18px; border-radius: 12px; background: rgba(8, 4, 18, .55); border: 1px solid rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 var(--c); }
.ci-rules:empty { display: none; }
.ci-flavor { font: italic 17px/1.5 var(--font-card); color: #d7c3a3; padding: 0 4px; }
.ci-tips { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-direction: column; gap: 6px; }
.ci-tips li { position: relative; padding-left: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ci-tips li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2, #e2b04a); }
#inspect .craftbox { margin-top: 4px; padding: 14px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  background: linear-gradient(180deg, rgba(40, 22, 76, .7), rgba(16, 9, 32, .75)); border: 1px solid rgba(232, 186, 90, .28); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.ci-own { display: flex; align-items: center; gap: 12px; }
.ci-own > span { font: 700 11px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ci-own .cpips { position: static; transform: none; gap: 9px; }
.ci-own .cpips i { width: 11px; height: 11px; }
.ci-own b { margin-left: auto; font: 800 16px var(--font-title); color: #fff4d6; }
.ci-full { display: flex; align-items: center; gap: 8px; color: #9dffc4; font-size: 13.5px; }
.ci-full .lci { width: 16px; height: 16px; }
.ci-craft { display: flex; flex-direction: column; gap: 8px; }
.ci-shardline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #d8ccef; }
.ci-shardline b { margin-left: auto; font: 800 16px var(--font-title); color: #ff9c92; }
.ci-shardline b.ok { color: #9dffc4; }
.ci-shardline em { font-style: normal; color: var(--muted); }
.ci-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ci-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, #fff)); box-shadow: 0 0 10px var(--c); transition: width .6s var(--ease-out); }
#craftBtn { width: 100%; font-size: 16px; padding: 12px; }
#inspect .err { color: #ff9c92; font-size: 13px; min-height: 0; }
#inspect .err:empty { display: none; }

/* ---------- deck lab ---------- */
#deckbuilder .top { gap: 18px; }
#deckbuilder .cl-bar, #deckbuilder .grid { right: 426px; }
#deckbuilder .navbar { left: calc(50% - 206px); }
.dl-bar .cf-type span { display: none; }
.dl-bar .cf-type { padding: 0; width: 40px; }
.dl-hint { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; }
.dl-pick { position: relative; flex: none; z-index: 20; }
.dl-pickbtn { appearance: none; cursor: pointer; display: flex; align-items: center; gap: 12px; height: 54px; min-width: 260px; max-width: 400px; padding: 0 14px 0 16px; border-radius: 12px; color: var(--ink); text-align: left;
  background: linear-gradient(180deg, rgba(40, 24, 72, .8), rgba(18, 10, 36, .85)); border: 1px solid rgba(232, 186, 90, .35); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: border-color .2s, transform .2s var(--ease-back); }
.dl-pickbtn:hover { border-color: var(--gold-1, #f6d98a); transform: translateY(-1px); }
.dl-pickbtn > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-pickbtn small { font: 700 10.5px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2, #e2b04a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pickbtn b { font: 800 17px var(--font-title); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pickbtn .lci { color: var(--gold-1, #f6d98a); }
.dl-dot { display: block; width: 12px; height: 12px; flex: none; transform: rotate(45deg); border-radius: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.dl-menu { position: absolute; top: 62px; left: 0; width: 400px; max-height: 600px; overflow-y: auto; padding: 10px; border-radius: 16px; display: none;
  background: linear-gradient(180deg, rgba(30, 17, 58, .98), rgba(14, 8, 28, .98)); border: 1px solid rgba(232, 186, 90, .4); box-shadow: 0 30px 60px rgba(0, 0, 0, .7); }
.dl-menu.on { display: block; animation: afPop .3s var(--ease-back); }
.dl-new { appearance: none; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; cursor: pointer; color: var(--gold-1, #f6d98a); font: 800 14px var(--font-title); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(242, 193, 78, .07); border: 1px dashed rgba(232, 186, 90, .55); }
.dl-new:hover { background: rgba(242, 193, 78, .16); }
.dl-fold h5 { display: flex; align-items: center; gap: 7px; margin: 12px 6px 6px; font: 700 11px var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.dl-fold h5 .lci { width: 14px; height: 14px; color: var(--gold-2, #e2b04a); }
.dl-fold h5 em { font-style: normal; margin-left: auto; opacity: .7; }
.dl-fold button { appearance: none; width: 100%; display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  background: transparent; border: 1px solid transparent; color: var(--ink); transition: background .15s; }
.dl-fold button:hover { background: rgba(168, 107, 255, .14); }
.dl-fold button.on { background: rgba(120, 70, 210, .35); border-color: rgba(232, 186, 90, .4); }
.dl-fold button b { font: 700 15px var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-fold button em { font-style: normal; font: 800 13px var(--font-title); color: var(--muted); }
.dl-fold button em.ok { color: #9dffc4; }
.dl-none { color: var(--muted); font-size: 14px; text-align: center; margin: 14px 0 6px; }
#deckbuilder .decklist.af-panel { top: 96px; right: 24px; width: 386px; bottom: 16px; padding: 16px 16px 12px; gap: 10px; border-radius: 18px; z-index: 5;
  background: linear-gradient(180deg, rgba(30, 17, 58, .92), rgba(12, 7, 26, .95)); border: 1px solid rgba(232, 186, 90, .32); }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-ring { position: relative; width: 72px; height: 72px; flex: none; }
.dl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dl-ring circle { fill: none; stroke-width: 6; }
.dl-ring .bg { stroke: rgba(255, 255, 255, .08); }
.dl-ring .fg { stroke: #b98aff; stroke-linecap: round; transition: stroke-dashoffset .5s var(--ease-out), stroke .3s; filter: drop-shadow(0 0 4px rgba(168, 107, 255, .7)); }
.dl-ring.full .fg { stroke: var(--gold-2, #e2b04a); filter: drop-shadow(0 0 7px rgba(242, 193, 78, .9)); }
.dl-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.dl-ring b { font: 900 25px var(--font-title); color: #fff; }
.dl-ring.full b { color: var(--gold-1, #f6d98a); text-shadow: 0 0 12px rgba(242, 193, 78, .7); }
.dl-ring span { font: 700 11px var(--font-ui); color: var(--muted); margin-top: 2px; }
.dl-names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#deckbuilder .dl-name { width: 100%; font: 800 18px var(--font-title); letter-spacing: .03em; padding: 8px 12px; border-radius: 10px; user-select: text; -webkit-user-select: text; }
.dl-folder { position: relative; display: flex; align-items: center; color: var(--gold-2, #e2b04a); }
.dl-folder .lci { position: absolute; left: 10px; width: 15px; height: 15px; pointer-events: none; z-index: 1; }
.dl-folder input { width: 100%; padding: 6px 10px 6px 32px; border-radius: 9px; font: 500 13px var(--font-ui); user-select: text; -webkit-user-select: text; }
.dl-stats { padding: 10px 10px 8px; border-radius: 12px; background: rgba(6, 3, 14, .45); border: 1px solid rgba(232, 186, 90, .12); }
#deckbuilder .curve { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 76px; align-items: stretch; }
#deckbuilder .curve .cv { display: flex; flex-direction: column; align-items: center; background: none; min-height: 0; border-radius: 0; }
#deckbuilder .curve .cv em { font: 800 10.5px/12px var(--font-title); font-style: normal; color: var(--gold-1, #f6d98a); height: 12px; }
#deckbuilder .curve .bar { flex: 1; width: 100%; position: relative; background: rgba(255, 255, 255, .035); border-radius: 3px 3px 0 0; min-height: 0; }
#deckbuilder .curve .bar i { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(0); border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, #4f2aa6, #9b6bff 70%, #d9c2ff); box-shadow: 0 0 10px rgba(168, 107, 255, .45); transition: transform .5s var(--ease-back); }
#deckbuilder .curve .cv > span { position: static; font: 700 10px var(--font-ui); color: var(--muted); margin-top: 3px; }
#deckbuilder .curve .cv.z em { opacity: 0; }
.dl-types { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 2px; }
.dl-types span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.dl-types .lci { width: 14px; height: 14px; color: var(--gold-2, #e2b04a); }
.dl-types b { color: #f3ecff; font: 800 14px var(--font-title); }
.dnote { font-size: 12.5px; color: var(--muted); min-height: 16px; }
.dnote .warn { color: #ffb86b; }
.dnote .ok { color: #9dffc4; display: inline-flex; align-items: center; gap: 6px; }
.dnote .ok .lci { width: 14px; height: 14px; }
#deckbuilder .decklist .rows { gap: 3px; padding: 2px 4px 2px 0; margin-right: -6px; }
#deckbuilder .drow { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; height: 40px; flex: none; padding: 0 8px 0 5px; border-radius: 8px; border: 0; overflow: hidden; cursor: pointer;
  background: linear-gradient(90deg, rgba(12, 6, 26, .98) 0%, rgba(12, 6, 26, .88) 36%, rgba(12, 6, 26, .35) 72%, rgba(12, 6, 26, .12) 100%), var(--art) 100% var(--ay, 28%) / 64% auto no-repeat, #140a28;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 3px 0 0 var(--c); transition: transform .18s var(--ease-out), filter .18s, box-shadow .18s; }
#deckbuilder .drow:hover { background-color: #140a28; filter: brightness(1.2); transform: translateX(-3px); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, .45), inset 3px 0 0 #ff6a5a; }
#deckbuilder .drow:active { transform: scale(.98); }
.dr-cost { width: 28px; height: 30px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 35%, #fff), var(--c) 48%, var(--d)); }
.dr-cost span { font: 900 15px var(--font-title); color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, .6); }
.dr-name { font: 700 14px var(--font-title); letter-spacing: .02em; color: #f7efff; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-sig { font-style: normal; color: #ffd36e; margin-right: 6px; text-shadow: 0 0 8px rgba(255, 211, 110, .9); }
.dr-q { font: 800 13px var(--font-ui); color: var(--gold-1, #f6d98a); padding: 2px 8px; border-radius: 6px; background: rgba(8, 4, 18, .78); border: 1px solid rgba(232, 186, 90, .35); }
#deckbuilder .drow.ghostrow { opacity: .78; }
#deckbuilder .drow.ghostrow .dr-name { color: #ffcf9a; }
#deckbuilder .drow.ghostrow .dr-q { color: #ffb86b; border: 1px dashed rgba(255, 184, 107, .7); }
.drow.enter { animation: drowIn .42s var(--ease-back) both; }
.drow.enter::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 240, 200, .45) 50%, transparent 80%); background-size: 250% 100%; animation: drowSweep .7s ease-out .1s both; pointer-events: none; }
@keyframes drowIn { from { opacity: 0; transform: translateX(28px); max-height: 0; } 60% { max-height: 40px; } to { opacity: 1; transform: none; max-height: 40px; } }
@keyframes drowSweep { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.drow.bump .dr-q { animation: qBump .4s var(--ease-back); }
.drow.drop .dr-q { animation: qDrop .3s ease-out; }
@keyframes qBump { 40% { transform: scale(1.45); color: #fff; box-shadow: 0 0 14px rgba(242, 193, 78, .9); } }
@keyframes qDrop { 40% { transform: scale(.8); color: #ff9c92; } }
.drow.leave { animation: drowOut .23s ease-in forwards; pointer-events: none; }
@keyframes drowOut { to { opacity: 0; transform: translateX(34px); height: 0; margin-top: -3px; } }
.dl-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px 18px; margin: auto 0; border-radius: 14px; border: 1px dashed rgba(232, 186, 90, .3); color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.dl-empty .lci { width: 30px; height: 30px; color: var(--gold-2, #e2b04a); }
.dl-empty b { font: 800 16px var(--font-title); color: #f3ecff; letter-spacing: .04em; }
.dl-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(232, 186, 90, .16); }
.dl-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-main .btn { font-size: 15px; padding: 12px 6px; border-radius: 11px; white-space: nowrap; }
.dl-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.dl-tools button { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 7px; border-radius: 10px; color: #d8ccef; font: 700 10.5px var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(232, 186, 90, .18); transition: background .18s, border-color .18s, color .18s, transform .2s var(--ease-back); }
.dl-tools button .lci { width: 18px; height: 18px; color: var(--gold-1, #f6d98a); transition: transform .25s var(--ease-back); }
.dl-tools button:hover { color: #fff; border-color: rgba(232, 186, 90, .6); background: rgba(168, 107, 255, .16); transform: translateY(-2px); }
.dl-tools button:hover .lci { transform: scale(1.12); }
.dl-tools button:active { transform: scale(.95); }
.dl-tools .danger:hover, .dl-tools .danger.arm { color: #fff; border-color: rgba(255, 106, 90, .7); background: rgba(255, 90, 70, .2); }
.dl-tools .danger:hover .lci, .dl-tools .danger.arm .lci { color: #ff8a7a; }
#dbMsg { font-size: 12.5px; min-height: 16px; text-align: center; color: #ff9c92; }
#dbMsg.good { color: #9dffc4; }
.grid .slotc.indeck .card .face { box-shadow: 0 0 0 2px rgba(242, 193, 78, .75), 0 6px 16px rgba(0, 0, 0, .55); }
.grid .slotc.nope { animation: nope .35s; }
@keyframes nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#deckbuilder .grid .nown { bottom: 12px; }
.dl-fly { position: absolute; z-index: 1500; border-radius: 10px; background: center / cover no-repeat #1a1030; pointer-events: none; transform-origin: 50% 50%;
  box-shadow: 0 0 0 2px rgba(255, 230, 170, .9), 0 0 24px rgba(242, 193, 78, .7), 0 12px 30px rgba(0, 0, 0, .6); will-change: transform, opacity; }

/* ---------- shop ---------- */
#shop .packs { top: 108px; gap: 12px; perspective: none; }
#shop .shoppack { position: relative; width: 262px; height: 610px; display: block; cursor: pointer; outline: none; }
#shop .shoppack img { animation: none; height: 330px; max-width: 250px; display: block; margin: 0 auto; transition: transform .45s var(--ease-back), filter .35s; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .7)); }
.sp-spot { position: absolute; left: 50%; top: -30px; width: 330px; height: 520px; transform: translateX(-50%); pointer-events: none; opacity: .5; transition: opacity .4s;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 244, 214, .26), color-mix(in srgb, var(--c) 16%, transparent) 60%, transparent 92%); filter: blur(2px); }
.sp-ped { position: absolute; left: 50%; top: 354px; width: 236px; height: 64px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--c) 55%, #fff) 0%, color-mix(in srgb, var(--c) 35%, transparent) 30%, rgba(10, 5, 24, .92) 70%);
  box-shadow: 0 0 0 2px rgba(232, 186, 90, .5), 0 0 0 7px rgba(10, 5, 24, .7), 0 0 0 8px rgba(232, 186, 90, .22), 0 0 40px color-mix(in srgb, var(--c) 40%, transparent), 0 22px 30px rgba(0, 0, 0, .65);
  transition: box-shadow .4s; }
.sp-ped i { position: absolute; inset: 10px 28px; border-radius: 50%; border: 1px solid rgba(255, 240, 200, .35); }
.sp-float { position: relative; padding-top: 30px; animation: packBob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.sp-tilt { position: relative; transition: transform .25s ease-out; transform-style: preserve-3d; }
.sp-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 48%, transparent 60%); background-size: 260% 100%; mix-blend-mode: overlay; }
.sp-info { position: absolute; left: 0; right: 0; top: 436px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
#shop .shoppack .nm { font: 900 22px var(--font-title); letter-spacing: .24em; color: color-mix(in srgb, var(--c) 70%, #fff); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent), 0 2px 0 rgba(0, 0, 0, .6); }
.sp-theme { font: 600 11.5px var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
#shop .shoppack .price { margin-top: 4px; padding: 8px 22px; gap: 8px; font-size: 20px; color: #fff4d6; border: 1px solid rgba(232, 186, 90, .5);
  background: linear-gradient(180deg, rgba(40, 24, 72, .92), rgba(14, 8, 28, .95)); box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 240, 200, .12) inset; transition: transform .3s var(--ease-back), box-shadow .3s; }
#shop .shoppack .price.free { border-color: #fff0c2; background: linear-gradient(180deg, #ffe39a 0%, #f0bd4f 45%, #c98a22 100%); color: #2b1600; box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 22px rgba(242, 193, 78, .45), 0 1px 0 rgba(255, 255, 255, .6) inset; }
#shop .shoppack .price.free span { letter-spacing: .14em; }
#shop .shoppack.poor .price { color: #ff9c92; opacity: .85; }
#shop .shoppack:hover .sp-spot, #shop .shoppack:focus-visible .sp-spot { opacity: 1; }
#shop .shoppack:hover img, #shop .shoppack:focus-visible img { transform: translateY(-20px) scale(1.06); filter: drop-shadow(0 40px 30px rgba(0, 0, 0, .7)) drop-shadow(0 0 28px color-mix(in srgb, var(--c) 80%, transparent)); }
#shop .shoppack:hover .sp-sheen { opacity: 1; animation: spSheen 1.1s var(--ease-out); }
@keyframes spSheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }
#shop .shoppack:hover .sp-ped { box-shadow: 0 0 0 2px var(--gold-1, #f6d98a), 0 0 0 7px rgba(10, 5, 24, .7), 0 0 0 8px rgba(232, 186, 90, .4), 0 0 60px color-mix(in srgb, var(--c) 70%, transparent), 0 22px 30px rgba(0, 0, 0, .65); }
#shop .shoppack:hover .price { transform: translateY(-2px) scale(1.05); }
#shop .shoppack.go img { transform: translateY(-40px) scale(1.14); filter: brightness(1.6) drop-shadow(0 0 40px #fff); transition-duration: .22s; }
#shop .note { bottom: 124px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; font-size: 13.5px; letter-spacing: .05em; color: var(--muted); }
#shop .note > span { display: inline-flex; align-items: center; gap: 8px; }
#shop .note > span + span::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-2, #e2b04a); margin-right: 18px; margin-left: -14px; }
#shop .note .lci { width: 15px; height: 15px; color: var(--gold-2, #e2b04a); }
#shop .note .dupeNote { width: 100%; text-align: center; font-size: 12.5px; opacity: .85; }
#shop .note .err { color: #ff9c92; font-weight: 700; }
#shop .note .err::before { display: none; }
#shop .top .tabs { flex: none; }

/* ---------- pack opening ---------- */
#opening { background: radial-gradient(ellipse at 50% 52%, color-mix(in srgb, var(--d, #321566) 75%, #2a1252) 0%, #120a26 48%, #07040f 80%); overflow: hidden; }
.pk-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pk-rays { position: absolute; left: 50%; top: 46%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; opacity: .8;
  background: repeating-conic-gradient(from 0deg, rgba(255, 238, 200, .055) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); mask: radial-gradient(circle, #000 0%, transparent 55%); animation: pkSpin 120s linear infinite; }
@keyframes pkSpin { to { transform: rotate(360deg); } }
.pk-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: radial-gradient(ellipse 45% 55% at 50% 100%, color-mix(in srgb, var(--c, #a86bff) 30%, transparent), transparent 70%); }
.pk-flash { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 42%, var(--fc, #fff6de) 0%, color-mix(in srgb, var(--fc, #fff6de) 40%, transparent) 25%, transparent 62%); mix-blend-mode: screen; }
.pk-flash.go { animation: pkFlash .8s ease-out; }
@keyframes pkFlash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
#opening.shake .three { animation: pkShake .45s; }
@keyframes pkShake { 15% { transform: translate(-8px, 4px); } 30% { transform: translate(7px, -5px); } 45% { transform: translate(-5px, -3px); } 60% { transform: translate(4px, 4px); } 80% { transform: translate(-2px, 1px); } }
#opening .hint { bottom: 118px; animation: none; }
#opening .hint b { display: inline-block; padding: 12px 30px; border-radius: 99px; font: 800 20px var(--font-title); letter-spacing: .26em; color: #fff4d6;
  background: rgba(10, 5, 24, .7); border: 1px solid rgba(232, 186, 90, .45); box-shadow: 0 0 30px rgba(168, 107, 255, .35); animation: hintPulse 1.8s ease-in-out infinite; }
.pk-hud { position: absolute; top: 26px; right: 30px; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(10, 6, 22, .9), rgba(26, 14, 50, .85)); border: 1px solid rgba(232, 186, 90, .4); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.pk-hud .lc-shard > i { width: 16px; height: 21px; filter: drop-shadow(0 0 6px var(--c)); }
.pk-hud small { display: block; font: 700 10px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pk-hud b { font: 900 22px/1 var(--font-title); color: #fff4d6; }
#opening .pk-hud { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s var(--ease-out); }
#opening .pk-hud.show { opacity: 1; transform: none; }
.pk-hud.got { animation: hudGot .5s var(--ease-back); }
@keyframes hudGot { 40% { transform: scale(1.12); box-shadow: 0 0 0 2px var(--gold-1, #f6d98a), 0 0 30px rgba(242, 193, 78, .7); } }
.pk-shardfly { position: absolute; z-index: 20; width: 16px; height: 22px; pointer-events: none; clip-path: polygon(50% 0, 100% 34%, 78% 100%, 22% 100%, 0 34%);
  background: linear-gradient(170deg, #fff, #9fe3ff 50%, #3a8ad8); filter: drop-shadow(0 0 6px #6fd3ff); }
#opening .labels { top: 0; bottom: 0; height: auto; z-index: 4; transition: opacity .25s; }
#opening .labels span { position: static; transform: none; padding: 0; border-radius: 0; background: none; box-shadow: none; animation: none; font: inherit; letter-spacing: inherit; color: inherit; }
.pk-lab { position: absolute; transform: translateX(-50%); animation: pkLab .45s var(--ease-back) both; }
@keyframes pkLab { from { opacity: 0; transform: translate(-50%, -10px) scale(.8); } }
#opening .labels .pk-lab .lc-rar { display: inline-flex; padding: 5px 13px 5px 11px; border-radius: 99px; background: color-mix(in srgb, var(--r) 13%, rgba(10, 5, 24, .92)); border: 1px solid color-mix(in srgb, var(--r) 55%, transparent); color: var(--r); font: 800 11.5px/1.2 var(--font-ui); letter-spacing: .14em; box-shadow: 0 0 14px color-mix(in srgb, var(--r) 25%, transparent); }
#opening .labels .pk-tag { position: absolute; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 99px; font: 900 13px var(--font-ui); letter-spacing: .16em; animation: pkTag .55s var(--ease-back) both; white-space: nowrap; }
#opening .labels .pk-tag.new { color: #2b1600; background: linear-gradient(180deg, #fff0c2, #f2c14e 55%, #c98a22); box-shadow: 0 0 18px rgba(242, 193, 78, .8); }
#opening .labels .pk-tag.dupe { color: #d8f4ff; background: rgba(10, 5, 24, .92); border: 1px solid rgba(111, 211, 255, .55); box-shadow: 0 0 14px rgba(111, 211, 255, .35); }
#opening .labels .pk-tag .lc-shard > i { width: 10px; height: 13px; }
@keyframes pkTag { from { opacity: 0; transform: translate(-50%, -60%) scale(.5); } }
.pk-banner { position: absolute; left: 0; right: 0; top: 64px; z-index: 5; text-align: center; pointer-events: none; opacity: 0; }
.pk-banner small { display: block; font: 800 14px var(--font-ui); letter-spacing: .55em; text-transform: uppercase; color: var(--r, #ffcf5a); text-shadow: 0 0 14px var(--r, #ffcf5a); }
.pk-banner b { display: block; margin-top: 6px; font: 900 52px/1.05 var(--font-title); letter-spacing: .06em;
  background: linear-gradient(180deg, #fff 0%, var(--gold-hi, #fff0c2) 30%, var(--r, #ffcf5a) 70%, color-mix(in srgb, var(--r, #ffcf5a) 60%, #000) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 22px color-mix(in srgb, var(--r, #ffcf5a) 70%, transparent)); }
.pk-banner.go { animation: pkBanner 2.6s var(--ease-out) forwards; }
@keyframes pkBanner { 0% { opacity: 0; transform: scale(1.35); letter-spacing: .3em; } 14% { opacity: 1; transform: scale(1); } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
#opening .inspectTxt { left: calc(50% - 16px); top: 50%; bottom: auto; transform: translateY(-50%); width: 540px; text-align: left; padding: 22px 26px 18px; border-radius: 18px; z-index: 6;
  background: linear-gradient(180deg, rgba(30, 17, 58, .95), rgba(12, 7, 26, .96)); border: 1px solid rgba(232, 186, 90, .4); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
#opening .inspectTxt.on { display: flex; flex-direction: column; gap: 10px; animation: itIn .35s var(--ease-out) both; }
@keyframes itIn { from { opacity: 0; transform: translate(20px, -50%); } }
.it-eyebrow { display: flex; align-items: center; gap: 9px; font: 700 11.5px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2, #e2b04a); }
#opening .inspectTxt h3 { margin: 0; font: 900 30px/1.1 var(--font-title); color: #fff4d6; }
.it-tags { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
#opening .inspectTxt p { margin: 0; }
#opening .inspectTxt .it-rules { font: 19px/1.5 var(--font-card); white-space: pre-line; color: #f3ecff; }
#opening .inspectTxt .it-flavor { font: italic 16px/1.5 var(--font-card); color: #d7c3a3; }
.it-hint { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
#opening.zoomed .labels, #opening.zoomed .pk-sum, #opening.zoomed .hint { opacity: 0; }
.pk-sum { position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%); z-index: 5; display: none; flex-direction: column; align-items: center; gap: 8px; transition: opacity .25s; white-space: nowrap; }
.pk-sum.on { display: flex; animation: pkSum .5s var(--ease-out) both; }
@keyframes pkSum { from { opacity: 0; transform: translate(-50%, 12px); } }
.pk-sumrow { display: flex; gap: 8px; align-items: center; }
.pk-rc { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 6px; border-radius: 99px; font: 700 12px var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--r);
  background: rgba(10, 5, 24, .82); border: 1px solid color-mix(in srgb, var(--r) 50%, transparent); }
.pk-rc b { min-width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 13px var(--font-title); color: #120a20; background: var(--r); }
.pk-sumrow.sub { gap: 20px; font-size: 14px; color: #d8ccef; }
.pk-sumrow.sub span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-2, #e2b04a); margin: 0 14px 2px -10px; vertical-align: middle; }
.pk-sumrow.sub b { color: #9fe3ff; }
.pk-new { color: var(--gold-1, #f6d98a); font-weight: 800; }
#opening .bar { bottom: 34px; z-index: 6; }
#opening .bar .btn { min-width: 190px; }
.pk-fallback { position: absolute; top: 170px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; }
.pk-fcell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: pkDeal .55s var(--ease-back) both; animation-delay: calc(var(--i) * 140ms); }
.pk-fcell .card { box-shadow: 0 0 30px color-mix(in srgb, var(--r) 45%, transparent); border-radius: 14px; }
.pk-fcell .pk-tag { position: absolute; top: -12px; padding: 4px 12px; border-radius: 99px; font: 900 12px var(--font-ui); letter-spacing: .14em; font-style: normal; }
.pk-fcell .pk-tag.new { color: #2b1600; background: linear-gradient(180deg, #fff0c2, #f2c14e); }
.pk-fcell .pk-tag.dupe { color: #d8f4ff; background: rgba(10, 5, 24, .92); border: 1px solid rgba(111, 211, 255, .55); }
@keyframes pkDeal { from { opacity: 0; transform: translateY(60px) rotateY(90deg); } }

/* ---------- phones (stage scaled to ~0.43): bigger targets and type ---------- */
body.mobile .cl-bar { top: 112px; height: 72px; left: 24px; right: 24px; }
body.mobile .cf { gap: 12px; }
body.mobile .cf-g button, body.mobile .cf-clear { height: 58px; font-size: 18px; }
body.mobile .cf-set { width: 58px; }
body.mobile .setgem { width: 22px; height: 28px; }
body.mobile .cf-type { width: 58px; padding: 0; }
body.mobile .cf-type span { display: none; }
body.mobile .cf-type .lci, body.mobile .cf-sort .lci, body.mobile .cf-search .lci { width: 24px; height: 24px; }
body.mobile .cf-own button { padding: 0 20px; }
body.mobile .cf-sort select, body.mobile .cf-search .search, body.mobile .cf-tog { height: 66px; font-size: 20px; }
body.mobile .cf-sort select { padding-left: 46px; }
body.mobile .cf-search .search { padding-left: 48px; }
body.mobile .cf-sort .lci, body.mobile .cf-search .lci { left: 14px; }
body.mobile .cf-clear { width: 58px; }
body.mobile .cl-bar .cnt { font-size: 18px; } body.mobile .cl-bar .cnt b { font-size: 22px; }
body.mobile #collection .grid, body.mobile #deckbuilder .grid { top: 196px; bottom: 150px; grid-template-columns: repeat(auto-fill, 190px); gap: 40px 22px; }
body.mobile .grid .slotc, body.mobile .grid .slotc .card { width: 190px; height: 266px; }
body.mobile .cpips { bottom: -24px; gap: 10px; } body.mobile .cpips i { width: 12px; height: 12px; }
body.mobile .clock { width: 64px; height: 64px; margin: -32px 0 0 -32px; } body.mobile .clock .lci { width: 28px; height: 28px; }
body.mobile .ccraft, body.mobile .cnew { font-size: 14px; }
body.mobile .cl-prog svg { width: 60px; height: 60px; } body.mobile .cl-prog b { font-size: 26px; } body.mobile .cl-prog b small { font-size: 18px; } body.mobile .cl-prog span { font-size: 14px; }
body.mobile .cl-shards .lc-shard { padding: 10px 16px 10px 14px; } body.mobile .cl-shards .lc-shard b { font-size: 24px; } body.mobile .lc-shard > i { width: 15px; height: 20px; }
body.mobile .albumsbtn .lci { width: 24px; height: 24px; }
body.mobile #inspect .box.ci-box { grid-template-columns: 460px 800px; gap: 52px; padding: 40px 50px; }
body.mobile .ci-stage, body.mobile #inspect .big, body.mobile #inspect .big .card { width: 460px; height: 644px; }
body.mobile .ci-info { max-height: 740px; gap: 16px; }
body.mobile .ci-x { width: 64px; height: 64px; } body.mobile .ci-x .lci { width: 28px; height: 28px; }
body.mobile .ci-eyebrow { font-size: 17px; } body.mobile #inspect .ci-info h3 { font-size: 46px; }
body.mobile .lc-rar { font-size: 16px; padding: 6px 16px 6px 13px; } body.mobile .ci-type { font-size: 20px; }
body.mobile .ci-stats > span { font-size: 16px; } body.mobile .ci-stats i { width: 42px; height: 42px; font-size: 24px; }
body.mobile .ci-rules { font-size: 28px; } body.mobile .ci-flavor { font-size: 24px; } body.mobile .ci-tips li { font-size: 19px; }
body.mobile .ci-own > span, body.mobile .ci-shardline, body.mobile .ci-full { font-size: 19px; } body.mobile .ci-own b, body.mobile .ci-shardline b { font-size: 24px; }
body.mobile #craftBtn { font-size: 24px; padding: 18px; }
body.mobile #deckbuilder .decklist.af-panel { width: 520px; top: 108px; padding: 18px; }
body.mobile #deckbuilder .cl-bar, body.mobile #deckbuilder .grid { right: 562px; }
body.mobile #deckbuilder .navbar { left: calc(50% - 280px); }
body.mobile .dl-hint { display: none; }
body.mobile .dl-pickbtn { height: 72px; min-width: 340px; } body.mobile .dl-pickbtn small { font-size: 14px; } body.mobile .dl-pickbtn b { font-size: 24px; }
body.mobile .dl-menu { top: 80px; width: 560px; max-height: 700px; }
body.mobile .dl-fold button b { font-size: 21px; } body.mobile .dl-fold button em, body.mobile .dl-fold h5 { font-size: 16px; } body.mobile .dl-new { font-size: 20px; padding: 16px; }
body.mobile .dl-ring { width: 92px; height: 92px; } body.mobile .dl-ring b { font-size: 32px; } body.mobile .dl-ring span { font-size: 15px; }
body.mobile #deckbuilder .dl-name { font-size: 24px; padding: 10px 14px; } body.mobile .dl-folder input { font-size: 18px; padding: 9px 12px 9px 40px; } body.mobile .dl-folder .lci { width: 20px; height: 20px; }
body.mobile #deckbuilder .curve { height: 72px; } body.mobile #deckbuilder .curve .cv em { font-size: 15px; height: 17px; line-height: 17px; } body.mobile #deckbuilder .curve .cv > span { font-size: 15px; }
body.mobile .dl-types span { font-size: 17px; } body.mobile .dl-types b { font-size: 20px; } body.mobile .dl-types .lci { width: 20px; height: 20px; }
body.mobile .dnote, body.mobile #dbMsg { font-size: 18px; }
body.mobile #deckbuilder .drow { height: 52px; grid-template-columns: 42px 1fr auto; }
body.mobile .dr-cost { width: 38px; height: 42px; } body.mobile .dr-cost span { font-size: 21px; }
body.mobile .dr-name { font-size: 20px; } body.mobile .dr-q { font-size: 20px; padding: 3px 11px; }
body.mobile .dl-main .btn { font-size: 22px; padding: 16px 6px; }
body.mobile .dl-tools button { font-size: 14px; padding: 12px 0 10px; } body.mobile .dl-tools button .lci { width: 26px; height: 26px; }
body.mobile .dl-empty { font-size: 19px; } body.mobile .dl-empty b { font-size: 22px; }
@keyframes drowInM { from { opacity: 0; transform: translateX(28px); } }
body.mobile .drow.enter { animation-name: drowInM; }
body.mobile #shop .packs { top: 104px; gap: 30px; }
body.mobile #shop .shoppack { height: 560px; }
body.mobile #shop .shoppack img { height: 270px; max-width: 220px; }
body.mobile .sp-spot { height: 440px; }
body.mobile .sp-ped { top: 292px; }
body.mobile .sp-info { top: 372px; gap: 6px; }
body.mobile .sp-theme { font-size: 15px; white-space: nowrap; }
body.mobile #shop .shoppack .nm { font-size: 28px; }
body.mobile #shop .note .dupeNote { display: none; }
body.mobile .dl-types { display: none; }
body.mobile .sp-theme { font-size: 16px; }
body.mobile #shop .note { bottom: 158px; font-size: 19px; } body.mobile #shop .note .dupeNote { font-size: 17px; }
body.mobile #opening .hint b { font-size: 32px; padding: 16px 38px; }
body.mobile .pk-hud { padding: 12px 24px 12px 16px; } body.mobile .pk-hud small { font-size: 14px; } body.mobile .pk-hud b { font-size: 30px; }
body.mobile #opening .labels .pk-lab .lc-rar { font-size: 17px; padding: 7px 16px; }
body.mobile #opening .labels .pk-tag { font-size: 19px; padding: 7px 16px; }
body.mobile .pk-banner b { font-size: 72px; } body.mobile .pk-banner small { font-size: 20px; }
body.mobile #opening .inspectTxt { width: 820px; padding: 28px 34px; }
body.mobile #opening .inspectTxt h3 { font-size: 44px; } body.mobile .it-eyebrow, body.mobile .it-tags { font-size: 18px; }
body.mobile #opening .inspectTxt .it-rules { font-size: 28px; } body.mobile #opening .inspectTxt .it-flavor { font-size: 23px; } body.mobile .it-hint { font-size: 17px; }
body.mobile .pk-rc { font-size: 17px; } body.mobile .pk-rc b { min-width: 30px; height: 30px; font-size: 18px; } body.mobile .pk-sumrow.sub { font-size: 20px; }
body.mobile .pk-sum { bottom: 150px; }
body.mobile #opening .bar .btn { min-width: 260px; }

/* ---------- theme + motion switches ---------- */
body.theme-midnight .cf-g, body.theme-midnight .cf-tog, body.theme-midnight .cl-shards, body.theme-midnight .dl-pickbtn, body.theme-midnight .pk-hud { background: rgba(4, 4, 8, .92); }
body.theme-midnight #deckbuilder .decklist.af-panel, body.theme-midnight .dl-menu, body.theme-midnight #opening .inspectTxt { background: rgba(6, 6, 10, .97); }
body.theme-midnight #opening { background: radial-gradient(ellipse at 50% 52%, #120a1e 0%, #000 70%); }
body.theme-midnight .dl-stats { background: rgba(0, 0, 0, .6); }
body.fx-low .slotc.isnew .card .face, body.fx-low .ci-halo, body.fx-low .pk-rays, body.fx-low .sp-float, body.fx-low #opening .hint b, body.fx-low .cg-in, body.fx-low .drow.enter, body.fx-low .drow.enter::before { animation: none !important; }
body.fx-low .sp-spot { display: none; }
#opening.lite .pk-rays { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .slotc.isnew .card .face, .ci-halo, .pk-rays, .sp-float, #opening .hint b, .cg-in, .drow.enter, .drow.enter::before, .pk-banner.go, #opening.shake .three, .grid .slotc.nope { animation: none !important; }
  .grid .slotc .card:hover { transform: none; }
}

/* album headers: clean wide art, cover-cropped around the face (position set inline from focus.json) */
.ahead.clean { background-size: cover; }
