/* Singularity (owner 11/6, card-singularity.js): every finish fused into one card. Ported from the "Singularity v2" mockup
   (scratchpad mom/mom3.html): black hole, accretion disk, warped art, prismatic + black-diamond rim, SINGULARITY · 1 OF 1 plate.
   Sizes scale with the card (--u = 1 px of the 360 px mockup, .tc-3d is the size container). Grids get the still "lite" card;
   Inspect gets the real warp + the particle canvas. Generated from the mockup by scratchpad mc/buildsing.js, then hand-tuned below. */
@property --sga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sgb { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sgSpin { to { --sga: 360deg; } } @keyframes sgSpinB { to { --sgb: -360deg; } }
.tc-card.sg2 { --u: calc(100cqw / 360); --rim: calc(11 * var(--u)); position: relative; aspect-ratio: 5 / 7; perspective: 900px; font-family: "Barlow Condensed", sans-serif; }
.sg2 .tc-3d { position: absolute; inset: 0; container-type: inline-size; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.sg2-body { position: absolute; inset: 0; border-radius: calc(18 * var(--u)); overflow: hidden; background: #000;
    box-shadow: -calc(4 * var(--u)) 0 calc(14 * var(--u)) rgba(255,40,110,.55), calc(4 * var(--u)) 0 calc(14 * var(--u)) rgba(40,220,255,.55), 0 0 0 1px rgba(255,255,255,.7), 0 0 calc(34 * var(--u)) rgba(255,170,90,.35), 0 0 calc(70 * var(--u)) rgba(120,200,255,.25), 0 calc(22 * var(--u)) calc(40 * var(--u)) rgba(0,0,0,.7); }
.sg2-art { position: absolute; inset: var(--rim); border-radius: calc(9 * var(--u)); overflow: hidden; background: #000; }
.sg2-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: contrast(1.08) saturate(1.15); transform: scale(1.04); }
.sg2-glow { position: absolute; left: 50%; top: 27%; width: calc(260 * var(--u)); height: calc(260 * var(--u)); margin: -calc(130 * var(--u)); border-radius: 50%; mix-blend-mode: screen; animation: sgPulse 3.2s ease-in-out infinite;
    background: radial-gradient(circle, rgba(255,214,150,.0) 26%, rgba(255,190,110,.55) 29%, rgba(255,120,60,.28) 36%, rgba(120,170,255,.18) 50%, transparent 70%); }
@keyframes sgPulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.07); opacity: 1; } }
.sg2-disk { position: absolute; left: 50%; top: 27%; width: calc(250 * var(--u)); height: calc(250 * var(--u)); margin: -calc(125 * var(--u)); border-radius: 50%; mix-blend-mode: screen; transform: rotate(-16deg) scaleY(.26);
    background: conic-gradient(from var(--sga), #fff6e0, #ffb35a 12%, #ff5a3c 24%, #7a2bff00 34%, #ffd28a 48%, #fff 56%, #6fe3ff 66%, #ff7ad9 78%, #ffb35a 90%, #fff6e0);
    -webkit-mask: radial-gradient(circle, transparent 27%, #000 31%, #000 52%, rgba(0,0,0,.5) 62%, transparent 70%); mask: radial-gradient(circle, transparent 27%, #000 31%, #000 52%, rgba(0,0,0,.5) 62%, transparent 70%);
    animation: sgSpin 2.8s linear infinite; filter: blur(.calc(4 * var(--u))) saturate(1.3); }
.sg2-disk.front { -webkit-mask: radial-gradient(circle, transparent 27%, #000 31%, #000 52%, rgba(0,0,0,.5) 62%, transparent 70%), linear-gradient(180deg, transparent 50%, #000 50%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.sg2-core { position: absolute; left: 50%; top: 27%; width: calc(74 * var(--u)); height: calc(74 * var(--u)); margin: -calc(37 * var(--u)); border-radius: 50%;
    background: radial-gradient(circle, #000 0 60%, #050302 64%, rgba(255,246,228,1) 67%, rgba(255,190,110,.9) 70%, rgba(255,120,60,.35) 76%, transparent 84%);
    box-shadow: 0 0 calc(22 * var(--u)) calc(6 * var(--u)) rgba(255,170,90,.55), 0 0 calc(60 * var(--u)) calc(14 * var(--u)) rgba(255,120,60,.25); }
.sg2-ring { position: absolute; left: 50%; top: 27%; width: calc(106 * var(--u)); height: calc(106 * var(--u)); margin: -calc(53 * var(--u)); border-radius: 50%; mix-blend-mode: screen;
    background: conic-gradient(from var(--sgb), rgba(255,255,255,.0), rgba(255,240,210,.9) 10%, rgba(255,255,255,0) 22%, rgba(140,220,255,.7) 46%, rgba(255,255,255,0) 58%, rgba(255,200,140,.85) 74%, rgba(255,255,255,0) 86%);
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 63%, #000 66%, transparent 71%); mask: radial-gradient(circle, transparent 60%, #000 63%, #000 66%, transparent 71%); animation: sgSpinB 5s linear infinite; }
.sg2-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.sg2-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 12%, transparent 58%, rgba(3,3,6,.86) 76%, #030306 100%); }
/* the rim: black-diamond facets lit by a spinning prismatic conic, a white-hot highlight running round, chromatic split edges */
.sg2-rim { position: absolute; inset: 0; border-radius: calc(18 * var(--u)); padding: var(--rim); pointer-events: none;
    background: conic-gradient(from var(--sga), #ff3d5a, #ffb13d, #ffe94d, #5dff7a, #2fd8ff, #4f7bff, #ff4fd0, #ff3d5a); animation: sgSpin 5s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* black-diamond facets cut into the rainbow: dark facets multiply in, lit facets add sparkle */
.sg2-rim::before { content: ""; position: absolute; inset: 0; background: url(/assets/cards/black-facets.webp?v=1) center / calc(300 * var(--u)) auto, url(/assets/cards/black-facets-hi.webp?v=1) center / calc(300 * var(--u)) auto; background-blend-mode: screen; mix-blend-mode: hard-light; opacity: .6; }
.sg2-rim::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen;
    background: conic-gradient(from var(--sgb), transparent 0deg 300deg, rgba(255,255,255,.2) 320deg, #fff 342deg, rgba(255,255,255,.3) 350deg, transparent 356deg); animation: sgSpinB 3.4s linear infinite; }
.sg2-ca { position: absolute; inset: var(--rim); border-radius: calc(9 * var(--u)); pointer-events: none; box-shadow: -2px 0 0 rgba(255,40,110,.9), 2px 0 0 rgba(40,230,255,.9), 0 0 0 1px rgba(255,255,255,.85), inset 0 0 calc(22 * var(--u)) rgba(0,0,0,.75); }
.sg2-outer { position: absolute; inset: 0; border-radius: calc(18 * var(--u)); pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.65); }
/* wordmark plate, straddling the top rim */
.sg2-plate { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: calc(9 * var(--u)); padding: calc(5 * var(--u)) calc(7 * var(--u)) calc(5 * var(--u)) calc(12 * var(--u)); border-radius: calc(10 * var(--u)); white-space: nowrap;
    background: linear-gradient(180deg, #262a33, #050608 55%, #13151b) padding-box, conic-gradient(from var(--sga), #ff5f6d, #ffc371, #8dff8a, #4fe3ff, #c58bff, #ff6fd8, #ff5f6d) border-box; border: 2px solid transparent; animation: sgSpin 5s linear infinite;
    box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0,0,0,.85), 0 0 calc(18 * var(--u)) rgba(255,140,220,.55), 0 0 calc(30 * var(--u)) rgba(90,220,255,.4); }
.sg2-plate .w { font: 800 calc(17 * var(--u))/1 "Barlow Condensed"; letter-spacing: .28em; margin-right: -.28em; background: linear-gradient(90deg, #ffd0dc, #fff3b0, #c3ffcd, #bff1ff, #ffd0f0, #fff3b0); background-size: 200% 100%; -webkit-background-clip: text; color: transparent;
    filter: drop-shadow(0 0 calc(6 * var(--u)) rgba(255,255,255,.55)); animation: singName 4s linear infinite; }
@keyframes singName { to { background-position: 200% 0; } }
.sg2-plate .gem { width: calc(12 * var(--u)); height: calc(12 * var(--u)); transform: rotate(45deg); background: conic-gradient(#ff5f6d, #ffc371, #8dff8a, #4fe3ff, #c58bff, #ff5f6d); box-shadow: 0 0 calc(10 * var(--u)) #fff; }
.sg2-plate .one { display: inline-flex; align-items: center; gap: .22em; padding: calc(3 * var(--u)) calc(7 * var(--u)) 2px; border-radius: calc(5 * var(--u)); font: 900 calc(14 * var(--u))/1 "Barlow Condensed"; color: #6a0716;
    background: linear-gradient(180deg, #fff7dc 0%, #ffdc86 20%, #e6a53c 46%, #b26b16 52%, #eebb55 74%, #fff1c6 100%); border: 1px solid #6b3606; box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 0 calc(10 * var(--u)) rgba(255,170,80,.55); }
.sg2-plate .one b { font-size: 1.25em; line-height: .9; } .sg2-plate .one small { font-size: .62em; letter-spacing: .14em; }
.sg2-text { position: absolute; left: calc(var(--rim) + calc(12 * var(--u))); right: calc(var(--rim) + calc(12 * var(--u))); bottom: calc(var(--rim) + calc(10 * var(--u))); z-index: 5; display: grid; gap: calc(6 * var(--u)); }
.sg2-text .nm { font: 800 calc(30 * var(--u))/1 "Barlow Condensed"; background: linear-gradient(90deg, #ffe0e8, #fff6c2, #d4ffdc, #cdf4ff, #ffe0f4, #fff6c2); background-size: 200% 100%; -webkit-background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.95)) drop-shadow(0 0 calc(10 * var(--u)) rgba(255,255,255,.3)); animation: singName 5s linear infinite; }
.sg2-text .inf { font: 500 calc(13.5 * var(--u))/1.25 "Barlow Condensed"; color: #d8d3e6; }
.sg2-text .ft { display: flex; justify-content: space-between; align-items: center; padding-top: calc(7 * var(--u)); border-top: 1px solid rgba(255,255,255,.14); }
.sg2-text .rr { font: 800 calc(12 * var(--u))/1 "Barlow Condensed"; letter-spacing: .2em; text-transform: uppercase; background: linear-gradient(90deg, #ff9aa8, #ffe08a, #a8ffb0, #9ff3ff, #ffb8ea); -webkit-background-clip: text; color: transparent; }
.sg2-text .vl { font: 800 calc(19 * var(--u))/1 "Barlow Condensed"; color: #fff; text-shadow: 0 0 calc(10 * var(--u)) rgba(255,140,220,.8), 0 0 calc(20 * var(--u)) rgba(120,220,255,.5); }
.sg2-top { position: absolute; left: calc(var(--rim) + calc(12 * var(--u))); right: calc(var(--rim) + calc(12 * var(--u))); top: calc(var(--rim) + calc(30 * var(--u))); z-index: 5; display: flex; justify-content: space-between; font: 700 calc(10.5 * var(--u))/1 "Barlow Condensed"; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); text-shadow: 0 1px calc(4 * var(--u)) #000; }
.sg2-dust { position: absolute; inset: 0; border-radius: calc(18 * var(--u)); pointer-events: none; background: url(/assets/cards/diamond-dust.webp?v=1) 0 0 / calc(240 * var(--u)) calc(240 * var(--u)); mix-blend-mode: screen; opacity: .35;
    -webkit-mask: radial-gradient(circle at 26% 18%, #000, transparent 45%); mask: radial-gradient(circle at 26% 18%, #000, transparent 45%); }

/* Inspect: the real lensing warp on the art (SVG filter #sgwarp, built once by card-singularity.js) */
.tc-insp .sg2-img { filter: url(#sgwarp) contrast(1.08) saturate(1.15); }
/* item / portrait cards: the art sits whole on black instead of being cropped */
.sg2.s-item .sg2-img { object-fit: contain; object-position: 50% 30%; transform: scale(.9); }
/* grids (lite): everything still, no blend-heavy extras (big grids crashed phones before) */
.sg2.lite .sg2-glow, .sg2.lite .sg2-disk, .sg2.lite .sg2-ring, .sg2.lite .sg2-rim, .sg2.lite .sg2-rim::after, .sg2.lite .sg2-plate, .sg2.lite .sg2-plate .w, .sg2.lite .sg2-text .nm { animation: none !important; }
.sg2.lite .sg2-disk.front, .sg2.lite .sg2-dust, .sg2.lite .sg2-rim::before { display: none; }
.sg2.lite .sg2-text .inf { display: none; }
.sg2 .tc-count, .sg2 .tc-grade, .sg2 .tc-lock-tag { z-index: 8; }
.sg2 .sg2-text .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .sg2 * { animation: none !important; } }

/* ── the panel on Open → Packs (owner preview): graphite + a rainbow hairline, never purple ── */
.sgp { position: relative; margin: 0 0 18px; padding: 16px 18px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); overflow: hidden;
    background: radial-gradient(90% 120% at 100% 0%, rgba(255,190,110,.08), transparent 55%), linear-gradient(180deg, #16181c, #0e0f12); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 30px rgba(0,0,0,.35); font-family: "Barlow Condensed", system-ui, sans-serif; }
.sgp::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #ff5f6d, #ffc371, #8dff8a, #4fe3ff, #ff6fd8, transparent); opacity: .8; }
.sgp-h em { display: block; font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: #ffd27a; }
.sgp-h b { display: block; margin-top: 5px; font: 800 26px/1 "Barlow Condensed", sans-serif; color: #fff; }
.sgp-h p { margin: 6px 0 14px; max-width: 760px; font: 500 15px/1.3 "Barlow Condensed", sans-serif; color: #a9b0ba; }
.sgp-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 14px; }
.sgp-pack, .sgp-fuse { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.sgp-pack > b, .sgp-fuse > b { font: 800 18px/1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .02em; }
.sgp-pack span { font: 500 14px/1.3 "Barlow Condensed", sans-serif; color: #a3abb7; }
.sgp-row { display: grid; grid-template-columns: minmax(110px, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.06); }
.sgp-row.ready { border-color: rgba(255,210,122,.35); }
.sgp-nm { display: grid; font: 800 16px/1.05 "Barlow Condensed", sans-serif; color: #fff; min-width: 0; }
.sgp-nm small { font: 600 12px/1 "Barlow Condensed", sans-serif; color: #8a929e; letter-spacing: .08em; text-transform: uppercase; }
.sgp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sgp-chip { padding: 3px 7px; border-radius: 5px; font: 800 10.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.12); color: #6f7680; }
.sgp-chip.on { color: #fff; border-color: rgba(255,210,122,.55); background: rgba(255,210,122,.1); }
.sgp-close { display: grid; gap: 6px; margin-top: 4px; } .sgp-close > small { font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a929e; }
.sgp-none { margin: 0; font: 500 14px/1.3 "Barlow Condensed", sans-serif; color: #8a929e; }
.sgp-ask .tc-help-box { max-width: 440px; } .sgp-list { margin: 8px 0 14px; padding-left: 18px; color: #d6dbe3; font: 600 15px/1.5 "Barlow Condensed", sans-serif; }
.sgp-ask-btns { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) { .sgp-grid { grid-template-columns: 1fr; } .sgp-row { grid-template-columns: 1fr auto; } .sgp-row .sgp-chips { grid-column: 1 / -1; grid-row: 2; } }

/* ── Fusion Chamber (owner 11/6): Mythic picker + five finish slots around the Singularity, progress ring, fuse animation ── */
.sgp-fuse.fc { gap: 10px; }
.fc-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; min-width: 0; }
.fc-pick { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.fc-q { width: 100%; box-sizing: border-box; height: 36px; padding: 0 12px !important; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: #0c0d10; color: #fff; font: 600 15px/1 "Barlow Condensed", sans-serif; }
.fc-q:focus { outline: none; border-color: rgba(255,210,122,.6); }
.fc-list { display: grid; align-content: start; gap: 5px; max-height: 470px; overflow: auto; padding-right: 2px; scrollbar-width: thin; }
.fc-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 5px 8px 5px 5px !important; border-radius: 9px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.025); color: #fff; text-align: left; cursor: pointer; }
.fc-item:hover { background: rgba(255,255,255,.05); } .fc-item.on { border-color: rgba(255,210,122,.6); background: rgba(255,210,122,.08); }
.fc-item.taken { opacity: .55; }
.fc-item img { width: 40px; height: 52px; object-fit: cover; border-radius: 5px; }
.fc-item span { display: grid; min-width: 0; } .fc-item b { font: 800 15px/1.1 "Barlow Condensed", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-item small { font: 600 12px/1.2 "Barlow Condensed", sans-serif; color: #8a929e; }
.fc-dots { display: flex; gap: 3px; } .fc-dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.14); }
.fc-dots b.on { background: linear-gradient(135deg, #ffe08a, #e4ae39); box-shadow: 0 0 6px rgba(255,200,90,.6); }
/* the stage: the Singularity in the middle, the five slots around it */
.fc-stage { position: relative; min-height: 680px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.06);
    background: radial-gradient(42% 46% at 50% 46%, rgba(255,170,90,.10), transparent 70%), radial-gradient(70% 70% at 50% 46%, #121318, #08090b 75%); }
.fc-core { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; transform: translate(-50%, -50%); display: grid; place-items: center; }
.fc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fc-ring circle { fill: none; stroke-width: 3; } .fc-ring .bg { stroke: rgba(255,255,255,.08); }
.fc-ring .fg { stroke: #e4ae39; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray .5s ease; } /* no CSS filter on SVG circles: Chromium painted the whole ring box grey */
.fc-core.fc-full .fc-ring .fg { stroke: #fff; }
.fc-sing { width: 128px; filter: grayscale(.85) brightness(.45); transition: filter .5s ease; }
.fc-core.fc-full .fc-sing { filter: none; }
.fc-count { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: grid; justify-items: center; }
.fc-count b { font: 800 22px/1 "Barlow Condensed", sans-serif; color: #fff; } .fc-count small { font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a929e; }
.fc-slot { position: absolute; width: 124px; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; text-align: center; }
.fc-slot.p0 { left: 50%; top: 16%; } .fc-slot.p1 { left: 82%; top: 38%; } .fc-slot.p2 { left: 70%; top: 74%; } .fc-slot.p3 { left: 30%; top: 74%; } .fc-slot.p4 { left: 18%; top: 38%; }
.fc-slot.on { cursor: pointer; }
.fc-card { width: 108px; } .fc-card .tc-card { width: 100%; }
.fc-ghost { width: 108px; aspect-ratio: 5 / 7; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.02); display: grid; place-items: center; }
.fc-ghost i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); }
.fc-slot em { font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.fc-slot small { font: 600 11.5px/1.15 "Barlow Condensed", sans-serif; color: #8a929e; }
.fc-slot.off em { color: #8a929e; }
.fc-find { height: 24px; padding: 0 10px !important; border-radius: 999px; border: 1px solid rgba(255,210,122,.45); background: rgba(255,210,122,.08); color: #f3d38a; font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.fc-actions { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; }
.fc-go[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }
.fc-note { font: 600 14px/1.3 "Barlow Condensed", sans-serif; color: #a9b0ba; }
/* fusing: the core spins up, then a white-hot flash */
.fc-stage.fusing .fc-sing { filter: none; animation: fcSpin 1.1s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes fcSpin { 0% { transform: scale(1) rotateY(0); } 70% { transform: scale(1.25) rotateY(540deg); } 100% { transform: scale(1.15) rotateY(720deg); } }
.fc-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 44%, #fff 0, rgba(255,240,220,.9) 18%, rgba(255,140,220,.35) 40%, transparent 70%); }
.fc-stage.flash .fc-flash { animation: fcFlash .7s ease-out forwards; }
@keyframes fcFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 900px) {
    .fc-wrap { grid-template-columns: 1fr; }
    .fc-list { max-height: 220px; }
    .fc-stage { min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; padding: 16px 10px 14px; }
    .fc-core { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; justify-self: center; width: 200px; height: 200px; margin-bottom: 30px; }
    .fc-sing { width: 104px; }
    .fc-slot { position: static; transform: none; width: auto; }
    .fc-card, .fc-ghost { width: min(92px, 100%); }
    .fc-actions { position: static; grid-column: 1 / -1; margin-top: 6px; }
}

/* the pack sits as a compact strip above the chamber so the chamber gets the full width */
.sgp-grid { grid-template-columns: 1fr; }
.sgp-pack { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; }
@media (max-width: 720px) { .sgp-pack { grid-template-columns: 1fr; } }

/* ── v2 section look (owner 11/6 "glittery diamond holo … it should stand out"): black-diamond facets, holo glitter, a
   prismatic edge running round, a slow light sweep, the black hole in the header. Rainbow accents, never a purple panel. ── */
@property --sgx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sgxSpin { to { --sgx-a: 360deg; } }
.sgp.sgx { isolation: isolate; border: 2px solid transparent; padding: 20px 20px 22px;
    background: linear-gradient(180deg, #0c0c10, #060608) padding-box, conic-gradient(from var(--sgx-a), #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #ff6fd8, #ff5f6d) border-box;
    animation: sgxSpin 8s linear infinite; box-shadow: 0 0 34px rgba(255,170,90,.18), 0 0 60px rgba(90,200,255,.12), 0 20px 44px rgba(0,0,0,.55); }
.sgp.sgx::before { display: none; }
.sgx-facets { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: .16;
    background: url(/assets/cards/black-facets.webp?v=1) center / 560px auto, url(/assets/cards/black-facets-hi.webp?v=1) center / 560px auto; background-blend-mode: screen; mix-blend-mode: screen; }
.sgx-glitter { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .2; mix-blend-mode: screen;
    background: url(/assets/cards/diamond-dust.webp?v=1) 0 0 / 260px 260px; animation: sgxDust 14s linear infinite; }
@keyframes sgxDust { to { background-position: 260px 260px; } }
.sgx-sheen { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(110deg, transparent 35%, rgba(255,240,220,.08) 45%, rgba(140,230,255,.12) 50%, rgba(255,140,220,.08) 55%, transparent 65%) 0 0 / 250% 100%; animation: sgxSheen 6s ease-in-out infinite; }
@keyframes sgxSheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.sgx-h { display: flex; align-items: center; gap: 18px; }
.sgx-title { background: linear-gradient(90deg, #ffe0e8, #fff6c2, #d4ffdc, #cdf4ff, #ffe0f4, #fff6c2); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: singName 6s linear infinite; font-size: 30px !important; }
.sgx-bh { position: relative; flex: none; width: 92px; height: 92px; }
.sgx-bh .c { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: radial-gradient(circle, #000 0 58%, #fff6e4 64%, rgba(255,190,110,.9) 69%, rgba(255,120,60,.3) 78%, transparent 86%); box-shadow: 0 0 18px 4px rgba(255,170,90,.5); }
.sgx-bh .d { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px; border-radius: 50%; transform: rotate(-16deg) scaleY(.3); mix-blend-mode: screen;
    background: conic-gradient(from var(--sgx-a), #fff6e0, #ffb35a 12%, #ff5a3c 24%, rgba(0,0,0,0) 34%, #ffd28a 48%, #fff 56%, #6fe3ff 66%, #ff7ad9 78%, #ffb35a 90%, #fff6e0);
    -webkit-mask: radial-gradient(circle, transparent 27%, #000 31%, #000 52%, transparent 70%); mask: radial-gradient(circle, transparent 27%, #000 31%, #000 52%, transparent 70%); animation: sgxSpin 3s linear infinite; }
.sgx-bh .d.f { -webkit-mask: radial-gradient(circle, transparent 27%, #000 31%, #000 52%, transparent 70%), linear-gradient(180deg, transparent 50%, #000 50%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.sgx .sgp-pack { display: none; }
/* shards + the pack */
.sgx-shards { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.sgx-pack { width: 96px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.7)) drop-shadow(0 0 16px rgba(255,170,90,.35)); transform: rotate(-6deg); }
.sgx-sh-main { display: grid; gap: 8px; min-width: 0; }
.sgx-gemrow { display: flex; align-items: baseline; gap: 10px; }
.sgx-gemrow b { font: 800 40px/1 "Barlow Condensed", sans-serif; color: #fff; text-shadow: 0 0 14px rgba(140,230,255,.6), 0 0 26px rgba(255,140,220,.35); }
.sgx-gemrow small { font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #ffe0b0; }
.sgx-gem { align-self: center; width: 22px; height: 22px; transform: rotate(45deg); border-radius: 3px; background: conic-gradient(from var(--sgx-a), #ff5f6d, #ffc371, #8dff8a, #4fe3ff, #c58bff, #ff5f6d); box-shadow: 0 0 14px #fff, inset 0 0 6px rgba(0,0,0,.4); animation: sgxSpin 4s linear infinite; }
.sgx-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.sgx-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #ff6fd8); box-shadow: 0 0 12px rgba(255,255,255,.5); }
.sgx-note { font: 500 14px/1.3 "Barlow Condensed", sans-serif; color: #b7bec9; } .sgx-note b { color: #fff; }
.sgx-open { justify-self: start; } .sgx-open[disabled] { opacity: .5; filter: grayscale(.6); cursor: not-allowed; }
.sgx-earn { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sgx-earn li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07); font: 600 14px/1.1 "Barlow Condensed", sans-serif; color: #d6dbe3; }
.sgx-earn li b { font: 800 15px/1 "Barlow Condensed", sans-serif; background: linear-gradient(90deg, #ffc371, #8dff8a, #4fe3ff, #ff6fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sgx .sgp-fuse { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.09); }
.sgx .fc-stage { background: radial-gradient(42% 46% at 50% 50%, rgba(255,170,90,.12), transparent 70%), radial-gradient(70% 70% at 50% 50%, #121318, #050507 75%); }
.sgx .fc-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(/assets/cards/diamond-dust.webp?v=1) 0 0 / 300px 300px; mix-blend-mode: screen; opacity: .18; }
@media (max-width: 900px) { .sgx-shards { grid-template-columns: auto minmax(0, 1fr); } .sgx-earn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sgx-h { align-items: flex-start; } .sgx-bh { width: 64px; height: 64px; } .sgx-bh .d { width: 64px; height: 64px; margin: -32px; } .sgx-title { font-size: 25px !important; } .sgx-pack { width: 72px; } }
@media (prefers-reduced-motion: reduce) { .sgp.sgx, .sgx-glitter, .sgx-sheen, .sgx-bh .d, .sgx-gem, .sgx-title { animation: none !important; } }

/* ── Singularity tab (owner 11/6 "huge as fuck on desktop & mobile"): its own sub-tab under Open; a compact strip on top
   (pack · shards · how to earn, one row, ~190px on desktop), then the Fusion Chamber. No full-screen pieces. ── */
.sgp.sgt { padding: 14px; display: grid; gap: 14px; }
.sgt-head { display: grid; grid-template-columns: 104px minmax(0, 1.25fr) minmax(250px, 1fr); gap: 18px; align-items: center; max-height: 200px; padding: 12px 16px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); box-sizing: border-box; }
.sgt-pack { width: 104px; height: auto; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.7)) drop-shadow(0 0 14px rgba(140,220,255,.25)); transform: rotate(-5deg); }
.sgt-main { display: grid; gap: 6px; min-width: 0; }
.sgt-eye { display: block; font: 800 11.5px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: #ffe0b0; }
.sgt .sgx-gemrow b { font-size: 34px; }
.sgt .sgx-gemrow small { font-size: 16px; letter-spacing: .06em; color: #cfd6e2; }
.sgt .sgx-note { font-size: 13.5px; line-height: 1.25; }
.sgt .sgx-open { height: 36px; padding: 0 18px !important; font-size: 15px; }
.sgt-earn { display: grid; gap: 6px; min-width: 0; }
.sgt .sgx-earn { gap: 3px; }
.sgt .sgx-earn li { padding: 4px 9px; font-size: 13px; }
.sgt .sgx-earn li b { font-size: 14px; }
/* the chamber */
.sgt .sgp-fuse { padding: 12px; }
.fc-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fc-h b { font: 800 20px/1 "Barlow Condensed", sans-serif; color: #fff; }
.fc-h small { font: 500 14px/1.25 "Barlow Condensed", sans-serif; color: #a9b0ba; }
.sgt .fc-stage { min-height: 560px; }
.sgt .fc-list { max-height: 520px; }
.sgt .fc-item img { width: 40px; height: 56px; }
.sgt .fc-core { width: 230px; height: 230px; }
.sgt .fc-sing { width: 124px; }
.sgt .fc-slot.p0 { top: 15%; } .sgt .fc-slot.p2, .sgt .fc-slot.p3 { top: 72%; }
/* finish thumbnails: 5:7, art covers the box (never stretched), the finish's own border */
.fc-thumb { position: relative; width: 92px; aspect-ratio: 5 / 7; padding: 3px; border-radius: 10px; box-sizing: border-box; background: var(--fb, #888); box-shadow: 0 8px 16px rgba(0,0,0,.55), 0 0 14px var(--fg, transparent); }
.fc-thumb-in { position: relative; display: block; width: 100%; height: 100%; border-radius: 7px; overflow: hidden; background: #0b0c0f; }
.fc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-thumb-fx { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: var(--fm, screen); background: var(--fx, none); opacity: var(--fo, .5); }
.fc-ser, .fc-gr { position: absolute; bottom: 7px; padding: 2px 5px; border-radius: 4px; font: 800 10.5px/1 "Barlow Condensed", sans-serif; color: #fff; background: rgba(0,0,0,.72); }
.fc-ser { left: 7px; } .fc-gr { right: 7px; color: #ffe08a; }
.ft-holo { --fb: conic-gradient(from 210deg, #ff6fb5, #ffd36d, #8dff8a, #5fe6ff, #a98bff, #ff6fb5); --fg: rgba(140,220,255,.35); --fx: linear-gradient(125deg, rgba(255,90,170,.35), rgba(255,230,90,.3) 30%, rgba(90,255,170,.3) 55%, rgba(90,200,255,.35) 80%); --fo: .55; }
.ft-gold { --fb: linear-gradient(135deg, #fff1b8, #e4ae39 35%, #8a5b16 55%, #f3cf6d 80%, #fff1b8); --fg: rgba(255,200,90,.4); --fx: linear-gradient(135deg, rgba(255,214,120,.45), transparent 60%); --fm: soft-light; --fo: .9; }
.ft-animated { --fb: linear-gradient(135deg, #ffb35a, #ff5a3c 50%, #ffd28a); --fg: rgba(255,130,60,.4); --fx: radial-gradient(60% 40% at 50% 100%, rgba(255,140,50,.55), transparent 70%); --fo: .8; }
.ft-black { --fb: linear-gradient(135deg, #f2f4f8, #5c6270 30%, #0b0c0f 55%, #c9ced8 80%, #2b2f38); --fg: rgba(220,230,255,.25); --fx: url(/assets/cards/black-facets.webp?v=1) center / 200px auto; --fm: screen; --fo: .35; }
.ft-prism { --fb: conic-gradient(from 0deg, #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #ff6fd8, #ff5f6d); --fg: rgba(255,255,255,.35); --fx: url(/assets/cards/diamond-dust.webp?v=1) 0 0 / 120px 120px; --fm: screen; --fo: .7; }
.sgt .fc-ghost { width: 92px; }
@media (max-width: 900px) {
    .sgt-head { grid-template-columns: 74px minmax(0, 1fr); max-height: none; gap: 8px 14px; padding: 12px; }
    .sgt-pack { width: 74px; }
    .sgt-earn { grid-column: 1 / -1; }
    .sgt .sgx-earn { display: flex; flex-wrap: wrap; gap: 5px; }
    .sgt .sgx-earn li { gap: 6px; padding: 4px 8px; font-size: 12.5px; }
    .sgt .fc-stage { min-height: 0; }
    .sgt .fc-core { width: 170px; height: 170px; margin-bottom: 30px; }
    .sgt .fc-sing { width: 92px; }
    .fc-thumb, .sgt .fc-ghost { width: min(84px, 100%); }
    .fc-h small { display: none; }
}
.sgt-earn summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.sgt-earn summary::-webkit-details-marker { display: none; }
.sgt-earn summary::after { content: "+"; font-size: 15px; letter-spacing: 0; color: #fff; }
.sgt-earn[open] summary::after { content: "–"; }
.sgt-earn[open] summary { margin-bottom: 6px; }
.sgt .fc-slot { align-content: start; }
.sgt .fc-sing { filter: grayscale(.55) brightness(.62); }
.sgt .fc-core.fc-full .fc-sing { filter: none; }
@media (max-width: 900px) {
    .sgt .fc-list { grid-auto-flow: column; grid-auto-columns: minmax(190px, 72%); max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scroll-snap-type: x mandatory; }
    .sgt .fc-item { scroll-snap-align: start; }
    .sgt .sgx-open { justify-self: stretch; }
}
@media (max-width: 520px) { .sgt .sgx-note { font-size: 12.5px; } .sgt .sgx-gemrow b { font-size: 28px; } .sgt-eye { letter-spacing: .16em; } }
/* owner 11/6 round 2: the Mythic list was clipping (grid rows collapsing under the global button styles): a plain column of
   fixed-height rows with a proper 5:7 thumb; phones scroll it sideways. And the shard gem next to every "+N". */
.sgt .fc-pick { grid-template-rows: auto minmax(0, 1fr); align-self: stretch; }
.sgt .fc-list { display: flex; flex-direction: column; gap: 6px; max-height: 560px; overflow-x: hidden; overflow-y: auto; padding: 0 4px 0 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sgt .fc-item { flex: 0 0 66px; height: 66px !important; min-height: 66px; box-sizing: border-box; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 10px 0 6px !important; overflow: hidden; line-height: 1.1; }
.sgt .fc-item[hidden] { display: none; }
.sgt .fc-item img { width: 42px; height: 58px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 5px; display: block; }
.sgt .fc-item span { display: grid; gap: 3px; min-width: 0; }
.sgt .fc-item b { font-size: 16px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgt .fc-item small { font-size: 12px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sing-gem { display: inline-block; margin-left: 8px; vertical-align: 0; width: 9px !important; height: 9px !important; } /* the shard beside Open → Singularity (owner 11/7) */
.sgx-gem.sm { width: 11px; height: 11px; border-radius: 2px; box-shadow: 0 0 7px rgba(255,255,255,.8), inset 0 0 3px rgba(0,0,0,.4); }
.sgt-n { display: inline-flex; align-items: center; gap: 7px; flex: none; }
@media (max-width: 900px) {
    .sgt .fc-list { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 6px; scroll-snap-type: x mandatory; }
    .sgt .fc-item { flex: 0 0 min(230px, 74%); scroll-snap-align: start; }
}.sgt .fc-item { text-transform: none; letter-spacing: normal; } .sgt .fc-item small { letter-spacing: .04em; }

/* Preview (owner 11/6): the Singularity in Inspect, marked PREVIEW */
.fc-actions { gap: 10px; flex-wrap: wrap; align-items: center; }
.fc-prev { height: 40px; padding: 0 18px !important; border-radius: 999px; }
.sgp-preview .tc-insp-stage { position: relative; }
.sgp-prevtag { position: absolute; left: 50%; top: -40px; z-index: 20; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; pointer-events: none;
    font: 900 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; color: #0b0c0f;
    background: linear-gradient(90deg, #ff9ab8, #ffe08a, #a6ffb0, #8fe6ff, #d4b0ff); box-shadow: 0 6px 16px rgba(0,0,0,.6), 0 0 14px rgba(255,255,255,.35); }
.sgp-preview .tc-insp-note { color: #ffe08a; }
/* owner 11/7: every Mythic that has a Singularity is listed; the ones you don't own are dimmed (still selectable + Preview) */
.sgt .fc-item.none { opacity: .55; } .sgt .fc-item.none img { filter: grayscale(.7) brightness(.8); } .sgt .fc-item.none:hover, .sgt .fc-item.none.on { opacity: .85; }

/* owner 11/7: a bit smaller on phones so there's less to scroll (same layout, nothing stretched); desktop unchanged */
@media (max-width: 600px) {
    .sgt-head { padding: 10px; gap: 6px 12px; grid-template-columns: 58px minmax(0, 1fr); }
    .sgt-pack { width: 58px; }
    .sgt .sgx-gemrow b { font-size: 24px; } .sgt .sgx-gemrow small { font-size: 14px; }
    .sgt .sgx-note { font-size: 12px; }
    .sgt .sgx-open { height: 32px; font-size: 14px; }
    .sgt .sgp-fuse { padding: 10px; }
    .sgt .fc-stage { gap: 8px 4px; padding: 12px 8px 10px; }
    .sgt .fc-core { width: 136px; height: 136px; margin-bottom: 24px; }
    .sgt .fc-sing { width: 74px; }
    .sgt .fc-count b { font-size: 18px; }
    .fc-thumb, .sgt .fc-ghost { width: min(68px, 100%); }
    .sgt .fc-slot em { font-size: 11px; } .sgt .fc-slot small { font-size: 10.5px; }
    .sgt .fc-item { flex: 0 0 min(200px, 70%); height: 56px !important; min-height: 56px; }
    .sgt .fc-item img { width: 36px; height: 50px; }
    .fc-prev { height: 36px; }
}