/* Survivor Trading Cards (owner 11/2). Prefix tc-. Cards tilt toward the pointer; finishes add light layers:
   foil = moving silver sheen, holo = rainbow that shifts with the angle, gold = gold frame + shimmer, black = numbered
   Black Diamond with sparkle. Packs are CSS foil wrappers you tear open by swiping across the top. */
#tc-root { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 40px; font-family: "Barlow Condensed", system-ui, sans-serif; --cx-dim: #8d95a5; }
#tc-root > * { min-width: 0; }
.tc-door { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: #d3d8e1; font-size: 17px; text-align: center; }
.tc-door h3 { margin: 0; font: 700 26px/1.2 "Barlow Condensed", sans-serif; color: #fff; }
.tc-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: #c58bff; animation: cxSpin .8s linear infinite; }
.tc-empty { color: var(--cx-dim); font-size: 17px; }

/* Cases | Trading Cards switch on the shared page (owner 11/2: "same panel") */
.cs-tabs { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 0 18px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.cs-tabs[hidden] { display: none; }
.cs-tabs button { height: 42px; padding: 0 22px !important; border-radius: 999px; border: 0; background: transparent; color: #c9d0da; cursor: pointer; font: 800 17px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; transition: all .2s; }
.cs-tabs button:hover:not(.on) { color: #fff; background: rgba(255,255,255,.06); }
.cs-tabs button.on { color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); box-shadow: 0 6px 20px rgba(228,174,57,.3); }
.cs-tabs button[data-cs-tab="cards"].on { color: #fff; background: linear-gradient(135deg, #c58bff, #6a3de0); box-shadow: 0 6px 20px rgba(150,90,255,.35); }

.cs-combined .void-heading { font-size: clamp(36px, 4.3vw, 70px) !important; }
.cs-combined .void-heading span { display: inline; white-space: nowrap; }
#cases .cs-combined .ff-hero-content .void-heading .ff-h-white, #cases .cs-combined .ff-hero-content .void-heading .ff-h-gold { font-size: clamp(36px, 4.3vw, 70px) !important; display: inline !important; }
.cs-combined .void-heading .ff-h-white { margin-right: .22em; }
/* hero fan: three real cards floating over the crate banner (combined Cases & Cards hero) */
.tc-hero-fan { position: absolute; right: 3%; bottom: 5%; width: min(360px, 29%); aspect-ratio: 1.15; pointer-events: none; perspective: 900px; z-index: 1; }
.tc-fan-card { position: absolute; bottom: 0; width: 46%; transform-origin: 50% 110%; filter: drop-shadow(0 22px 30px rgba(0,0,0,.65)); animation: tcFanFloat 6s ease-in-out infinite; }
.tc-fan-card .tc-card { --mx: 30%; --my: 25%; }
.tc-fan-card .tc-name { font-size: 17px; } .tc-fan-card .tc-info { display: none; } .tc-fan-card .tc-inner { grid-template-rows: auto 1fr auto auto; }
.tc-fan-card.f0 { left: 4%; transform: rotate(-14deg) translateY(6%); animation-delay: -2s; }
.tc-fan-card.f1 { left: 27%; transform: rotate(0deg) translateY(-6%); z-index: 2; animation-delay: -1s; }
.tc-fan-card.f2 { left: 50%; transform: rotate(14deg) translateY(6%); animation-delay: -3s; }
@keyframes tcFanFloat { 50% { translate: 0 -8px; } }
@media (max-width: 760px) { .tc-hero-fan { display: none; } }
@media (prefers-reduced-motion: reduce) { .tc-fan-card { animation: none; } }

/* ── rarity colours ── */
.r-common { --rc: #9ea4ac; } .r-uncommon { --rc: #4cc764; } .r-rare { --rc: #4b69ff; } .r-epic { --rc: #8847ff; } .r-legendary { --rc: #e4ae39; } .r-mythic { --rc: #ff4fd8; }

/* ── the card ── */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.tc-grid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
/* 3D (owner 11/3: "the cards need to look 3d … flat as shit"): the body tilts in real 3D; stacked plates behind the
   face give it a visible edge; a floor shadow slides opposite the tilt; art is pushed "deeper" than the frame (parallax);
   a gloss streak and top-edge highlight sell the laminate. Cards marked .sway rock gently on their own (phones, reveal). */
.tc-card { position: relative; aspect-ratio: 5 / 7; perspective: 700px; cursor: default; }
.tc-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.tc-card:hover .tc-3d, .tc-card.held .tc-3d { transition-duration: .08s; }
/* thicker edge (11/3 "still feel 2d"): 10px of card stock, light core + rarity tint, darker toward the back */
.tc-edge { position: absolute; inset: 0; border-radius: 16px; transform: translateZ(-10px); transform-style: preserve-3d;
    background: linear-gradient(135deg, #f1f3f6, color-mix(in srgb, var(--rc) 45%, #8a909a) 45%, color-mix(in srgb, var(--rc) 25%, #20242b)); box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.tc-edge i { position: absolute; inset: 0; border-radius: inherit; background: inherit; }
.tc-edge i:nth-child(1) { transform: translateZ(2.5px); } .tc-edge i:nth-child(2) { transform: translateZ(5px); } .tc-edge i:nth-child(3) { transform: translateZ(7.5px); }
/* floor shadow without a blur filter (blur on many elements = phone lag) */
.tc-floor { position: absolute; left: 4%; right: 4%; bottom: -8%; height: 14%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.3) 45%, rgba(0,0,0,.08) 75%, transparent);
    transform: translate(var(--sx, 0px), var(--sy, 0px)) scaleX(1); transition: transform .3s ease, opacity .3s; opacity: .85; }
.tc-card:hover .tc-floor { opacity: 1; transform: translate(var(--sx, 0px), calc(var(--sy, 0px) + 6px)) scale(1.06, 1.15); }
.tc-inner { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 6px; padding: 10px; border-radius: 16px; overflow: hidden;
    transform: translateZ(0); transition: box-shadow .25s ease;
    background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 60%), linear-gradient(180deg, #1b1e25, #101217);
    border: 2px solid color-mix(in srgb, var(--rc) 70%, #222); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04); }
.tc-card:hover .tc-inner { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(0,0,0,.45), 0 0 30px color-mix(in srgb, var(--rc) 35%, transparent); }
.tc-art img, .tc-bleed { transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.07); transition: transform .3s ease; }
.tc-avatar img { transform: none; }
.tc-gloss { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
    background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.1) 45%, rgba(255,255,255,.03) 50%, transparent 56%); background-size: 240% 240%;
    background-position: calc(100% - var(--mx, var(--ix))) calc(100% - var(--my, var(--iy))); mix-blend-mode: screen; transition: background-position .3s ease; }
/* gentle sway when the card is on display (reveal, hero, phones without hover) */
.tc-card.sway .tc-3d { animation: tcSway 5.5s ease-in-out infinite; }
.tc-card.sway:hover .tc-3d { animation: none; }
@keyframes tcSway { 0%, 100% { transform: rotateX(8deg) rotateY(-24deg); } 50% { transform: rotateX(-5deg) rotateY(24deg); } }
@keyframes tcSwaySoft { 0%, 100% { transform: rotateX(6deg) rotateY(-16deg); } 50% { transform: rotateX(-4deg) rotateY(16deg); } }
/* the card you just flipped keeps turning slowly so its edge and finish catch the light */
.tc-fc.flip .tc-face .tc-card:not(:hover) .tc-3d { animation: tcSwaySoft 5s ease-in-out .8s infinite; }
/* PERFORMANCE (owner 11/3: "the page keeps crashing on the cards"): a binder of 150+ cards each with real 3D layers,
   blurred shadows and endless animations ran phones out of GPU memory. In grids the cards are flat + still, with a cheap
   box-shadow edge for thickness; only the card under the mouse goes real 3D. Off-screen cards aren't rendered at all.
   The reveal, tray and hero (a handful of cards) keep the full effect. */
/* grid cards at rest: one flat layer, but leaning back slightly so they read as objects on a table, with a thick
   drawn-on edge (cheap). Hover (PC) or press (phone, .press) = real 3D for that one card. */
.tc-grid .tc-card:not(:hover):not(.press) .tc-3d { transform-style: flat; transform: rotateX(9deg); }
.tc-grid .tc-card:not(:hover):not(.press) .tc-edge, .tc-grid .tc-floor { display: none; }
.tc-grid .tc-inner { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 0 #e9ecf0, 0 3px 0 0 color-mix(in srgb, var(--rc) 50%, #9aa1ab), 0 5px 0 0 color-mix(in srgb, var(--rc) 35%, #4a505a), 0 7px 0 0 color-mix(in srgb, var(--rc) 20%, #23272e), 0 18px 22px -8px rgba(0,0,0,.7); }
.tc-grid .tc-card:not(:hover):not(.press) .tc-inner, .tc-grid .tc-card:not(:hover):not(.press) .tc-shine, .tc-grid .tc-card:not(:hover):not(.press) .tc-glitter, .tc-grid .tc-card:not(:hover):not(.press) .tc-glints b { animation-play-state: paused; }
.tc-grid.small .tc-glitter, .tc-grid.small .tc-glints, .tc-grid.small .tc-gloss { display: none; }
.tc-card.press .tc-3d { transition-duration: .12s; }
@media (hover: none) { .tc-grid .tc-card:not(.press) .tc-inner, .tc-grid .tc-card:not(.press) .tc-shine, .tc-grid .tc-card:not(.press) .tc-glitter, .tc-grid .tc-card:not(.press) .tc-glints b { animation: none !important; } }
.tc-top { display: flex; justify-content: space-between; font: 700 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 70%, #fff); }
.tc-art { position: relative; display: grid; place-items: center; min-height: 0; border-radius: 10px; overflow: hidden;
    background: radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%), linear-gradient(180deg, #0c0d11, #16181e); border: 1px solid rgba(255,255,255,.06); }
.tc-art img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(255,255,255,.7)) saturate(1.3) brightness(1.12); }
.tc-avatar { width: 64%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--rc); box-shadow: 0 0 22px color-mix(in srgb, var(--rc) 60%, transparent); }
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.tc-name { font: 800 21px/1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.tc-info { font-size: 12px; line-height: 1.25; color: #9aa3b2; min-height: 2.5em; }
.tc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.07); }
.tc-rar { font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--rc); }
.tc-val { font: 800 15px/1 "Barlow Condensed", sans-serif; color: #fff; }
.tc-fin { position: absolute; top: 30px; right: 14px; z-index: 3; padding: 3px 8px; border-radius: 999px; font: 800 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #0b0c0f; background: #e8edf3; }
.tc-shine, .tc-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.tc-glare { background: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), rgba(255,255,255,.22), transparent 45%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .2s; }
.tc-card:hover .tc-glare { opacity: 1; }
.tc-card.legend .tc-name { color: var(--rc); }
/* survivor portraits: the head fills the art window, lit from behind in the rarity colour */
.s-portrait .tc-art { place-items: end center; background: radial-gradient(60% 55% at 50% 40%, color-mix(in srgb, var(--rc) 45%, transparent), transparent 72%), linear-gradient(180deg, #15171d, #0a0b0e); }
/* contain, anchored at the shoulders (owner 11/3: "Survivor cards on mobile … half the heads cut off" — cover cropped
   the head when the art window got wide and short on phones) */
.s-portrait .tc-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 14px rgba(0,0,0,.6)) contrast(1.05) saturate(1.08); }
/* full-art: the artwork is the whole card, text sits on a fade at the bottom */
.tc-bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tc-bleed-fade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 16%, transparent 52%, rgba(6,7,9,.92) 78%, #06070a 100%); }
.s-full .tc-inner > :not(.tc-bleed):not(.tc-bleed-fade):not(.tc-shine):not(.tc-glare):not(.tc-fin):not(.tc-glitter):not(.tc-gloss):not(.tc-glints):not(.tca-l) { position: relative; z-index: 1; }
.s-full .tc-art { background: none; border: 0; }
.s-full .tc-info { color: #c3c9d3; }
.s-full .tc-top { text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.tc-card.missing .tc-inner { filter: grayscale(1) brightness(.35); border-style: dashed; }
.tc-card.missing .tc-art img, .tc-card.missing .tc-avatar, .tc-card.missing .tc-bleed { opacity: .4; }
.tc-count { position: absolute; top: -8px; left: -8px; z-index: 6; min-width: 34px; height: 30px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px;
    font: 800 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #fff; background: linear-gradient(180deg, #2b2f38, #14161b); border: 2px solid var(--rc); box-shadow: 0 6px 14px rgba(0,0,0,.55), 0 0 12px color-mix(in srgb, var(--rc) 45%, transparent); }
.tc-count.sel { color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); border-color: #fff3c4; }
.tc-card.sel .tc-inner { outline: 3px solid #f6d77a; outline-offset: -3px; box-shadow: 0 0 30px rgba(246,215,122,.5); }
[data-tc-card] { cursor: pointer; }

/* finishes */
.f-foil .tc-shine { background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.5) 46%, rgba(200,220,255,.25) 54%, transparent 70%); background-size: 260% 260%; background-position: var(--mx, var(--ix)) var(--my, var(--iy)); mix-blend-mode: overlay; animation: tcSheen 5s ease-in-out infinite; }
.f-foil .tc-fin { background: linear-gradient(90deg, #dfe6ee, #ffffff, #b9c4d0); }
/* Holographic v3 (owner 11/3: "Holographic is strong, cant see the card"): the rainbow lives in the FRAME (spinning
   prismatic border) + one soft iridescent band that slides across with the light; glitter is a light dusting near the
   light only. The art stays fully readable. */
@property --tc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.f-holo .tc-inner { border: 3px solid transparent;
    background: radial-gradient(120% 80% at 50% 0%, rgba(197,139,255,.18), transparent 60%) padding-box, linear-gradient(180deg, #1b1e25, #101217) padding-box,
        conic-gradient(from var(--tc-a), #ff8ad8, #ffd36e, #8affc1, #6ed8ff, #b48aff, #ff8ad8) border-box;
    animation: tcSpinA 6s linear infinite; }
.f-holo.s-full .tc-inner, .f-holo.s-portrait .tc-inner { background: linear-gradient(180deg, #1b1e25, #101217) padding-box, conic-gradient(from var(--tc-a), #ff8ad8, #ffd36e, #8affc1, #6ed8ff, #b48aff, #ff8ad8) border-box; }
.f-holo .tc-inner, .f-holo:hover .tc-inner { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 18px rgba(180,140,255,.4); }
/* v4 (owner 11/3: holo "has like a white foggy look"): no screen/white layers over the art. The rainbow is an OVERLAY
   blend (it tints the art's own colours instead of washing them out) in fine diagonal bands that slide with the light,
   strongest near the light. Glitter = small coloured flakes only. */
.f-holo .tc-shine { z-index: 2; background: repeating-linear-gradient(118deg, #ff5fbf 0 1.6%, #ffd25f 3.2%, #5fffb2 4.8%, #5fc8ff 6.4%, #b77bff 8%, #ff5fbf 9.6%);
    background-size: 300% 300%; background-position: calc(var(--mx, var(--ix)) * 1.6) calc(var(--my, var(--iy)) * 1.6); mix-blend-mode: overlay; opacity: .4;
    -webkit-mask: radial-gradient(120% 90% at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
    mask: radial-gradient(120% 90% at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.25) 100%);
    transition: background-position .25s ease; }
@keyframes tcSpinA { to { --tc-a: 360deg; } }
/* glitter flakes: small coloured specks near the light (holo + mythic); Black Diamond swaps in white diamond dust */
.tc-glitter { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: url(/assets/cards/glitter.webp?v=2) var(--gx, 0px) var(--gy, 0px) / 340px 340px repeat; mix-blend-mode: color-dodge; opacity: .7;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.5) 25%, transparent 60%);
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.5) 25%, transparent 60%);
    animation: tcGlit 2.2s ease-in-out infinite; }
@keyframes tcGlit { 0%, 100% { opacity: .75; } 50% { opacity: .35; } }
.f-holo .tc-fin { background: linear-gradient(90deg, #ff9ad5, #9ad8ff, #c9a6ff, #a6ffd0); }
.f-gold .tc-inner, .f-gold:hover .tc-inner { border-color: #e4ae39; background: radial-gradient(120% 80% at 50% 0%, rgba(255,196,77,.3), transparent 60%), linear-gradient(180deg, #2a2008, #130e03); box-shadow: inset 0 1px 0 rgba(255,240,190,.5), 0 0 24px rgba(255,196,77,.4), inset 0 0 0 1px rgba(255,230,150,.3); }
.f-gold .tc-edge { background: linear-gradient(135deg, #fff1b8, #c99227 45%, #6e4a0c 70%, #f3cf6a); }
.f-gold .tc-shine { background: linear-gradient(115deg, transparent 30%, rgba(255,230,140,.6) 47%, rgba(255,170,40,.25) 55%, transparent 70%); background-size: 260% 260%; background-position: var(--mx, var(--ix)) var(--my, var(--iy)); mix-blend-mode: overlay; animation: tcSheen 4s ease-in-out infinite; }
.f-gold .tc-fin { background: linear-gradient(90deg, #f6d77a, #e4ae39); }
.f-gold .tc-name, .f-gold .tc-val { color: #ffe08a; }
/* Black Diamond v2 (owner 11/3: "looks like complete dog shit. Doesnt even look special"): obsidian card with a cut-
   diamond bevel frame (chrome facets that rotate light around the border), diamond facet rays over the art, real star
   glints that pop, a black-enamel serial plate, chrome lettering and an icy glow. Only 25 of each exist. */
.f-black { --rc: #dfe9f5; }
/* v3 (owner 11/3: "Black diamond is ass … supposed to be the best one. Needs to sparkle & be 'black diamond'"): the card
   IS a cut black gem — faceted black surface (assets/cards/black-facets.webp), the same facets lit up where the light
   hits (black-facets-hi.webp, follows the mouse/drag, drifts on its own otherwise), white diamond dust, big star
   glints, chrome cut frame. */
@property --lx { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --ly { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
.f-black .tc-inner { border: 4px solid transparent;
    background: url(/assets/cards/black-facets.webp?v=1) center / cover padding-box, linear-gradient(180deg, #07080b, #000) padding-box,
        conic-gradient(from var(--tc-a), #ffffff, #6d7a8b 7%, #11151b 13%, #d9e6f5 20%, #ffd6f2 24%, #2c333e 28%, #ffffff 33%, #8a99ad 40%, #0c0f14 47%, #eef5ff 53%, #c9f0ff 57%, #39424f 61%, #ffffff 66%, #7b8a9e 73%, #10141a 80%, #e3edf9 86%, #fff3c9 90%, #343c48 94%, #ffffff) border-box;
    animation: tcSpinA 5s linear infinite; }
.f-black .tc-inner, .f-black:hover .tc-inner { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 0 26px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.5), 0 0 22px rgba(170,215,255,.5); }
.f-black .tc-edge { background: linear-gradient(135deg, #f4f8ff, #7e8a99 40%, #1a1e25 60%, #cfd9e6); }
.f-black .tc-art { border-color: rgba(220,235,255,.35); background: rgba(0,0,0,.45); box-shadow: inset 0 0 24px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6); }
.f-black .tc-art img { filter: drop-shadow(0 6px 10px rgba(0,0,0,.8)) drop-shadow(0 0 1px rgba(255,255,255,.8)) contrast(1.1) brightness(1.08); }
.f-black.s-full .tc-bleed { opacity: .9; filter: contrast(1.12) saturate(.9); }
.f-black.s-full .tc-glitter { opacity: .75; }
/* the facets light up where the light is */
.f-black .tc-shine { z-index: 2; background: url(/assets/cards/black-facets-hi.webp?v=1) center / cover; mix-blend-mode: screen; opacity: .95;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.55) 18%, transparent 42%);
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.55) 18%, transparent 42%);
    animation: tcFacetLight 7s ease-in-out infinite alternate; }
@keyframes tcFacetLight { 0% { --lx: 15%; --ly: 10%; } 35% { --lx: 85%; --ly: 30%; } 70% { --lx: 25%; --ly: 70%; } 100% { --lx: 80%; --ly: 90%; } }
.f-black .tc-glitter { background-image: url(/assets/cards/diamond-dust.webp?v=1); background-size: 260px 260px; mix-blend-mode: screen; opacity: 1;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.35) 70%); mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.35) 70%);
    animation: tcDust 1.6s ease-in-out infinite; }
@keyframes tcDust { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.f-black .tc-name { background: linear-gradient(180deg, #ffffff 20%, #b9c6d6 55%, #eef4fb 70%, #8796aa); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); text-shadow: none; }
.f-black .tc-rar, .f-black .tc-top { color: #dfe9f5; }
.f-black .tc-val { color: #fff; text-shadow: 0 0 10px rgba(180,220,255,.7); }
.f-black .tc-fin { display: inline-flex; align-items: center; gap: 6px; top: 26px; right: 12px; padding: 5px 9px 5px 7px; border-radius: 7px; color: #eef4fb; letter-spacing: .16em;
    background: linear-gradient(180deg, #2a2f38, #050608 55%, #14171c); border: 1px solid #c9d5e3; box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0,0,0,.8), 0 0 14px rgba(170,215,255,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.f-black .tc-fin { white-space: nowrap; }
.tc-slot .f-black .tc-fin, .tc-grid.small .f-black .tc-fin, .tc-fan-card .f-black .tc-fin { font-size: 8.5px; letter-spacing: .08em; padding: 4px 6px; gap: 4px; }
@media (max-width: 560px) { .f-black .tc-fin { font-size: 8.5px; letter-spacing: .08em; padding: 4px 6px; gap: 4px; right: 8px; } }
.f-black .tc-fin em { font-style: normal; margin-left: 2px; padding-left: 7px; border-left: 1px solid rgba(255,255,255,.3); color: #fff; letter-spacing: .06em; }
.tc-gem { width: 11px; height: 11px; flex: 0 0 auto; transform: rotate(45deg); background: conic-gradient(from 45deg, #fff, #8fb5ff, #ffffff, #5d6f8a, #fff); box-shadow: 0 0 8px #cfe3ff; }
/* star glints */
.tc-glints { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tc-glints b { position: absolute; width: 38px; height: 38px; margin: -19px; transform: scale(0) rotate(0deg); opacity: 0; mix-blend-mode: screen;
    background: radial-gradient(circle, #fff 0 1.6px, rgba(210,235,255,.85) 2.6px, transparent 6px),
        linear-gradient(0deg, transparent 46%, rgba(255,255,255,.95) 50%, transparent 54%), linear-gradient(90deg, transparent 46%, rgba(255,255,255,.95) 50%, transparent 54%);
    -webkit-mask: radial-gradient(circle, #000 15%, transparent 70%); mask: radial-gradient(circle, #000 15%, transparent 70%);
    animation: tcGlint 3.6s ease-in-out infinite; }
.tc-glints b:nth-child(1) { left: 14%; top: 9%; } .tc-glints b:nth-child(2) { left: 88%; top: 30%; animation-delay: -.7s; }
.tc-glints b:nth-child(3) { left: 30%; top: 58%; animation-delay: -1.5s; width: 18px; height: 18px; margin: -9px; } .tc-glints b:nth-child(4) { left: 92%; top: 88%; animation-delay: -2.2s; }
.tc-glints b:nth-child(5) { left: 6%; top: 74%; animation-delay: -2.9s; width: 26px; height: 26px; margin: -13px; }
.tc-glints b:nth-child(6) { left: 62%; top: 44%; animation-delay: -1.1s; width: 30px; height: 30px; margin: -15px; }
.tc-glints b { animation-duration: 2.6s; }
@keyframes tcGlint { 0%, 55%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 66% { transform: scale(1.35) rotate(45deg); opacity: 1; } 80% { transform: scale(.4) rotate(90deg); opacity: .5; } }
/* ── MYTHIC (Afterlife set: Afterlife, Typiq, AfterlifeAI): the rarest cards. Aurora frame in the Afterlife colours,
   pulsing magenta glow, glitter + glints on every copy, gradient name. ── */
.r-mythic .tc-inner { border: 4px solid transparent;
    background: linear-gradient(180deg, #14061f, #07020c) padding-box, conic-gradient(from var(--tc-a), #ff4fd8, #8a5cff, #3fe0ff, #ffd35a, #ff4fd8) border-box;
    animation: tcSpinA 4s linear infinite; }
.r-mythic .tc-inner, .r-mythic:hover .tc-inner { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 0 1px rgba(255,79,216,.6), 0 0 26px rgba(255,79,216,.55), 0 0 60px rgba(138,92,255,.35); }
.r-mythic .tc-name { background: linear-gradient(90deg, #ffd1f4, #ff4fd8, #b28cff, #7ff0ff, #ffd1f4); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tcMythText 4s linear infinite; text-shadow: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.9)); }
.r-mythic .tc-rar { background: linear-gradient(90deg, #ff4fd8, #3fe0ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.r-mythic .tc-edge { background: linear-gradient(135deg, #ffd1f4, #ff4fd8 35%, #5a1f8a 65%, #3fe0ff); }
.r-mythic .tc-top { color: #ffd1f4; }
@keyframes tcMythText { to { background-position: 200% 0; } }
@keyframes tcSheen { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
@keyframes tcHolo { to { background-position: calc(var(--mx, var(--ix)) + 300%) var(--my, var(--iy)); } }
@keyframes tcTwinkle { 50% { opacity: .25; } }

/* ── the pack (CSS foil wrapper) ── */
.tc-pack { --pa: #3d4a1e; --pb: #1c2410; --pc: #9bd45a; position: relative; width: 150px; aspect-ratio: 5 / 8; border-radius: 10px; overflow: hidden; isolation: isolate;
    background: linear-gradient(115deg, var(--pb) 0%, var(--pa) 30%, color-mix(in srgb, var(--pa) 60%, #fff) 45%, var(--pa) 55%, var(--pb) 100%); box-shadow: 0 14px 30px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.12); }
.tc-pack.k-elite { --pa: #2a2108; --pb: #0b0a06; --pc: #f6d77a; }
.tc-pack.big { width: min(270px, 62vw); }
.tc-pack-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(1.15) contrast(1.08); }
.tc-pack-tint { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--pb) 70%, transparent) 0%, transparent 30%, transparent 48%, color-mix(in srgb, var(--pb) 92%, transparent) 74%, var(--pb) 100%); }
.tc-pack-foil { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: color-dodge; opacity: .22;
    background: repeating-linear-gradient(120deg, #ff4fa0 0 4%, #ffd35a 8%, #4fffb0 12%, #4fc3ff 16%, #b07bff 20%, #ff4fa0 24%); background-size: 200% 200%; animation: tcFoil 6s linear infinite; }
@keyframes tcFoil { to { background-position: 200% 0; } }
.tc-pack-body { position: absolute; inset: 11% 6% 11%; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; color: #fff; }
.tc-pack-logo { width: 36%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.8)); }
.tc-pack-name { display: grid; justify-items: center; gap: 3cqw; }
/* text scales with the pack's width (same look on the 96px shop pack and the big tear-open pack) */
.tc-pack { container-type: inline-size; }
.tc-pack-body b { font: 900 17cqw/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: var(--pc); text-shadow: 0 0 14px color-mix(in srgb, var(--pc) 60%, transparent); }
.tc-pack-body small { font: 700 5.6cqw/1.2 "Barlow Condensed", sans-serif; letter-spacing: .16em; color: rgba(255,255,255,.7); }
.tc-pack-body em { font-style: normal; font: 800 6.6cqw/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; padding: .5em 1em; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid color-mix(in srgb, var(--pc) 50%, transparent); color: var(--pc); }
.tc-crimp { position: absolute; left: 0; right: 0; height: 9%; z-index: 4; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 3px, rgba(0,0,0,.25) 3px 6px), linear-gradient(180deg, var(--pa), var(--pb)); }
.tc-crimp.top { top: 0; } .tc-crimp.bot { bottom: 0; }
.tc-pack-shine { position: absolute; inset: 0; z-index: 3; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.4) 48%, transparent 60%); background-size: 260% 100%; animation: tcPackShine 4.5s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes tcPackShine { 0%, 30% { background-position: 150% 0; } 70%, 100% { background-position: -50% 0; } }

/* shop + unopened packs */
.tc-shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tc-shop-item { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), #13151a; border: 1px solid rgba(255,255,255,.08); }
.tc-shop-item .tc-pack { width: 96px; flex: 0 0 auto; transform: rotate(-6deg); transition: transform .3s ease; }
.tc-shop-item:hover .tc-pack { transform: rotate(0) translateY(-4px) scale(1.04); }
.tc-shop-txt { display: grid; gap: 6px; }
.tc-shop-txt b { font: 800 22px/1 "Barlow Condensed", sans-serif; color: #fff; } .tc-shop-txt small { font-size: 14px; color: var(--cx-dim); }
.tc-unopened { display: grid; gap: 18px; }
.tc-unopened .cx-h { margin: 0; }
.tc-unopened-row { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 10px; }
.tc-pack-btn { padding: 0 !important; border: 0; background: none; cursor: pointer; height: auto; animation: cxFloat 3.2s ease-in-out infinite; }
.tc-pack-btn .tc-pack { width: 110px; }
.tc-pack-btn:hover .tc-pack { box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 26px color-mix(in srgb, var(--pc) 50%, transparent); }
.tc-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-tabs button { height: 40px; padding: 0 18px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #d3d8e1; font: 700 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; cursor: pointer; text-transform: none; }
.tc-tabs button.on { background: linear-gradient(135deg, #c58bff, #7a4be8); color: #fff; border-color: transparent; }
.tc-tabs small { opacity: .75; margin-left: 4px; }
.tc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--cx-dim); font-size: 15px; } .tc-bar span { flex: 1; }
.tc-set { display: grid; gap: 12px; margin-bottom: 26px; }
.tc-set-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tc-set-h b { font: 800 24px/1 "Barlow Condensed", sans-serif; color: #fff; } .tc-set-h span { color: var(--cx-dim); font-size: 16px; }
.tc-prog { flex: 1; min-width: 120px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; } .tc-prog i { display: block; height: 100%; background: linear-gradient(90deg, #5ad8ff, #c58bff, #f6d77a); }
.tc-claimed { font-style: normal; color: var(--cx-dim); font-size: 14px; }
.tc-odds p { color: #c6ccd6; font-size: 16px; max-width: 70ch; }
.tc-odds-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tc-odds-f { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.tc-odds-f b { font-size: 18px; color: #fff; } .tc-odds-f span { color: #f6d77a; } .tc-odds-f small { color: var(--cx-dim); }
.tc-odds-f.f-holo b { background: linear-gradient(90deg, #ff9ad5, #9ad8ff, #c9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-odds-f.f-gold b { color: #ffd46a; } .tc-odds-f.f-black b { color: #fff; text-shadow: 0 0 10px #fff; }

/* ── opening overlay ── */
.tc-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: calc(18px + var(--safe-top, 0px)) 18px 18px; overflow-y: auto;
    background: rgba(6,7,9,.95); font-family: "Barlow Condensed", system-ui, sans-serif; } /* clean (owner 11/6 "stop making ALL our panels purple"): was a purple radial tint */
.tc-open { display: grid; justify-items: center; gap: 18px; width: min(1100px, 100%); }
.tc-open-hint { margin: 0; font: 700 18px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e6e9ef; text-shadow: 0 0 18px rgba(197,139,255,.6); animation: cxPulse 1.6s ease-in-out infinite; }
.tc-tear-wrap { position: relative; transition: transform .38s ease, opacity .38s ease; animation: cxFloat 3s ease-in-out infinite; }
.tc-tear-zone { position: absolute; left: -6%; right: -6%; top: 2%; height: 16%; z-index: 5; cursor: ew-resize; touch-action: none; }
/* rip v4 (11/5): no dashed line. A soft light glides along the seal to show where to swipe (hidden once peeling). */
.tc-tear-line { position: absolute; left: 6%; right: 6%; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 50%, transparent) no-repeat; background-size: 34% 100%; animation: tcSealHint 2.2s cubic-bezier(.45,0,.25,1) infinite;
    box-shadow: 0 0 0 0 transparent; transition: opacity .25s; }
.tc-tear-line::after { content: ""; position: absolute; inset: -5px 0; background: inherit; background-size: inherit; animation: inherit; filter: blur(5px); opacity: .7; }
@keyframes tcSealHint { 0% { background-position: -40% 0; } 70%, 100% { background-position: 140% 0; } }
.tc-tear-wrap.peeling .tc-tear-line { opacity: 0; }
.tc-tear-cut { display: none; }
.tc-tear-wrap.torn { animation: none; }
.tc-tear-wrap.torn .tc-crimp.top { animation: tcStrip .65s cubic-bezier(.3,.7,.4,1) forwards; }
.tc-tear-wrap.torn .tc-tear-zone { pointer-events: none; opacity: 0; transition: opacity .2s; }
.tc-tear-wrap.torn .tc-pack { box-shadow: 0 -10px 40px rgba(255,255,255,.5), 0 14px 30px rgba(0,0,0,.55); }
@keyframes tcStrip { to { transform: translate(60%, -160%) rotate(28deg); opacity: 0; } }
.tc-tear-wrap.gone { transform: translateY(115%) rotate(4deg); opacity: 0; transition: transform .5s cubic-bezier(.5,0,.8,.4), opacity .45s ease .05s; }
/* the stage: the pack in front, the card stack behind it; after the tear the stack rises out of the open top */
.tc-stage { position: relative; display: grid; place-items: center; width: min(270px, 62vw); aspect-ratio: 5 / 8; perspective: 1200px; }
.tc-stage > .tc-tear-wrap { position: relative; z-index: 2; }
.tc-stack { position: absolute; z-index: 1; left: 7%; right: 7%; top: 16%; aspect-ratio: 5 / 7; cursor: pointer; transform-style: preserve-3d;
    transform: translateY(2%); transition: transform .7s cubic-bezier(.2,.9,.25,1); }
.tc-stack.rise { transform: translateY(-58%); }
.tc-stack.settle { z-index: 3; transform: translateY(-10%) scale(1.12); transition: transform .55s cubic-bezier(.3,1.3,.5,1); }
.tc-stack[hidden] { display: none; }
/* each card sits a little deeper than the one above it, and the flipped card lifts well clear of the stack, so its
   3D sway never cuts through the face-down card underneath */
.tc-fc { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate3d(calc(var(--i) * 2px), calc(var(--i) * -3px), calc(var(--i) * -14px)) rotate(calc((var(--i) - 2) * 1.2deg)); transition: transform .45s cubic-bezier(.4,0,.6,1), opacity .4s; }
.tc-fc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2,.85,.3,1.15); }
.tc-fc.flip { transform: translate3d(0, -2%, 70px); }
/* owner 11/12 ("card reveals look like they phase into the card behind them as they flip"): the stack was ONE shared 3D space,
   so the turning card's far edge (half a card deep) cut through the card under it (only 70 px of lift). The flipping card
   is now drawn as its own flat sheet (its own perspective for the turn) floating in front of the stack, so it can't cut into
   the cards behind. (A fully flat stack also fixed it but measured more stutter.) */
.tc-fc.flip, .tc-fc.charge, .tc-fc.rv-rise, .tc-fc.rv-slowlift { transform-style: flat; perspective: 1600px; }
.tc-fc.flip .tc-fc-in { transform: rotateY(180deg); }
/* flip without mirror bugs (owner 11/3: "on PC the cards are just flipped backwards"): backface-visibility alone fails
   when the face has its own 3D layers, so each side is also hidden by visibility at the half-way point */
.tc-back, .tc-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 16px; transition: visibility 0s linear .3s; }
.tc-face { transform: rotateY(180deg); visibility: hidden; }
.tc-fc.flip .tc-face { visibility: visible; } .tc-fc.flip .tc-back { visibility: hidden; }
.tc-fc.away { transform: translate(0, 85%) scale(.45) rotate(-6deg); opacity: 0; }
/* owner 11/12 ("after the seal is ripped it fades away & it's laggy"; flips "framy"): fading opacity on a box full of 3D layers
   makes the browser merge + redraw them all on those frames → the card and the pack slide away without the fade (measured fewer
   long frames on a real GPU) */
.tc-fc.away { opacity: 1 !important; }
.tc-tear-wrap.gone { opacity: 1 !important; }
.tc-fc.shake .tc-fc-in { animation: tcShake .5s ease-in-out; }
@keyframes tcShake { 20% { transform: rotate(-3deg) scale(1.03); } 40% { transform: rotate(3deg) scale(1.05); } 60% { transform: rotate(-2deg) scale(1.06); } 80% { transform: rotate(2deg) scale(1.06); } }
/* card back: a real trading-card back — deep purple foil, guilloche pattern, gold frame, logo */
.tc-back { display: grid; place-items: center; align-content: center; gap: 6px; overflow: hidden; color: #f6d77a;
    background: radial-gradient(70% 55% at 50% 42%, rgba(197,139,255,.4), transparent 70%), repeating-radial-gradient(circle at 50% 42%, rgba(255,255,255,.05) 0 2px, transparent 2px 7px), linear-gradient(160deg, #2a1846, #120a22 60%, #1c1030);
    border: 3px solid #d7b45a; box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px rgba(246,215,122,.5), 0 14px 30px rgba(0,0,0,.55); }
.tc-back-ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; top: 18%; border: 1px solid rgba(246,215,122,.35); box-shadow: 0 0 0 10px rgba(246,215,122,.06), 0 0 40px rgba(197,139,255,.35); }
.tc-back img { position: relative; width: 58%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.7)); }
.tc-back b { position: relative; font: 900 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .24em; }
.tc-back small { position: relative; font: 700 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .3em; color: rgba(246,215,122,.7); }
.tc-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 48%, transparent 60%); background-size: 260% 100%; animation: tcPackShine 4s ease-in-out infinite; }
/* rare+ hint before the flip: the back glows the rarity colour */
.tc-fc.hint-1 .tc-back { box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px rgba(246,215,122,.5), 0 0 30px color-mix(in srgb, var(--rc) 70%, transparent); animation: tcHint 1.4s ease-in-out infinite; }
.tc-fc.hint-2 .tc-back { box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px #fff3c4, 0 0 46px color-mix(in srgb, var(--rc) 90%, #fff 10%); animation: tcHint .9s ease-in-out infinite; }
@keyframes tcHint { 50% { filter: brightness(1.25); } }
.tc-face .tc-card { position: absolute; inset: 0; text-align: left; text-transform: none; letter-spacing: normal; font-family: "Barlow Condensed", system-ui, sans-serif; }
/* pulled cards land in a row under the stack; at the end the row grows and becomes the result */
.tc-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; min-height: 10px; perspective: 1000px; }
.tc-slot { width: 124px; animation: tcLand .45s cubic-bezier(.2,1.3,.4,1) both; }
.tc-tray:not(.done) .tc-slot .tc-top, .tc-tray:not(.done) .tc-slot .tc-fin, .tc-tray:not(.done) .tc-slot .tc-val { display: none; }
.tc-tray:not(.done) .tc-slot .tc-inner { grid-template-rows: 1fr auto auto; padding: 7px; }
@keyframes tcLand { from { transform: translateY(-140px) scale(1.6) rotate(-6deg); opacity: 0; } }
.tc-tray.done .tc-slot { width: 190px; transition: width .4s ease; }
.tc-slot .tc-name { font-size: 16px; } .tc-slot .tc-info { display: none; }
.tc-tray.done .tc-slot .tc-name { font-size: 21px; } .tc-tray.done .tc-slot .tc-info { display: block; }
.tc-open-btns { display: flex; gap: 10px; }
@media (max-width: 560px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .tc-name { font-size: 18px; }
    .tc-slot { width: 17vw; } .tc-slot .tc-inner { padding: 5px; } .tc-slot .tc-top, .tc-slot .tc-foot, .tc-slot .tc-fin { display: none; } .tc-slot .tc-name { font-size: 11px; }
    .tc-tray.done .tc-slot { width: 42vw; } .tc-tray.done .tc-slot .tc-top, .tc-tray.done .tc-slot .tc-foot, .tc-tray.done .tc-slot .tc-fin { display: flex; } .tc-tray.done .tc-slot .tc-name { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .tc-shine, .tc-glitter, .tc-pack-shine, .tc-tear-wrap, .tc-pack-btn { animation: none !important; } }

/* ═════ v4 (owner 11/3) ═════ */
/* ── 3D foil pack: pillow-shaded foil, serrated crimps, real thickness, floor shadow, slow turn ── */
.tc-pack3d { position: relative; display: inline-block; perspective: 700px; flex: 0 0 auto; }
.tc-pack-body3d { position: relative; transform-style: preserve-3d; animation: tcPackTurn 6s ease-in-out infinite; }
.tc-pack3d:hover .tc-pack-body3d { animation-duration: 2.6s; }
@keyframes tcPackTurn { 0%, 100% { transform: rotateY(-20deg) rotateX(5deg); } 50% { transform: rotateY(16deg) rotateX(-3deg); } }
/* serrated top + bottom edges (heat-sealed crimp) */
.tc-pack, .tc-pack-side { --zz: 9px;
    /* teeth strips top + bottom, plus a solid middle so the two strips never leave a seam */
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) calc(var(--zz) / 2) repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) calc(var(--zz) / 2) repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - var(--zz) + 1px) no-repeat;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) calc(var(--zz) / 2) repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) calc(var(--zz) / 2) repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - var(--zz) + 1px) no-repeat; }
.tc-pack { border-radius: 3px; box-shadow: none; transform: translateZ(0); }
.tc-pack.big { --zz: 12px; }
/* thickness: three foil layers behind the front, thicker in the middle like a filled pack */
.tc-pack-side { position: absolute; inset: 0 4%; border-radius: 3px; background: linear-gradient(90deg, var(--pb), color-mix(in srgb, var(--pa) 70%, #000), var(--pb)); }
.tc-pack3d.k-elite .tc-pack-side { background: linear-gradient(90deg, #0b0a06, #3a2c0a, #0b0a06); }
.tc-pack-side:nth-child(1) { transform: translateZ(-12px); } .tc-pack-side:nth-child(2) { transform: translateZ(-8px); inset: 0 2%; } .tc-pack-side:nth-child(3) { transform: translateZ(-4px); inset: 0 1%; }
.tc-pack3d { --pa: #3d4a1e; --pb: #1c2410; } .tc-pack3d.k-elite { --pa: #2a2108; --pb: #0b0a06; }
/* pillow shading: the foil bulges in the middle, edges fall away, crinkles at the crimps */
.tc-pack-pillow { position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: radial-gradient(70% 45% at 38% 34%, rgba(255,255,255,.28), transparent 60%),
        linear-gradient(90deg, rgba(0,0,0,.55), transparent 14%, transparent 80%, rgba(0,0,0,.6)),
        linear-gradient(180deg, rgba(0,0,0,.35), transparent 14%, transparent 86%, rgba(0,0,0,.4)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px) top / 100% 13% no-repeat,
        repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px) bottom / 100% 13% no-repeat;
    mix-blend-mode: hard-light; }
.tc-pack-floor { position: absolute; left: 6%; right: 6%; bottom: -9%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.7), rgba(0,0,0,.25) 55%, transparent); pointer-events: none; }
.tc-shop-item .tc-pack3d .tc-pack { width: 96px; transform: none; }
.tc-shop-item:hover .tc-pack { transform: none; }
.tc-pack-btn .tc-pack3d .tc-pack { width: 110px; }
.tc-tear-wrap .tc-pack3d { display: block; }
.tc-tear-wrap.torn .tc-pack-body3d { animation: none; transform: rotateY(0) rotateX(0); transition: transform .3s; }
/* the pack glows from inside with the best card's colour (no spoiler which card) */
.tc-leak { position: absolute; left: -12%; right: -12%; top: -14%; height: 46%; z-index: 0; pointer-events: none; opacity: 0; border-radius: 50%;
    background: radial-gradient(closest-side, var(--leak, #fff), transparent); transition: opacity .6s; }
.tc-tear-wrap.leak-1 .tc-leak { opacity: .28; } .tc-tear-wrap.leak-2 .tc-leak { opacity: .5; animation: tcLeak 1.6s ease-in-out infinite; } .tc-tear-wrap.leak-3 .tc-leak { opacity: .75; animation: tcLeak .9s ease-in-out infinite; }
.tc-tear-wrap.leak-3:not(.torn) .tc-pack-body3d { animation: tcPackTurn 6s ease-in-out infinite, tcPackRattle 2.4s ease-in-out infinite; }
@keyframes tcLeak { 50% { transform: scale(1.12); filter: brightness(1.3); } }
@keyframes tcPackRattle { 0%, 86%, 100% { translate: 0 0; } 89% { translate: -3px 0; } 92% { translate: 3px -1px; } 95% { translate: -2px 0; } }
.tc-tear-wrap.torn .tc-leak { opacity: 1; transform: scale(1.4); }
/* light bursting out of the open top */
.tc-burst { position: absolute; z-index: 0; left: 50%; top: 10%; width: 140%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c, #fff) 70%, transparent) 0 5deg, transparent 5deg 15deg);
    -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 72%); mask: radial-gradient(closest-side, #000 10%, transparent 72%); }
.tc-burst.on { animation: tcBurst 1.6s ease-out forwards; } .tc-burst.b2 { animation-duration: 2.2s; } .tc-burst.b3 { animation-duration: 3s; }
@keyframes tcBurst { 0% { opacity: 0; transform: scale(.3) rotate(0deg); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) rotate(40deg); } }
/* room dims for big pulls, white flash on the flip */
.tc-dim, .tc-flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; z-index: 0; }
.tc-dim { background: radial-gradient(50% 50% at 50% 42%, transparent 30%, rgba(0,0,0,.85)); }
.tc-modal.dimmed .tc-dim { opacity: 1; }
.tc-flash { background: #fff; transition: opacity .45s ease-out; }
.tc-modal.flash .tc-flash { opacity: .55; transition: none; }
.tc-open { position: relative; z-index: 1; }
/* charge before the flip: lifts, vibrates, glow builds in the card's colour */
.tc-fc.charge .tc-back { animation: tcCharge .14s linear infinite; box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px #fff3c4, 0 0 40px var(--hc), 0 0 90px color-mix(in srgb, var(--hc) 60%, transparent); }
.tc-fc.charge { transform: translate3d(0, -4%, 40px); transition: transform .5s ease; }
.tc-fc.charge.c2 .tc-back { animation-duration: .1s; } .tc-fc.charge.c3 .tc-back { animation-duration: .07s; box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px #fff, 0 0 60px var(--hc), 0 0 140px var(--hc); }
@keyframes tcCharge { 0% { translate: 0 0; } 25% { translate: -1.5px 1px; } 50% { translate: 1.5px -1px; } 75% { translate: -1px -1px; } }
.tc-fc.hint-3 .tc-back { box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px #fff, 0 0 50px var(--hc); animation: tcHint .7s ease-in-out infinite; }
/* banner for the big ones */
.tc-banner { position: relative; z-index: 3; margin: -6px 0 0; font: 900 clamp(26px, 5vw, 44px)/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #fff; text-align: center;
    text-shadow: 0 0 18px var(--c), 0 0 40px var(--c), 0 4px 0 rgba(0,0,0,.6); }
.tc-banner[hidden] { display: none; }
.tc-banner.pop { animation: tcBanner .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes tcBanner { from { transform: scale(2.2); opacity: 0; letter-spacing: .5em; } }
/* Pulled Graded (11/4): a slab-style flash under the banner when a card comes out of the pack already graded */
.tc-pgban { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; margin: -8px 0 0; padding: 7px 16px 7px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #2c3038, #121418); border: 2px solid #9aa3b2; box-shadow: 0 10px 26px rgba(0,0,0,.6); color: #fff; }
.tc-pgban[hidden] { display: none; }
.tc-pgban.pop { animation: tcBanner .7s cubic-bezier(.2,1.4,.4,1) both; }
.tc-pgban em { font: 800 15px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: #cfd6e2; }
.tc-pgban b { display: inline-flex; align-items: baseline; gap: 5px; padding-left: 12px; border-left: 1.5px solid rgba(255,255,255,.25); font: 900 34px/1 "Barlow Condensed", sans-serif; }
.tc-pgban b i { font-style: normal; font-size: 12px; letter-spacing: .16em; color: #aab3c2; }
.tc-pgban span { font: 800 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.tc-pgban.hi { border-color: #9fd0ff; box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 26px rgba(159,208,255,.6); }
.tc-pgban.hi em { color: #cfe6ff; }
.tc-pgban.gem { color: #1c1405; background: linear-gradient(135deg, #fff3c4, #f6d77a 45%, #cf961f); border-color: #fff6dc;
  box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 40px rgba(246,215,122,.85); }
.tc-pgban.gem em, .tc-pgban.gem b i { color: #5a3d06; } .tc-pgban.gem span { color: #1c1405; } .tc-pgban.gem b { border-left-color: rgba(60,40,5,.3); }
.tc-pgban.gem.pop { animation: tcBanner .7s cubic-bezier(.2,1.4,.4,1) both, tcPgGlow 1.6s ease-in-out .7s infinite; }
@keyframes tcPgGlow { 50% { box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 70px rgba(246,215,122,1); } }
@media (max-width: 480px) { .tc-pgban { gap: 9px; padding: 6px 12px; } .tc-pgban em, .tc-pgban span { font-size: 13px; letter-spacing: .14em; } .tc-pgban b { font-size: 28px; padding-left: 9px; } }
@media (prefers-reduced-motion: reduce) { .tc-pgban.pop, .tc-pgban.gem.pop { animation: none; } }
/* phones: the row of pulled cards stays still at a slight angle (no endless sway = no lag) */
@media (hover: none) { .tc-tray .tc-3d { transform: rotateY(-12deg) rotateX(6deg); } .tc-tray .tc-glitter, .tc-tray .tc-glints, .tc-tray .tc-shine { animation: none !important; } .tc-burst { width: 110%; } }

/* ── Inspect: one card, big, full 3D, drag / tilt to turn ── */
.tc-insp { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; align-content: center; gap: 18px; padding: calc(20px + var(--safe-top, 0px)) 16px 24px;
    background: rgba(5,6,8,.95); font-family: "Barlow Condensed", system-ui, sans-serif; } /* clean: no purple radial */
.tc-insp-x { position: absolute; top: calc(14px + var(--safe-top, 0px)); right: 14px; width: 44px; height: 44px; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 18px; cursor: pointer; }
.tc-insp-stage { width: min(330px, 78vw); touch-action: none; cursor: grab; }
.tc-insp-stage:active { cursor: grabbing; }
.tc-insp-stage .tc-card { perspective: 900px; }
.tc-insp-stage .tc-card.held .tc-3d { animation: none; }
.tc-insp-stage .tc-name { font-size: clamp(22px, 6vw, 30px); }
.tc-insp-info { display: grid; justify-items: center; gap: 4px; color: #c9d0da; text-align: center; }
.tc-insp-info b { font-size: 26px; color: #fff; } .tc-insp-info span { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.tc-insp-info em { font-style: normal; font-size: 22px; font-weight: 800; color: #f6d77a; } .tc-insp-info small { color: #7d8594; font-size: 13px; }
/* ═════ v5 (owner 11/3): rendered foil packs + real rip ═════ */
.tc-pk { position: relative; display: inline-block; width: 120px; flex: 0 0 auto; aspect-ratio: 706 / 1133; animation: tcPkFloat 5s ease-in-out infinite; }
.tc-pk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.tc-pk-img, .tc-pk-body, .tc-pk-top { filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
/* a light sweep across the foil, cut to the pack's shape */
.tc-pk-glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; z-index: 2;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 47%, rgba(255,255,255,.12) 52%, transparent 60%); background-size: 280% 100%; animation: tcPkGlint 5.5s ease-in-out infinite;
    -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tc-pk-floor { position: absolute; left: 10%; right: 10%; bottom: -5%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
@keyframes tcPkFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
@keyframes tcPkGlint { 0%, 35% { background-position: 140% 0; } 75%, 100% { background-position: -40% 0; } }
.tc-shop-item .tc-pk { width: 104px; }
.tc-shop-item:hover .tc-pk { animation-duration: 2.2s; }
.tc-pack-btn .tc-pk { width: 124px; }
.tc-pack-btn { animation: none; }
/* opening: the big pack, built from the torn-off strip + the body; swiping peels the strip up from the left */
.tc-pk.big { width: 100%; animation: tcPkFloat 6s ease-in-out infinite; }
.tc-stage { width: min(300px, 70vw); aspect-ratio: 706 / 1133; margin-top: clamp(40px, 8vh, 90px); }
.tc-pk-top { transform-origin: 98% calc(10.5%); transform: rotate(calc(var(--tear, 0) * 13deg)) translateY(calc(var(--tear, 0) * -6px)); transition: transform .08s linear; z-index: 1; }
.tc-tear-wrap.torn .tc-pk.big { animation: none; }
.tc-tear-wrap.torn .tc-pk-top { animation: tcRipOff .7s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes tcRipOff { to { transform: translate(55%, -120%) rotate(42deg); opacity: 0; } }
.tc-stage .tc-tear-wrap { animation: none; width: 100%; }
.tc-tear-wrap .tc-tear-zone { height: 14%; }
.tc-tear-wrap .tc-tear-line { left: 4%; right: 4%; }
/* the card stack sits behind the pack body and rises out of the rip */
.tc-stack { left: 10%; right: 10%; top: 14%; }
/* flip in sync (owner 11/3: "the card flip is delay when its revealed"): symmetric easing, sides swap exactly at 90° */
.tc-fc-in { transition: transform .6s cubic-bezier(.45,0,.55,1); }
.tc-back, .tc-face { transition: visibility 0s linear .3s; }
@media (hover: none) { .tc-pk-glint { animation-duration: 7s; } }

/* ═════ idle life (owner 11/3: "Can the cards slightly move & have their effect even when not hovered?") ═════
   Cards on screen (.live, set by an IntersectionObserver in cards.js) rock gently and their light drifts, so holo bands,
   Black Diamond facets, glitter and glints play on their own. Off-screen cards stay still (phones crashed when every card
   animated). The rock is a flat 2D-cheap transform (one layer per card). */
@property --ix { syntax: "<percentage>"; inherits: true; initial-value: 40%; }
@property --iy { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@keyframes tcLight { 0% { --ix: 18%; --iy: 12%; } 50% { --ix: 78%; --iy: 40%; } 100% { --ix: 35%; --iy: 85%; } }
@keyframes tcIdle { 0%, 100% { transform: rotateX(9deg) rotateY(-7deg); } 50% { transform: rotateX(5deg) rotateY(7deg); } }
.tc-card.live:not(:hover):not(.press), .tc-card.sway:not(:hover):not(.held) { animation: tcLight 7s ease-in-out infinite alternate; }
.tc-grid .tc-card.live:not(:hover):not(.press) .tc-3d { animation: tcIdle 6.5s ease-in-out infinite; transform-style: flat; }
.tc-grid .tc-card.live:nth-child(3n+1) .tc-3d, .tc-grid .tc-card.live:nth-child(3n+1) { animation-delay: -2.2s; }
.tc-grid .tc-card.live:nth-child(3n+2) .tc-3d, .tc-grid .tc-card.live:nth-child(3n+2) { animation-delay: -4.4s; }
.tc-grid .tc-card.live .tc-inner, .tc-grid .tc-card.live .tc-shine, .tc-grid .tc-card.live .tc-glitter, .tc-grid .tc-card.live .tc-glints b { animation-play-state: running !important; }
@media (hover: none) { .tc-grid .tc-card.live .tc-inner { animation: tcSpinA 6s linear infinite !important; } .tc-grid .tc-card.live .tc-glitter { animation: tcGlit 2.2s ease-in-out infinite !important; } .tc-grid .tc-card.live .tc-glints b { animation: tcGlint 2.6s ease-in-out infinite !important; } .tc-grid .tc-card.live.f-black .tc-glitter { animation: tcDust 1.6s ease-in-out infinite !important; }
    .tc-grid .tc-card.live:not(.r-mythic):not(.f-holo):not(.f-black) .tc-inner { animation: none !important; } }
.tc-grid.small .tc-card.live .tc-3d { animation-duration: 8s; }
@media (prefers-reduced-motion: reduce) { .tc-card.live, .tc-card.live .tc-3d { animation: none !important; } }

/* ═════ v6 (owner 11/3) ═════ */
/* the rip: the seal strip is RIP_N slices; each peels up (curls toward the viewer) once the tear reaches it */
.tc-pk-strip { position: absolute; inset: 0; z-index: 2; pointer-events: none; perspective: 500px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.tc-pk-strip i { position: absolute; top: 0; height: 100%; background-repeat: no-repeat; background-size: calc(100% * 14) 100%;
    transform-origin: 50% 11%; transform: translateY(calc(var(--a, 0) * -9%)) rotateX(calc(var(--a, 0) * -62deg)) rotateZ(calc(var(--a, 0) * (-6deg + var(--k) * 1deg))); transition: transform .12s ease-out; }
.tc-tear-wrap.torn .tc-pk-strip i { animation: tcSliceOff .7s cubic-bezier(.3,.6,.4,1) forwards; animation-delay: calc(var(--k) * 18ms); }
@keyframes tcSliceOff { to { transform: translate(calc(30% + var(--k) * 4%), -170%) rotateX(-80deg) rotateZ(calc(20deg + var(--k) * 3deg)); opacity: 0; } }
.tc-tear-wrap .tc-pk-top { display: none; }
/* (rip light + foil flecks: replaced by rip v4 below) */
/* real card back (assets/cards/back.webp) with a foil sheen */
.tc-back, .tc-insp-back { background: url(/assets/cards/back.webp?v=2) center / 100% 100% no-repeat !important; border: 0 !important; border-radius: 16px; overflow: hidden; }
.tc-back > :not(.tc-back-foil) { display: none !important; }
.tc-back-foil { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(115deg, transparent 30%, rgba(255,236,170,.35) 44%, rgba(197,139,255,.25) 50%, transparent 62%); background-size: 260% 100%; animation: tcPackShine 4.2s ease-in-out infinite; }
.tc-fc .tc-back { box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.tc-fc.hint-1 .tc-back { box-shadow: 0 0 30px color-mix(in srgb, var(--rc) 70%, transparent), 0 14px 30px rgba(0,0,0,.55) !important; }
.tc-fc.hint-2 .tc-back, .tc-fc.hint-3 .tc-back { box-shadow: 0 0 50px var(--hc, #fff), 0 14px 30px rgba(0,0,0,.55) !important; }
.tc-fc.charge .tc-back { box-shadow: 0 0 46px var(--hc), 0 0 110px color-mix(in srgb, var(--hc) 60%, transparent) !important; }
/* inspect: two-sided card you can spin all the way round */
.tc-insp .tc-inner { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tc-insp-back { position: absolute; inset: 0; transform: rotateY(180deg) translateZ(10.5px); -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.tc-insp .tc-card.held .tc-3d { transition: none; animation: none; }
.tc-insp img, .tc-modal img, .tc-card img { -webkit-user-drag: none; user-select: none; }
.tc-insp-stage img { pointer-events: none; }

/* ═════ rip v4 (owner 11/5: "like Rainbow Six's seal rip … smooth & flows, not jagged"): see openPack() in cards.js ═════
   --p (0..1, eased every frame in JS) = how far the peel has run; --x = the peel point across the seal (3%..97%).
   Layers, back to front: mouth (inside back wall) · peek (card tops) · body · light out of the opening · seal still on ·
   torn flap (rolls up around the peel point) · curl highlight · glowing seam · glint. Soft gradient masks, never hard clips. */
.tc-pk-strip { display: none; }
.tc-pk.big { --x: calc(3% + var(--p, 0) * 94%); --ramp: min(1, calc(var(--p, 0) * 6)); }
.tc-pk.big .tc-pk-body { z-index: 3; }
.tc-pk-attached { position: absolute; inset: 0; z-index: 5; pointer-events: none;
    -webkit-mask: linear-gradient(90deg, transparent calc(var(--x) - .6%), #000 calc(var(--x) + 1.4%)); mask: linear-gradient(90deg, transparent calc(var(--x) - .6%), #000 calc(var(--x) + 1.4%)); }
.tc-tear-wrap:not(.peeling) .tc-pk-attached { -webkit-mask: none; mask: none; }
/* the torn part lifts toward you and rolls back around the peel point */
.tc-pk-flapwrap { position: absolute; inset: 0; z-index: 6; pointer-events: none; perspective: 900px; perspective-origin: var(--x) 10.5%; will-change: transform, opacity; }
.tc-pk-flap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; will-change: transform;
    -webkit-mask: linear-gradient(90deg, #000 calc(var(--x) - 1.4%), transparent calc(var(--x) + .6%)); mask: linear-gradient(90deg, #000 calc(var(--x) - 1.4%), transparent calc(var(--x) + .6%));
    transform-origin: var(--x) 10.5%;
    transform: translateY(calc(var(--ramp) * -1.6%)) rotateZ(calc(var(--ramp) * 9deg + var(--p, 0) * 7deg)) rotateY(calc(var(--ramp) * 14deg)) rotateX(calc(var(--ramp) * 52deg)); }
.tc-tear-wrap:not(.peeling) .tc-pk-flap { visibility: hidden; }
/* the roll: a narrow cylinder of light right at the peel point */
.tc-pk-curl { position: absolute; z-index: 7; left: var(--x); top: 1.6%; height: 9.4%; width: 3.4%; margin-left: -1.7%; border-radius: 45% / 18%; pointer-events: none; opacity: var(--ramp);
    background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.18) 22%, #fff 48%, rgba(240,246,255,.75) 60%, rgba(0,0,0,.4));
    box-shadow: -6px 0 10px rgba(0,0,0,.35), 0 0 12px color-mix(in srgb, var(--leak, #fff) 55%, transparent); transform: rotate(-4deg); }
/* the seam: a hot point of light running along the cut */
.tc-pk-seam { position: absolute; z-index: 8; left: var(--x); top: 10.5%; width: 16%; height: 4.2%; margin: -2.1% 0 0 -8%; border-radius: 50%; pointer-events: none; opacity: var(--ramp);
    background: radial-gradient(closest-side, #fff 0%, #fff 18%, color-mix(in srgb, var(--leak, #b8e6ff) 75%, #fff) 42%, transparent 100%); mix-blend-mode: screen; }
.tc-pk-seam::after { content: ""; position: absolute; left: -30%; right: -30%; top: 46%; height: 8%; border-radius: 4px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); }
/* light blooming out of the opening behind the seam (tier colour via --leak) */
.tc-rip-light { position: absolute; z-index: 4; left: 3%; width: 94%; top: 7.4%; height: 6.2%; pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(60% 50% at 50% 55%, rgba(255,255,255,.95), color-mix(in srgb, var(--leak, #b8e6ff) 70%, transparent) 45%, transparent 75%);
    -webkit-mask: linear-gradient(90deg, #000 calc(var(--p, 0) * 100% - 6%), transparent calc(var(--p, 0) * 100% + 2%)); mask: linear-gradient(90deg, #000 calc(var(--p, 0) * 100% - 6%), transparent calc(var(--p, 0) * 100% + 2%));
    opacity: calc(var(--ramp) * .9); }
/* the inside back wall of the pack, showing just above the front lip where it's open */
.tc-pk-mouth { position: absolute; z-index: 1; left: 4%; width: 92%; top: 8.3%; height: 4%; border-radius: 40% 40% 0 0 / 100% 100% 0 0; pointer-events: none;
    background: linear-gradient(180deg, #3a414b, #15181d 45%, #08090b);
    -webkit-mask: linear-gradient(90deg, #000 calc(var(--p, 0) * 100% - 2%), transparent calc(var(--p, 0) * 100% + 1%)); mask: linear-gradient(90deg, #000 calc(var(--p, 0) * 100% - 2%), transparent calc(var(--p, 0) * 100% + 1%)); }
/* the top edge of the face-down cards, rising a little as it opens */
.tc-pk-peek { position: absolute; z-index: 2; left: 13%; width: 74%; top: 9.6%; height: 4%; border-radius: 7px 7px 0 0; pointer-events: none;
    background: var(--slv-back-img, url(/assets/cards/back.webp?v=2)) center top / 100% auto no-repeat; box-shadow: 0 -3px 14px color-mix(in srgb, var(--leak, #fff) 55%, transparent);
    transform: translateY(calc(var(--p, 0) * -38%)); opacity: var(--ramp); will-change: transform; }
.tc-tear-wrap:not(.peeling) .tc-pk-mouth, .tc-tear-wrap:not(.peeling) .tc-pk-peek, .tc-tear-wrap:not(.peeling) .tc-rip-light, .tc-tear-wrap:not(.peeling) .tc-pk-curl, .tc-tear-wrap:not(.peeling) .tc-pk-seam { visibility: hidden; }
.tc-tear-wrap.peeling .tc-pk-glint { opacity: 0; transition: opacity .3s; }
/* torn: the strip lifts away in one graceful arc and fades; light flares out of the opening */
.tc-tear-wrap.torn .tc-pk-attached { display: none; }
.tc-tear-wrap.torn .tc-pk-flapwrap { animation: tcFlapAway .85s cubic-bezier(.2,.75,.25,1) forwards; }
@keyframes tcFlapAway { 0% { transform: none; opacity: 1; } 30% { transform: translate(4%, -10%) rotate(4deg); opacity: 1; } 100% { transform: translate(30%, -80%) rotate(22deg) scale(.92); opacity: 0; } }
.tc-tear-wrap.torn .tc-pk-curl, .tc-tear-wrap.torn .tc-pk-seam { opacity: 0; transition: opacity .25s; }
.tc-tear-wrap.torn .tc-rip-light { animation: tcRipBloom .9s ease-out forwards; }
@keyframes tcRipBloom { 0% { opacity: .9; transform: scale(1); } 35% { opacity: 1; transform: scale(1.08, 2.2); } 100% { opacity: 0; transform: scale(1.1, 2.6); } }
@media (hover: hover) and (min-width: 761px) { .tc-pk-flap { filter: drop-shadow(0 10px 9px rgba(0,0,0,.5)); } }

/* iPhone: when the address bar collapses while scrolling, fixed layers sized to the small viewport left a black band at the
   bottom (owner 11/3). Size them to the large viewport; panels use the dynamic viewport so nothing hides under the bar. */
@supports (height: 100lvh) { @media (max-width: 767px) { #constellation-bg, #home-bg-stars, #void-page-stars, #shop-void-stars, #killfeed-tracers { height: 100lvh !important; } } }
@supports (height: 100dvh) {
    .lkr { max-height: calc(100dvh - 36px - var(--safe-top, 0px)); }
    @media (max-width: 640px) { .lkr { max-height: calc(100dvh - 24px - var(--safe-top, 0px)); } }
    .cx-trade { max-height: calc(100dvh - 40px); }
    .tc-modal, .tc-insp { height: 100dvh; }
}
.tc-modal { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.tc-shop-item .tc-pk { width: 132px; }
/* Reveal all: always there, gold, pinned to the bottom on phones */
.tc-open-btns { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 6; }
/* owner 11/7: the row floats over the cards, so see-through buttons vanished ("Sell some"); long labels wrap to their own row */
.tc-open-btns { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.tc-open-btns .cx-btn { white-space: nowrap; }
.tc-open-btns .cx-btn.ghost { background: rgba(12,14,18,.94); border-color: rgba(255,255,255,.32); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.55); }
@media (max-width: 560px) {
  .tc-open-btns { width: 100%; padding: 0 10px; box-sizing: border-box; gap: 8px; }
  .tc-open-btns .cx-btn { flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 14px !important; font-size: 15px; letter-spacing: .04em; }
  .tc-open-btns [data-tc-qsdupe] { flex-basis: 100%; }
}
.tc-slot.flipin { animation: tcFlipIn .55s cubic-bezier(.2,1.2,.4,1) both; animation-delay: var(--d, 0ms); }
@keyframes tcFlipIn { from { transform: rotateY(-180deg) translateY(-40px) scale(.7); opacity: 0; } 50% { opacity: 1; } }
/* Cards (i) guide (11/3) */
.tc-head { display: flex; align-items: center; gap: 10px; }
.tc-head b { font: 800 26px/1 "Barlow Condensed", sans-serif; color: #fff; }
.tc-head span { color: var(--cx-dim); font-size: 14px; }
.tc-help-btn { width: 28px; height: 28px; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: #17191d; color: #d6dae2; font: 800 italic 16px/1 Georgia, serif; cursor: pointer; }
.tc-help-btn:hover { background: #1f2227; border-color: rgba(246,215,122,.5); color: #fff; }
.tc-help { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: calc(16px + var(--safe-top, 0px)) 14px 16px; overflow-y: auto; background: rgba(4,5,7,.9); font-family: "Barlow Condensed", system-ui, sans-serif; }
.tc-help-box { position: relative; width: min(620px, 100%); display: grid; gap: 14px; padding: 24px 22px; border-radius: 22px; color: #d7dce4;
    background: #121417; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 28px 70px -24px rgba(0,0,0,.95); } /* clean graphite (was purple tint + border) */
.tc-help-box .tc-insp-x { position: absolute; top: 12px; right: 12px; }
.tc-help-box h3 { margin: 0; font: 900 34px/1 "Barlow Condensed", sans-serif; color: #fff; }
.tc-help-lead { margin: 0; font-size: 17px; color: #e3e6ec; }
.tc-help-box h4 { margin: 0 0 6px; font: 800 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #f6d77a; } /* premium gold eyebrow (was purple) */
.tc-help-box p { margin: 0 0 6px; font-size: 15px; }
.tc-help-box ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 15px; }
.tc-help-box li b { color: #fff; margin-right: 4px; }
.tc-help-box li b.f-holo { background: linear-gradient(90deg, #ff9ad5, #9ad8ff, #c9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-help-box li b.f-gold { color: #ffd46a; } .tc-help-box li b.f-black { text-shadow: 0 0 8px #fff; } .tc-help-box li b.f-foil { color: #dfe6ee; }
.tc-help-box > .cx-btn { justify-self: start; }
/* holo glitter back (owner 11/3: "Holographic cards are missing their glitter look again"): across the whole card,
   brightest where the light is, at a strength between the "too much" v2 and the faint v4 */
.f-holo .tc-glitter, .r-mythic .tc-glitter { mix-blend-mode: plus-lighter; opacity: .55;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.75) 30%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.3) 100%), linear-gradient(180deg, #000 60%, rgba(0,0,0,.35) 85%, rgba(0,0,0,.2));
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.75) 30%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.3) 100%), linear-gradient(180deg, #000 60%, rgba(0,0,0,.35) 85%, rgba(0,0,0,.2));
    mask-composite: intersect; animation: tcGlitV5 2s ease-in-out infinite; }
@keyframes tcGlitV5 { 0%, 100% { opacity: .6; } 50% { opacity: .32; } }
@media (hover: none) { .tc-grid .f-holo .tc-glitter { opacity: .5; } }
.tc-modal.pk-loading .tc-tear-wrap, .tc-modal.pk-loading .tc-open-hint { visibility: hidden; }
.tc-modal.pk-loading .tc-stage::before { content: ""; position: absolute; left: 50%; top: 45%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: #c58bff; animation: cxSpin .8s linear infinite; }
.tc-help-box { width: min(460px, 100%); gap: 12px; }
.tc-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-help-grid div { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #17191d; border: 1px solid rgba(255,255,255,.07); }
.tc-help-grid b { font: 800 17px/1.1 "Barlow Condensed", sans-serif; color: #fff; } .tc-help-grid span { font-size: 14px; line-height: 1.3; color: #c3c9d3; }
.tc-help-foot { color: #8d95a5; font-size: 13px; }
@media (max-width: 420px) { .tc-help-grid { grid-template-columns: 1fr; } }
/* hero v2 (owner 11/3: "hero panel is still ass & on mobile u cant even see cards"): DayZ art + new crates, live card fan */
.cs-hero-banner.cs-hero-v2 { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; -webkit-mask: none; mask: none; animation: none; }
.cs-combined .ff-hero-overlay { background: none !important; }
.tc-hero-fan { right: auto; left: 41%; bottom: 7%; width: min(300px, 21%); z-index: 2; }
@media (max-width: 760px) {
    .cs-combined.cs-hero { min-height: 560px; }
    .cs-hero-banner.cs-hero-v2 { object-position: 50% 100%; }
    .tc-hero-fan { display: block !important; left: auto; right: 2%; top: auto; bottom: 3%; width: 54%; opacity: 1; }
    .tc-fan-card .tc-name { font-size: 12px; } .tc-fan-card .tc-top, .tc-fan-card .tc-fin { font-size: 7px; }
}
@media (max-width: 760px) {
    .cs-combined.cs-hero { display: flex !important; align-items: flex-start !important; min-height: 600px; }
    .cs-combined .ff-hero-content { margin-top: 0 !important; padding-top: 22px !important; align-self: flex-start !important; justify-content: flex-start !important; }
    .tc-hero-fan { left: 2% !important; right: auto !important; bottom: 2% !important; width: 58% !important; }
}
@media (max-width: 760px) { #cases .cs-combined.cs-hero { min-height: 0 !important; height: auto !important; padding-bottom: 300px !important; display: block !important; } #cases .cs-combined .ff-hero-content { position: relative !important; inset: auto !important; transform: none !important; padding-top: 26px !important; } }

/* ═════ PERFORMANCE PASS (owner 11/3: "you just keep making shit laggier & laggier") ═════
   Animating custom properties (rotating conic frames, drifting light masks) repaints every card every frame. Grid cards now
   idle with a transform-only sway (GPU, no repaint); frames / glitter / light only animate on the card you hover or open. */
.tc-grid .tc-card:not(:hover):not(.press), .tc-grid .tc-card.live:not(:hover):not(.press) { animation: none !important; }
.tc-grid .tc-card:not(:hover):not(.press) .tc-inner, .tc-grid .tc-card:not(:hover):not(.press) .tc-shine,
.tc-grid .tc-card:not(:hover):not(.press) .tc-glitter, .tc-grid .tc-card:not(:hover):not(.press) .tc-glints b,
.tc-grid .tc-card:not(:hover):not(.press) .tc-name { animation: none !important; }
.tc-grid .tc-card .tc-3d { will-change: transform; }
.cx-crate:not(:hover) .cx-frame { animation: none !important; }
.cx-spin { will-change: transform; }

@media (hover: none), (max-width: 760px) {
    /* grid: completely still, finishes shown static */
    /* (owner 11/5 "it says animated but it's not"): a playing Animated card (.tca-on, max 3 on a phone) keeps its motion */
    .tc-grid .tc-card:not(.tca-on), .tc-grid .tc-card:not(.tca-on) .tc-3d, .tc-grid .tc-card:not(.tca-on) *,
    .tc-grid .tc-card.tca-on .tc-3d, .tc-grid .tc-card.tca-on .tc-inner, .tc-grid .tc-card.tca-on .tc-shine, .tc-grid .tc-card.tca-on .tc-glitter, .tc-grid .tc-card.tca-on .tc-name { animation: none !important; }
    .tc-grid .tc-card .tc-3d { transform: rotateX(6deg) !important; }
    .tc-glitter { mix-blend-mode: screen !important; }
    /* opening: no particles-in-CSS, no endless loops, no filters on moving parts */
    .tc-burst, .tc-leak, .tc-pk-glint, .tc-back-foil { display: none !important; }
    .tc-tear-line::after { display: none; } /* rip v4: no blur layer on phones */
    .tc-pk.big, .tc-tear-wrap, .tc-open-hint, .tc-fc .tc-back, .tc-fc.hint-1 .tc-back, .tc-fc.hint-2 .tc-back, .tc-fc.hint-3 .tc-back { animation: none !important; }
    .tc-pk-flap { filter: none !important; }
    .tc-pk-img, .tc-pk-body, .tc-pk-top { filter: none !important; }
    .tc-fc .tc-face .tc-card .tc-3d, .tc-fc .tc-face .tc-card *, .tc-tray .tc-card, .tc-tray .tc-card * { animation: none !important; }
    .tc-modal { background: rgba(5,6,8,.97) !important; }
    /* (hero fan keeps its effects on phones too: owner 11/3 "cards in hero panel don't have the same effect") */
    .cs-hero-sweep { display: none; }
    .tc-pk { animation: none !important; }
}
/* mobile hero: flat 2D fan (3D layers warped on phones, owner 11/3) + pinned background */
#cases .cs-hero-art picture { position: absolute; inset: 0; display: block; }
@media (max-width: 760px) {
    .tc-fan-card .tc-3d { transform: none !important; transform-style: flat !important; }
    .tc-fan-card .tc-edge, .tc-fan-card .tc-floor { display: none !important; }
    .tc-hero-fan { perspective: none !important; }
    .tc-fan-card { filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
    #cases .tc-hero-fan { width: 50% !important; left: 4% !important; bottom: 9% !important; }
    .tc-fan-card .tc-fin { max-width: 86%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; left: 7% !important; right: auto !important; }
    #cases .cs-hero-banner.cs-hero-v2 { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; transform: none !important; }
}
/* ═════ 11/3 late: phone crash + small fixes ═════ */
/* Black Diamond plate (owner: "text huge … make it smaller so it fits") */
.f-black .tc-fin { font-size: 9px !important; letter-spacing: .07em !important; padding: 4px 7px 4px 6px !important; gap: 5px !important; max-width: calc(100% - 20px); }
.f-black .tc-fin .tc-gem { width: 8px; height: 8px; }
.f-black .tc-fin em { padding-left: 5px; margin-left: 0; }
.tc-grid .f-black .tc-fin, .tc-slot .f-black .tc-fin, .tc-fan-card .f-black .tc-fin { font-size: 7px !important; letter-spacing: .04em !important; padding: 3px 5px !important; gap: 3px !important; right: 8px !important; }
.tc-grid .f-black .tc-fin .tc-gem, .tc-fan-card .f-black .tc-fin .tc-gem { width: 6px; height: 6px; }
.tc-insp .f-black .tc-fin { font-size: 10px !important; }
/* (i) was stretched to an oval by the site's 40px phone button height */
.tc-help-btn { min-height: 0 !important; min-width: 0 !important; width: 28px !important; height: 28px !important; flex: 0 0 28px; line-height: 28px !important; display: inline-grid; place-items: center; }
.tc-more { display: block; margin: 18px auto 0; }
/* phones: My Cards crashed the page (470 GPU layers ≈ 1 GB). Grid cards are flat pictures; tap one to see it in 3D. */
@media (hover: none), (max-width: 760px) {
    .tc-grid .tc-card, .tc-grid .tc-card * { will-change: auto !important; }
    .tc-grid .tc-card .tc-3d { transform: none !important; transform-style: flat !important; }
    /* owner 11/3 "Cant see holo cards or any design on the mobile anymore": finishes stay (holo foil, glitter, shine), just
       still; only the 3D thickness plates, floor shadow and twinkling glints are off in the grid */
    .tc-grid .tc-card .tc-edge, .tc-grid .tc-card .tc-floor, .tc-grid .tc-card .tc-glints, .tc-grid .tc-card .tc-glare { display: none !important; }
}@media (max-width: 760px) { #cases .tc-hero-fan { width: 46% !important; left: 3% !important; bottom: 8% !important; } }
@media (max-width: 760px) { .tc-fan-card .f-black .tc-fin { font-size: 0 !important; gap: 3px !important; padding: 3px 5px !important; } .tc-fan-card .f-black .tc-fin em { font-size: 7px; border: 0; padding-left: 0; letter-spacing: .04em; } }

/* owner 11/3: "When rotating cards the top corners edge sticks past the card frame": the thickness plates sit a little
   inside the face (so their corners never poke out), are thinner, and the big spin view uses a flatter perspective */
.tc-edge { inset: 3px; border-radius: 13px; transform: translateZ(-7px); box-shadow: none; }
.tc-edge i:nth-child(1) { transform: translateZ(1.75px); } .tc-edge i:nth-child(2) { transform: translateZ(3.5px); } .tc-edge i:nth-child(3) { transform: translateZ(5.25px); }
.tc-insp .tc-card { perspective: 1600px; }/* owner 11/3: pack words hard to read */
.tc-shop-txt small { font-size: 14px !important; line-height: 1.3; color: #d0d5de !important; }
.tc-shop-txt b { font-size: 21px; }

/* ═════ Cases & Cards hero v3 (owner 11/3: "not spaced properly … doesn't animate on mobile … the hero panel could scream
   iridescent/holo/black diamond/shiny"). Subtle: a slow iridescent sheen, glitter, twinkling diamond glints, a holo title
   and border. Every animation is transform/opacity only, so phones run it on the GPU without repainting. ═════ */
#cases .cs-combined.cs-hero { border: 1px solid transparent !important; background: linear-gradient(#08070c, #08070c) padding-box, linear-gradient(120deg, #a9c9ff, #ffbbec, #ffc3a0, #c3ffd8, #c58bff, #a9c9ff) border-box !important; box-shadow: 0 0 46px -14px rgba(197,139,255,.55), 0 20px 50px -20px rgba(0,0,0,.8); }
.cs-irid { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; mix-blend-mode: screen; }
.cs-irid::before { content: ""; position: absolute; top: -25%; bottom: -25%; left: -70%; width: 240%; background: linear-gradient(110deg, transparent 30%, rgba(255,140,220,.2) 37%, rgba(140,200,255,.22) 43%, rgba(150,255,200,.16) 49%, rgba(255,225,150,.18) 55%, transparent 63%); animation: csIrid 9s ease-in-out infinite alternate; will-change: transform; }
.cs-irid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 75% at 74% 42%, rgba(197,139,255,.2), transparent 70%), radial-gradient(40% 55% at 52% 92%, rgba(120,220,255,.13), transparent 70%), radial-gradient(30% 45% at 92% 12%, rgba(255,190,240,.12), transparent 70%); }
@keyframes csIrid { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.cs-glit { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url(/assets/cards/glitter.webp?v=2) 0 0 / 300px; mix-blend-mode: screen; opacity: .16; -webkit-mask: radial-gradient(65% 95% at 70% 50%, #000 0%, transparent 78%); mask: radial-gradient(65% 95% at 70% 50%, #000 0%, transparent 78%); animation: csGlit 2.8s ease-in-out infinite alternate; }
@keyframes csGlit { from { opacity: .08; } to { opacity: .3; } }
.cs-glints { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cs-glints i { position: absolute; width: 16px; height: 16px; opacity: 0; transform: scale(.2); background: radial-gradient(closest-side, #fff, rgba(255,255,255,0) 70%); animation: csTwinkle 4.2s ease-in-out infinite; }
.cs-glints i::before, .cs-glints i::after { content: ""; position: absolute; left: 50%; top: -70%; width: 2px; height: 240%; margin-left: -1px; background: linear-gradient(transparent, #fff 50%, transparent); }
.cs-glints i::after { transform: rotate(90deg); }
@keyframes csTwinkle { 0%, 72%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 82% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: .2; transform: scale(.5) rotate(70deg); } }
.cs-glints i:nth-child(1) { left: 54%; top: 18%; animation-delay: -.2s; } .cs-glints i:nth-child(2) { left: 66%; top: 62%; animation-delay: -1.1s; }
.cs-glints i:nth-child(3) { left: 78%; top: 28%; animation-delay: -2.3s; } .cs-glints i:nth-child(4) { left: 90%; top: 70%; animation-delay: -3.1s; }
.cs-glints i:nth-child(5) { left: 46%; top: 80%; animation-delay: -1.7s; transform: scale(.15); } .cs-glints i:nth-child(6) { left: 60%; top: 40%; animation-delay: -3.7s; }
.cs-glints i:nth-child(7) { left: 84%; top: 46%; animation-delay: -.8s; } .cs-glints i:nth-child(8) { left: 72%; top: 86%; animation-delay: -2.8s; }
.cs-glints i:nth-child(9) { left: 95%; top: 14%; animation-delay: -1.4s; } .cs-glints i:nth-child(10) { left: 38%; top: 12%; animation-delay: -3.4s; }
.cs-glints i:nth-child(11) { left: 24%; top: 88%; animation-delay: -.5s; } .cs-glints i:nth-child(12) { left: 8%; top: 22%; animation-delay: -2s; }
/* holographic CARDS. */
#cases .cs-combined .ff-hero-content .void-heading .ff-h-gold { background: linear-gradient(100deg, #ffd27a 0%, #ffbbec 22%, #a9c9ff 42%, #c3ffd8 60%, #ffd27a 80%, #ffbbec 100%) !important; background-size: 250% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important; animation: csTitleIrid 7s linear infinite; filter: drop-shadow(0 0 16px rgba(255,190,240,.3)); }
@keyframes csTitleIrid { to { background-position: 250% 0; } }
#cases .cs-combined .ff-hero-content { z-index: 4; }
#cases .cs-combined .cx-stat { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,16,.72); border-color: rgba(197,139,255,.22); }
/* desktop spacing: one clean left column, the card fan between it and the crates */
@media (min-width: 761px) {
    #cases .cs-combined.cs-hero { min-height: 470px !important; display: flex !important; align-items: center !important; }
    #cases .cs-combined .ff-hero-content { position: relative !important; padding: 44px 0 44px 56px !important; max-width: 46% !important; margin: 0 !important; }
    #cases .cs-combined .ff-sub { max-width: 46ch !important; font-size: 16px !important; line-height: 1.55 !important; color: #d6dae3 !important; margin-top: 14px !important; }
    #cases .cs-combined .void-page-badges { margin-bottom: 12px; }
    #cases .tc-hero-fan { left: 39% !important; right: auto !important; bottom: 6% !important; width: min(320px, 22%) !important; }
}
/* phones: the fan floats again (transform only), glints a touch smaller */
@media (max-width: 760px) {
    #cases .tc-fan-card { animation: tcFanFloat 5.5s ease-in-out infinite !important; }
    #cases .tc-fan-card.f0 { animation-delay: -2s !important; } #cases .tc-fan-card.f1 { animation-delay: -1s !important; } #cases .tc-fan-card.f2 { animation-delay: -3.2s !important; }
    .cs-glints i { width: 12px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cs-irid::before, .cs-glit, .cs-glints i, #cases .cs-combined .void-heading .ff-h-gold, #cases .tc-fan-card { animation: none !important; } }
@media (min-width: 761px) { #cases .cs-combined .ff-hero-content { max-width: 40% !important; } #cases .cs-combined .ff-sub { max-width: 40ch !important; } #cases .tc-hero-fan { left: 42% !important; } }

/* pack shop v2 (owner 11/3: "these panels are just plain jane & look basic gray"): each panel glows in its pack's colour,
   a slow light sweep, faint glitter, and the pack lifts on hover */
.tc-shop-item { --sa: #4cc764; --sb: #0e3a26; position: relative; overflow: hidden; isolation: isolate;
    background: radial-gradient(90% 130% at 12% 50%, color-mix(in srgb, var(--sa) 34%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--sb) 90%, #000) 0%, #0c0e13 72%) !important;
    border: 1px solid color-mix(in srgb, var(--sa) 50%, transparent) !important; box-shadow: 0 0 34px -14px var(--sa), inset 0 1px 0 rgba(255,255,255,.1) !important; }
.tc-shop-item.k-elite { --sa: #f3c14d; --sb: #4a3207; }
.tc-shop-item.daily { --sa: #3fd8c4; --sb: #0a3a38; }
/* owner 11/12: "the random glow that floats across packs could go, it looks laggy & it's synced across all packs" → the tile
   sweep and the pack glint are off on the pack page (the opening screen keeps its foil glint) */
.tc-shop-item::before { display: none !important; animation: none !important; }
.tc-shop-item .tc-pk-glint { display: none !important; }
.tc-shop-item::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: -60%; width: 60%; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.09) 45%, color-mix(in srgb, var(--sa) 22%, transparent) 55%, transparent); transform: skewX(-18deg) translateX(0); animation: tcShopSweep 6.5s ease-in-out infinite; }
.tc-shop-item.k-elite::before { animation-delay: -2.2s; } .tc-shop-item.daily::before { animation-delay: -4.4s; }
@keyframes tcShopSweep { 0%, 55% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(380%); } }
.tc-shop-item::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url(/assets/cards/glitter.webp?v=2) 0 0 / 260px; mix-blend-mode: screen; opacity: .12;
    -webkit-mask: radial-gradient(70% 100% at 15% 50%, #000, transparent 75%); mask: radial-gradient(70% 100% at 15% 50%, #000, transparent 75%); }
.tc-shop-item .tc-pk { transition: transform .35s cubic-bezier(.2,.8,.3,1); filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)) drop-shadow(0 0 16px color-mix(in srgb, var(--sa) 45%, transparent)); }
.tc-shop-item:hover .tc-pk { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.tc-shop-txt b { color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--sa) 55%, transparent); }
.tc-shop-txt small { color: color-mix(in srgb, var(--sa) 30%, #e6e9ef) !important; }
@media (prefers-reduced-motion: reduce) { .tc-shop-item::before { animation: none; } }

/* ═════ Prismatic Diamond (owner 11/3: "would be fire"): the Black Diamond gem with a rainbow running through every facet,
   a rainbow cut frame, a rainbow name. Mythic cards only, 1 in 50 Mythic pulls, 10 of each ever. ═════ */
.tc-card.f-prism { --rc: #bff6ff; }
.tc-card.f-prism .tc-inner { border: 4px solid transparent;
    background: url(/assets/cards/black-facets.webp?v=1) center / cover padding-box, linear-gradient(180deg, #07080b, #000) padding-box,
        conic-gradient(from var(--tc-a), #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #c58bff, #ff6fd8, #ff5f6d) border-box !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), inset 0 0 26px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.5), 0 0 18px rgba(255,111,216,.45), 0 0 34px rgba(79,227,255,.35) !important; }
.tc-prism { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, #ff5f6d, #ffc371 14%, #fff36d 28%, #8dff8a 42%, #4fe3ff 56%, #6d8bff 70%, #c58bff 84%, #ff6fd8); background-size: 220% 220%;
    mix-blend-mode: color; opacity: .62; animation: tcPrism 6s linear infinite; }
.tc-card.f-prism .tc-shine { opacity: 1; }
.tc-card.f-prism .tc-glitter { opacity: 1; filter: saturate(1.6); }
/* 11/8 v2 (owner: v1 "looks like ass, just rainbow prism, no animated look"): keep the WHOLE Black Diamond look (prism cards
   also carry .f-black: same moving facet light, same mask, same dust) and only let the lit facets FLOW through the rainbow.
   The rainbow layer is multiplied into black-facets-hi (solid image) and slides diagonally; the light keeps moving as before. */
/* 11/9 fix (owner: "does a weird pause & flashes a circle of rainbow blurring the rest of the card"): the flow jumped every
   4 s (150% size / 0→150% isn't one full repeat) → now 2 repeats over 200% width sliding exactly one repeat = seamless; and
   the lit circle was boosted (brightness 1.35) into a rainbow blob → softer, wider light, no boost. */
.tc-card.f-prism .tc-shine {
    background: linear-gradient(115deg, #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #c58bff, #ff6fd8, #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #c58bff, #ff6fd8, #ff5f6d) 0% 50% / 200% 100%,
        url(/assets/cards/black-facets-hi.webp?v=1) center / cover;
    background-blend-mode: multiply, normal; opacity: .85;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,.18) 52%, transparent 75%);
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,.18) 52%, transparent 75%);
    animation: tcFacetLight 7s ease-in-out infinite alternate, tcPrismFlow 6s linear infinite; }
@keyframes tcPrismFlow { from { background-position: 0% 50%, 50% 50%; } to { background-position: 100% 50%, 50% 50%; } }
@keyframes tcPrism { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
.tc-card.f-prism .tc-name { background: linear-gradient(90deg, #ffd6e0, #fff5b8, #c8ffcf, #c2f3ff, #dcd0ff, #ffd6f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-card.f-prism .tc-fin { border-color: transparent; background: linear-gradient(#0b0c10, #0b0c10) padding-box, linear-gradient(90deg, #ff5f6d, #ffc371, #8dff8a, #4fe3ff, #c58bff) border-box; border: 1px solid transparent; }
.tc-card.f-prism .tc-gem { background: conic-gradient(#ff5f6d, #ffc371, #8dff8a, #4fe3ff, #c58bff, #ff5f6d); box-shadow: 0 0 8px #fff; }
.tc-odds-f.f-prism b { background: linear-gradient(90deg, #ff9aa8, #ffe08a, #a8ffb0, #9ff3ff, #d4b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: none), (max-width: 760px) { .tc-grid .tc-card .tc-prism { animation: none !important; } }

/* Prism Pack (owner 11/3): iridescent panel + button */
.tc-shop-item.k-prism { --sa: #d9a8ff; --sb: #2a1446; }
.tc-shop-item.k-prism::after { opacity: .2; }
.tc-shop-item.k-prism { border-color: transparent !important; background: radial-gradient(90% 130% at 12% 50%, rgba(217,168,255,.32), transparent 60%), linear-gradient(135deg, #24133e 0%, #0c0e13 72%) padding-box, linear-gradient(120deg, #ff7ac8, #7ad8ff, #a6ffbf, #ffe58a, #c48aff, #ff7ac8) border-box !important; }
.tc-shop-item.k-prism .tc-shop-txt b { background: linear-gradient(90deg, #ffc6ec, #c2efff, #d2ffdc, #fff0b8, #e3caff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.cx-btn.prism { color: #1a1030 !important; background: linear-gradient(120deg, #ffb3e1, #a9e6ff 35%, #c8ffd6 55%, #ffe9a3 75%, #d8b6ff) !important; background-size: 200% 100% !important; box-shadow: 0 6px 20px rgba(200,140,255,.35); animation: tcPrismBtn 5s linear infinite; }
@keyframes tcPrismBtn { to { background-position: 200% 0; } }
@media (min-width: 900px) { .tc-shop { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* gift a pack (owner 11/3) */
.tc-shop-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-gift-btn { padding: 0 14px !important; }
/* quantity stepper in the Shop (11/3; base styles: cases.css .pq) */
.tc-shop-btns .pq { height: 46px; }
@media (max-width: 760px) {
  .tc-shop .tc-shop-btns .pq { width: 100%; height: 32px; padding: 2px; justify-content: space-between; }
  .tc-shop .tc-shop-btns .pq .pq-b { width: 30px; font-size: 18px; }
  .tc-shop .tc-shop-btns .pq .pq-n { min-width: 0; font-size: 16px; }
}
.tc-giftm { display: grid; place-items: center; padding: 16px; }
.tc-gift-box { position: relative; width: min(440px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: 16px; background: #121417; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 28px 70px -24px rgba(0,0,0,.95); } /* clean graphite (was purple-black gradient + gold glow) */
.tc-gift-head { display: flex; gap: 16px; align-items: center; } .tc-gift-head .tc-pk { width: 84px; flex: 0 0 auto; }
.tc-gift-head small { display: block; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #f6d77a; }
.tc-gift-head b { display: block; font: 800 26px/1.1 "Barlow Condensed", sans-serif; color: #fff; } .tc-gift-head span { font-size: 13px; color: #c3c9d3; }
.tc-gift-l { display: grid; gap: 6px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #aeb5c0; }
.tc-gift-l input { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); color: #fff; font: 500 15px/1 system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.tc-gift-res { display: flex; flex-wrap: wrap; gap: 6px; } .tc-gift-res:empty { display: none; }
.tc-gift-res button { min-height: 0 !important; padding: 6px 12px !important; border-radius: 999px; border: 1px solid rgba(246,201,92,.4); background: rgba(246,201,92,.1); color: #ffe7a3; cursor: pointer; font: 600 13px/1 system-ui, sans-serif; }
.tc-gift-own { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #d6dbe3; }
.tc-gift-msg { margin: 0; min-height: 1em; color: #ff8a8a; font-size: 13px; }

/* trading + collections (owner 11/3) */
.tc-tm { display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.tc-tbox { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 28px); overflow-y: auto; display: grid; gap: 14px; padding: 22px; border-radius: 16px; background: #121417; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 28px 70px -24px rgba(0,0,0,.95); } /* clean graphite (was purple gradient/border/glow) */
.tc-tbox.wide { width: min(1100px, 100%); }
.tc-tbox h3 { margin: 0; font: 800 28px/1.05 "Barlow Condensed", sans-serif; color: #fff; padding-right: 50px; }
.tc-tbox .tc-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
/* 11/8 (owner: art "warped"): at 130 px the title/text rows squeezed the art row of boxed-art cards (items, guns, players)
   to a sliver in the wide pop-ups (someone's cards, trades). Desktop gets the main grid's size; phones keep the 2-up grid. */
@media (min-width: 761px) { .tc-tbox.wide .tc-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
.tc-csub { margin: -6px 0 0; color: #c3c9d3; }
/* Hype Drop + Black Label side by side on desktop (owner 11/5 night), stacked on phones / narrow screens */
#tc-root .tc-feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 16px; align-items: stretch; margin: 0 0 16px; }
#tc-root .tc-feature-row:not(:has(> :not(:empty))) { display: none; }
#tc-root .tc-feature-row > :empty { display: none; }
#tc-root .tc-feature-row .hd-tile, #tc-root .tc-feature-row .bl-tile { height: 100%; margin: 0; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 18px; padding: 16px 20px 16px 14px; }
@media (max-width: 600px) { #tc-root .tc-feature-row .hd-tile, #tc-root .tc-feature-row .bl-tile { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; } }
.tc-csearch { width: 100%; height: 46px; padding: 0 16px 0 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); color: #fff; font: 500 16px/1 system-ui, sans-serif;
    background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab3c2' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center/18px no-repeat; }
.tc-csearch:focus { outline: none; border-color: rgba(246,215,122,.55); background-color: rgba(255,255,255,.08); }
.tc-tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 760px) { .tc-tcols { grid-template-columns: 1fr; } }
.tc-tcols section { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.tc-th { display: flex; justify-content: space-between; align-items: baseline; } .tc-th b { font: 800 20px/1 "Barlow Condensed", sans-serif; color: #fff; } .tc-th span { font-size: 13px; color: #f6d77a; }
.tc-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; padding: 4px; }
.tc-tgrid .tc-card { cursor: pointer; } .tc-tgrid .tc-name { font-size: 12px !important; } .tc-tgrid .tc-info, .tc-tgrid .tc-top { display: none !important; }
/* trade search (11/6 player request): one bar per side; typing hides cards, picks stay picked */
.tc-tsearch { height: 40px; font-size: 15px; } .tc-tgrid > [hidden] { display: none !important; } .tc-tgrid .tc-tnone { grid-column: 1 / -1; margin: 6px 0; }
/* Card Finder (11/6 player request) v2 (owner: "the panel looks basic"): a real feature panel. Bar on Trade → Market / Trades;
   the modal = header band (eyebrow, title, big search) → front page (recent searches + popular / chase cards as REAL small card
   tiles, the same .tc-grid.small cards as My Cards) → owners page (card hero with stats + rich owner rows). No purple anywhere. */
.tcfd-ico { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: -3px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.tc-find-btn { margin-top: 2px; } .tc-find-btn .tcfd-ico { width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; }

/* the bar (Trade → Market / Trades) */
#tc-root .tcfd-bar { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; height: auto; min-height: 0; margin: 0 0 18px; padding: 14px 16px 14px 14px; border-radius: 16px; cursor: pointer; text-align: left; color: #fff;
    font: 400 15px/1.25 system-ui, sans-serif; text-transform: none; letter-spacing: normal; overflow: hidden; isolation: isolate;
    background: var(--pm-noise), radial-gradient(60% 140% at 0% 50%, rgba(246,215,122,.10), transparent 60%), linear-gradient(180deg, #1a1c21, #111317);
    border: 1px solid rgba(255,255,255,.08); border-top-color: rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 30px -18px #000; transition: border-color .15s, transform .15s; }
#tc-root .tcfd-bar::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; border-radius: 2px; background: linear-gradient(180deg, transparent, #f6d77a, transparent); }
#tc-root .tcfd-bar:hover { border-color: rgba(246,215,122,.35); transform: translateY(-1px); }
.tcfd-bar-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #f6d77a;
    background: linear-gradient(180deg, #23262c, #15171b); border: 1px solid rgba(246,215,122,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px -6px #000; }
.tcfd-bar-ico .tcfd-ico { width: 20px; height: 20px; }
.tcfd-bar-txt { display: grid; gap: 3px; min-width: 0; }
.tcfd-bar-txt em { font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; font-style: normal; color: #f6d77a; }
.tcfd-bar-txt b { font: 800 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.tcfd-bar-txt small { font-size: 13px; color: #9aa1ab; }
.tcfd-bar-field { margin-left: auto; flex: 0 1 300px; display: flex; align-items: center; gap: 9px; min-width: 0; height: 42px; padding: 0 14px; border-radius: 10px; font-size: 14px; color: #6f7680;
    background: #0a0b0e; border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.tcfd-bar-field .tcfd-ico { width: 15px; height: 15px; }
@media (max-width: 640px) { .tcfd-bar-field { display: none; } .tcfd-bar-txt b { font-size: 20px; } .tcfd-bar-txt small { font-size: 12px; } }

/* the modal */
.tcfd-box { gap: 0 !important; padding: 0 !important; overflow: hidden !important; display: flex !important; flex-direction: column; max-height: min(880px, calc(100dvh - 28px)); }
.tcfd-hd { position: relative; display: grid; gap: 6px; padding: 24px 26px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.tcfd-hd h3 { margin: 0 !important; padding-right: 56px; }
/* 11/6: the X sat BEFORE the positioned header in the DOM, so the header painted over it and swallowed the tap */
.tcfd-box > .tc-insp-x { z-index: 20; top: 12px; right: 12px; }
.tcfd-eyebrow { font: 800 11.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .24em; text-transform: uppercase; font-style: normal; color: #f6d77a; }
.tcfd-sub { margin: 0 0 8px; font-size: 14px; color: #9aa1ab; }
.tcfd-search { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 12px; color: #8b929c;
    background: #090a0c; border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 2px 8px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.04); transition: border-color .15s, box-shadow .15s; }
.tcfd-search:focus-within { border-color: rgba(246,215,122,.55); box-shadow: inset 0 2px 8px rgba(0,0,0,.7), 0 0 0 3px rgba(246,215,122,.08); color: #f6d77a; }
.tcfd-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: #fff; font: 500 17px/1 system-ui, sans-serif; }
.tcfd-search input::placeholder { color: #5f666f; }
.tcfd-search kbd { flex: none; padding: 4px 7px; border-radius: 6px; font: 700 11px/1 system-ui, sans-serif; color: #7a818b; background: #15171b; border: 1px solid rgba(255,255,255,.1); border-bottom-width: 2px; }
@media (hover: none) { .tcfd-search kbd { display: none; } }
.tcfd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; grid-auto-rows: max-content; gap: 22px; padding: 20px 26px 26px; }
.tcfd-sec { display: grid; gap: 12px; }
.tcfd-sec-h { display: flex; align-items: baseline; gap: 12px; }
.tcfd-sec-h h4 { position: relative; margin: 0; padding-left: 12px; font: 800 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #e9ecf0; }
.tcfd-sec-h h4::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; border-radius: 2px; background: #f6d77a; }
.tcfd-sec-h small { font-size: 12.5px; color: #757c86; }
.tcfd-sec-h .tcfd-clear { margin-left: auto; height: auto; min-height: 0; padding: 4px 10px !important; border-radius: 7px; font: 700 12px/1 system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: #8b929c; background: none; border: 1px solid rgba(255,255,255,.1); box-shadow: none; cursor: pointer; }
.tcfd-sec-h .tcfd-clear:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.tcfd-count { margin: 0; font-size: 13px; color: #757c86; }
.tcfd-tip { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; color: #8b929c; background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.09); }
.tcfd-tip b { color: #d6dae2; }

/* card tiles: the same small cards as My Cards, with a caption plate under each */
.tcfd-grid { gap: 22px 14px !important; }
.tcfd-tile { display: grid; gap: 8px; cursor: pointer; outline: none; border-radius: 12px; }
.tcfd-tile .tc-card { transition: transform .18s; }
.tcfd-tile:hover .tc-card, .tcfd-tile:focus-visible .tc-card { transform: translateY(-4px); }
.tcfd-tile:focus-visible { box-shadow: 0 0 0 2px rgba(246,215,122,.6); }
.tcfd-cap { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 30px; padding: 6px 10px; border-radius: 9px; font-size: 12.5px; color: #8b929c;
    background: linear-gradient(180deg, #17191d, #111316); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.tcfd-cap b { color: #fff; font-weight: 700; }
.tcfd-cap em { font-style: normal; font-weight: 700; font-size: 11.5px; color: #7fe0a0; white-space: nowrap; }
.tcfd-tile:hover .tcfd-cap { border-color: rgba(246,215,122,.3); }

/* owners page: hero */
.tcfd-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 34px; min-height: 0; padding: 0 12px 0 10px !important; border-radius: 9px; cursor: pointer;
    font: 700 13px/1 system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: #c9ced6; background: #15171b; border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.tcfd-back:hover { color: #fff; border-color: rgba(255,255,255,.22); } .tcfd-back i { font-style: normal; font-size: 18px; line-height: 0; margin-top: -2px; }
.tcfd-hero { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: center; padding: 20px 24px; border-radius: 16px; isolation: isolate;
    background: var(--pm-noise), radial-gradient(50% 90% at 12% 50%, rgba(246,215,122,.10), transparent 70%), linear-gradient(180deg, #1a1c21, #111317);
    border: 1px solid rgba(255,255,255,.08); border-top-color: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px -26px #000; }
.tcfd-hero-card { grid-template-columns: 170px !important; }
.tcfd-hero-txt { display: grid; gap: 10px; min-width: 0; }
.tcfd-hero-name { margin: 0; font: 800 38px/1 "Barlow Condensed", sans-serif; letter-spacing: .01em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.tcfd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.tcfd-stats > div { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; background: #0b0c0f; border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); }
.tcfd-stats b { font: 800 22px/1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcfd-stats > div.gold b { color: #f6d77a; } .tcfd-stats > div.me b { color: #7fe0a0; }
.tcfd-stats small { font: 700 10.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6f7680; }
.tcfd-so { font-style: normal; font-size: 12.5px; font-weight: 700; color: #ffb52b; }

/* owners page: rows */
.tcfd-owners { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tcfd-o { display: grid; grid-template-columns: 26px 46px minmax(120px, 1fr) minmax(0, auto) 110px auto; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 12px;
    background: linear-gradient(180deg, #17191d, #111316); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 24px -20px #000; transition: border-color .15s, transform .15s; }
.tcfd-o:hover { border-color: rgba(255,255,255,.15); transform: translateY(-1px); }
.tcfd-o:first-child { border-color: rgba(246,215,122,.3); background: radial-gradient(60% 120% at 0% 50%, rgba(246,215,122,.07), transparent 70%), linear-gradient(180deg, #191b1f, #121417); }
.tcfd-rank { font: 800 16px/1 "Barlow Condensed", sans-serif; color: #5f666f; text-align: center; } .tcfd-o:first-child .tcfd-rank { color: #f6d77a; }
.tcfd-av { position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, #2a2d33, #1a1c20);
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 2px #0c0d10, 0 6px 14px -6px #000; }
.tcfd-av b { font: 800 20px/1 "Barlow Condensed", sans-serif; color: #c9ced6; }
.tcfd-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcfd-who { display: grid; gap: 4px; min-width: 0; }
.tcfd-who > b { font: 800 19px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcfd-who > span { font-size: 12.5px; color: #7a818b; }
.tcfd-fins { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-start; }
.tcfd-fin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: 7px; font: 700 11.5px/1 system-ui, sans-serif; color: #d6dae2; white-space: nowrap;
    background: #0d0e11; border: 1px solid rgba(255,255,255,.1); }
.tcfd-fin i { width: 9px; height: 9px; border-radius: 50%; background: #8b929c; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.tcfd-fin.f-foil i { background: linear-gradient(135deg, #e8f4ff, #8fb8d8); }
.tcfd-fin.f-holo i { background: conic-gradient(#5ee0ff, #7ef0a8, #ffe27a, #ff9a6b, #5ee0ff); }
.tcfd-fin.f-gold { color: #f6d77a; border-color: rgba(246,215,122,.35); } .tcfd-fin.f-gold i { background: linear-gradient(135deg, #fff1b8, #d4a537); }
.tcfd-fin.f-animated i { background: #ff9a5a; }
.tcfd-fin.f-black i, .tcfd-fin.f-prism i { background: #050506; box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.tcfd-fin.f-one, .tcfd-fin.f-genesis, .tcfd-fin.f-apex { color: #1c1405; background: linear-gradient(180deg, #ffe7a0, #e0b64c); border-color: #f6d77a; } .tcfd-fin.f-one i, .tcfd-fin.f-genesis i, .tcfd-fin.f-apex i { background: #1c1405; }
.tcfd-val { display: grid; gap: 4px; justify-items: end; font: 800 20px/1 "Barlow Condensed", sans-serif; color: #f6d77a; white-space: nowrap; }
.tcfd-val small { font: 700 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6f7680; }
.tcfd-acts { display: flex; gap: 6px; } .tcfd-acts .cx-btn { white-space: nowrap; height: 40px; }
@media (max-width: 760px) {
    .tcfd-hd { padding: 20px 18px 16px; } .tcfd-body { padding: 16px 16px 20px; gap: 18px; }
    .tcfd-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 14px; padding: 18px 14px 14px; } .tcfd-hero-card { grid-template-columns: 160px !important; }
    .tcfd-hero-txt { justify-items: center; width: 100%; } .tcfd-hero-name { font-size: 30px; }
    .tcfd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: none; text-align: left; } .tcfd-stats b { font-size: 20px; }
    .tcfd-o { grid-template-columns: 22px 42px minmax(0, 1fr) auto; gap: 8px 12px; } .tcfd-av { width: 42px; height: 42px; }
    .tcfd-fins { grid-column: 3 / -1; grid-row: 2; } .tcfd-val { grid-column: 4; grid-row: 1; }
    .tcfd-acts { grid-column: 1 / -1; grid-row: 3; } .tcfd-acts .cx-btn { flex: 1 1 0; min-width: 0; padding: 0 10px !important; }
}

/* ── PREMIUM MODALS (owner 11/6: graphite was "basic", purple is banned): every Cards modal box = layered dark gradient + film
   grain + a gold hairline on the top edge + a soft header sheen + inner highlight + deep drop shadow. Backdrops are neutral. ── */
:root { --pm-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tc-modal { background: radial-gradient(90% 70% at 50% 35%, rgba(28,31,37,.55), transparent 70%), rgba(3,4,6,.94) !important; }
.tc-insp { background: radial-gradient(70% 60% at 50% 40%, rgba(32,35,42,.6), transparent 70%), rgba(3,4,6,.95) !important; }
/* the pack opening stays as cheap as possible (11/7 "not as smooth as before"): one flat colour, no gradient, no grain */
.tc-modal.tc-opening { background: #050608 !important; }
/* owner 11/7 ("background feels blehh"): a live room behind pack opening: slow light rays, drifting dust, and a glow that
   takes the colour of the last card flipped (--tc-glow, set in cards.js) */
.tc-modal.tc-opening { background: radial-gradient(55% 45% at 50% 46%, color-mix(in srgb, var(--tc-glow, #d9a441) 20%, transparent), transparent 72%), radial-gradient(130% 80% at 50% 115%, rgba(60,36,8,.55), transparent 62%), radial-gradient(90% 60% at 50% -20%, rgba(20,60,70,.35), transparent 60%), #050608 !important; }
.tc-modal.tc-opening::before, .tc-modal.tc-opening::after { content: ""; position: fixed; pointer-events: none; z-index: 0; }
/* owner 11/7: the rotating gold rays looked basic → removed (glow + drifting dust stay) */
.tc-modal.tc-opening::before { display: none; }
/* owner 11/8 ("the floating stuff behind is laggy"): moved with transform (GPU only) instead of background-position, which
   repainted the whole screen every frame on phones. The layer is one tile taller than the screen and slides up one tile. */
.tc-modal.tc-opening::after { inset: auto; left: 0; right: 0; top: 0; height: calc(100% + 420px); opacity: .55; will-change: transform;
  background-image: radial-gradient(1.6px 1.6px at 12% 22%, #ffe7b0, transparent), radial-gradient(1.2px 1.2px at 68% 38%, #fff, transparent), radial-gradient(2px 2px at 34% 76%, #ffd27a, transparent), radial-gradient(1.2px 1.2px at 86% 64%, #bff6ff, transparent), radial-gradient(1.5px 1.5px at 52% 12%, #fff, transparent), radial-gradient(1px 1px at 22% 52%, #fff, transparent), radial-gradient(1.8px 1.8px at 78% 88%, #ffe7b0, transparent);
  background-size: 420px 420px; animation: tcOpenDust 26s linear infinite; }
/* own name: "tcDust" is the card glitter pulse (Black Diamond etc.); reusing it made their sparkle scroll fast (owner 11/7) */
@keyframes tcOpenDust { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -420px, 0); } }
/* sell pop-ups (owner 11/7 "same thing for the Sell Duplicates panel"): gold-trimmed, a slow shine, the amount glows */
.tc-sure-fx .tc-sure-box { position: relative; overflow: hidden; border: 1px solid rgba(255,210,110,.55) !important;
  background: radial-gradient(80% 90% at 50% 0%, rgba(255,196,80,.16), transparent 70%), radial-gradient(70% 80% at 50% 120%, rgba(60,200,120,.12), transparent 70%), linear-gradient(180deg, #1b1d22, #121317) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 18px 60px rgba(0,0,0,.6), 0 0 40px rgba(255,190,70,.18) !important; animation: tcSurePop .32s cubic-bezier(.2,1.4,.4,1); }
.tc-sure-fx .tc-sure-box h3 { background: linear-gradient(180deg, #fff3cf, #f5c04e 55%, #c98a1c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.tc-sure-fx .tc-sure-box p b { font-size: 1.25em; color: #ffd36e; text-shadow: 0 0 12px rgba(255,200,80,.65); animation: tcSureGlow 1.6s ease-in-out infinite; }
.tc-sure-fx .tc-sure-yes { position: relative; overflow: hidden; }
.tc-sure-fx .tc-sure-yes::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: tcSureBtn 2.4s ease-in-out 1s infinite; }
@keyframes tcSurePop { from { transform: scale(.88); opacity: 0; } }
@keyframes tcSureShine { 0% { left: -50%; } 60%, 100% { left: 130%; } }
@keyframes tcSureGlow { 50% { text-shadow: 0 0 20px rgba(255,210,100,.95); } }
@keyframes tcSureBtn { 0% { transform: translateX(-100%); } 50%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .tc-sure-fx .tc-sure-box, .tc-sure-fx .tc-sure-box::after, .tc-sure-fx .tc-sure-box p b, .tc-sure-fx .tc-sure-yes::after { animation: none; } }
/* confetti bits ("tc-cfx": .tc-confetti is the full-screen celebrate canvas) */
.tc-cfx { position: fixed; z-index: 2147483001; pointer-events: none; width: 11px; height: 17px; border-radius: 2px; will-change: transform, opacity; filter: brightness(1.25) saturate(1.4); box-shadow: 0 0 6px currentColor; }
.tc-cfx.sm { width: 7px; height: 10px; }
/* in-screen sold receipt (cards.js soldReceipt) */
.tc-soldrc { position: fixed; left: 50%; top: calc(22px + var(--safe-top, 0px)); z-index: 2147483002; display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 12px;
  border-radius: 14px; background: linear-gradient(180deg, rgba(30,32,38,.96), rgba(16,17,21,.96)); border: 1px solid rgba(255,210,110,.45);
  box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 24px rgba(255,190,70,.14); font: 700 16px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .04em; color: #e8e8ec;
  transform: translate(-50%, -14px); opacity: 0; transition: transform .35s cubic-bezier(.2,1.2,.4,1), opacity .3s; pointer-events: none; white-space: nowrap; }
.tc-soldrc.in { transform: translate(-50%, 0); opacity: 1; }
.tc-soldrc i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 14px; color: #0f1a12; background: linear-gradient(180deg, #5be08c, #2fae5f); }
.tc-soldrc b { font-size: 19px; color: #ffd36e; text-shadow: 0 0 10px rgba(255,200,80,.5); }
/* owner 11/7: on a phone the 5 revealed cards needed scrolling → 3 per row, a bit smaller (tap one to see it big) */
@media (max-width: 760px) {
  .tc-tray { gap: 8px 8px; }
  .tc-tray.done .tc-slot { width: 40vw; max-width: 180px; } /* owner 11/8: 3-across was too squeezed → 2 across, a bit smaller than the old 42vw */
  .tc-tray.done .tc-slot .tc-name { font-size: 15px; } .tc-tray.done .tc-slot .tc-info { display: none; }
  .tc-tray.done .tc-slot .tc-val { font-size: 12px; } .tc-tray.done .tc-slot .tc-rar { font-size: 9px; }
}
.tc-ring { border-width: 5px !important; }
/* signature reveals (cards.js signatureReveal) */
.tc-ring { position: fixed; z-index: 2; pointer-events: none; width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--rc, #fff); box-shadow: 0 0 24px var(--rc, #fff), inset 0 0 18px var(--rc, #fff); }
.tc-coin { position: fixed; top: 0; z-index: 2147483000; pointer-events: none; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf 0 18%, #ffd35a 40%, #c98a1c 75%, #8a5a0e); box-shadow: 0 0 10px rgba(255,200,80,.7), inset 0 0 0 2px rgba(120,70,0,.45); }
.tc-streamer { position: fixed; top: 0; z-index: 2147483000; pointer-events: none; width: 6px; height: 26px; border-radius: 3px; opacity: .9; }
.tc-modal.tc-opening.shake .tc-open { animation: tcShake .45s ease-out; }
.tc-modal.tc-opening.shake2 .tc-open { animation: tcShake2 .6s ease-out; }
@keyframes tcShake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
@keyframes tcShake2 { 15% { transform: translate(-9px, 4px) rotate(-.6deg); } 30% { transform: translate(8px, -5px) rotate(.6deg); } 45% { transform: translate(-7px, 3px); } 60% { transform: translate(5px, -2px); } 80% { transform: translate(-2px, 1px); } }
.tc-modal.tc-opening.hype::before { animation-duration: 9s; opacity: 1; filter: brightness(1.9) saturate(1.3); transition: filter .4s; }
.tc-modal.tc-opening::before { transition: filter .8s, opacity .8s; }
:is(.tc-tbox, .tc-help-box, .tc-gift-box, .slv-box) { isolation: isolate;
    background: var(--pm-noise), radial-gradient(110% 55% at 50% -10%, rgba(246,215,122,.07), transparent 60%), linear-gradient(180deg, #1b1d22 0%, #131519 32%, #0c0d10 100%) !important;
    border: 1px solid rgba(255,255,255,.085) !important; border-top-color: rgba(255,255,255,.15) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.55), 0 50px 110px -40px #000, 0 20px 40px -24px rgba(0,0,0,.8) !important; }
:is(.tc-tbox, .tc-help-box, .tc-gift-box, .slv-box)::before { content: ""; position: absolute; z-index: 2; left: 12%; right: 12%; top: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(246,215,122,.8) 50%, transparent); }
:is(.tc-tbox, .tc-help-box, .tc-gift-box, .slv-box)::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 110px; pointer-events: none; border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); }
:is(.tc-tbox, .tc-help-box, .tc-gift-box) h3 { font-family: "Barlow Condensed", sans-serif !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
:is(.tc-tbox, .tc-help-box, .tc-gift-box, .slv-box) .tc-insp-x { background: linear-gradient(180deg, #23262c, #15171b) !important; border: 1px solid rgba(255,255,255,.12) !important; color: #d6dae2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 14px -6px #000; transition: border-color .15s, color .15s; }
:is(.tc-tbox, .tc-help-box, .tc-gift-box, .slv-box) .tc-insp-x:hover { border-color: rgba(246,215,122,.45) !important; color: #fff; }
/* recessed inputs + inset sub-panels inside them */
:is(.tc-tbox, .tc-help-box, .tc-gift-box) :is(.tc-csearch, .tc-gift-l input) { background-color: #090a0c !important; border-color: rgba(255,255,255,.1) !important; box-shadow: inset 0 2px 8px rgba(0,0,0,.7); }
:is(.tc-tbox, .tc-help-box, .tc-gift-box) :is(.tc-csearch, .tc-gift-l input):focus { border-color: rgba(246,215,122,.5) !important; }
.tc-tcols section, .tc-help-grid div { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important; border: 1px solid rgba(255,255,255,.065) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.tc-tsides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; } .tc-tsides small { display: block; margin-bottom: 6px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #aeb5c0; }
.tc-tsides .tc-grid.small { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.tc-tswap { align-self: center; font-style: normal; font-size: 26px; color: #f6d77a; }
.tc-tcash { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(76,199,100,.12); border: 1px solid rgba(76,199,100,.4); color: #9fffb2; font: 800 18px/1 "Barlow Condensed", sans-serif; }
.tc-tnote { margin: 0; color: #e6dcc0; font-style: italic; }
.tc-tact { display: flex; gap: 10px; } .tc-tact button { flex: 1; min-height: 46px; border-radius: 12px; font: 800 17px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tc-yes { border: 1px solid rgba(46,204,113,.6); background: linear-gradient(135deg, #2ecc71, #1f9d55); color: #04140a; } .tc-no { border: 1px solid rgba(255,90,90,.6); background: rgba(220,60,60,.16); color: #ff8a8a; }
.tc-trades { display: grid; gap: 14px; }
.tc-trow { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); } .tc-trow.s-pending { border-color: rgba(246,201,92,.4); }
.tc-trow-h { display: flex; align-items: center; gap: 12px; } .tc-trow-h b { font: 800 19px/1 "Barlow Condensed", sans-serif; color: #fff; } .tc-tstat { margin-right: auto; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #aeb5c0; }
@media (max-width: 560px) { .tc-tsides { grid-template-columns: 1fr; } .tc-tswap { transform: rotate(90deg); justify-self: center; } }
/* profile: card collection panel */
.profile-cards:empty { display: none; }
.pf-cards { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: radial-gradient(90% 120% at 0% 0%, rgba(197,139,255,.16), transparent 60%), linear-gradient(160deg, #15131d, #0b0c10); border: 1px solid rgba(197,139,255,.35); }
.pf-cards-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; } .pf-cards-h b { font: 800 24px/1 "Barlow Condensed", sans-serif; color: #fff; } .pf-cards-h span { color: #c9b8ef; font-size: 14px; } .pf-cards-h .grow { flex: 1; }
.pf-cards .tc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; } @media (max-width: 760px) { .pf-cards .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-cards .tc-info, .pf-cards .tc-top { display: none !important; } .pf-cards .tc-name { font-size: 13px !important; } .pf-cards .tc-card { cursor: pointer; }
.tc-tgrid .tc-card.sel::after { content: '✓'; position: absolute; top: -6px; right: -6px; z-index: 9; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f6d77a; color: #1c1405; font: 900 15px/1 system-ui; box-shadow: 0 0 0 2px #0c0d11, 0 0 14px rgba(246,215,122,.7); }
.tc-tgrid .tc-card.sel .tc-inner { outline: 3px solid #f6d77a !important; outline-offset: -3px; }
.tc-tgrid .tc-rar, .tc-tsides .tc-rar, .pf-cards .tc-rar { font-size: 9px !important; letter-spacing: .08em !important; } .tc-tgrid .tc-val, .tc-tsides .tc-val, .pf-cards .tc-val { font-size: 13px !important; }

/* card duels (owner 11/3) */
.tc-duels { display: grid; gap: 14px; }
.tc-dhead { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 16px; background: radial-gradient(90% 140% at 0% 0%, rgba(255,90,74,.22), transparent 60%), linear-gradient(135deg, #2a1012, #0d0e12 70%); border: 1px solid rgba(255,110,90,.45); }
.tc-dhead b { display: block; font: 800 28px/1 "Barlow Condensed", sans-serif; color: #fff; } .tc-dhead span { color: #f2c9c2; font-size: 14px; }
.tc-dmodes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 640px) { .tc-dmodes { grid-template-columns: 1fr; } }
.tc-dmodes div { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); } .tc-dmodes b { display: block; font: 800 19px/1.1 "Barlow Condensed", sans-serif; color: #ffcf9a; } .tc-dmodes span { font-size: 13px; color: #c3c9d3; }
.tc-drow { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,110,90,.3); }
.tc-drow .tc-grid.small, .tc-dbox .tc-grid.small { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.tc-dres { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tc-dresult { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #dfe3ea; min-height: 0 !important; }
.tc-dresult b { font: 900 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; } .tc-dresult.won b { color: #6dff9a; } .tc-dresult.lost b { color: #ff7a7a; } .tc-dresult em { font-style: normal; color: #f6d77a; font-weight: 700; }
.tc-dmodepick { display: flex; gap: 8px; } .tc-dmodepick button { flex: 1; display: grid; gap: 2px; padding: 10px !important; min-height: 0 !important; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #dfe3ea; cursor: pointer; }
.tc-dmodepick button.on { border-color: #ff8a6a; background: rgba(255,110,90,.16); box-shadow: 0 0 16px -6px #ff8a6a; } .tc-dmodepick b { font: 800 18px/1 "Barlow Condensed", sans-serif; } .tc-dmodepick span { font-size: 12px; color: #aeb5c0; }
.tc-th span.bad { color: #ff8a8a; }
.tc-duelm { display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.tc-dbox { position: relative; width: min(820px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: linear-gradient(160deg, #1d1214, #0c0d11); border: 1px solid rgba(255,110,90,.45); box-shadow: 0 0 50px -14px rgba(255,90,74,.5), 0 30px 60px -20px #000; transition: box-shadow .4s, border-color .4s; }
.tc-dbox.won { border-color: #6dff9a; box-shadow: 0 0 70px -10px rgba(109,255,154,.6), 0 30px 60px -20px #000; } .tc-dbox.lost { border-color: #ff6a6a; }
.tc-dbox h3 { margin: 0; font: 900 32px/1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .04em; }
.tc-dlanes { display: grid; gap: 12px; }
.tc-dlane { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.03); opacity: .25; transition: opacity .3s; }
.tc-dlane.on { opacity: 1; }
.tc-dslot { display: grid; justify-items: center; gap: 6px; min-width: 0; } .tc-dslot .tc-card { width: 100%; }
.tc-dslot em { font-style: normal; font-size: 13px; color: #aeb5c0; opacity: 0; transition: opacity .3s; } .tc-dslot em b { color: #fff; font: 800 18px/1 "Barlow Condensed", sans-serif; }
.tc-dlane.done .tc-dslot em { opacity: 1; }
.tc-dvs { font-style: normal; font: 900 24px/1 "Barlow Condensed", sans-serif; color: #ff8a6a; }
.tc-dwin { position: absolute; left: 50%; top: 8px; translate: -50% 0; padding: 4px 12px; border-radius: 999px; font: 900 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; opacity: 0; transform: scale(.6); transition: all .3s cubic-bezier(.2,.8,.3,1.4); }
.tc-dlane.done .tc-dwin { opacity: 1; transform: none; } .tc-dwin.me { background: #2ecc71; color: #04140a; } .tc-dwin.them { background: #e74c3c; color: #fff; } .tc-dwin.tie { background: #888; color: #111; }
.tc-dfinal { text-align: center; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.35); animation: tcDFin .5s cubic-bezier(.2,.8,.3,1.4); }
.tc-dfinal b { display: block; font: 900 44px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; color: #fff; } .won .tc-dfinal b { color: #6dff9a; text-shadow: 0 0 24px rgba(109,255,154,.6); } .lost .tc-dfinal b { color: #ff7a7a; }
.tc-dfinal span { color: #dfe3ea; }
@keyframes tcDFin { from { transform: scale(.7); opacity: 0; } }
@media (max-width: 560px) { .tc-dslot .tc-card { width: 100%; } .tc-dbox h3 { font-size: 26px; } }

/* War v2 (owner 11/3: pick a price range, 3 random cards each, the higher card takes the other): steps, range picker,
   face-down stakes, flip-by-flip screen. --rg = the range's color (always with a fallback: no default on the elements) */
.rg-bronze { --rg: #e0995a; } .rg-silver { --rg: #d4dbe6; } .rg-gold { --rg: #f6c95c; } .rg-diamond { --rg: #8fe3ff; }
.tc-dsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } @media (max-width: 760px) { .tc-dsteps { grid-template-columns: 1fr; } }
.tc-dsteps div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 3px; align-items: start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.tc-dsteps i { grid-row: span 2; font-style: normal; font-size: 24px; line-height: 1.1; }
.tc-dsteps b { font: 800 18px/1.1 "Barlow Condensed", sans-serif; color: #ffcf9a; } .tc-dsteps span { font-size: 13px; color: #c3c9d3; }
.tc-dchip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rg, #aeb5c0); color: var(--rg, #aeb5c0); background: color-mix(in srgb, var(--rg, #aeb5c0) 12%, transparent); font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tc-drow .tc-trow-h { flex-wrap: wrap; row-gap: 8px; } .tc-drow .tc-trow-h .tc-tstat { margin-right: auto; }
.tc-drow-b { display: flex; align-items: center; gap: 14px; } .tc-drow-b small { color: #aeb5c0; font-size: 13px; }
.tc-dback { display: block; border-radius: 10px; aspect-ratio: 5 / 7; background: #120a22 url(/assets/cards/back.webp?v=2) center / 100% 100% no-repeat; box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.tc-dbacks { display: flex; gap: 8px; flex: 0 0 auto; } .tc-dbacks .tc-dback { width: 46px; } .tc-dbacks .tc-dback:nth-child(2) { transform: translateY(-4px); }
.tc-tbox.tc-dstart, .tc-tbox.tc-daccept { width: min(680px, 100%); }
.tc-drange { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } @media (max-width: 640px) { .tc-drange { grid-template-columns: 1fr 1fr; } }
.tc-drange button { display: grid; gap: 5px; justify-items: start; text-align: left; padding: 12px !important; min-height: 0 !important; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #dfe3ea; cursor: pointer; }
.tc-drange b { font: 800 22px/1 "Barlow Condensed", sans-serif; color: var(--rg, #fff); } .tc-drange span { font-size: 13px; color: #fff; font-weight: 600; } .tc-drange small { font-size: 12px; color: #aeb5c0; }
.tc-drange button.on { border-color: var(--rg, #fff); background: color-mix(in srgb, var(--rg, #fff) 14%, transparent); box-shadow: 0 0 18px -6px var(--rg, #fff); }
.tc-drange button:disabled { opacity: .42; cursor: not-allowed; }
.tc-dnote { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.16); color: #d6dbe3; font-size: 14px; line-height: 1.45; } .tc-dnote b { color: #fff; }
.tc-dface { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); }
.tc-dface > div { display: grid; justify-items: center; gap: 8px; min-width: 0; } .tc-dface small { font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #aeb5c0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-dface .tc-dbacks { gap: 6px; } .tc-dface .tc-dback { width: clamp(30px, 9vw, 62px); }
.tc-tact button:disabled { opacity: .45; cursor: not-allowed; }
.tc-dresult.draw b { color: #d4dbe6; } .tc-dresult span { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tc-dtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-right: 44px; } .tc-dvsn { color: #c3c9d3; font-weight: 600; }
.tc-dlane { padding: 34px 10px 12px; }
.tc-dround { position: absolute; left: 12px; top: 11px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #aeb5c0; }
.tc-dwho { font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #aeb5c0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-dflip { position: relative; width: min(130px, 100%); }
.tc-dflip > .tc-card { visibility: hidden; transition: filter .35s, opacity .35s, transform .35s; }
.tc-dflip > .tc-dback { position: absolute; inset: 0; }
.tc-dlane.on .tc-dflip { animation: tcDFlip .6s ease-in-out both; }
.tc-dlane.on .tc-dflip > .tc-card { animation: tcDShow .6s linear both; }
.tc-dlane.on .tc-dflip > .tc-dback { animation: tcDHide .6s linear both; }
@keyframes tcDFlip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes tcDShow { 0%, 49% { visibility: hidden; } 50%, 100% { visibility: visible; } }
@keyframes tcDHide { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.tc-dlane.done .tc-dslot.win .tc-card { filter: drop-shadow(0 0 16px rgba(246,215,122,.9)); transform: scale(1.04); }
.tc-dlane.done .tc-dslot.win em { color: #f6d77a; font-weight: 800; }
.tc-dlane.moved .tc-dslot.lose .tc-card { opacity: .5; filter: grayscale(.7); transform: scale(.94); }
.tc-dstamp { position: absolute; left: 50%; top: 50%; z-index: 20; translate: -50% -50%; padding: 5px 10px; border-radius: 8px; font: 900 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: scale(1.6) rotate(-8deg); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.3,1.4); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.tc-dlane.moved .tc-dstamp { opacity: 1; transform: scale(1) rotate(-8deg); }
.tc-dslot.me.lose .tc-dstamp { background: #e74c3c; color: #fff; } .tc-dslot.them.lose .tc-dstamp { background: #2ecc71; color: #04140a; }
.tc-dslot.tie .tc-dstamp { background: rgba(24,26,32,.94); color: #d4dbe6; border: 1px solid rgba(255,255,255,.25); }
.tc-dbox.draw { border-color: #d4dbe6; } .draw .tc-dfinal b { color: #d4dbe6; }
@media (max-width: 560px) { .tc-dbox { padding: 16px 12px; } .tc-dlane { gap: 6px; padding: 32px 6px 10px; } .tc-dwin { font-size: 12px; padding: 4px 9px; } .tc-dstamp { font-size: 12px; padding: 4px 7px; } .tc-dvs { font-size: 18px; } .tc-dfinal b { font-size: 34px; } .tc-dround { left: 8px; } }

/* pickers (duel + trade): flat, still cards; off-screen ones aren't painted (owner 11/3: "really laggy when choosing cards") */
.tc-tgrid.lite .tc-card { content-visibility: auto; contain-intrinsic-size: 96px 134px; }
.tc-tgrid.lite .tc-card, .tc-tgrid.lite .tc-card * { animation: none !important; transition: none !important; will-change: auto !important; }
.tc-tgrid.lite .tc-card .tc-3d { transform: none !important; transform-style: flat !important; }
.tc-tgrid.lite .tc-edge, .tc-tgrid.lite .tc-floor, .tc-tgrid.lite .tc-glints, .tc-tgrid.lite .tc-glare, .tc-tgrid.lite .tc-shine, .tc-tgrid.lite .tc-gloss, .tc-tgrid.lite .tc-prism { display: none !important; }
.tc-tgrid.lite .tc-card, .tc-tgrid.lite .tc-card .tc-inner, .tc-tgrid.lite .tc-name { filter: none !important; }
.tc-tgrid.lite .tc-card.sel { content-visibility: visible; }

/* small-card grids (duel/trade pickers, trade sides, profile): the hidden top/info rows left the art row collapsed and the
   names over the art (owner 11/3: "icons are warped"); each card paints on its own and the blend layers are off, so a pick
   doesn't make the browser re-blend the whole grid (desktop lag) */
.tc-tgrid .tc-inner, .pf-cards .tc-inner { grid-template-rows: 1fr auto auto !important; }
.tc-tgrid .tc-art, .pf-cards .tc-art { min-height: 0; }
.tc-tgrid .tc-art img, .pf-cards .tc-art img, .tc-tsides .tc-art img { object-fit: contain !important; width: 100%; height: 100%; }
.tc-tgrid.lite .tc-card { contain: layout paint style; isolation: isolate; }
.tc-tgrid.lite .tc-glitter { display: none !important; }
.tc-tgrid.lite .tc-inner::before, .tc-tgrid.lite .tc-inner::after { mix-blend-mode: normal !important; }
.tc-tgrid.lite .tc-fin { max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 7px !important; }body.tc-bg-paused .ff-starfield-canvas, body.tc-bg-paused #constellation-bg, body.tc-bg-paused canvas.mgp-cv { visibility: hidden !important; }
body.tc-bg-paused #cases *, body.tc-bg-paused .site-sidebar * { animation-play-state: paused !important; }
.tc-tm, .tc-duelm { background: #06070a !important; }

/* compact cards everywhere small (duel rows, duel screen, trade sides): no set/info rows, art keeps its shape */
.tc-drow .tc-top, .tc-drow .tc-info, .tc-dslot .tc-info, .tc-tsides .tc-top, .tc-tsides .tc-info { display: none !important; }
.tc-drow .tc-inner, .tc-tsides .tc-inner { grid-template-rows: 1fr auto auto !important; }
.tc-dslot .tc-inner { grid-template-rows: auto 1fr auto auto !important; }
.tc-drow .tc-art img, .tc-dslot .tc-art img { object-fit: contain !important; width: 100%; height: 100%; }
.tc-drow .tc-name, .tc-tsides .tc-name { font-size: 13px !important; } .tc-drow .tc-rar, .tc-drow .tc-val { font-size: 10px !important; }
.tc-drow .tc-fin, .tc-tsides .tc-fin { font-size: 7px !important; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-drow .tc-grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 130px)) !important; }
.tc-gift-res button small { opacity: .7; font-weight: 500; }

/* Card Duels banner (owner 11/3: the Duel option "hardly visible & doesnt stand out") */
.tc-arena { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 4px 0 14px; padding: 18px 22px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(60% 160% at 0% 50%, rgba(255,70,50,.38), transparent 65%), radial-gradient(50% 120% at 100% 0%, rgba(255,150,60,.18), transparent 60%), linear-gradient(135deg, #2c0d0e, #120a0c 70%);
  border: 1px solid rgba(255,100,80,.6); box-shadow: 0 0 34px -10px rgba(255,70,50,.75), inset 0 1px 0 rgba(255,200,180,.18); }
.tc-arena::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,120,90,.045) 22px 24px); }
.tc-arena-icon { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #ff8a6a, #c4231b); box-shadow: 0 8px 24px rgba(200,30,20,.55), inset 0 1px 0 rgba(255,255,255,.4); }
.tc-arena-icon svg { width: 46px; height: 46px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.tc-arena-txt { display: grid; gap: 3px; min-width: 0; position: relative; z-index: 1; }
.tc-arena-txt em { font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffb3a3; font-style: normal; }
.tc-arena-txt b { font: 800 34px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #fff; text-shadow: 0 0 18px rgba(255,80,60,.6); }
.tc-arena-txt span { color: #f3d3cc; font-size: 15px; }
.tc-arena-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; position: relative; z-index: 1; }
.tc-arena-count { width: 100%; text-align: right; color: #ffcabf; font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tc-arena-count:empty { display: none; }
.tc-arena-count.hot { color: #fff; } .tc-arena-count.hot::before { content: "● "; color: #ff5a3c; }
.cx-btn.tc-duel-cta { height: 48px; padding: 0 22px !important; border: 0; border-radius: 12px; color: #fff; font: 800 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(135deg, #ff7a4a, #e0251b); box-shadow: 0 8px 22px rgba(224,37,27,.5), inset 0 1px 0 rgba(255,255,255,.35); cursor: pointer; }
.cx-btn.tc-duel-cta:hover { filter: brightness(1.12); }
.tc-tabs button.tc-tab-duel { border-color: rgba(255,100,80,.55); color: #ffd2c8; background: rgba(255,70,50,.12); }
.tc-tabs button.tc-tab-duel.on { background: linear-gradient(135deg, #ff7a4a, #d0281e); color: #fff; border-color: transparent; }
.tc-tabs button.tc-tab-duel small { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #ff4a2e; color: #fff; font-size: 12px; }
.tc-tabs button.tc-tab-duel small:empty { display: none; }
@media (max-width: 760px) {
  .tc-arena { grid-template-columns: auto 1fr; padding: 16px; gap: 12px 14px; }
  .tc-arena-icon { width: 56px; height: 56px; border-radius: 14px; } .tc-arena-icon svg { width: 34px; height: 34px; }
  .tc-arena-txt b { font-size: 28px; } .tc-arena-txt span { font-size: 14px; }
  .tc-arena-act { grid-column: 1 / -1; justify-content: stretch; } .tc-arena-act .cx-btn { flex: 1; } .tc-arena-count { text-align: left; }
}

/* Cases & Cards hero (owner 11/3): "Cases &" sat too far from "Cards" (flex gap + margin), the shimmer wave goes, the art behind is brighter */
#cases .cs-combined .ff-hero-content .void-heading { column-gap: 0 !important; gap: 0 !important; }
#cases .cs-combined .void-heading .ff-h-white { margin-right: .24em !important; }
#cases .cs-combined .cs-hero-sweep, #cases .cs-combined .cs-irid::before { display: none !important; animation: none !important; }
/* art behind brighter: shadows lifted in the file itself (assets/cases/hero-v3*.webp) so the crates don't blow out */
/* square corners on clicked cards (owner 11/3): Safari/iOS ignores overflow:hidden + border-radius clipping inside a 3D
   (preserve-3d) card, so the square full-art layers poked out at the corners. Round those layers themselves, and force a
   real clip (mask) on the big views: inspect, pack reveal, tray, hero fan, profile collection. */
.tc-bleed, .tc-bleed-fade { border-radius: inherit; }
.tc-insp .tc-inner, .tc-fc .tc-inner, .tc-tray .tc-inner, .tc-fan-card .tc-inner, .tc-collm .tc-inner, .tc-duelm .tc-inner {
    -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); isolation: isolate; }
/* weekly free Elite Pack tile (11/3) */
.tc-shop-item.weekly { border-color: rgba(255,196,77,.45); }

/* desktop hero: the old "top 50% + translateY(-50%)" centering still applied on top of the flex layout and pushed the
   text ~75px down, leaving a big empty band above it (owner 11/3). Flex centering does the job alone. */
@media (min-width: 761px) { #cases .cs-combined .ff-hero-content { top: auto !important; bottom: auto !important; transform: none !important; } }

/* ═════ GENESIS 1/1 (owner 11/3): the rarest card in the game. Only 5 exist, each on a different Mythic/Legendary card.
   Black Diamond = dark faceted chrome, Prismatic = rainbow on black; Genesis is the opposite: a white-gold PEARL card.
   · living gold-and-pearl foil frame (rotating polished gold with pearl pink/blue flashes) + an inner white-gold hairline
   · ivory pearl stock (item cards) with a soft iridescent pearl sheen that follows the light
   · a sunburst halo of light radiating from behind the art (rays turn slowly; transform only = GPU, no repaint)
   · fine gold glitter (assets/cards/gold-dust.webp) + warm star glints
   · a black-enamel plate: gold crown · GENESIS · 1/1
   Full-art cards (every Mythic) keep their art; they get the frame, the halo rays over the art, a warm gilded fade and the
   white-gold name. Phones: the shared grid rules already freeze everything; the halo/sheen are also off in pickers. ═════ */
.tc-card.f-genesis { --rc: #f0cd7c; }
/* frame + stock */
.tc-card.f-genesis .tc-inner { border: 5px solid transparent !important;
    background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%) padding-box,
        linear-gradient(168deg, #fffbf2 0%, #f7ecd4 36%, #ecd9b0 72%, #dfc590 100%) padding-box,
        conic-gradient(from var(--tc-a), #fff7de, #e9c46c 7%, #9a6a1c 14%, #f6dd9c 22%, #ffffff 28%, #f6d6ea 32%, #d6ecfb 36%, #fff3d0 41%, #caa042 50%, #7b5413 57%, #f2d488 65%, #ffffff 71%, #e6d6ff 75%, #fff0c2 80%, #b88a2e 90%, #fff7de) border-box !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), inset 0 0 0 3px rgba(178,128,38,.5), inset 0 -10px 24px rgba(150,104,30,.18),
        0 0 0 1px rgba(255,238,190,.9), 0 0 20px rgba(255,212,120,.6), 0 0 48px rgba(255,236,190,.32) !important;
    animation: tcSpinA 7s linear infinite !important; }
.tc-card.f-genesis.s-full .tc-inner { background: linear-gradient(180deg, #1a1306, #070502) padding-box,
        conic-gradient(from var(--tc-a), #fff7de, #e9c46c 7%, #9a6a1c 14%, #f6dd9c 22%, #ffffff 28%, #f6d6ea 32%, #d6ecfb 36%, #fff3d0 41%, #caa042 50%, #7b5413 57%, #f2d488 65%, #ffffff 71%, #e6d6ff 75%, #fff0c2 80%, #b88a2e 90%, #fff7de) border-box !important; }
.tc-grid .tc-card.f-genesis .tc-inner { box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), inset 0 0 0 3px rgba(178,128,38,.5),
        0 2px 0 0 #fff4d8, 0 3px 0 0 #dcb45c, 0 5px 0 0 #9c7226, 0 7px 0 0 #4a340c, 0 18px 22px -8px rgba(0,0,0,.7), 0 0 22px rgba(255,212,120,.5) !important; }
.tc-card.f-genesis .tc-edge { background: linear-gradient(135deg, #fffaf0, #e8c46c 35%, #8f6418 62%, #f7e2a8) !important; }
/* the art window: warm light pouring out from behind the item */
.tc-card.f-genesis:not(.s-full) .tc-art { border: 1px solid rgba(150,104,28,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 0 22px rgba(70,42,0,.5);
    background: radial-gradient(58% 52% at 50% 50%, #fffef8 0%, #fff0c4 16%, #f0c873 36%, #b07a24 62%, #4a2f08 88%, #2a1a04 100%) !important; }
.tc-card.f-genesis.s-portrait .tc-art { background: radial-gradient(60% 55% at 50% 40%, #fffef8 0%, #ffeec0 18%, #e6b960 42%, #8a5c16 70%, #2a1a04 100%) !important; }
.tc-card.f-genesis .tc-art img, .tc-card.f-genesis .tc-avatar { position: relative; z-index: 1; }
.tc-card.f-genesis .tc-art img { filter: drop-shadow(0 8px 10px rgba(40,22,0,.55)) drop-shadow(0 0 1px rgba(255,255,255,.9)) saturate(1.15) contrast(1.05); }
.tc-card.f-genesis .tc-avatar { border-color: #f6dc96; box-shadow: 0 0 0 2px #8f6418, 0 0 26px rgba(255,236,170,.9); }
/* sunburst rays behind the art (item cards: inside the art window; full-art: over the picture, from the top) */
.tc-halo { position: absolute !important; z-index: 0 !important; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; margin: 0; translate: -50% -50%; pointer-events: none; border-radius: 50%;
    /* 11/12 Genesis v2: the sunburst rays went (owner 11/3: rays = clipart) → a soft warm light that slowly breathes */
    background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,240,196,.55) 26%, rgba(255,214,130,.22) 50%, transparent 72%);
    mix-blend-mode: soft-light; animation: tcHaloBreath 5s ease-in-out infinite alternate; }
@keyframes tcHaloBreath { from { transform: scale(.88); opacity: .75; } to { transform: scale(1.06); opacity: 1; } }
@keyframes tcHaloBreathF { from { transform: scale(.9); opacity: .38; } to { transform: scale(1.06); opacity: .58; } }
.tc-card.f-genesis.s-full .tc-halo { top: 34%; width: 150%; mix-blend-mode: screen; opacity: .5; animation-name: tcHaloBreathF;
    background: radial-gradient(closest-side, rgba(255,236,186,.6), rgba(255,220,140,.25) 40%, rgba(255,226,150,0) 66%); }
/* pearl: a soft pink / gold / ice iridescence that slides with the light (soft-light: tints, never fogs the art) */
.tc-gen { position: absolute !important; inset: 0; z-index: 2 !important; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,190,225,0) 18%, rgba(255,190,225,.55) 32%, rgba(255,240,190,.75) 43%, rgba(190,235,255,.6) 54%, rgba(220,200,255,.45) 63%, rgba(220,200,255,0) 76%);
    background-size: 260% 260%; background-position: var(--mx, var(--ix)) var(--my, var(--iy)); mix-blend-mode: soft-light; transition: background-position .25s ease; }
/* full-art: gilded (a soft-light gold wash warms the art) + a pearl mat inside the gold frame, like a framed 1/1 print */
.tc-card.f-genesis.s-full .tc-gen { opacity: .85; background: linear-gradient(115deg, rgba(255,190,225,0) 18%, rgba(255,190,225,.5) 32%, rgba(255,240,190,.7) 43%, rgba(190,235,255,.55) 54%, rgba(220,200,255,0) 72%) var(--mx, var(--ix)) var(--my, var(--iy)) / 260% 260%,
    radial-gradient(90% 70% at 50% 30%, rgba(255,226,160,.85), rgba(255,200,110,.6) 60%, rgba(170,120,36,.6)); }
.tc-card.f-genesis.s-full .tc-inner::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 11px; border: 7px solid transparent;
    background: linear-gradient(160deg, #fffdf6, #f3e2bb 30%, #fbf1dc 50%, #e7cf9a 75%, #fff8e6) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box;
    box-shadow: inset 0 0 0 1px rgba(150,104,28,.7); }
.tc-card.f-genesis.s-full .tc-inner::before { content: ""; position: absolute; inset: 7px; z-index: 5; pointer-events: none; border-radius: 5px; box-shadow: 0 0 0 1px #a87a22, inset 0 0 14px rgba(0,0,0,.45); }
.tc-card.f-genesis.s-full .tc-fin { right: 14px; top: 28px; }
.tc-card.f-genesis.s-full .tc-inner { padding: 14px; }
/* warm white-gold light sweep */
.tc-card.f-genesis .tc-shine { z-index: 2; background: linear-gradient(115deg, transparent 32%, rgba(255,252,240,.85) 45%, rgba(255,214,120,.45) 52%, transparent 64%);
    background-size: 260% 260%; background-position: var(--mx, var(--ix)) var(--my, var(--iy)); mix-blend-mode: overlay; opacity: 1; -webkit-mask: none; mask: none; animation: tcSheen 4s ease-in-out infinite; }
.tc-card.f-genesis:not(.s-full) .tc-shine { mix-blend-mode: soft-light; opacity: .85; } /* pearl stock: overlay blew the text out */
/* fine gold glitter, brightest near the light */
.tc-card.f-genesis .tc-glitter { background: url(/assets/cards/gold-dust.webp?v=1) var(--gx, 0px) var(--gy, 0px) / 220px 220px repeat; mix-blend-mode: normal !important; opacity: .95; filter: none;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.75) 32%, rgba(0,0,0,.35) 75%); mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.75) 32%, rgba(0,0,0,.35) 75%);
    -webkit-mask-composite: source-over; mask-composite: add; animation: tcDust 1.8s ease-in-out infinite; }
.tc-card.f-genesis.s-full .tc-glitter { mix-blend-mode: screen !important; }
/* warm star glints (normal blend so they read on the light pearl too) */
.tc-card.f-genesis .tc-glints b { mix-blend-mode: normal;
    background: radial-gradient(circle, #fff 0 1.8px, rgba(255,236,170,.95) 3px, rgba(255,200,90,.35) 6px, transparent 9px),
        linear-gradient(0deg, transparent 46%, rgba(255,250,230,.95) 50%, transparent 54%), linear-gradient(90deg, transparent 46%, rgba(255,250,230,.95) 50%, transparent 54%); }
/* text: engraved dark gold on the pearl (item cards); white-gold on full-art */
.tc-card.f-genesis .tc-top { color: #6e4c0c; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.tc-card.f-genesis .tc-name { background: linear-gradient(180deg, #4a3104 8%, #94661a 52%, #3a2603 92%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: none;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.75)); }
.tc-card.f-genesis .tc-info { color: #5b4520; font-weight: 600; }
.tc-card.f-genesis .tc-foot { border-top-color: rgba(130,92,24,.3); }
.tc-card.f-genesis .tc-rar { background: linear-gradient(90deg, #6a4306, #a0711c); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.tc-card.f-genesis .tc-val { color: #2c1d03; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.tc-card.f-genesis.s-full .tc-bleed-fade { background: linear-gradient(180deg, rgba(30,20,3,.5) 0%, transparent 16%, transparent 50%, rgba(24,16,3,.9) 76%, #110b02 100%); }
.tc-card.f-genesis.s-full .tc-top { color: #ffe9b4; text-shadow: 0 1px 4px rgba(0,0,0,.85); }
.tc-card.f-genesis.s-full .tc-name { background: linear-gradient(180deg, #ffffff 15%, #ffeab4 52%, #fff7e2 68%, #d9a443); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); }
.tc-card.f-genesis.s-full .tc-info { color: #e8dcc4; }
.tc-card.f-genesis.s-full .tc-foot { border-top-color: rgba(255,226,160,.25); }
.tc-card.f-genesis.s-full .tc-rar { background: linear-gradient(90deg, #ffe7a6, #ffffff, #f0c86a); -webkit-background-clip: text; background-clip: text; }
.tc-card.f-genesis.s-full .tc-val { color: #fff; text-shadow: 0 0 10px rgba(255,210,110,.85); }
.tc-card.f-genesis.legend .tc-name { color: transparent; }
/* the plate: black enamel, gold rim, gold crown · GENESIS · 1/1 */
.tc-card.f-genesis .tc-fin { display: inline-flex; align-items: center; gap: 5px; top: 24px; right: 11px; padding: 4px 8px 4px 6px; border-radius: 7px; white-space: nowrap; max-width: calc(100% - 20px);
    font: 800 9.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; color: #ffe7a6; text-shadow: 0 0 8px rgba(255,205,100,.65);
    background: linear-gradient(180deg, #2c2208, #0a0803 55%, #1c1606) padding-box, linear-gradient(90deg, #a87a22, #fff3cc, #d9a844, #fffaf0, #a87a22) border-box; border: 1px solid transparent;
    box-shadow: 0 0 0 1px rgba(0,0,0,.75), 0 4px 12px rgba(0,0,0,.6), 0 0 16px rgba(255,210,110,.6), inset 0 1px 0 rgba(255,240,200,.35); }
.tc-card.f-genesis .tc-fin em { font-style: normal; padding-left: 5px; border-left: 1px solid rgba(255,226,160,.4); color: #fff; letter-spacing: .06em; text-shadow: 0 0 8px rgba(255,236,180,.9); }
.tc-crown { display: inline-block; width: 12px; height: 10px; flex: 0 0 auto; background: linear-gradient(180deg, #fffbe8, #f3cf6a 50%, #b07d22);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 26 22'%3E%3Cpath d='M2 6.5l5.2 4L12 2.5l4.8 8L22 6.5 20.2 16H3.8z'/%3E%3Ccircle cx='2' cy='5.2' r='1.9'/%3E%3Ccircle cx='12' cy='1.9' r='1.9'/%3E%3Ccircle cx='22' cy='5.2' r='1.9'/%3E%3Crect x='3.8' y='17' width='16.4' height='3' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 26 22'%3E%3Cpath d='M2 6.5l5.2 4L12 2.5l4.8 8L22 6.5 20.2 16H3.8z'/%3E%3Ccircle cx='2' cy='5.2' r='1.9'/%3E%3Ccircle cx='12' cy='1.9' r='1.9'/%3E%3Ccircle cx='22' cy='5.2' r='1.9'/%3E%3Crect x='3.8' y='17' width='16.4' height='3' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.tc-grid .tc-card.f-genesis .tc-fin, .tc-slot .tc-card.f-genesis .tc-fin, .tc-fan-card .tc-card.f-genesis .tc-fin { font-size: 7.5px !important; letter-spacing: .08em; padding: 3px 6px 3px 5px; gap: 4px; right: 8px; top: 22px; }
.tc-grid .tc-card.f-genesis.s-full .tc-fin, .tc-slot .tc-card.f-genesis.s-full .tc-fin { top: 33px; right: 11px; }
.tc-grid .tc-card.f-genesis .tc-crown, .tc-fan-card .tc-card.f-genesis .tc-crown { width: 9px; height: 7.5px; }
.tc-insp .tc-card.f-genesis .tc-fin { font-size: 11px; padding: 5px 10px 5px 8px; gap: 6px; }
.tc-insp .tc-card.f-genesis .tc-crown { width: 14px; height: 11.5px; }
@media (max-width: 560px) { .tc-card.f-genesis .tc-fin { font-size: 8px; letter-spacing: .08em; padding: 3px 6px 3px 5px; gap: 4px; right: 8px; } .tc-insp .tc-card.f-genesis .tc-fin { font-size: 10px; } }
@media (max-width: 760px) { .tc-fan-card .tc-card.f-genesis .tc-fin { font-size: 0 !important; gap: 0 !important; padding: 3px 5px !important; } .tc-fan-card .tc-card.f-genesis .tc-fin em { font-size: 7px; border: 0; padding-left: 3px; } }
/* odds tab + (i) guide */
.tc-odds-f.f-genesis { position: relative; overflow: hidden; border: 1px solid transparent;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255,226,150,.2), transparent 60%) padding-box, linear-gradient(160deg, #1c160a, #0d0b07) padding-box, linear-gradient(120deg, #a87a22, #fff3cc, #f6d6ea, #d6ecfb, #e9c46c, #a87a22) border-box;
    box-shadow: 0 0 22px -6px rgba(255,210,110,.55); }
.tc-odds-f.f-genesis b { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #fff4d6, #f3cf6a, #ffffff, #e4b14d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-odds-f.f-genesis b .tc-crown { width: 16px; height: 13px; }
.tc-odds-f.f-genesis span { color: #ffe9b4; } .tc-odds-f.f-genesis small { color: #c9b996; }
.tc-help-grid span b.f-genesis, .tc-help-box li b.f-genesis { font: inherit; font-weight: 800; background: linear-gradient(90deg, #fff4d6, #f3cf6a, #ffffff, #e4b14d); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* cost control: halo only turns on the card you're looking at (hover / inspect / reveal); pickers drop the extra layers */
.tc-grid .tc-card.f-genesis:not(:hover):not(.press) .tc-halo { animation: none; }
.tc-tgrid.lite .tc-halo, .tc-tgrid.lite .tc-gen { display: none !important; }
@media (hover: none), (max-width: 760px) { .tc-grid .tc-card.f-genesis .tc-halo, .tc-tray .tc-card.f-genesis .tc-halo { animation: none !important; } }
/* ── Genesis v2 (owner 11/9 "a bit more animation", built 11/12): a light runs round the gold frame and catches the crown plate
   (the plate shines + the crown blooms as the light reaches it), and gold dust drifts up through the art. One 6 s cycle so
   the light reads as travelling. Transform / opacity only (no CSS-variable animations: they restyle the whole card every
   frame, see the 11/12 lag fix). Off in grids, the reveal row and the fan, where cards are small. ── */
.tc-gxr { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 16px; border: 5px solid transparent; transform: translateZ(1px);
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
.tc-card.s-full .tc-gxr { border-width: 12px; } /* full-art: the gold edge + the pearl mat inside it */
.tc-gxr b { position: absolute; top: -12%; bottom: -12%; left: -100%; width: 300%; will-change: transform;
  background: linear-gradient(100deg, transparent 41%, rgba(255,236,180,.22) 46%, rgba(255,255,255,.95) 49.3%, rgba(255,222,140,.9) 50.7%, rgba(255,236,180,.2) 54%, transparent 59%);
  animation: gxSweep 6s cubic-bezier(.45,.05,.25,1) infinite; }
@keyframes gxSweep { 0% { transform: translateX(-36%); } 46%, 100% { transform: translateX(36%); } }
.tc-card.f-genesis .tc-fin::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,246,214,.85) 48%, rgba(255,255,255,1) 50%, rgba(255,214,120,.6) 53%, transparent 68%) 120% 0 / 300% 100% no-repeat;
  animation: gxPlate 6s ease-in-out infinite; }
@keyframes gxPlate { 0%, 36% { background-position: 120% 0; } 50%, 100% { background-position: -20% 0; } }
.tc-card.f-genesis .tc-fin::before { content: ""; position: absolute; left: -9px; top: 50%; width: 48px; aspect-ratio: 1; margin-top: -24px; z-index: 2; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, #fff 0 12%, rgba(255,248,220,.9) 22%, rgba(255,226,150,.45) 45%, rgba(255,214,120,.12) 68%, transparent 80%); transform: scale(0); opacity: 0;
  animation: gxBloom 6s ease-out infinite; }
@keyframes gxBloom { 0%, 40% { transform: scale(0); opacity: 0; } 45% { transform: scale(1.15); opacity: 1; } 58%, 100% { transform: scale(.3); opacity: 0; } }
/* drifting gold dust: two tiled layers rising at different speeds (parallax), twinkling, faded at the top and bottom */
.tc-gxd { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%); }
.tc-gxd b { position: absolute; left: 0; right: 0; top: 0; height: 200%; will-change: transform, opacity;
  background-image: radial-gradient(3.2px 3.2px at 14% 18%, #fffaf0 25%, rgba(255,214,120,.55) 55%, transparent), radial-gradient(4.2px 4.2px at 62% 9%, #fff3cf 22%, rgba(255,200,90,.5) 55%, transparent), radial-gradient(2.6px 2.6px at 38% 44%, #fff 30%, rgba(255,226,150,.5) 60%, transparent),
    radial-gradient(3.8px 3.8px at 84% 36%, #fff6dc 25%, rgba(255,210,110,.5) 55%, transparent), radial-gradient(2.8px 2.8px at 24% 71%, #fff0c4 28%, rgba(255,200,90,.5) 58%, transparent), radial-gradient(4.6px 4.6px at 72% 63%, #fffaf0 20%, rgba(255,214,120,.45) 52%, transparent),
    radial-gradient(2.4px 2.4px at 48% 88%, #fff 30%, rgba(255,226,150,.5) 60%, transparent), radial-gradient(3.4px 3.4px at 92% 82%, #ffe9b0 25%, rgba(255,200,90,.5) 55%, transparent);
  background-size: 140px 190px; animation: gxRise 16s linear infinite, gxTwinkle 2.6s ease-in-out infinite alternate; }
.tc-gxd b + b { background-size: 210px 260px; animation-duration: 10s, 3.4s; animation-delay: 0s, -1.3s; }
@keyframes gxRise { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes gxTwinkle { from { opacity: .45; } to { opacity: 1; } }
.tc-card.f-genesis:not(.s-full) .tc-gxd b { filter: drop-shadow(0 0 1px rgba(120,80,10,.8)); } /* reads on the light pearl stock too */
.tc-grid .tc-gxr, .tc-grid .tc-gxd, .tc-tgrid .tc-gxr, .tc-tgrid .tc-gxd, .tc-tray .tc-gxr, .tc-tray .tc-gxd, .tc-fan-card .tc-gxr, .tc-fan-card .tc-gxd { display: none; }
.tc-grid .tc-card.f-genesis .tc-fin::after, .tc-grid .tc-card.f-genesis .tc-fin::before, .tc-tray .tc-card.f-genesis .tc-fin::after, .tc-tray .tc-card.f-genesis .tc-fin::before,
.tc-fan-card .tc-card.f-genesis .tc-fin::after, .tc-fan-card .tc-card.f-genesis .tc-fin::before { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) { .tc-gxr b, .tc-gxd b, .tc-card.f-genesis .tc-fin::after, .tc-card.f-genesis .tc-fin::before { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .tc-halo { animation: none !important; } }
/* ── The Genesis Five (11/3): showcase of every Genesis 1/1 + locked slots ── */
.tc-genesis { margin: 6px 0 14px; padding: 18px 20px; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(70% 140% at 85% 0%, rgba(255,214,130,.20), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(255,236,200,.10), transparent 60%), linear-gradient(135deg, #1f1a10, #0d0b08 70%);
  border: 1px solid rgba(255,214,130,.55); box-shadow: 0 0 34px -12px rgba(255,200,110,.6), inset 0 1px 0 rgba(255,240,200,.18); }
.tc-gen-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tc-gen-head em { display: block; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #e8c98a; font-style: normal; margin-bottom: 4px; }
.tc-gen-head b { display: block; font: 800 30px/1.05 "Barlow Condensed", sans-serif; color: #fff4dc; text-shadow: 0 0 18px rgba(255,200,110,.5); }
.tc-gen-head span { display: block; margin-top: 4px; color: #e6d7bb; font-size: 14px; max-width: 640px; }
.tc-gen-head strong { flex: 0 0 auto; font: 800 40px/1 "Barlow Condensed", sans-serif; color: #ffe2a0; text-align: right; }
.tc-gen-head strong small { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #cdb88f; }
.tc-gen-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tc-gen-slot { display: grid; justify-items: center; align-content: start; gap: 3px; text-align: center; min-width: 0; }
.tc-gen-slot b { color: #fff4dc; font: 700 15px/1.2 "Barlow Condensed", sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-gen-slot small { color: #cdbd9d; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-gen-card { width: 100%; max-width: 170px; cursor: pointer; }
.tc-gen-lock { width: 100%; max-width: 170px; aspect-ratio: 5 / 7; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 4px;
  background: repeating-linear-gradient(135deg, rgba(255,214,130,.05) 0 10px, transparent 10px 20px), linear-gradient(160deg, #2a2213, #120f09);
  border: 2px dashed rgba(255,214,130,.45); box-shadow: inset 0 0 30px rgba(0,0,0,.6); margin-bottom: 4px; }
.tc-gen-lock i { font-style: normal; font-size: 34px; filter: grayscale(.2) drop-shadow(0 0 10px rgba(255,200,110,.55)); }
.tc-gen-lock span { font: 800 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; color: #e8c98a; }
@media (max-width: 760px) {
  .tc-genesis { padding: 14px; } .tc-gen-head b { font-size: 24px; } .tc-gen-head strong { font-size: 30px; }
  .tc-gen-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .tc-gen-slot { scroll-snap-align: start; }
}

/* ── full-screen moment for Genesis / Prismatic pulls (11/3) ── */
.tc-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147483000; pointer-events: none; }
.tc-cele { position: fixed; inset: 0; z-index: 2147482999; display: grid; place-items: start center; padding-top: calc(12vh + var(--safe-top, 0px)); pointer-events: none; }
.tc-cele-in { display: grid; justify-items: center; gap: 6px; padding: 18px 34px 20px; border-radius: 22px; text-align: center; animation: tcCeleIn .55s cubic-bezier(.2,1.4,.4,1) both;
  background: radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,.14), transparent 60%), rgba(8,7,12,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tc-cele.out .tc-cele-in { animation: tcCeleOut .7s ease forwards; }
.tc-cele em { font: 800 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .3em; font-style: normal; }
.tc-cele b { font: 900 clamp(38px, 8vw, 84px)/0.95 "Barlow Condensed", sans-serif; letter-spacing: .04em; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tcCeleShine 2.2s linear infinite; }
.tc-cele span { font: 700 clamp(16px, 2.6vw, 24px)/1.1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .04em; }
.tc-cele.genesis .tc-cele-in { border: 2px solid #ffd46a; box-shadow: 0 0 60px rgba(255,200,110,.75), 0 0 0 1px rgba(255,240,200,.4) inset; }
.tc-cele.genesis em { color: #ffe3a0; }
.tc-cele.genesis b { background-image: linear-gradient(100deg, #c98a12, #ffe3a0 25%, #fffaf0 45%, #ffd46a 60%, #c98a12 85%, #ffe3a0); filter: drop-shadow(0 0 22px rgba(255,200,110,.7)); }
.tc-cele.prism .tc-cele-in { border: 2px solid transparent; background: linear-gradient(rgba(8,7,12,.86), rgba(8,7,12,.86)) padding-box, linear-gradient(120deg, #ff5f6d, #ffc371, #8dff8a, #4fe3ff, #c58bff, #ff6fd8) border-box; box-shadow: 0 0 60px rgba(197,139,255,.7); }
.tc-cele.prism em { color: #c9f3ff; }
.tc-cele.prism b { background-image: linear-gradient(100deg, #ff5f6d, #ffc371, #fff36d, #8dff8a, #4fe3ff, #6d8bff, #c58bff, #ff6fd8, #ff5f6d); filter: drop-shadow(0 0 22px rgba(160,200,255,.6)); }
@keyframes tcCeleIn { from { opacity: 0; transform: scale(.4) translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes tcCeleOut { to { opacity: 0; transform: scale(1.08) translateY(-16px); } }
@keyframes tcCeleShine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .tc-cele-in, .tc-cele b { animation: none !important; } }

/* Spend Rewards tile (11/3) */
.tc-spend-bar { height: 8px; margin: 8px 0 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 340px; }
.tc-spend-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9ad8, #a9c9ff, #c3ffd8, #ffe08a); }
.tc-shop-txt .tc-spend-n { color: #e8ddff; }

/* pack Community Unlock tile (11/3) */
.tc-shop-item.community { border-color: rgba(120,220,255,.4); }
.tc-comm-ico { flex: 0 0 auto; width: 92px; display: grid; place-items: center; font-size: 46px; filter: drop-shadow(0 0 14px rgba(120,220,255,.45)); }
.tc-comm-n { color: #fff; }
@media (max-width: 760px) { .tc-comm-ico { width: 64px; font-size: 36px; } }

/* ── Cards tab layout v2 (owner 11/3: "cleanup the card page on mobile … scroll forever … community closer to the top"):
   Community Unlock on top → the 3 buy packs → Free packs block. Phones: one row of 3 small buy tiles, slim free-pack rows. ── */
.tc-comm-top { margin: 4px 0 14px; display: grid; }
.tc-free { margin: 16px 0 14px; }
.tc-free > .cx-h { margin: 0 0 10px; }
.tc-free-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .tc-free-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tc-shop { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) {
  .tc-shop { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; }
  .tc-shop .tc-shop-item { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; border-radius: 14px; }
  .tc-shop .tc-shop-item .tc-pk, .tc-shop .tc-shop-item .tc-pack { width: 62px !important; }
  .tc-shop .tc-shop-txt { justify-items: center; gap: 5px; width: 100%; }
  .tc-shop .tc-shop-txt b { font-size: 15px !important; }
  .tc-shop .tc-shop-txt small { display: none; }
  .tc-shop .tc-shop-btns { display: grid; gap: 5px; width: 100%; }
  .tc-shop .tc-shop-btns .cx-btn { width: 100%; height: 32px; min-height: 0 !important; padding: 0 4px !important; font-size: 12px; letter-spacing: .02em; }
  .tc-free { margin-top: 12px; }
  .tc-free-grid { grid-template-columns: 1fr; gap: 8px; }
  .tc-free .tc-shop-item { gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .tc-free .tc-shop-item .tc-pk, .tc-free .tc-shop-item .tc-pack { width: 44px !important; }
  .tc-free .tc-shop-txt { flex: 1; min-width: 0; gap: 3px; }
  .tc-free .tc-shop-txt b { font-size: 16px !important; }
  .tc-free .tc-shop-txt small { font-size: 12.5px !important; line-height: 1.25; }
  .tc-free .tc-shop-item .cx-btn { height: 32px; min-height: 0 !important; padding: 0 14px !important; justify-self: start; }
  .tc-free .spend .tc-shop-txt > small:first-of-type { display: none; }
  .tc-free .tc-spend-bar { margin: 4px 0 2px; }
  .tc-comm-top .tc-shop-item { padding: 12px; gap: 10px; border-radius: 14px; }
  .tc-comm-top .tc-comm-ico { width: 44px; font-size: 30px; }
  .tc-comm-top .tc-shop-txt b { font-size: 17px !important; }
  .tc-comm-top .tc-shop-txt small { font-size: 12.5px !important; }
  .tc-comm-top .tc-shop-btns .cx-btn { height: 30px; min-height: 0 !important; font-size: 12px; padding: 0 10px !important; }
  .tc-genesis { padding: 12px; margin-bottom: 10px; } .tc-gen-head { margin-bottom: 8px; } .tc-gen-head span { display: none; }
  /* 11/6: no sideways scroll on phones (it cut cards in half at the edge): whole cards, 3 per row, the rest wraps below */
  .tc-gen-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; overflow: visible; padding-bottom: 0; scroll-snap-type: none; } .tc-gen-card { max-width: 150px; } .tc-gen-lock i { font-size: 24px; } .tc-gen-lock span { font-size: 17px; }
  .tc-gen-slot small { font-size: 11px; }
}@media (max-width: 760px) {
  .tc-unopened-row { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tc-unopened-row .tc-pack-btn { flex: 0 0 auto; scroll-snap-align: start; }
  .tc-unopened-row .tc-pack-btn .tc-pk, .tc-unopened-row .tc-pack-btn .tc-pack { width: 78px !important; }
}
/* ── War price ranges, clearer (owner 11/3): medal icon + metal finish per tier ── */
.rg-bronze { --rg: #f0a35f; --rgm: linear-gradient(135deg, #4a2a12, #a8662f 40%, #ffd0a1 52%, #8a5326 64%, #3b210e); }
.rg-silver { --rg: #e3e9f2; --rgm: linear-gradient(135deg, #2e3540, #9aa6b6 40%, #ffffff 52%, #788395 64%, #262c36); }
.rg-gold { --rg: #ffd36a; --rgm: linear-gradient(135deg, #4a3405, #c99520 40%, #fff1b5 52%, #a97a12 64%, #3a2804); }
.rg-diamond { --rg: #9be9ff; --rgm: linear-gradient(135deg, #082c3a, #3fb8e6 40%, #e8fbff 52%, #2f9fcf 64%, #06222e); }
.tc-dchip { gap: 6px; padding: 5px 12px 5px 8px; font-size: 14px; border-width: 1.5px; background: color-mix(in srgb, var(--rg, #aeb5c0) 16%, rgba(10,10,14,.6)); color: #fff; }
.tc-dchip i { font-style: normal; font-size: 15px; } .tc-dchip em { font-style: normal; color: var(--rg, #fff); }
.tc-rlegend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.tc-rlegend > div { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 8px 11px; border-radius: 14px; text-align: center; overflow: hidden;
  border: 1.5px solid transparent; background: linear-gradient(#141218, #0d0c10) padding-box, var(--rgm) border-box; box-shadow: 0 0 22px -10px var(--rg); }
.tc-rlegend > div::before { content: ""; position: absolute; inset: 0; background: var(--rgm); opacity: .13; pointer-events: none; }
.tc-rlegend i { font-style: normal; font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.tc-rlegend b { font: 800 19px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--rg); }
.tc-rlegend span { font: 700 15px/1.1 "Barlow Condensed", sans-serif; color: #fff; letter-spacing: .02em; }
.tc-rlegend.mini { grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px; margin: 8px 0 0; }
.tc-rlegend.mini > div { grid-auto-flow: column; align-items: center; gap: 5px; padding: 5px 10px 5px 7px; border-radius: 999px; box-shadow: none; }
.tc-rlegend.mini i { font-size: 15px; } .tc-rlegend.mini b { font-size: 14px; } .tc-rlegend.mini span { font-size: 13px; color: #f1e6e3; }
.tc-drange button { position: relative; overflow: hidden; border: 1.5px solid transparent !important; background: linear-gradient(#17151c, #0e0d12) padding-box, var(--rgm) border-box !important; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px !important; }
.tc-drange button::before { content: ""; position: absolute; inset: 0; background: var(--rgm); opacity: .1; pointer-events: none; transition: opacity .2s; }
.tc-drange b { display: inline-flex; align-items: center; gap: 6px; font-size: 21px !important; letter-spacing: .06em; text-transform: uppercase; }
.tc-drange b i { font-style: normal; font-size: 22px; }
.tc-drange span { font: 800 17px/1.1 "Barlow Condensed", sans-serif !important; color: #fff; letter-spacing: .02em; }
.tc-drange button.on { box-shadow: 0 0 0 2px var(--rg), 0 0 26px -6px var(--rg) !important; }
.tc-drange button.on::before { opacity: .26; }
.tc-drange button.on::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 sans-serif; color: #111; background: var(--rg); }
@media (max-width: 760px) {
  .tc-rlegend { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tc-rlegend.mini { grid-template-columns: 1fr 1fr; } .tc-rlegend.mini > div { justify-content: start; }
}

/* War: Legend tier above Diamond (11/3) + 5 ranges per row */
.rg-legend { --rg: #ffb3f0; --rgm: linear-gradient(135deg, #3a0f3a, #c55bd8 30%, #ffe3a0 48%, #fff 52%, #8fe3ff 64%, #6a2fd0 80%, #2a0b3a); }
.tc-rlegend, .tc-drange { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.tc-rlegend.mini { grid-template-columns: repeat(5, auto) !important; }
@media (max-width: 760px) { .tc-rlegend, .tc-drange { grid-template-columns: 1fr 1fr !important; } .tc-rlegend.mini { grid-template-columns: 1fr 1fr !important; }
  .tc-rlegend > div.rg-legend, .tc-drange button.rg-legend { grid-column: 1 / -1; } }

/* Prismatic diamond stands out more (owner 11/3) */
.tc-card.f-prism .tc-fin .tc-gem { width: 14px !important; height: 14px !important; border: 1.5px solid #fff; border-radius: 2px;
  box-shadow: 0 0 6px #fff, 0 0 14px rgba(160,220,255,.95), 0 0 22px rgba(255,111,216,.7); animation: tcGemFlash 2.6s ease-in-out infinite; }
.tc-grid .tc-card.f-prism .tc-fin .tc-gem, .tc-fan-card .tc-card.f-prism .tc-fin .tc-gem, .tc-tgrid .tc-card.f-prism .tc-fin .tc-gem { width: 10px !important; height: 10px !important; }
@keyframes tcGemFlash { 0%, 100% { filter: brightness(1) saturate(1.2); transform: rotate(45deg) scale(1); } 50% { filter: brightness(1.6) saturate(1.5); transform: rotate(45deg) scale(1.18); } }
@media (hover: none), (max-width: 760px) { .tc-grid .tc-card.f-prism .tc-fin .tc-gem { animation: none !important; } }

/* each free-pack panel its own color (owner 11/3: "Community Unlock & Free packs are all the same color") */
.tc-shop-item.daily.community { --sa: #5ab8ff; --sb: #0b2747; border-color: rgba(90,184,255,.5) !important; }
.tc-shop-item.daily.playtime { --sa: #7ee35a; --sb: #14370c; border-color: rgba(126,227,90,.45) !important; }
.tc-shop-item.daily.weekly { --sa: #ffc44d; --sb: #3d2a05; border-color: rgba(255,196,77,.5) !important; }
.tc-shop-item.daily.spend { --sa: #ff7ad9; --sb: #3a0f33; border-color: rgba(255,122,217,.45) !important; }
.tc-shop-item.daily.spend .tc-spend-bar i { background: linear-gradient(90deg, #ff7ad9, #ffb3ec); }
.tc-shop-item.daily.community .tc-spend-bar i { background: linear-gradient(90deg, #5ab8ff, #a9e1ff); }
/* ═══ 11/3 round: Grading · Booster Boxes · Daily Pick · Shred & Reroll ═══ */
/* grade badge on a card (Afterlife Grading Service) */
.tc-grade { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: baseline; gap: 4px; height: 28px; padding: 0 9px; border-radius: 8px;
  font: 900 17px/28px "Barlow Condensed", sans-serif; color: #fff; background: linear-gradient(180deg, #2c3038, #121418); border: 2px solid #9aa3b2; box-shadow: 0 6px 14px rgba(0,0,0,.55); }
.tc-grade i { font-style: normal; font-size: 10px; letter-spacing: .14em; color: #aab3c2; }
.tc-grade.hi { border-color: #9fd0ff; box-shadow: 0 6px 14px rgba(0,0,0,.55), 0 0 12px rgba(159,208,255,.55); }
.tc-grade.gem { color: #1c1405; background: linear-gradient(135deg, #fff3c4, #f6d77a 45%, #cf961f); border-color: #fff6dc; box-shadow: 0 6px 14px rgba(0,0,0,.55), 0 0 18px rgba(246,215,122,.8); }
.tc-grade.gem i { color: #5a3d06; }
.tc-grade.lo { border-color: #8a5a4a; color: #e4c9bf; }
.tc-insp-info .tc-insp-grade { color: #f6d77a; font-size: 14px; letter-spacing: .14em; }
.tc-grade-box { display: grid; justify-items: center; gap: 8px; margin-top: 10px; max-width: 340px; }
.tc-insp-info .tc-grade-box small { color: #b9bfcb; font-size: 13px; line-height: 1.4; }
.tc-grade-btn { border-color: rgba(159,208,255,.55) !important; color: #cfe6ff !important; }
.tc-grade-btn[data-sure] { background: linear-gradient(135deg, #cfe6ff, #6fb3ff) !important; color: #071526 !important; }

/* the slab reveal */
.tc-grade-slab-box { justify-items: center; text-align: center; width: min(400px, 100%) !important; }
.tc-slab { width: 210px; padding: 10px 10px 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.05)); border: 2px solid rgba(220,230,245,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 24px 50px rgba(0,0,0,.6); transition: box-shadow .5s, border-color .5s; }
.tc-slab-label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 10px; border-radius: 8px; background: linear-gradient(180deg, #f2efe6, #d9d4c5); color: #1a1a1a; }
.tc-slab-label b { font: 900 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #8a1a1a; }
.tc-slab-name { flex: 1; min-width: 0; text-align: left; font: 700 13px/1.1 "Barlow Condensed", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-slab-g { font: 900 30px/1 "Barlow Condensed", sans-serif; min-width: 34px; text-align: right; }
.tc-slab-card .tc-card { width: 100%; }
.tc-slab.gem { border-color: #ffe7a0; box-shadow: 0 0 0 2px rgba(255,231,160,.4), 0 0 60px rgba(246,215,122,.75), 0 24px 50px rgba(0,0,0,.6); animation: tcSlabGlow 1.6s ease-in-out infinite; }
.tc-slab.hi { border-color: #bfe0ff; box-shadow: 0 0 40px rgba(159,208,255,.55), 0 24px 50px rgba(0,0,0,.6); }
.tc-slab.lo { border-color: rgba(160,110,95,.7); }
@keyframes tcSlabGlow { 50% { box-shadow: 0 0 0 3px rgba(255,231,160,.6), 0 0 90px rgba(246,215,122,.95), 0 24px 50px rgba(0,0,0,.6); } }
.tc-gradem h3 { margin: 6px 0 0; }
.tc-gradem p b { color: #f6d77a; }

/* shared little reveal window (shred result, daily pick, grade) */
.tc-reveal-box { justify-items: center; text-align: center; }
.tc-reveal-tag { font-style: normal; font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9aa1ab; } /* clean: was purple */
.tc-reveal-card { width: min(220px, 60vw); }
.tc-reveal-card .tc-card { width: 100%; }
.tc-reveal-box p b { color: #f6d77a; }

/* Booster Boxes */
.tc-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.tc-box-item { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 0% 0%, rgba(246,215,122,.16), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), #13151a;
  border: 1px solid rgba(246,215,122,.4); }
.tc-box-item.k-prism { background: radial-gradient(120% 140% at 0% 0%, rgba(197,139,255,.2), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), #13151a; border-color: rgba(197,139,255,.45); }
.tc-box-tag { display: block; font-style: normal; font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #f6d77a; margin-bottom: 4px; }
.tc-box-item.k-prism .tc-box-tag { color: #d9b8ff; }
.tc-box-art { flex: 0 0 auto; }
.tc-boxart { position: relative; width: 130px; height: 150px; }
.tc-boxart-fan { position: absolute; inset: 0; }
.tc-boxart .tc-pk { position: absolute; left: 50%; top: 2px; width: 74px !important; margin-left: -37px; animation: none !important; }
.tc-boxart .tc-pk:nth-child(1) { transform: translateX(-30px) rotate(-14deg); filter: brightness(.8); }
.tc-boxart .tc-pk:nth-child(3) { transform: translateX(30px) rotate(14deg); filter: brightness(.8); }
.tc-boxart .tc-pk:nth-child(2) { z-index: 2; transform: translateY(-4px); }
.tc-boxart-band { position: absolute; left: 4px; right: 4px; bottom: 6px; z-index: 3; padding: 6px 0; border-radius: 6px; text-align: center; font-style: normal;
  font: 900 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .18em; color: #1c1405; background: linear-gradient(135deg, #fff3c4, #f6d77a 45%, #cf961f); box-shadow: 0 8px 18px rgba(0,0,0,.55); }
.tc-boxart.k-prism .tc-boxart-band { color: #1b0c2a; background: linear-gradient(135deg, #ffd6f5, #c58bff 50%, #7fd8ff); }
.cx-btn.sure { box-shadow: 0 0 0 2px #fff3c4, 0 0 24px rgba(246,215,122,.6) !important; }
.tc-pack-btn { position: relative; }
.tc-pack-boxtag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 2px 7px; border-radius: 6px; font-style: normal;
  font: 900 11px/1.3 "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #1c1405; background: linear-gradient(135deg, #fff3c4, #cf961f); }

/* unboxing */
.tc-unbox { place-items: center; }
.tc-unbox-in { display: grid; justify-items: center; gap: 18px; width: min(760px, 100%); }
.tc-unbox-box { animation: tcBoxShake .9s ease-in-out; }
.tc-unbox-box .tc-boxart { transform: scale(1.5); transform-origin: center bottom; margin-top: 60px; transition: opacity .4s, transform .5s; }
.tc-unbox.open .tc-unbox-box .tc-boxart { opacity: 0; transform: scale(1.9) translateY(-20px); }
.tc-unbox.open .tc-unbox-box { height: 0; }
@keyframes tcBoxShake { 0%, 100% { transform: none; } 20% { transform: rotate(-4deg); } 40% { transform: rotate(4deg); } 60% { transform: rotate(-3deg) scale(1.03); } 80% { transform: rotate(2deg) scale(1.05); } }
.tc-unbox-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; width: min(600px, 100%); opacity: 0; }
.tc-unbox-pk { display: flex; justify-content: center; }
.tc-reveal-box > .cx-btn, .tc-grade-slab-box > .cx-btn { justify-self: center !important; }
.tc-unbox.open .tc-unbox-packs { opacity: 1; }
.tc-unbox-pk { opacity: 0; transform: translateY(60px) scale(.6) rotate(calc((var(--i) - 4.5) * 6deg)); }
.tc-unbox.open .tc-unbox-pk { animation: tcPkOut .55s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes tcPkOut { to { opacity: 1; transform: none; } }
.tc-unbox-pk .tc-pk { width: 100% !important; max-width: 104px; animation: none; }
.tc-unbox-txt { display: grid; justify-items: center; gap: 6px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; color: #d7dce4; }
.tc-unbox.done .tc-unbox-txt { opacity: 1; transform: none; }
.tc-unbox-txt b { font: 900 30px/1 "Barlow Condensed", sans-serif; color: #fff; }
.tc-unbox-btns { display: flex; gap: 10px; margin-top: 8px; }

/* Daily Pick */
.tc-shop-item.daily.pick { --sa: #ffd84a; --sb: #3d3005; border-color: rgba(255,216,74,.5) !important; }
.tc-pick-mini { position: relative; flex: 0 0 auto; width: 104px; height: 110px; }
.tc-pick-mini i { position: absolute; top: 8px; left: 50%; width: 58px; aspect-ratio: 5 / 7; margin-left: -29px; border-radius: 7px;
  background: url(/assets/cards/back.webp?v=2) center / 100% 100% no-repeat; box-shadow: 0 10px 18px rgba(0,0,0,.55); }
.tc-pick-mini i:nth-child(1) { transform: translateX(-26px) rotate(-12deg); }
.tc-pick-mini i:nth-child(3) { transform: translateX(26px) rotate(12deg); }
.tc-pick-mini i:nth-child(2) { z-index: 2; transform: translateY(-4px); }
.tc-pick-box { position: relative; width: min(760px, 100%); display: grid; justify-items: center; gap: 10px; padding: 24px 18px; border-radius: 22px; text-align: center; color: #d7dce4;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,216,74,.12), transparent 60%), #101216; border: 1px solid rgba(255,216,74,.35); }
.tc-pick-box .tc-insp-x { position: absolute; top: 12px; right: 12px; }
.tc-pick-box h3 { margin: 0; font: 900 34px/1 "Barlow Condensed", sans-serif; color: #fff; }
.tc-pick-sub { margin: 0; color: #9aa3b2; }
.tc-pick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 16px; width: 100%; justify-content: center; margin-top: 8px; }
.tc-pick-c { position: relative; aspect-ratio: 5 / 7; transition: transform .23s ease-in, filter .4s, opacity .4s; }
.tc-pick-c.live { cursor: pointer; animation: tcPickBob 2.4s ease-in-out infinite; }
.tc-pick-c.live:nth-child(2) { animation-delay: .3s; } .tc-pick-c.live:nth-child(3) { animation-delay: .6s; }
.tc-pick-c.live:hover { transform: translateY(-10px) scale(1.04); }
.tc-pick-c.flip { transform: scaleX(0) !important; }
.tc-pick-c.chosen:not(.mine) { transform: translateY(-14px) scale(1.06); }
.tc-pick-back { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: url(/assets/cards/back.webp?v=2) center / 100% 100% no-repeat; box-shadow: 0 16px 30px rgba(0,0,0,.6); }
.tc-pick-c.live:hover .tc-pick-back { box-shadow: 0 0 34px rgba(255,216,74,.55), 0 16px 30px rgba(0,0,0,.6); }
.tc-pick-face .tc-card { width: 100%; }
.tc-pick-c.mine { filter: drop-shadow(0 0 22px rgba(255,216,74,.55)); }
.tc-pick-c.missed { opacity: .5; filter: grayscale(.6); }
.tc-pick-c.missed::after { content: "Missed"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #9aa3b2; }
.tc-pick-c.mine::after { content: "Yours"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffd84a; }
.tc-pick-res { min-height: 22px; margin: 22px 0 0; }
.tc-pick-res b { color: #fff; }
@keyframes tcPickBob { 50% { transform: translateY(-6px); } }

/* ── My Cards action bar (owner 11/5 "can we make that part look better?"): one glass toolbar, every button the same
   height / radius / type, line icons, one gold primary at most. The Sell + Trade Up modes are the same bar, tinted. ── */
#tc-root .tcab { position: relative; z-index: 6; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; padding: 8px 8px 8px 18px;
    border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 60%), rgba(12,13,17,.6); border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 30px -18px rgba(0,0,0,.8); color: var(--cx-dim, #8d95a5); font: 500 15px/1.35 "Barlow Condensed", system-ui, sans-serif; }
/* owner 11/12 ("grey ain't working", the bar should stand out): the normal My Cards bar is a deep midnight-blue → amber panel
   with a holographic top edge (same colours as the Sleeve & Back rim) and a warm gold border; the Sell / Trade Up modes keep
   their own tints. No purple, no grey. */
#tc-root .tcab:not(.tcab-mode) { overflow: visible; isolation: isolate; padding-top: 10px; padding-bottom: 10px;
    background: radial-gradient(70% 140% at 100% 50%, rgba(255,190,90,.14), transparent 60%), radial-gradient(60% 160% at 0% 0%, rgba(70,150,255,.18), transparent 65%), linear-gradient(115deg, #0e1a2c, #0c1220 50%, #171208);
    border: 1px solid rgba(233,196,108,.32); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(0,0,0,.45), 0 14px 34px -16px rgba(0,0,0,.9), 0 0 28px -8px rgba(80,150,255,.22); color: #b9c3d6; }
#tc-root .tcab:not(.tcab-mode)::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, #ff6bd5 15%, #ffd36e 35%, #5fe3c0 55%, #6fb8ff 75%, transparent); opacity: .9; }
#tc-root .tcab:not(.tcab-mode) .tcab-txt b { color: #fff; }
#tc-root .tcab-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
#tc-root .tcab-txt { min-width: 0; letter-spacing: .02em; }
#tc-root .tcab-txt b { color: #e9ecf2; font-weight: 700; }
#tc-root .tcab-txt i { font-style: normal; margin: 0 3px; opacity: .45; }
#tc-root .tcab-sub { display: block; margin-top: 2px; font-size: 13.5px; opacity: .8; }
#tc-root .tcab-acts { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
/* buttons */
#tc-root .tcab-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-height: 0; margin: 0; padding: 0 16px !important;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: #e6e9ef; cursor: pointer; white-space: nowrap;
    font: 700 15px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
#tc-root .tcab-btn:hover:not(:disabled) { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.22); color: #fff; }
#tc-root .tcab-btn:active:not(:disabled) { transform: translateY(1px); }
#tc-root .tcab-btn:focus-visible { outline: 2px solid rgba(246,215,122,.7); outline-offset: 2px; }
#tc-root .tcab-btn:disabled { opacity: .45; cursor: default; }
#tc-root .tcab-i { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
#tc-root .tcab-btn > span { flex: 0 1 auto; }
#tc-root .tcab-ghost { background: transparent; border-color: rgba(255,255,255,.1); color: #b9c0cc; box-shadow: none; }
#tc-root .tcab-up .tcab-i { color: #8fe36b; opacity: 1; }
/* primary (normal bar): Sell, a soft gold so it reads first without shouting */
#tc-root .tcab-pri { color: #f6dc8f; border-color: rgba(228,174,57,.45); background: linear-gradient(180deg, rgba(228,174,57,.16), rgba(228,174,57,.07)); box-shadow: inset 0 1px 0 rgba(255,231,160,.12); }
#tc-root .tcab-pri:hover:not(:disabled) { color: #ffe9ad; border-color: rgba(228,174,57,.7); background: linear-gradient(180deg, rgba(228,174,57,.24), rgba(228,174,57,.11)); }
#tc-root .tcab-pri .tcab-i { opacity: 1; }
#tc-root .tcab-pri .tcab-i:last-child { width: 15px; height: 15px; margin-left: -2px; opacity: .75; transition: transform .15s ease; }
#tc-root .tcab-pri[aria-expanded="true"] .tcab-i:last-child { transform: rotate(180deg); }
/* the confirm buttons in a mode (Sell N for $X / Trade up 5 → 1): solid gold */
#tc-root .tcab-gold { border: 0; color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 22px -6px rgba(228,174,57,.45); }
#tc-root .tcab-gold:hover:not(:disabled) { color: #1c1405; background: linear-gradient(135deg, #f9df8e, #d9a12a); }
#tc-root .tcab-gold:disabled { opacity: 1; color: rgba(246,215,122,.8); background: rgba(228,174,57,.08); border: 1px dashed rgba(228,174,57,.35); box-shadow: none; }
#tc-root .tcab-gold .tcab-i { opacity: 1; }
#tc-root .tcab-pips { display: inline-flex; gap: 3px; margin-right: 2px; }
#tc-root .tcab-pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(246,215,122,.22); box-shadow: inset 0 0 0 1px rgba(246,215,122,.4); }
#tc-root .tcab-pips i.on { background: #f6d77a; box-shadow: 0 0 6px rgba(246,215,122,.6); }
/* Sleeve & Back: the sleeve/back chip + the names as a quiet second line */
#tc-root .tcab-slv { gap: 9px; padding: 0 16px 0 8px !important; }
/* owner 11/12 ("barely noticeable, players have a hard time finding the sleeves & back"): holographic rim + soft glow, a light
   sweep every few seconds (one transform, this button only) and a gold NEW tag. The panel itself stays graphite. */
#tc-root .tcab-slv { height: 46px; overflow: hidden; isolation: isolate; border: 2px solid transparent;
    background: linear-gradient(#17191f, #17191f) padding-box, linear-gradient(110deg, #ff6bd5, #ffd36e, #5fe3c0, #6fb8ff, #c79bff, #ff6bd5) border-box;
    box-shadow: 0 0 16px rgba(111,184,255,.32), 0 0 30px rgba(255,107,213,.2); }
#tc-root .tcab-slv:hover:not(:disabled) { background: linear-gradient(#1d2028, #1d2028) padding-box, linear-gradient(110deg, #ff6bd5, #ffd36e, #5fe3c0, #6fb8ff, #c79bff, #ff6bd5) border-box; border-color: transparent;
    box-shadow: 0 0 18px rgba(111,184,255,.35), 0 0 34px rgba(255,107,213,.22); }
#tc-root .tcab-slv::after { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none; transform: translateX(-120%);
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); animation: tcabSlvSweep 4.5s ease-in-out 1s infinite; }
@keyframes tcabSlvSweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
#tc-root .tcab-slv .slv-bar-chip { transform: scale(1.18); }
#tc-root .tcab-slv .slv-bar-txt > span { color: #fff; font-size: 15px; }
#tc-root .tcab-slv .slv-bar-txt > span::after { content: "NEW"; display: inline-block; margin-left: 7px; padding: 2px 5px 1px; border-radius: 4px; vertical-align: 1px;
    font: 800 9.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .12em; color: #1a1204; background: linear-gradient(180deg, #ffe39a, #e4ae39); }
@media (prefers-reduced-motion: reduce) { #tc-root .tcab-slv::after { animation: none; } }
#tc-root .tcab-slv .slv-bar-txt { display: grid; gap: 3px; text-align: left; }
#tc-root .tcab-slv .slv-bar-txt > span { font-size: 14px; line-height: 1; }
#tc-root .tcab-slv .slv-bar-txt small { margin: 0; font: 600 11.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .04em; text-transform: none; color: var(--cx-dim, #8d95a5); opacity: 1; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
/* the Sell menu */
#tc-root .tcab-sell { position: relative; }
#tc-root .tcab-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 300px; padding: 6px; border-radius: 16px; background: #15171d; border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 22px 48px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4); animation: tcabIn .14s ease-out; }
#tc-root .tcab-menu[hidden] { display: none; }
@keyframes tcabIn { from { opacity: 0; transform: translateY(-4px); } }
#tc-root .tcab-mh { margin: 6px 10px 6px; font: 600 12px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--cx-dim, #8d95a5); }
#tc-root .tcab-mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; margin: 0; padding: 9px 10px !important; border: 0; border-radius: 11px; background: transparent; color: #e6e9ef; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
#tc-root .tcab-mi:hover:not(:disabled), #tc-root .tcab-mi:focus-visible { background: rgba(255,255,255,.06); outline: none; }
#tc-root .tcab-mi:disabled { opacity: .4; cursor: default; }
#tc-root .tcab-mi .tcab-i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(228,174,57,.1); color: #f0cf78; box-shadow: inset 0 0 0 1px rgba(228,174,57,.22); opacity: 1; }
#tc-root .tcab-mi > span { display: grid; gap: 3px; min-width: 0; }
#tc-root .tcab-mi b { font: 700 16px/1.1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .03em; color: #fff; }
#tc-root .tcab-mi b em { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 13px; color: #1c1405; background: #f0cf78; vertical-align: 1px; }
#tc-root .tcab-mi small { font: 500 13.5px/1.25 "Barlow Condensed", system-ui, sans-serif; color: var(--cx-dim, #8d95a5); }
#tc-root .tcab-mi[data-tc-sellevery] .tcab-i { background: rgba(255,90,90,.08); color: #ff9c8f; box-shadow: inset 0 0 0 1px rgba(255,110,100,.22); }
/* modes: the same bar, tinted, with a small label */
#tc-root .tcab-mode { padding-left: 14px; }
#tc-root .tcab-tag { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font: 700 13px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
#tc-root .tcab-tag .tcab-i { width: 15px; height: 15px; opacity: 1; }
#tc-root .tcab-selling { border-color: rgba(228,174,57,.32); background: linear-gradient(100deg, rgba(228,174,57,.12), rgba(228,174,57,.025) 55%), rgba(12,13,17,.7); }
#tc-root .tcab-selling .tcab-tag { color: #f6dc8f; background: rgba(228,174,57,.14); box-shadow: inset 0 0 0 1px rgba(228,174,57,.35); }
#tc-root .tcab-trading { border-color: rgba(126,227,90,.3); background: linear-gradient(100deg, rgba(126,227,90,.11), rgba(126,227,90,.02) 55%), rgba(12,13,17,.7); }
#tc-root .tcab-trading .tcab-tag { color: #c9f5b4; background: rgba(126,227,90,.12); box-shadow: inset 0 0 0 1px rgba(126,227,90,.35); }
#tc-root .tcab-trading .tcab-txt b { color: #c9f5b4; font-weight: 600; }
#tc-root .tcab-mode .tcab-txt { font-size: 14.5px; }
@media (max-width: 1100px) { #tc-root .tcab-mode { flex-wrap: wrap; } #tc-root .tcab-mode .tcab-acts { margin-left: auto; } }
@media (max-width: 900px) and (min-width: 768px) { #tc-root .tcab:not(.tcab-mode) { flex-wrap: wrap; } #tc-root .tcab:not(.tcab-mode) .tcab-acts { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { #tc-root .tcab-menu { animation: none; } #tc-root .tcab-btn { transition: none; } }

/* ── My Cards filters (11/5): a quieter second strip under the toolbar. Desktop: search + 4 dropdowns, then rarity chips,
   Duplicates only and the count / Clear. Phones: search + "Filters (n)" that opens the rest in place (.open). ── */
#tc-root .tcn-stack > .tcfl { margin-top: -6px !important; }
#tc-root .tcfl { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border-radius: 18px;
    background: rgba(12,13,17,.42); border: 1px solid rgba(255,255,255,.06); color: var(--cx-dim, #8d95a5); font: 500 15px/1.3 "Barlow Condensed", system-ui, sans-serif; }
#tc-root .tcfl.act { border-color: rgba(228,174,57,.22); }
#tc-root .tcfl-head { order: 1; flex: 0 1 280px; min-width: 210px; display: flex; gap: 8px; }
#tc-root .tcfl-body { display: contents; }
#tc-root .tcfl-sels { order: 2; flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
#tc-root .tcfl-br { order: 3; flex: 0 0 100%; height: 0; }
#tc-root .tcfl-chips { order: 4; flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
#tc-root .tcfl-rar { display: contents; }
#tc-root .tcfl-meta { order: 5; margin-left: auto; display: flex; align-items: center; gap: 12px; white-space: nowrap; padding-right: 4px; }
#tc-root .tcfl-toggle { display: none; }
/* search */
#tc-root .tcfl-search { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; margin: 0; }
#tc-root .tcfl-search .tcab-i { position: absolute; left: 14px; width: 16px; height: 16px; opacity: .55; pointer-events: none; color: #c9ced8; }
#tc-root .tcfl-search input { width: 100%; height: 40px; min-height: 0; margin: 0; padding: 0 14px 0 38px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.28); color: #eef0f4; font: 500 16px/1 "Barlow", system-ui, sans-serif; letter-spacing: .01em; outline: none; box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
    -webkit-appearance: none; appearance: none; transition: border-color .15s ease, background .15s ease; }
#tc-root .tcfl-search input::placeholder { color: #7d8595; opacity: 1; }
#tc-root .tcfl-search input:focus { border-color: rgba(246,215,122,.55); background: rgba(0,0,0,.4); }
#tc-root .tcfl-search input::-webkit-search-cancel-button { -webkit-appearance: none; width: 14px; height: 14px; cursor: pointer; opacity: .6;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9ced8' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / 14px no-repeat; }
/* dropdowns */
#tc-root .tcfl-sel { height: 40px; min-height: 0; max-width: 240px; margin: 0; padding: 0 34px 0 15px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); cursor: pointer;
    background: rgba(255,255,255,.045) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab1bd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 14px;
    color: #e6e9ef; font: 600 15px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .03em; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
#tc-root .tcfl-sel:hover { border-color: rgba(255,255,255,.22); background-color: rgba(255,255,255,.08); }
#tc-root .tcfl-sel:focus-visible { outline: 2px solid rgba(246,215,122,.7); outline-offset: 2px; }
#tc-root .tcfl-sel.on { color: #f6dc8f; border-color: rgba(228,174,57,.5); background-color: rgba(228,174,57,.1); }
#tc-root .tcfl-sel option, #tc-root .tcfl-sel optgroup { background: #15171d; color: #e6e9ef; font-family: "Barlow", system-ui, sans-serif; }
#tc-root .tcfl-sort { margin-left: auto; }
/* rarity chips + Duplicates only */
#tc-root .tcfl-chip { --rc: #9ea4ac; display: inline-flex; align-items: center; gap: 7px; height: 32px; min-height: 0; margin: 0; padding: 0 12px 0 10px !important; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); color: #aab1bd; font: 700 13.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
    transition: background .15s ease, border-color .15s ease, color .15s ease; }
#tc-root .tcfl-chip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
#tc-root .tcfl-chip:hover { color: #fff; border-color: rgba(255,255,255,.2); }
#tc-root .tcfl-chip:focus-visible { outline: 2px solid rgba(246,215,122,.7); outline-offset: 2px; }
#tc-root .tcfl-chip[aria-pressed="true"] { color: #fff; border-color: var(--rc); background: rgba(255,255,255,.06); background: color-mix(in srgb, var(--rc) 20%, transparent); box-shadow: 0 0 14px -6px var(--rc); }
#tc-root .tcfl-chip[aria-pressed="true"] > i { box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 0 8px var(--rc); }
#tc-root .tcfl-chip[data-tcfl-rar="uncommon"] { --rc: #4cc764; } #tc-root .tcfl-chip[data-tcfl-rar="rare"] { --rc: #5b78ff; } #tc-root .tcfl-chip[data-tcfl-rar="epic"] { --rc: #9a5cff; }
#tc-root .tcfl-chip[data-tcfl-rar="legendary"] { --rc: #e4ae39; } #tc-root .tcfl-chip[data-tcfl-rar="mythic"] { --rc: #ff4fd8; }
#tc-root .tcfl-dup { --rc: #f0cf78; }
#tc-root .tcfl-anim { --rc: #ff9a4d; }
#tc-root .tcfl-anim .tca-play { color: #ff9a4d; }
#tc-root .tcfl-dup .tcab-i { width: 15px; height: 15px; }
#tc-root .tcfl-sep { width: 1px; height: 20px; margin: 0 4px; background: rgba(255,255,255,.1); }
/* count + Clear */
#tc-root .tcfl-n b { color: #e9ecf2; font-weight: 700; }
#tc-root .tcfl-clear { display: inline-flex; align-items: center; gap: 5px; height: 30px; min-height: 0; margin: 0; padding: 0 10px !important; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(228,174,57,.1); color: #f6dc8f; font: 700 13.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
#tc-root .tcfl-clear:hover { background: rgba(228,174,57,.18); color: #ffe9ad; }
#tc-root .tcfl-clear .tcab-i { width: 13px; height: 13px; opacity: 1; }
/* under the grid */
#tc-root .tcn-stack > .tcfl-tail:empty { display: none; }
#tc-root .tcfl-tail .tc-more { margin: 0 auto; }
#tc-root .tcfl-none { display: grid; justify-items: center; gap: 12px; padding: 34px 16px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.12); text-align: center; color: var(--cx-dim, #8d95a5); font: 500 16px/1.3 "Barlow Condensed", system-ui, sans-serif; }
#tc-root .tcfl-none b { color: #e9ecf2; font-size: 19px; letter-spacing: .02em; }
@media (max-width: 1180px) and (min-width: 768px) { #tc-root .tcfl-sort { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { #tc-root .tcfl-chip, #tc-root .tcfl-sel, #tc-root .tcfl-search input { transition: none; } }
@media (max-width: 767px) {
  #tc-root .tcfl { display: block; padding: 8px; border-radius: 16px; }
  #tc-root .tcfl-head { min-width: 0; }
  #tc-root .tcfl-search input { height: 44px; }
  #tc-root .tcfl-toggle { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; height: 44px; min-height: 0; margin: 0; padding: 0 14px !important; border-radius: 999px; cursor: pointer;
      border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: #e6e9ef; font: 700 14.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  #tc-root .tcfl-toggle .tcab-i { width: 17px; height: 17px; }
  #tc-root .tcfl-toggle[aria-expanded="true"], #tc-root .tcfl.act .tcfl-toggle { color: #f6dc8f; border-color: rgba(228,174,57,.45); background: rgba(228,174,57,.1); }
  #tc-root .tcfl-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-style: normal; font-size: 13px; letter-spacing: 0; color: #1c1405; background: #f0cf78; }
  #tc-root .tcfl-badge[hidden] { display: none; }
  #tc-root .tcfl-body { display: none; }
  #tc-root .tcfl.open .tcfl-body { display: grid; gap: 12px; margin-top: 10px; padding: 12px 2px 2px; border-top: 1px solid rgba(255,255,255,.07); }
  #tc-root .tcfl-sels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #tc-root .tcfl-sel { width: 100%; max-width: none; height: 44px; font-size: 15.5px; }
  #tc-root .tcfl-s-set { grid-column: 1 / -1; }
  #tc-root .tcfl-sort { margin-left: 0; }
  #tc-root .tcfl-br { display: none; }
  #tc-root .tcfl-chips { gap: 7px; }
  #tc-root .tcfl-chip { height: 36px; }
  #tc-root .tcfl-sep { display: none; }
  #tc-root .tcfl-meta { display: none; }
  #tc-root .tcfl.act .tcfl-meta, #tc-root .tcfl.open .tcfl-meta { display: flex; justify-content: space-between; margin: 10px 4px 2px; padding: 0; }
}
.tc-shredding .tc-card.tc-noshred { opacity: .35; filter: grayscale(.7); }

@media (max-width: 560px) {
  .tc-boxart { width: 104px; height: 124px; } .tc-boxart .tc-pk { width: 60px !important; margin-left: -30px; }
  .tc-pick-row { gap: 8px; } .tc-pick-box h3 { font-size: 28px; } .tc-pick-box { padding: 22px 10px; }
  /* phone: lay the card out at full size, then shrink the whole thing (text no longer squeezes) */
  .tc-pick-face { zoom: .58; } .tc-pick-face .tc-card { width: 182px; }
  .tc-unbox-packs { gap: 6px; } .tc-unbox-box .tc-boxart { transform: scale(1.25); }
  .tc-grade { height: 24px; font-size: 15px; line-height: 24px; padding: 0 7px; }
}

/* ═══ layout v3 (11/3): one row of section tabs, only the open section is drawn ═══ */
.tc-tabs-v3 { margin: 4px 0 16px; }
.tc-tabs-v3 button { position: relative; }
.tc-tabs-v3 small.tc-tab-dot { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #ffc44d; color: #1c1405; font-size: 12px; opacity: 1; }
.tc-view > .tc-comm-top { margin-top: 16px; }
.tc-view > .tc-arena { margin-bottom: 16px; }
.tc-wheel-slot:empty { display: none; }
@media (max-width: 760px) {
  .tc-unopened .cx-h { margin: 0 0 4px; }
}

/* "Are You Sure?" (owner 11/3: red & green Yes / No) */
.tc-sure { z-index: 1400; }
.tc-sure-box { width: min(420px, 100%) !important; justify-items: center; text-align: center; }
.tc-sure-box h3 { margin: 0; }
.tc-sure-box p { margin: 0; font-size: 17px; line-height: 1.45; }
.tc-sure-box p small { font-size: 14px; color: #aab3c2; }
.tc-sure-box p b { color: #f6d77a; }
.tc-sure-btns { display: flex; gap: 12px; width: 100%; margin-top: 6px; }
.tc-sure-btns button { flex: 1; height: 50px; padding: 0 !important; border: 0; border-radius: 14px; cursor: pointer; font: 900 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; transition: transform .12s, filter .12s; }
.tc-sure-btns button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.tc-sure-yes { background: linear-gradient(180deg, #34c759, #1f8a3a); box-shadow: 0 8px 22px rgba(52,199,89,.35); }
.tc-sure-no { background: linear-gradient(180deg, #ff4d4d, #c0262d); box-shadow: 0 8px 22px rgba(255,77,77,.3); }

/* tab colors (owner 11/3: "The tabs on desktop need colors for each one … Not just a black & white tab") + a grid on
   phones so every tab is visible without swiping sideways */
.tc-tabs-v3 button { --ta: #c58bff; border-color: color-mix(in srgb, var(--ta) 45%, transparent) !important; color: color-mix(in srgb, var(--ta) 55%, #fff) !important;
  background: color-mix(in srgb, var(--ta) 13%, rgba(255,255,255,.02)) !important; transition: background .15s, transform .12s, box-shadow .15s; }
.tc-tabs-v3 button:hover { background: color-mix(in srgb, var(--ta) 24%, transparent) !important; transform: translateY(-1px); }
.tc-tabs-v3 button.on { color: #fff !important; border-color: transparent !important; background: linear-gradient(135deg, color-mix(in srgb, var(--ta) 85%, #fff), color-mix(in srgb, var(--ta) 70%, #000)) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ta) 40%, transparent); text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.tc-tabs-v3 .tc-t-shop { --ta: #4cc764; } .tc-tabs-v3 .tc-t-free { --ta: #ffc44d; } .tc-tabs-v3 .tc-t-cards { --ta: #c58bff; }
.tc-tabs-v3 .tc-t-binder { --ta: #5ab8ff; } .tc-tabs-v3 .tc-t-market { --ta: #3fd8c4; } .tc-tabs-v3 .tc-t-battles { --ta: #ff8a3d; }
.tc-tabs-v3 .tc-t-duels { --ta: #ff4a3a; } .tc-tabs-v3 .tc-t-trades { --ta: #ff7ad9; } .tc-tabs-v3 .tc-t-leaders { --ta: #f6d77a; } .tc-tabs-v3 .tc-t-missions { --ta: #7ee35a; } .tc-tabs-v3 .tc-t-odds { --ta: #9aa8c2; }
.tc-tabs-v3 button.on small.tc-tab-dot { background: #fff; color: #111; }
.tc-tabs-v3 .tc-t-duels small:empty { display: none; }
.tc-tabs-v3 .tc-t-duels small { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #ff4a2e; color: #fff; font-size: 12px; opacity: 1; }
@media (max-width: 760px) {
  .tc-tabs-v3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 2px 0 14px; }
  .tc-tabs-v3 button { min-width: 0; height: 38px; padding: 0 4px !important; font-size: 14px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 12px; }
  .tc-tabs-v3 small { margin-left: 3px !important; padding: 1px 5px !important; font-size: 11px !important; }
}

/* Weekly Limited + Card of the Day row on the Shop tab (11/3) */
.tc-specials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tc-special { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px; overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), #13151a; border: 1px solid rgba(255,255,255,.1); }
.tc-special.ltd { border-color: rgba(255,138,61,.55); background: radial-gradient(120% 140% at 0% 0%, rgba(255,138,61,.22), transparent 60%), #14110f; }
.tc-special.cotd { border-color: rgba(255,216,74,.55); background: radial-gradient(120% 140% at 0% 0%, rgba(255,216,74,.2), transparent 60%), #14130d; }
.tc-special-card { flex: 0 0 auto; width: 92px; }
.tc-special-card .tc-card { width: 100%; }
.tc-special-txt { display: grid; gap: 4px; min-width: 0; }
.tc-special-txt em { font-style: normal; font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tc-special.ltd em { color: #ffb27a; } .tc-special.cotd em { color: #ffd84a; }
.tc-special-txt b { font: 900 24px/1.05 "Barlow Condensed", sans-serif; color: #fff; }
.tc-special-txt small { color: #b9bfcb; font-size: 14px; line-height: 1.35; }
.tc-cotd-tag { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap; padding: 2px 9px; border-radius: 999px;
  font: 800 12px/1.5 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #1c1405; background: linear-gradient(135deg, #fff3c4, #ffd84a); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
@media (max-width: 560px) {
  .tc-specials { gap: 10px; } .tc-special { padding: 10px; gap: 12px; } .tc-special-card { width: 74px; }
  .tc-special-txt b { font-size: 20px; } .tc-special-txt small { font-size: 13px; }
}

/* Shop "Weekly Limited" / "Card of the Day" panels (owner 11/3: "look wonky"): lay the card out at full size, then
   scale the whole card down so its text isn't crammed into a 92 px box */
.tc-special-card { width: 96px !important; height: 134px; overflow: visible; }
.tc-special-card .tc-card { width: 190px !important; zoom: .505; }
.tc-special { min-height: 158px; }
@media (max-width: 560px) {
  .tc-special-card { width: 80px !important; height: 112px; }
  .tc-special-card .tc-card { zoom: .42; }
  .tc-special { min-height: 132px; }
}

/* (i) guide v3: grouped sections */
.tc-help-box { width: min(760px, 100%) !important; max-height: calc(100vh - 40px - var(--safe-top, 0px)); overflow-y: auto; }
.tc-help-sec { display: grid; gap: 8px; }
.tc-help-sec h4 { margin: 4px 0 0 !important; }
.tc-help-sec .tc-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; }
.tc-help-sec .tc-help-grid > div { display: grid; gap: 2px; font-size: 14.5px; line-height: 1.35; }
.tc-help-sec .tc-help-grid > div > b { color: #fff; font: 800 16px/1.2 "Barlow Condensed", sans-serif; }
.tc-help-sec .tc-help-grid > div > span { color: #b9bfcb; }

/* specials v3: plain transform scale (Safari handles CSS zoom differently: owner 11/3 "still cooked on mobile") */
.tc-special-card { position: relative; width: 96px !important; height: 134px; overflow: hidden; border-radius: 10px; flex: 0 0 auto; }
.tc-special-card .tc-card { zoom: 1 !important; }
.tc-special-scale { position: absolute; top: 0; left: 0; width: 190px; transform: scale(.505); transform-origin: 0 0; }
.tc-special-scale .tc-card { width: 190px !important; }
@media (max-width: 560px) {
  .tc-special-card { width: 80px !important; height: 112px; }
  .tc-special-scale { transform: scale(.421); }
}

/* (i) guide and the other pop-up boxes: always able to reach the ✕ (owner 11/3: "you can't scroll back up & press the X").
   A centered grid that's taller than the screen cuts its top off; start at the top instead, and keep the ✕ pinned. */
.tc-help { place-items: start center !important; overflow-y: auto; overscroll-behavior: contain; }
.tc-help-box { margin: auto 0; max-height: none !important; overflow: visible !important; }
.tc-help-box > .tc-insp-x, .tc-help-box > [data-close].tc-insp-x { position: sticky !important; top: 0; justify-self: end; z-index: 5; margin-bottom: -46px; background: rgba(20,22,28,.92); }

/* locked cards say why (11/3: Coco's card was on the Market) */
.tc-lock-tag { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap; padding: 2px 9px; border-radius: 999px;
  font: 800 12px/1.5 "Barlow Condensed", sans-serif; letter-spacing: .05em; color: #fff; background: #3a3f4a; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
/* owner 11/7: copies already used for a set reward (they won't count for that set again) */
.tc-used-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 6; white-space: nowrap; padding: 2px 9px; border-radius: 999px;
  font: 800 11px/1.5 "Barlow Condensed", sans-serif; letter-spacing: .05em; color: #2a1600; background: linear-gradient(135deg, #d9831f, #f2b45a); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.tc-lock-tag.l-market { background: linear-gradient(135deg, #1f8a7a, #3fd8c4); color: #04201c; }
.tc-lock-tag.l-fwar { background: linear-gradient(135deg, #6a3cff, #a98bff); }
.tc-lock-tag.l-duel { background: linear-gradient(135deg, #c0262d, #ff5a4a); }
/* Binder: cards you don't have can be opened, in black and white */
.tc-miss-wrap { cursor: pointer; }
.tc-miss-wrap:hover .tc-card { transform: translateY(-3px); }
.tc-card.unowned .tc-inner { filter: grayscale(1) brightness(.8) contrast(1.05); }
.tc-card.unowned .tc-glitter, .tc-card.unowned .tc-shine, .tc-card.unowned .tc-glints { display: none; }
.tc-insp-info .tc-insp-note { font-size: 16px !important; color: #b9bfcb !important; font-weight: 600 !important; }
/* Shop specials are tappable */
.tc-special { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tc-special:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
/* ── Afterlife OGs (11/4): Mythic cards with their own look. The worn old photo + gold OG stamp are in the art
   (lib/ogCardArt.js); the card gets an aged-brass frame, cream lettering and no Mythic aurora (lib/cardImage.js matches).
   Foil / Holo / Gold keep their frame colors; Black Diamond, Prismatic and Genesis keep their whole look. ── */
.tc-card.og { --rc: #d9a744; }
.tc-card.og:not(.f-black):not(.f-genesis):not(.f-one) .tc-inner { animation: none; border: 4px solid transparent;
    background: linear-gradient(180deg, #1c150c, #0b0805) padding-box, linear-gradient(135deg, #f6e7b8, #c9a056 22%, #6b4a18 45%, #e8c983 62%, #8a6526 82%, #f3dfa8) border-box;
    box-shadow: inset 0 1px 0 rgba(255,240,200,.35), 0 0 0 1px rgba(217,167,68,.5), 0 0 20px rgba(217,167,68,.3); }
.tc-card.og.f-foil .tc-inner { background: linear-gradient(180deg, #1c150c, #0b0805) padding-box, linear-gradient(125deg, #ffffff, #e6d6b0 20%, #8d7a58 40%, #f5ecd6 58%, #5a4a30 78%, #fffaf0) border-box; }
.tc-card.og.f-holo .tc-inner { background: linear-gradient(180deg, #1c150c, #0b0805) padding-box, conic-gradient(from var(--tc-a), #ff8ad8, #ffd36e, #8affc1, #6ed8ff, #b48aff, #ff8ad8) border-box; animation: tcSpinA 6s linear infinite; }
.tc-card.og.f-gold .tc-inner { background: linear-gradient(180deg, #2a2008, #130e03) padding-box, linear-gradient(135deg, #fff1b8, #f3cf6a 25%, #c99227 50%, #6e4a0c 70%, #e4ae39 85%, #fff1b8) border-box; box-shadow: inset 0 1px 0 rgba(255,240,190,.5), 0 0 24px rgba(255,196,77,.4); }
.tc-card.og:not(.f-black):not(.f-genesis):not(.f-one):not(.f-gold) .tc-name { background: linear-gradient(180deg, #fff6dc, #f0d79a 55%, #d8b066); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.tc-card.og.f-gold .tc-name { background: none; color: #ffe08a; animation: none; }
.tc-card.og:not(.f-black):not(.f-genesis):not(.f-one) .tc-rar { background: linear-gradient(90deg, #f3d68c, #c99a3e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-card.og:not(.f-black):not(.f-genesis):not(.f-one) .tc-top { color: #eedcaa; }
.tc-card.og:not(.f-black):not(.f-genesis):not(.f-one) .tc-edge { background: linear-gradient(135deg, #f6e7b8, #c9a056 35%, #5a3d12 65%, #e8c983); }
.tc-card.og:not(.f-genesis):not(.f-one) .tc-bleed-fade { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 12%, transparent 64%, rgba(11,8,5,.85) 76%, #0b0805 100%); }
.tc-og-note { font-size: 15px; }

/* ── 11/4 round: Lucky Pack Hour banner, bad-luck protection + pack milestones (Shop tab), Binder expand & collapse ── */
.tc-lucky { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 160% at 0% 0%, rgba(61,220,132,.28), transparent 60%), #0e1712; border: 1px solid rgba(61,220,132,.6); box-shadow: 0 0 28px rgba(61,220,132,.18); }
.tc-lucky::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(170,255,200,.16) 50%, transparent 65%); background-size: 260% 100%; animation: tcLuckySweep 4.5s linear infinite; }
@keyframes tcLuckySweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.tc-lucky-ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 10px rgba(61,220,132,.7)); }
.tc-lucky-txt { display: grid; gap: 3px; flex: 1; min-width: 0; }
.tc-lucky-txt em { font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: #8dffb8; }
.tc-lucky-txt b { font: 900 24px/1.05 "Barlow Condensed", sans-serif; color: #fff; }
.tc-lucky-txt small { color: #bfd6c7; font-size: 14px; line-height: 1.35; }
.tc-lucky-t { flex: 0 0 auto; font: 800 22px/1 "Barlow Condensed", sans-serif; color: #c9ffd9; font-variant-numeric: tabular-nums; padding: 8px 12px; border-radius: 12px; background: rgba(61,220,132,.14); border: 1px solid rgba(61,220,132,.4); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .tc-lucky::after { animation: none; } }
@media (max-width: 560px) { .tc-lucky { flex-wrap: wrap; gap: 10px; padding: 10px 12px; } .tc-lucky-ico { font-size: 28px; } .tc-lucky-txt { flex: 1 1 0; } .tc-lucky-txt b { font-size: 21px; } .tc-lucky-t { font-size: 18px; width: 100%; text-align: center; } }

/* Bad-luck protection + Pack milestones (owner 11/4: "Clean these up"): one slim two-part panel. Each half: eyebrow + (i) +
   the count ("7 / 15"), a thin bar, one short line; milestones add an even row of chips with the next one ringed.
   The long explanation sits behind the (i). Phones: the halves stack with a divider. */
.tc-luck { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-bottom: 16px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.012)), #13151a; border: 1px solid rgba(255,255,255,.09); }
.tc-lk { --lk: #8dffb8; --lk2: #2fae69; display: grid; align-content: start; gap: 8px; padding: 12px 16px 13px; min-width: 0; position: relative; }
.tc-lk.ms { --lk: #ffd46a; --lk2: #c98a12; border-left: 1px solid rgba(255,255,255,.08); }
.tc-luck.solo { grid-template-columns: minmax(0, 1fr); }
.tc-lk-h { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tc-lk-h em { font: 800 12.5px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .15em; text-transform: uppercase; color: var(--lk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tc-lk-ico { font-size: 15px; line-height: 1; flex: 0 0 auto; }
.tc-luck .tc-luck-i { flex: 0 0 auto; width: 18px !important; height: 18px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: #c9ced8; font: italic 700 11px/1 Georgia, serif; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
.tc-luck .tc-luck-i:hover, .tc-luck .tc-luck-i[aria-expanded="true"] { border-color: var(--lk); color: var(--lk); background: color-mix(in srgb, var(--lk) 12%, transparent); }
.tc-luck .tc-luck-i:focus-visible { outline: 2px solid var(--lk); outline-offset: 2px; }
.tc-lk-n { margin-left: auto; flex: 0 0 auto; font: 900 24px/.9 "Barlow Condensed", sans-serif; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-lk-n small { font-size: 15px; font-weight: 700; color: #8b919c; margin-left: 3px; }
.tc-lk-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.tc-lk-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lk2), var(--lk)); }
.tc-lk-sub { margin: 0; color: #c3c8d2; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.tc-lk-sub b { color: #fff; font-weight: 700; }
.tc-lk-more { margin: 0; padding: 9px 11px; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); color: #b9bfcb; font-size: 13px; line-height: 1.45; }
.tc-lk-more[hidden] { display: none; }
.tc-lk-chips { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.tc-lk-chips li { min-width: 0; text-align: center; font: 700 12.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; padding: 5px 0; border-radius: 7px; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: #7f8692; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.tc-lk-chips li.done { color: #1c1405; background: linear-gradient(135deg, #fff3c4, #ffd46a); border-color: transparent; }
.tc-lk-chips li.next { color: #ffe39a; background: rgba(255,212,106,.1); border-color: rgba(255,212,106,.75); box-shadow: 0 0 12px rgba(255,212,106,.22); }
.tc-lk.pity.ready { background: radial-gradient(120% 160% at 0% 0%, rgba(61,220,132,.18), transparent 60%); }
.tc-lk.pity.ready .tc-lk-sub { color: #c9ffd9; }
.tc-pity-note { font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: none; color: #8dffb8; margin-left: 6px; }
@media (max-width: 680px) {
  .tc-luck { grid-template-columns: minmax(0, 1fr); }
  .tc-lk { padding: 11px 13px 12px; gap: 7px; }
  .tc-lk.ms { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .tc-lk-n { font-size: 22px; }
  .tc-lk-sub { font-size: 13px; }
  .tc-lk-chips li { font-size: 12px; padding: 5px 0; }
}
@media (max-width: 560px) { .tc-pity-note { display: block; margin: 6px 0 0; } }

/* pack opening: bad-luck protection / Lucky Hour tags above the cards */
.tc-opentags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tc-opentags span { font: 800 15px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; color: #04170c; background: linear-gradient(135deg, #c9ffd9, #3ddc84); box-shadow: 0 0 22px rgba(61,220,132,.45); animation: tcTagIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.tc-opentags span.mstone { color: #1c1405; background: linear-gradient(135deg, #fff3c4, #ffd46a); box-shadow: 0 0 22px rgba(255,212,106,.45); }
@keyframes tcTagIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@media (max-width: 560px) { .tc-opentags span { font-size: 13px; padding: 6px 10px; } }

/* Binder: expand & collapse each set (header button) + Expand all / Collapse all */
.tc-fold-bar { margin-bottom: 18px; }
.tc-fold-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 !important; height: auto !important; min-height: 0 !important; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; box-shadow: none; }
.tc-fold-btn:hover b { color: #e2c8ff; }
.tc-fold-btn:focus-visible { outline: 2px solid #c58bff; outline-offset: 4px; border-radius: 6px; }
.tc-fold-chev { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: transform .2s ease, background .2s; }
.tc-fold-chev::before { content: ""; width: 7px; height: 7px; border-right: 2px solid #e6e9ef; border-bottom: 2px solid #e6e9ef; transform: translateY(-2px) rotate(45deg); }
.tc-set.folded .tc-fold-chev { transform: rotate(-90deg); }
.tc-set.folded { margin-bottom: 14px; }
.tc-set.folded > :not(.tc-set-h) { display: none !important; }
/* Binder virtual grids (cards.js vgFill, 11/4 phone crash): fixed card-size slots; a card is only built near the screen */
.tc-vslot { aspect-ratio: 5 / 7; min-width: 0; }
.tc-vslot:empty { border-radius: 14px; background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.05); }

/* ═════ 1 of 1 (owner 11/4, after all 5 Genesis were found): every Legendary / Mythic card has exactly ONE copy in this
   finish, ever. Its own look, apart from Genesis (white-gold pearl), Prismatic (rainbow gem), Black Diamond (black chrome),
   Gold and Holo: a deep ruby metallic card with a molten-gold edge, like a superfractor 1/1.
   · living ruby-and-gold metal frame (slow turn) + a gold inner hairline (.tc-inner::after, drawn over full-art too)
   · oxblood stock with a faint engraved guilloche, a ruby glow behind the art; the art itself stays untouched
   · one slow light sweep (.tc-one::before, transform only = GPU) + a warm sheen that follows the light (.tc-shine)
   · fine gold flecks near the light, warm star glints
   · a gold-foil "1 OF 1" stamp with the letters struck in ruby (top right, where every finish plate sits)
   Grid cards stay flat; on phones / pickers the sweep and the frame turn are off. ═════ */
.tc-card.f-one { --rc: #e23a52; }
.tc-card.f-one .tc-inner { border: 5px solid transparent !important;
    background: radial-gradient(110% 60% at 50% 0%, rgba(255,92,112,.20), transparent 62%) padding-box,
        repeating-radial-gradient(circle at 50% 36%, rgba(255,206,140,.05) 0 1px, transparent 1.5px 6px) padding-box,
        linear-gradient(172deg, #3c0811 0%, #22040b 42%, #120206 76%, #0b0104 100%) padding-box,
        conic-gradient(from var(--tc-a), #fff1cf, #e7a93b 5%, #7c430b 10%, #4a0410 15%, #b3142d 22%, #ff5a6f 27%, #ffc2c8 29%, #a40f27 33%, #3a030c 40%, #8c0c20 47%, #e9a640 53%, #fff6de 56%, #c7861d 60%, #5a0512 67%, #c8193a 75%, #ff6f80 79%, #7a0718 85%, #d89a34 93%, #fff1cf) border-box !important;
    box-shadow: inset 0 0 0 1px rgba(255,214,150,.55), inset 0 0 28px rgba(0,0,0,.75), 0 0 0 1px rgba(255,196,120,.8), 0 0 20px rgba(226,40,66,.5), 0 0 46px rgba(255,170,90,.2) !important;
    animation: tcSpinA 10s linear infinite !important; }
.tc-grid .tc-card.f-one .tc-inner { box-shadow: inset 0 0 0 1px rgba(255,214,150,.55), inset 0 0 24px rgba(0,0,0,.7),
        0 2px 0 0 #ffe3b0, 0 3px 0 0 #c98a2a, 0 5px 0 0 #8c1426, 0 7px 0 0 #3d0610, 0 18px 22px -8px rgba(0,0,0,.7), 0 0 20px rgba(226,40,66,.45) !important; }
.tc-card.f-one .tc-edge { background: linear-gradient(135deg, #ffe7b8, #c98a2a 30%, #8c1426 55%, #3d0610 75%, #e9b25a) !important; }
/* the gold inner hairline (sits over full-art pictures as well) */
.tc-card.f-one .tc-inner::after { content: ""; position: absolute; inset: 3px; z-index: 5; pointer-events: none; border-radius: 12px; border: 1.5px solid transparent;
    background: linear-gradient(160deg, #fff4d6, #d9982e 28%, #fff0c4 50%, #a8661a 74%, #ffe6a8) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
/* art window: ruby light behind the item, gold rim */
.tc-card.f-one:not(.s-full) .tc-art { border: 1px solid rgba(240,182,96,.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 0 26px rgba(0,0,0,.85), 0 0 0 1px rgba(60,4,12,.8);
    background: radial-gradient(56% 50% at 50% 52%, rgba(255,86,106,.42), rgba(150,14,36,.28) 46%, transparent 76%), linear-gradient(180deg, #1a030a, #070103) !important; }
.tc-card.f-one.s-portrait .tc-art { background: radial-gradient(60% 55% at 50% 40%, rgba(255,86,106,.5), rgba(140,12,32,.3) 50%, transparent 78%), linear-gradient(180deg, #1a030a, #070103) !important; }
.tc-card.f-one .tc-art img { filter: drop-shadow(0 8px 12px rgba(0,0,0,.8)) drop-shadow(0 0 1px rgba(255,236,200,.8)) saturate(1.15) contrast(1.06); }
.tc-card.f-one .tc-avatar { border-color: #f0c070; box-shadow: 0 0 0 2px #7a0a1c, 0 0 24px rgba(255,70,90,.7); }
.tc-card.f-one.s-full .tc-bleed-fade { background: linear-gradient(180deg, rgba(40,3,10,.55) 0%, transparent 16%, transparent 50%, rgba(34,3,10,.9) 76%, #120206 100%); }
/* one slow light sweep across the card: a warm white band with a ruby edge (transform only) */
.tc-one { position: absolute !important; inset: 0; z-index: 2 !important; pointer-events: none; border-radius: inherit; overflow: hidden; mix-blend-mode: soft-light; }
.tc-one::before { content: ""; position: absolute; top: -25%; bottom: -25%; left: -70%; width: 55%;
    background: linear-gradient(100deg, transparent 0%, rgba(255,214,170,.0) 20%, rgba(255,244,222,.95) 46%, rgba(255,198,120,.7) 54%, rgba(255,70,96,.45) 62%, transparent 82%);
    transform: skewX(-16deg) translateX(0); animation: tcOneSweep 8s cubic-bezier(.45,.05,.4,1) infinite; }
@keyframes tcOneSweep { 0%, 58% { transform: skewX(-16deg) translateX(0); } 100% { transform: skewX(-16deg) translateX(390%); } }
/* warm sheen that follows the light (pointer / idle drift) */
.tc-card.f-one .tc-shine { z-index: 2; background: linear-gradient(115deg, transparent 30%, rgba(255,226,180,.55) 44%, rgba(255,120,130,.35) 52%, transparent 64%);
    background-size: 260% 260%; background-position: var(--mx, var(--ix)) var(--my, var(--iy)); mix-blend-mode: overlay; opacity: .9; -webkit-mask: none; mask: none; animation: none; }
/* fine gold flecks, brightest near the light */
.tc-card.f-one .tc-glitter { background: url(/assets/cards/gold-dust.webp?v=1) var(--gx, 0px) var(--gy, 0px) / 230px 230px repeat; mix-blend-mode: screen !important; opacity: .55; filter: none;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.45) 22%, transparent 55%); mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.45) 22%, transparent 55%);
    animation: tcDust 2s ease-in-out infinite; }
.tc-card.f-one .tc-glints b { background: radial-gradient(circle, #fff 0 1.6px, rgba(255,226,180,.9) 2.8px, rgba(255,90,110,.35) 6px, transparent 9px),
    linear-gradient(0deg, transparent 46%, rgba(255,246,228,.95) 50%, transparent 54%), linear-gradient(90deg, transparent 46%, rgba(255,246,228,.95) 50%, transparent 54%); }
/* lettering: molten-gold name, warm gold rarity, white value with a ruby glow */
.tc-card.f-one .tc-top { color: #f6cf8e; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.tc-card.f-one .tc-name { background: linear-gradient(180deg, #fff8e6 12%, #ffd98c 46%, #d98f2a 62%, #ffe9b8 84%); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none; animation: none;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.9)); }
.tc-card.f-one .tc-info { color: #e3c9c4; }
.tc-card.f-one .tc-foot { border-top-color: rgba(240,182,96,.3); }
.tc-card.f-one .tc-rar { background: linear-gradient(90deg, #ffe2a6, #f0b04a, #ffe9c2); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.tc-card.f-one .tc-val { color: #fff; text-shadow: 0 0 10px rgba(255,80,100,.85), 0 1px 2px rgba(0,0,0,.8); }
/* the stamp: gold foil, letters struck in ruby. "1 OF 1" with big numerals and a small OF (like a real 1/1 foil stamp) */
.tc-card.f-one .tc-fin { display: inline-flex; align-items: center; gap: .26em; top: 22px; right: 11px; padding: 3px 8px 2px; border-radius: 5px; white-space: nowrap;
    font: 900 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #6a0716; text-shadow: 0 1px 0 rgba(255,246,220,.75), 0 -1px 0 rgba(80,30,0,.35);
    background: linear-gradient(180deg, #fff7dc 0%, #ffdc86 20%, #e6a53c 46%, #b26b16 52%, #eebb55 74%, #fff1c6 100%);
    border: 1px solid #6b3606; box-shadow: 0 0 0 1px rgba(255,232,180,.55), 0 3px 10px rgba(0,0,0,.65), 0 0 14px rgba(255,170,80,.55), inset 0 1px 0 rgba(255,255,255,.85), inset 0 -1px 0 rgba(90,40,0,.45); }
.tc-card.f-one .tc-fin b { font: inherit; font-size: 1.32em; line-height: .9; }
.tc-card.f-one .tc-fin small { font: 900 .62em/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; margin-right: -.12em; }
.tc-card.f-one.s-full .tc-fin { top: 26px; right: 13px; }
.tc-grid .tc-card.f-one .tc-fin, .tc-slot .tc-card.f-one .tc-fin, .tc-fan-card .tc-card.f-one .tc-fin { font-size: 13px !important; padding: 2px 7px 1px; right: 8px; top: 20px; }
.tc-grid.small .tc-card.f-one .tc-fin, .tc-tgrid .tc-card.f-one .tc-fin { font-size: 11px !important; padding: 2px 5px 1px; }
/* full-art cards print the set name + number on top: the stamp sits just under it */
.tc-grid .tc-card.f-one.s-full .tc-fin, .tc-slot .tc-card.f-one.s-full .tc-fin { top: 34px; }
.tc-grid.small .tc-card.f-one.s-full .tc-fin { top: 38px; }
.tc-insp .tc-card.f-one .tc-fin { font-size: 18px; padding: 4px 10px 3px; }
@media (max-width: 560px) { .tc-card.f-one .tc-fin { font-size: 12px; right: 8px; } .tc-insp .tc-card.f-one .tc-fin { font-size: 16px; } }
/* the stamp on its own (Binder "1 of 1s found" panel, Odds tile) */
.tc-ones-stamp { display: inline-flex; align-items: center; gap: .26em; padding: 4px 10px 3px; border-radius: 6px; white-space: nowrap; flex: 0 0 auto;
    font: 900 22px/1 "Barlow Condensed", sans-serif; color: #6a0716; text-shadow: 0 1px 0 rgba(255,246,220,.75);
    background: linear-gradient(180deg, #fff7dc 0%, #ffdc86 20%, #e6a53c 46%, #b26b16 52%, #eebb55 74%, #fff1c6 100%);
    border: 1px solid #6b3606; box-shadow: 0 0 0 1px rgba(255,232,180,.5), 0 4px 12px rgba(0,0,0,.6), 0 0 18px rgba(255,170,80,.45), inset 0 1px 0 rgba(255,255,255,.85); }
.tc-ones-stamp b { font: inherit !important; font-size: 1.32em !important; line-height: .9; color: inherit !important; background: none !important; text-shadow: inherit !important; }
.tc-ones-stamp small { font: 900 .62em/1 "Barlow Condensed", sans-serif !important; letter-spacing: .16em; color: inherit !important; margin-right: -.12em; }
.tc-ones-stamp, .tc-ones-stamp * { color: #6a0716 !important; -webkit-text-fill-color: #6a0716 !important; background-clip: border-box !important; -webkit-background-clip: border-box !important; }
.tc-ones-stamp.sm { font-size: 11px; padding: 2px 6px 1px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,232,180,.4), inset 0 1px 0 rgba(255,255,255,.85); }
/* odds tile + (i) guide */
.tc-odds-f.f-one { position: relative; overflow: hidden; border: 1px solid transparent;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255,70,96,.2), transparent 60%) padding-box, linear-gradient(160deg, #24050c, #0e0205) padding-box, linear-gradient(120deg, #7c430b, #ffe2a0, #c8193a, #ff6f80, #e9a640, #7a0718) border-box;
    box-shadow: 0 0 22px -6px rgba(226,40,66,.55); }
.tc-odds-f.f-one > b { display: inline-flex; align-items: center; gap: 8px; color: #ffe6b8; }
.tc-odds-f.f-one > span { color: #ffc9a8; } .tc-odds-f.f-one > small { color: #d1b2ad; }
.tc-help-grid b.f-one, .tc-help-box li b.f-one { display: inline-flex; align-items: center; gap: 8px; }
.tc-help-grid span b.f-one, .tc-help-box li b.f-one { font: inherit; font-weight: 800; background: linear-gradient(90deg, #ffe2a6, #ff5a6f, #f0b04a); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* cost control: the sweep + frame turn only play on the card you're looking at; phones + pickers drop them */
.tc-grid .tc-card.f-one:not(:hover):not(.press) .tc-one::before { animation-play-state: paused; }
.tc-tgrid.lite .tc-one { display: none !important; }
.tc-card.unowned .tc-one { display: none; }
@media (hover: none), (max-width: 760px) { .tc-grid .tc-card.f-one .tc-one, .tc-tray .tc-card.f-one .tc-one { display: none; } .tc-grid .tc-card.f-one .tc-inner { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .tc-one::before { animation: none !important; } }
/* full-screen moment */
.tc-cele.one .tc-cele-in { border: 2px solid transparent; background: radial-gradient(120% 140% at 50% 0%, rgba(255,90,110,.22), transparent 60%) padding-box, linear-gradient(rgba(14,3,6,.88), rgba(14,3,6,.88)) padding-box, linear-gradient(120deg, #7c430b, #ffe2a0, #c8193a, #ff6f80, #e9a640, #fff1cf, #7a0718) border-box;
    box-shadow: 0 0 60px rgba(226,40,66,.65), 0 0 120px rgba(255,170,90,.25); }
.tc-cele.one em { color: #ffd59a; letter-spacing: .22em; }
.tc-cele.one b { background-image: linear-gradient(100deg, #8c0c20, #ff5a6f 18%, #ffe2a0 34%, #fff8e6 44%, #f0b04a 56%, #d4132f 74%, #8c0c20 88%, #ff5a6f); filter: drop-shadow(0 0 22px rgba(255,60,80,.6)); letter-spacing: .08em; }
/* ── Binder: Genesis season tag + earlier seasons, and the "1 of 1s found" panel ── */
.tc-gen-season { display: inline-block; vertical-align: middle; margin: -4px 0 0 10px; padding: 4px 9px 3px; border-radius: 999px; font: 800 13px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase;
    color: #1c1405; background: linear-gradient(180deg, #fff3cc, #e6b450); box-shadow: 0 0 12px rgba(255,200,110,.45); text-shadow: none; }
.tc-gen-past { margin-top: 16px; border-top: 1px solid rgba(255,214,130,.2); padding-top: 12px; }
.tc-gen-past-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tc-gen-past-h b { font: 800 20px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #fff0d2; }
.tc-gen-past-h span { font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #cdb88f; }
@media (max-width: 760px) { .tc-gen-past { margin-top: 12px; padding-top: 10px; } .tc-gen-past-h { margin-bottom: 8px; } .tc-gen-past-h b { font-size: 17px; } }
.tc-ones { margin: 0 0 16px; padding: 14px 18px; border-radius: 18px; position: relative; overflow: hidden;
    background: radial-gradient(60% 140% at 100% 0%, rgba(255,70,96,.16), transparent 60%), linear-gradient(135deg, #22060c, #0d0306 70%);
    border: 1px solid rgba(240,150,110,.45); box-shadow: 0 0 30px -12px rgba(226,40,66,.6), inset 0 1px 0 rgba(255,220,200,.12); }
.tc-ones-head { display: flex; align-items: center; gap: 14px; }
.tc-ones-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tc-ones-txt b { font: 800 22px/1.05 "Barlow Condensed", sans-serif; color: #ffe9cc; }
.tc-ones-txt span { color: #dcc3bd; font-size: 14px; line-height: 1.3; max-width: 680px; }
.tc-ones-head strong { flex: 0 0 auto; font: 800 34px/1 "Barlow Condensed", sans-serif; color: #ffd59a; text-align: right; white-space: nowrap; }
.tc-ones-head strong small { font-size: 16px; color: #cfa996; margin-left: 4px; letter-spacing: .04em; }
.tc-ones-bar { height: 5px; margin: 12px 0 0; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.tc-ones-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8c0c20, #ff5a6f, #f0b04a, #fff1cf); }
.tc-ones-none { margin: 10px 0 0; color: #cfb3ad; font-size: 14px; }
.tc-ones-row.tc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tc-ones-row .tc-card .tc-info { display: none; }
.tc-ones-slot { display: grid; justify-items: center; gap: 3px; text-align: center; min-width: 0; }
.tc-ones-card { width: 100%; max-width: 150px; cursor: pointer; margin-bottom: 4px; }
.tc-ones-slot b { color: #ffe9cc; font: 700 14px/1.2 "Barlow Condensed", sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-ones-slot small { color: #cfb3ad; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .tc-ones { padding: 12px; margin-bottom: 10px; } .tc-ones-head { gap: 10px; } .tc-ones-txt span { display: none; } .tc-ones-txt b { font-size: 18px; }
  .tc-ones-stamp { font-size: 16px; padding: 3px 7px 2px; } .tc-ones-head strong { font-size: 26px; } .tc-ones-head strong small { font-size: 13px; }
  .tc-ones-row.tc-grid { grid-template-columns: repeat(6, 132px); gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tc-ones-slot { scroll-snap-align: start; }
  .tc-gen-season { font-size: 11px; margin-left: 6px; padding: 3px 7px 2px; }
}
/* small cards elsewhere (market / auctions / battles) */
.mk-mini.f-one, .auc-mini.f-one { box-shadow: 0 0 0 1px #f0c070, 0 0 16px rgba(226,40,66,.55); }
.pbt-pull.f-one { box-shadow: inset 0 0 0 1px rgba(240,192,112,.7), 0 0 14px -4px rgba(226,40,66,.8); }

/* ── Pull of the Day (11/4): Shop tab, under Weekly Limited / Card of the Day (cards.js potdHtml). Own prefix: .potd- ── */
.potd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 0 0 16px; padding: 12px 18px 12px 12px;
  border-radius: 18px; position: relative; overflow: hidden; isolation: isolate; min-height: 158px;
  background: radial-gradient(90% 160% at 0% 0%, rgba(255,196,77,.2), transparent 58%), radial-gradient(70% 120% at 100% 100%, rgba(197,139,255,.14), transparent 60%), linear-gradient(160deg, #17140c, #0d0e12 70%);
  border: 1px solid rgba(255,206,110,.5); box-shadow: 0 0 28px -14px rgba(255,190,80,.7), inset 0 1px 0 rgba(255,236,190,.1); }
.potd::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(115deg, transparent 40%, rgba(255,236,190,.07) 48%, transparent 56%); }
.potd-card { position: relative; width: 96px; height: 134px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform .15s; }
.potd-card:hover { transform: translateY(-2px); }
.potd-card:focus-visible, .potd-y:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
.potd-scale { position: absolute; top: 0; left: 0; width: 190px; transform: scale(.505); transform-origin: 0 0; }
.potd-scale .tc-card { width: 190px !important; }
.potd-card.empty { display: grid; place-items: center; cursor: default; border: 2px dashed rgba(255,206,110,.35); background: rgba(255,206,110,.04); }
.potd-card.empty span { font: 900 44px/1 "Barlow Condensed", sans-serif; color: rgba(255,214,130,.4); }
.potd-txt { display: grid; gap: 4px; min-width: 0; }
.potd-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.potd-h em { font-style: normal; font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffd27a; }
.potd-t { padding: 3px 8px 2px; border-radius: 999px; font: 700 12px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #f3e6c4;
  background: rgba(255,206,110,.12); border: 1px solid rgba(255,206,110,.3); white-space: nowrap; }
.potd-t:empty { display: none; }
.potd-txt > b { font: 900 24px/1.05 "Barlow Condensed", sans-serif; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.potd.none .potd-txt > b { color: #d9d3c4; }
.potd-meta { color: #d5d9e2; font-size: 14px; line-height: 1.35; }
.potd-meta strong { color: #fff; font-weight: 700; }
.potd-val { color: #ffd27a; font-weight: 800; }
.potd-sub { color: #a9afbb; font-size: 13px; line-height: 1.35; }
.potd-sub b { color: #e9dcff; font-weight: 700; }
.potd-y { justify-self: start; margin-top: 2px; padding: 3px 9px; border-radius: 8px; font-size: 12.5px; line-height: 1.35; color: #b9bfcb; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.potd-y:hover { color: #e6e9ef; border-color: rgba(255,206,110,.35); }
.potd-y strong { color: #ffe3a3; font-weight: 700; }
.potd-prize { position: relative; display: grid; justify-items: center; flex: 0 0 auto; }
.potd-prize img { width: 64px; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(197,139,255,.35)); transform: rotate(-6deg); }
.potd-prize span { position: absolute; right: -10px; bottom: 4px; padding: 2px 8px 1px; border-radius: 999px; font: 900 16px/1.2 "Barlow Condensed", sans-serif; color: #1c1405;
  background: linear-gradient(135deg, #fff3c4, #ffc94d); box-shadow: 0 4px 10px rgba(0,0,0,.55); }
@media (max-width: 560px) {
  .potd { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 12px 10px 10px; min-height: 132px; margin-bottom: 10px; }
  .potd-card { width: 80px; height: 112px; } .potd-scale { transform: scale(.421); }
  .potd-txt > b { font-size: 20px; } .potd-meta { font-size: 13px; } .potd-sub { font-size: 12px; }
  .potd-prize { position: absolute; top: 8px; right: 10px; } .potd-prize img { width: 30px; } .potd-prize span { font-size: 12px; right: -8px; bottom: -2px; padding: 1px 6px 0; }
  .potd-h { padding-right: 34px; }
}
@media (prefers-reduced-motion: reduce) { .potd-card { transition: none; } }

/* ═══ layout v4 (owner 11/5: "like 12 categories … confusing … on mobile it just gets worse"): 4 main tabs
   (Open · My Cards · Play · Trade) with the old tabs as sub-tabs; Leaderboard / Odds / How it works in the ⓘ More menu.
   Phones: the main tabs become a floating bottom bar, sticky inside #tc-root (never position:fixed under <main>). ═══ */
.tc-head.tcn-head { position: relative; z-index: 40; justify-content: space-between; min-height: 38px; }
.tcn-more { position: relative; }
.tc-head .tcn-more-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; min-height: 0 !important; padding: 0 15px 0 11px !important; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); color: #cfd5df; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.tc-head .tcn-more-btn span { font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: inherit; }
.tc-head .tcn-more-btn .tcn-ico { width: 18px; height: 18px; }
.tc-head .tcn-more-btn:hover, .tc-head .tcn-more-btn[aria-expanded="true"], .tc-head .tcn-more-btn.on { border-color: rgba(197,139,255,.5); background: rgba(197,139,255,.12); color: #fff; }
.tcn-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 268px; display: grid; gap: 2px; padding: 6px; border-radius: 16px;
  background: linear-gradient(180deg, #17181f, #111217); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 44px rgba(0,0,0,.65); }
.tcn-menu[hidden] { display: none; }
.tcn-head .tcn-menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 0 !important; padding: 10px 12px !important; border: 0; border-radius: 11px;
  background: transparent; color: #e8ebf1; text-align: left; cursor: pointer; }
.tcn-head .tcn-menu button:hover, .tcn-head .tcn-menu button:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.tcn-head .tcn-menu i { flex: 0 0 26px; font-style: normal; font-size: 18px; text-align: center; }
.tcn-head .tcn-menu span { display: grid; gap: 3px; color: inherit; font-size: inherit; }
.tcn-head .tcn-menu b { font: 700 17px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .03em; color: #fff; text-transform: none; }
.tcn-head .tcn-menu small { font: 500 13.5px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #8d95a5; text-transform: none; }

/* main tabs (desktop: four tiles; each says what's inside) */
.tcn-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#tc-root .tcn-m { --ta: #c58bff; position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 66px !important; padding: 10px 14px !important;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); color: #cdd3dd;
  text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .12s, box-shadow .15s; }
#tc-root .tcn-m-open { --ta: #ffc44d; } #tc-root .tcn-m-mine { --ta: #c58bff; } #tc-root .tcn-m-play { --ta: #ff6a4a; } #tc-root .tcn-m-trade { --ta: #3fd8c4; }
#tc-root .tcn-m:hover { border-color: color-mix(in srgb, var(--ta) 45%, transparent); }
#tc-root .tcn-m.on { color: #fff; border-color: color-mix(in srgb, var(--ta) 65%, transparent);
  background: radial-gradient(130% 170% at 0% 0%, color-mix(in srgb, var(--ta) 20%, transparent), transparent 62%), #15161c;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ta) 14%, transparent), inset 0 -2px 0 var(--ta); }
.tcn-m-ico { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: color-mix(in srgb, var(--ta) 13%, rgba(255,255,255,.02)); border: 1px solid color-mix(in srgb, var(--ta) 30%, transparent); color: color-mix(in srgb, var(--ta) 80%, #fff); }
.tcn-m.on .tcn-m-ico { background: var(--ta); border-color: transparent; color: #121216; }
.tcn-ico { display: block; width: 22px; height: 22px; }
.tcn-m-txt { display: grid; gap: 4px; min-width: 0; }
.tcn-m-txt b { font: 800 21px/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.tcn-m-txt small { font: 500 13.5px/1.15 "Barlow Condensed", sans-serif; letter-spacing: .03em; color: #8d95a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcn-m.on .tcn-m-txt small { color: color-mix(in srgb, var(--ta) 40%, #c9ced8); }
.tcn-b { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #ffc44d; color: #1c1405;
  font: 800 11.5px/19px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px #0e0f13; }
.tcn-m-play .tcn-b { background: #ff4a2e; color: #fff; }
.tcn-b:empty { display: none; }

/* sub-tabs: one quiet row of pills under the main tabs (the old tab keys, so links and badges still find them) */
#tc-root .tcn-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -8px 0 0; }
#tc-root .tcn-sub button { --ta: #c58bff; position: relative; height: 34px; min-height: 0 !important; padding: 0 15px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
  background: transparent; color: #a3abb8; font: 700 15.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
#tc-root .tcn-sub-open button { --ta: #ffc44d; } #tc-root .tcn-sub-play button { --ta: #ff6a4a; } #tc-root .tcn-sub-trade button { --ta: #3fd8c4; } #tc-root .tcn-sub-more button { --ta: #9aa8c2; }
#tc-root .tcn-sub button:hover { color: #fff; background: rgba(255,255,255,.05); }
#tc-root .tcn-sub button.on { color: #fff; border-color: color-mix(in srgb, var(--ta) 55%, transparent); background: color-mix(in srgb, var(--ta) 15%, transparent); }
#tc-root .tcn-sub small { opacity: 1; margin-left: 6px; }
#tc-root .tcn-sub small.tc-tab-dot { display: inline-block; min-width: 18px; padding: 2px 6px; border-radius: 999px; background: #ffc44d; color: #1c1405; font: 800 11.5px/1.1 system-ui, sans-serif; text-align: center; }
#tc-root .tcn-sub .tc-t-duels small.tc-tab-dot { background: #ff4a2e; color: #fff; }
#tc-root .tcn-sub small.tc-tab-dot:empty { display: none; }
#tc-root .tcn-sub small.tcn-n { color: #7c8493; font: 600 13px/1 "Barlow Condensed", sans-serif; }
#tc-root .tcn-sub button.on small.tcn-n { color: #c9ced8; }

/* each section's panels: one even column, the panels' own outer margins are dropped */
.tcn-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.tcn-stack > * { min-width: 0; margin-top: 0 !important; margin-bottom: 0 !important; }
.tcn-stack > .tcw-slot:empty, .tcn-stack > .tc-wheel-slot:empty, .tcn-stack > #tc-fwar:empty { display: none; }

/* Open → Packs: "Today's hunts", one slim row (each opens Open → Hunts) */
.tcn-hunts { display: grid; gap: 10px; }
.tcn-hunts-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tcn-hunts-h b { font: 800 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8d95a5; }
#tc-root .tcn-link { height: auto; min-height: 0 !important; padding: 0 !important; border: 0; background: none; color: #c9a8ff; font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; cursor: pointer; }
#tc-root .tcn-link:hover { color: #fff; }
.tcn-hunts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
#tc-root .tcn-hunt { --ha: #f6d77a; position: relative; display: grid; gap: 4px; min-width: 0; height: auto; min-height: 0 !important; padding: 12px 36px 12px 14px !important; text-align: left;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.08); box-shadow: inset 3px 0 0 var(--ha); color: #fff; cursor: pointer;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ha) 10%, transparent), rgba(255,255,255,.015) 65%), #121318; transition: border-color .15s, transform .12s; }
#tc-root .tcn-h-wanted { --ha: #ff5a4a; } #tc-root .tcn-h-cotd { --ha: #ffd84a; } #tc-root .tcn-h-ltd { --ha: #ff8a3d; }
#tc-root .tcn-hunt, #tc-root .tcn-hunt * { text-transform: none; }
#tc-root .tcn-hunt em { text-transform: uppercase; }
#tc-root .tcn-hunt:hover { border-color: color-mix(in srgb, var(--ha) 45%, transparent); }
.tcn-hunt em { font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ha); font-style: normal; }
.tcn-hunt b { font: 800 19px/1.1 "Barlow Condensed", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcn-hunt small { font: 500 14px/1.2 "Barlow Condensed", sans-serif; color: #9aa3b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcn-hunt-go { position: absolute; right: 13px; top: 50%; transform: translateY(-52%); font: 400 26px/1 system-ui, sans-serif; color: #5d6573; font-style: normal; }

@media (hover: hover) { #tc-root .tcn-m:hover, #tc-root .tcn-hunt:hover { transform: translateY(-1px); } }
@media (max-width: 1100px) and (min-width: 768px) { .tcn-m-txt small { display: none; } #tc-root .tcn-m { min-height: 56px !important; } }
@media (max-width: 767px) {
  #tc-root { gap: 18px; }
  .tc-head.tcn-head b { font-size: 24px; }
  /* the 4 main tabs live in the fixed bottom bar (#tcn-dock, below) on phones */
  .tcn-main { display: none; }
  /* the page ends above the bar (the footer is the last thing on the page) */
  body.tcn-dock-on .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  body.tcn-dock-on .slv-selbar, body.tcn-dock-on .gift-pop { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  /* sub-tabs: one row that scrolls sideways */
  #tc-root .tcn-sub { flex-wrap: nowrap; overflow-x: auto; margin: -6px -8px 0; padding: 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #tc-root .tcn-sub::-webkit-scrollbar { display: none; }
  #tc-root .tcn-sub button { flex: 0 0 auto; height: 36px; padding: 0 13px !important; font-size: 15.5px; }
  /* My Cards → Collection (11/5): the toolbar becomes the info line + a tidy 2-column button grid
     (Sleeve & Back across the top, Trade Up | Sell; in a mode the gold confirm sits next to Cancel on the last row) */
  #tc-root .tcab { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border-radius: 16px; }
  #tc-root .tcab-info { flex-wrap: wrap; gap: 8px; padding: 0 2px; }
  #tc-root .tcab-txt { font-size: 14px; }
  #tc-root .tcab-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 !important; }
  #tc-root .tcab-acts > * { min-width: 0; }
  #tc-root .tcab-btn { width: 100%; height: 44px; padding: 0 10px !important; font-size: 14.5px; letter-spacing: .06em; }
  #tc-root .tcab-btn > :not(svg) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #tc-root .tcab-slv { grid-column: 1 / -1; justify-content: flex-start; padding: 0 14px 0 8px !important; }
  #tc-root .tcab-slv .slv-bar-txt { flex: 1; }
  #tc-root .tcab-slv .slv-bar-txt small { max-width: none; }
  #tc-root .tcab-slv::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 4px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); opacity: .5; }
  #tc-root .tcab-mode .tcab-info { flex-direction: column; align-items: flex-start; gap: 8px; }
  #tc-root .tcab-sell .tcab-btn { width: 100%; }
  #tc-root .tcab-menu { width: min(300px, calc(100vw - 32px)); }
  #tc-root .tcab-selling .tcab-acts > [data-tc-sellmode] { order: 3; }
  #tc-root .tcab-selling .tcab-acts > [data-tc-sell] { order: 4; }
  #tc-root .tcab-selling .tcab-acts > [data-tc-sellall]:nth-child(2) { grid-column: 1 / -1; }
  #tc-root .tcab-mode .tcab-txt { font-size: 13.5px; }
  .tcn-hunts-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #tc-root .tcn-hunt { padding: 10px 34px 10px 13px !important; }
  .tcn-menu { width: min(268px, calc(100vw - 32px)); }
}

/* phone bottom bar (owner 11/5: "doesn't move up & down, stays at the bottom"): a direct child of <body>, fixed to bottom:0,
   safe-area padding inside. Deliberately plain: no transform, transition, backdrop-filter or viewport-height math, so the
   browser never re-places it while you scroll or the address bar collapses. */
.tcn-dock { display: none; }
@media (max-width: 767px) {
  body.tcn-dock-on .tcn-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.09); border-radius: 18px 18px 0 0;
    background: #0d0d12; box-shadow: 0 -10px 28px rgba(0,0,0,.55); }
  body.tcn-dock-on.tcn-dock-hide .tcn-dock { display: none; }
  .tcn-dock .tcn-m { --ta: #c58bff; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: auto;
    min-height: 58px !important; margin: 0; padding: 5px 2px !important; border: 0; border-radius: 14px; background: transparent; color: #8f97a5; text-align: center; box-shadow: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tcn-dock .tcn-m-open { --ta: #ffc44d; } .tcn-dock .tcn-m-mine { --ta: #c58bff; } .tcn-dock .tcn-m-play { --ta: #ff6a4a; } .tcn-dock .tcn-m-trade { --ta: #3fd8c4; }
  .tcn-dock .tcn-m.on { background: color-mix(in srgb, var(--ta) 12%, transparent); }
  .tcn-dock .tcn-m-ico { width: 30px; height: 28px; border: 0; border-radius: 0; background: transparent; color: #8a92a0; }
  .tcn-dock .tcn-m.on .tcn-m-ico { background: transparent; color: var(--ta); }
  .tcn-dock .tcn-ico { width: 24px; height: 24px; }
  .tcn-dock .tcn-m-txt small { display: none; }
  .tcn-dock .tcn-m-txt b { font-size: 13.5px; letter-spacing: .06em; color: #8f97a5; }
  .tcn-dock .tcn-m.on .tcn-m-txt b { color: #fff; }
  .tcn-dock .tcn-b { top: -3px; right: -10px; min-width: 17px; height: 17px; font-size: 10.5px; line-height: 17px; box-shadow: 0 0 0 2px #0d0d12; }
}

/* ═════ DYING STAR (owner 11/5): the single rarest card in the game, one copy ever (finish "apex"). Its own look, apart from
   Genesis (white-gold pearl) and 1 of 1 (ruby + molten gold): a COLLAPSING STAR.
   · a slow-turning dark-iridescent rim (black violet metal with hot white / ice-blue / magenta light) + an ice hairline
   · the supernova's core glows and slowly pulses; a thin shock ring breathes out from it (transform + opacity only = GPU)
   · star dust drifting near the light only (masked to the core; the dust layer moves, the mask stays)
   · a black-glass plate: ✦ 1 OF 1 | THE RAREST CARD
   Grid cards stay flat and still (the shared grid rules stop every animation); phones / pickers drop dust + ring.
   Reveal: the room goes black, a screen-wide burst (.tc-apex-burst), "DYING STAR · THE RAREST CARD", celebrate(apex). ═════ */
.tc-card.f-apex { --rc: #9fd8ff; }
.tc-card.f-apex .tc-inner { border: 5px solid transparent !important;
    background: linear-gradient(180deg, #0b0618, #020108) padding-box,
        conic-gradient(from var(--tc-a), #ffffff, #8fdcff 6%, #1b0b3a 13%, #ff4fd8 20%, #07040f 28%, #b06bff 36%, #eaf7ff 42%, #2a0f4a 50%, #4f7bff 58%, #05030c 66%, #ff9be8 74%, #1b0b3a 82%, #8fdcff 90%, #ffffff) border-box !important;
    box-shadow: inset 0 0 0 1px rgba(220,240,255,.5), inset 0 0 26px rgba(0,0,0,.7), 0 0 0 1px rgba(200,230,255,.7), 0 0 22px rgba(127,107,255,.55), 0 0 52px rgba(255,79,216,.22) !important;
    animation: tcSpinA 18s linear infinite !important; }
.tc-grid .tc-card.f-apex .tc-inner { box-shadow: inset 0 0 0 1px rgba(220,240,255,.5), inset 0 0 24px rgba(0,0,0,.7),
        0 2px 0 0 #eaf7ff, 0 3px 0 0 #8fdcff, 0 5px 0 0 #4b2a8a, 0 7px 0 0 #120626, 0 18px 22px -8px rgba(0,0,0,.7), 0 0 22px rgba(127,107,255,.5) !important; }
.tc-card.f-apex .tc-edge { background: linear-gradient(135deg, #eaf7ff, #8fdcff 25%, #4b2a8a 50%, #120626 72%, #ff9be8) !important; }
.tc-card.f-apex .tc-inner::after { content: ""; position: absolute; inset: 3px; z-index: 5; pointer-events: none; border-radius: 12px; border: 1.5px solid transparent;
    background: linear-gradient(160deg, #ffffff, #8fdcff 28%, #ff6fe0 55%, #b06bff 78%, #eaf7ff) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; opacity: .85; }
.tc-card.f-apex.s-full .tc-bleed-fade { background: linear-gradient(180deg, rgba(10,4,24,.45) 0%, transparent 14%, transparent 52%, rgba(7,2,16,.9) 76%, #05010c 100%); }
/* the collapsing star: core pulse + shock ring + star dust (all inside .tc-apex, over the art, under the text) */
.tc-apex { position: absolute !important; inset: 0; z-index: 2 !important; pointer-events: none; border-radius: inherit; overflow: hidden; }
.tc-apex > b { position: absolute; display: block; pointer-events: none; }
.tc-apex .ax-core { left: 50%; top: 30%; width: 120%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255,255,255,.72), rgba(223,243,255,.48) 13%, rgba(143,220,255,.26) 30%, rgba(255,79,216,.12) 50%, rgba(42,15,74,0) 72%);
    animation: tcApexPulse 5.5s ease-in-out infinite; }
.tc-apex .ax-ring { left: 50%; top: 30%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    box-shadow: 0 0 0 1.5px rgba(223,243,255,.4), 0 0 16px rgba(143,220,255,.45), inset 0 0 16px rgba(255,111,224,.35); opacity: 0;
    animation: tcApexRing 5.5s cubic-bezier(.2,.6,.3,1) infinite; }
.tc-apex .ax-dust { inset: 0; -webkit-mask: radial-gradient(46% 32% at 50% 30%, #000 0%, rgba(0,0,0,.4) 50%, transparent 85%); mask: radial-gradient(46% 32% at 50% 30%, #000 0%, rgba(0,0,0,.4) 50%, transparent 85%); }
.tc-card.f-apex .tc-glitter { display: none; } /* the Mythic glitter would cover the whole sky: dust only near the light */
.tc-apex .ax-dust > b { position: absolute; inset: -15%; display: block; mix-blend-mode: screen; opacity: .7;
    background: url(/assets/cards/diamond-dust.webp?v=1) 0 0 / 210px 210px repeat; animation: tcApexDrift 24s linear infinite alternate; }
@keyframes tcApexPulse { 0%, 100% { transform: scale(.92); opacity: .78; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes tcApexRing { 0% { transform: scale(.35); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes tcApexDrift { from { transform: translate3d(-4%, -3%, 0); } to { transform: translate3d(4%, 3%, 0); } }
/* cold light that follows the pointer / idle drift, faint dust glitter + cold glints */
.tc-card.f-apex .tc-shine { z-index: 2; background: linear-gradient(115deg, transparent 30%, rgba(244,251,255,.5) 44%, rgba(191,230,255,.32) 50%, rgba(255,111,224,.22) 56%, transparent 66%);
    background-size: 260% 260%; background-position: var(--mx, var(--ix)) var(--my, var(--iy)); mix-blend-mode: overlay; opacity: .9; -webkit-mask: none; mask: none; animation: none; }
.tc-card.f-apex .tc-glints b { background: radial-gradient(circle, #fff 0 1.6px, rgba(223,243,255,.9) 2.8px, rgba(143,220,255,.35) 6px, transparent 9px),
    linear-gradient(0deg, transparent 46%, rgba(240,248,255,.95) 50%, transparent 54%), linear-gradient(90deg, transparent 46%, rgba(240,248,255,.95) 50%, transparent 54%); }
/* lettering: ice-white name, iridescent rarity, white value with a magenta glow */
.tc-card.f-apex .tc-top { color: #cfe9ff; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.tc-card.f-apex .tc-name { background: linear-gradient(180deg, #ffffff 15%, #e3f5ff 45%, #bcc8ff 68%, #ffa6ea 92%); -webkit-background-clip: text; background-clip: text; color: transparent !important; text-shadow: none; animation: none;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); }
.tc-card.f-apex .tc-info { color: #d6dcf2; }
.tc-card.f-apex .tc-foot { border-top-color: rgba(159,216,255,.28); }
.tc-card.f-apex .tc-rar { background: linear-gradient(90deg, #9fd8ff, #ffffff, #ff8ad8); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.tc-card.f-apex .tc-val { color: #fff; text-shadow: 0 0 10px rgba(255,79,216,.85), 0 0 18px rgba(127,107,255,.6), 0 1px 2px rgba(0,0,0,.8); }
/* the plate: black glass, iridescent rim · ✦ 1 OF 1 | THE RAREST CARD */
.tc-card.f-apex .tc-fin { display: inline-flex; align-items: center; gap: 5px; top: 28px; right: 12px; padding: 4px 8px 4px 6px; border-radius: 7px; white-space: nowrap; max-width: calc(100% - 22px);
    font: 800 9.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #d9eeff; text-shadow: 0 0 8px rgba(143,220,255,.6);
    background: linear-gradient(180deg, #1a1030, #06030f 55%, #120a24) padding-box, linear-gradient(90deg, #8fdcff, #ffffff, #ff6fe0, #b06bff, #8fdcff) border-box; border: 1px solid transparent;
    box-shadow: 0 0 0 1px rgba(0,0,0,.75), 0 4px 12px rgba(0,0,0,.6), 0 0 16px rgba(127,107,255,.65), inset 0 1px 0 rgba(234,246,255,.3); }
.tc-card.f-apex .tc-fin b { font: inherit; color: #fff; letter-spacing: .08em; }
.tc-card.f-apex .tc-fin em { font-style: normal; padding-left: 5px; border-left: 1px solid rgba(207,233,255,.4); }
.tc-star4 { display: inline-block; width: 11px; height: 11px; flex: 0 0 auto; background: linear-gradient(135deg, #ffffff, #bfe6ff 50%, #ff9be8);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tc-grid .tc-card.f-apex .tc-fin, .tc-slot .tc-card.f-apex .tc-fin, .tc-fan-card .tc-card.f-apex .tc-fin { font-size: 7.5px !important; letter-spacing: .08em; padding: 3px 6px 3px 5px; gap: 4px; right: 9px; top: 26px; }
.tc-grid .tc-card.f-apex .tc-star4, .tc-slot .tc-card.f-apex .tc-star4 { width: 8px; height: 8px; }
.tc-grid.small .tc-card.f-apex .tc-fin em, .tc-tgrid .tc-card.f-apex .tc-fin em { display: none; } /* small cards: just ✦ 1 OF 1 */
.tc-insp .tc-card.f-apex .tc-fin { font-size: 11px; padding: 5px 10px 5px 8px; gap: 6px; }
.tc-insp .tc-card.f-apex .tc-star4 { width: 13px; height: 13px; }
@media (max-width: 560px) { .tc-card.f-apex .tc-fin { font-size: 8px; letter-spacing: .08em; padding: 3px 6px 3px 5px; gap: 4px; right: 9px; } .tc-insp .tc-card.f-apex .tc-fin { font-size: 10px; } }
/* cost control: grids are still (shared rule) + the core/ring/dust pause off-hover; phones + pickers drop dust and ring */
.tc-grid .tc-card.f-apex:not(:hover):not(.press) .tc-apex b { animation: none !important; }
.tc-tgrid.lite .tc-apex { display: none !important; }
.tc-card.unowned .tc-apex .ax-ring, .tc-card.unowned .tc-apex .ax-dust { display: none; }
@media (hover: none), (max-width: 760px) { .tc-grid .tc-card.f-apex .ax-dust, .tc-grid .tc-card.f-apex .ax-ring, .tc-tray .tc-card.f-apex .ax-dust { display: none; } .tc-grid .tc-card.f-apex .tc-inner { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .tc-apex b, .tc-apexsec-core, .tc-apexsec-dot { animation: none !important; } }
/* small cards elsewhere (market / auctions / battles) */
.mk-mini.f-apex, .auc-mini.f-apex { box-shadow: 0 0 0 1px #cfe9ff, 0 0 16px rgba(127,107,255,.65), 0 0 26px rgba(255,79,216,.3); }
.pbt-pull.f-apex { box-shadow: inset 0 0 0 1px rgba(207,233,255,.8), 0 0 14px -4px rgba(127,107,255,.9); }

/* ── Open → Hunts: "The Rarest Card" (cards.js apexHtml). v2 (owner 11/6: "make the dying star panel pop more … it's the
   rarest card"): deep space lit by the star's own art (blurred), a slow pulsing flare + turning light rays behind the card,
   drifting star dust, a gold "Only 1 will ever exist" stamp and a huge gold value. Locked = the card as a silhouette with only
   the star's light + a holo sheen. CSS only; phones keep it still (no drift / spin / pulse) and so does reduced motion. ── */
.tc-apexsec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 34px; align-items: center; margin: 8px 0 16px; padding: 32px 46px 32px 36px;
    border-radius: 22px; overflow: hidden; isolation: isolate; border: 1px solid transparent;
    background: linear-gradient(#05030c, #05030c) padding-box, linear-gradient(115deg, #dff3ff, #4f7bff 20%, #ff6fe0 44%, #ffd27a 60%, #b06bff 80%, #8fdcff) border-box;
    box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 54px -12px rgba(127,107,255,.8), 0 0 120px -40px rgba(255,79,216,.7), 0 24px 50px -22px rgba(0,0,0,.9); }
.tc-apexsec-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.tc-apexsec-sky > i { position: absolute; display: block; }
/* the star's own sky (the top of its art: just the supernova, never the survivor) on the right, fading out to the left */
.tc-apexsec-sky .ax-bg { top: -6%; bottom: -6%; right: -3%; left: auto; width: 66%; background: var(--ax-art) 32% 0 / 122% auto no-repeat; filter: saturate(1.25) brightness(.62) contrast(1.08);
    -webkit-mask: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 60%), linear-gradient(180deg, #000 55%, transparent 96%); -webkit-mask-composite: source-in;
    mask: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 60%), linear-gradient(180deg, #000 55%, transparent 96%); mask-composite: intersect;
    animation: axDrift 40s ease-in-out infinite alternate; }
/* a faint wash of the same colors across the whole panel, so the left isn't flat black */
.tc-apexsec-sky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 70% at 30% 110%, rgba(255,79,216,.16), transparent 70%), radial-gradient(35% 60% at 10% -10%, rgba(79,123,255,.2), transparent 70%), radial-gradient(30% 60% at 55% 50%, rgba(127,107,255,.1), transparent 70%); }
/* star dust: two tiled layers rising at different speeds (moved by whole tiles, so the loop never jumps) */
.tc-apexsec-sky .ax-dust { left: 0; right: 0; top: 0; height: calc(100% + 360px); will-change: transform; animation: axRise 70s linear infinite;
    background-image: radial-gradient(circle at 22px 38px, rgba(255,255,255,.95) 0 1px, transparent 1.8px), radial-gradient(circle at 128px 14px, rgba(223,243,255,.8) 0 .8px, transparent 1.5px),
        radial-gradient(circle at 92px 120px, rgba(255,255,255,.9) 0 1.3px, transparent 2.2px), radial-gradient(circle at 160px 96px, rgba(255,190,240,.75) 0 .9px, transparent 1.6px),
        radial-gradient(circle at 54px 160px, rgba(191,230,255,.8) 0 .8px, transparent 1.5px);
    background-size: 180px 180px; opacity: .8; }
.tc-apexsec-sky .ax-dust.ax-d2 { height: calc(100% + 520px); animation: axRise2 110s linear infinite; opacity: .55;
    background-image: radial-gradient(circle at 40px 70px, rgba(255,255,255,.9) 0 1.6px, transparent 2.6px), radial-gradient(circle at 200px 30px, rgba(255,210,122,.75) 0 1px, transparent 1.8px),
        radial-gradient(circle at 150px 210px, rgba(223,243,255,.85) 0 1.2px, transparent 2px);
    background-size: 260px 260px; }
/* the star: a pulsing white-blue core with a lens streak, centered behind the card */
.tc-apexsec-sky .ax-flare { right: 166px; top: 50%; width: 620px; height: 620px; translate: 50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255,255,255,.5), rgba(223,243,255,.34) 10%, rgba(143,220,255,.2) 26%, rgba(127,107,255,.14) 44%, rgba(255,79,216,.08) 60%, transparent 74%);
    animation: axPulse 6s ease-in-out infinite; }
.tc-apexsec-sky .ax-flare::before, .tc-apexsec-sky .ax-flare::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; }
.tc-apexsec-sky .ax-flare::before { width: 160%; height: 3px; background: linear-gradient(90deg, transparent, rgba(191,230,255,.25) 30%, rgba(255,255,255,.75) 50%, rgba(191,230,255,.25) 70%, transparent); filter: blur(.5px); }
.tc-apexsec-sky .ax-flare::after { width: 3px; height: 70%; background: linear-gradient(180deg, transparent, rgba(255,190,240,.3) 30%, rgba(255,255,255,.6) 50%, rgba(255,190,240,.3) 70%, transparent); }
/* keeps the left side dark enough to read, and the edges deep */
.tc-apexsec-sky .ax-vig { inset: 0; background: linear-gradient(90deg, rgba(4,2,10,.93) 0%, rgba(4,2,10,.8) 34%, rgba(4,2,10,.35) 62%, rgba(4,2,10,.08) 85%),
    linear-gradient(180deg, rgba(4,2,10,.35), transparent 30%, transparent 70%, rgba(4,2,10,.55)); }

.tc-apexsec-txt { display: grid; gap: 10px; min-width: 0; align-content: center; justify-items: start; }
.tc-apexsec-eye { display: inline-flex; align-items: center; gap: 9px; font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #bfe6ff; font-style: normal;
    text-shadow: 0 0 12px rgba(143,220,255,.6); }
.tc-apexsec-eye .tc-star4 { width: 13px; height: 13px; filter: drop-shadow(0 0 6px #bfe6ff); }
.tc-apexsec-title { font: 900 clamp(48px, 6vw, 78px)/.92 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; padding-bottom: 2px;
    background: linear-gradient(180deg, #ffffff 18%, #e6f6ff 46%, #b9dcff 66%, #ff9be8 96%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 18px rgba(143,220,255,.55)) drop-shadow(0 0 40px rgba(127,107,255,.45)); }
.tc-apexsec-stamp { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 6px; border-radius: 5px; rotate: -1.5deg; white-space: nowrap;
    font: 900 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #241503;
    background: linear-gradient(100deg, #fff1c2, #e8b850 22%, #fffbe9 42%, #f2c766 58%, #b8862b 78%, #fff1c2) 0 0 / 200% 100%;
    box-shadow: 0 0 0 1px rgba(255,241,194,.6), 0 0 22px rgba(255,210,122,.45), 0 6px 14px -6px rgba(0,0,0,.8); animation: axFoil 6s linear infinite; }
.tc-apexsec-stamp::before, .tc-apexsec-stamp::after { content: ""; width: 6px; height: 6px; rotate: 45deg; background: #241503; opacity: .75; }
.tc-apexsec-blurb { color: #d5dbf0; font-size: 15px; line-height: 1.4; max-width: 520px; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.tc-apexsec-status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 0; padding: 8px 16px 7px 13px; border-radius: 999px;
    font: 700 15px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #eaf6ff;
    background: rgba(8,6,22,.66); border: 1px solid rgba(191,230,255,.42); box-shadow: inset 0 0 18px rgba(143,220,255,.12), 0 0 20px -6px rgba(143,220,255,.55); }
.tc-apexsec-status > b { font: 900 17px/1 "Barlow Condensed", sans-serif; color: #fff; padding-left: 10px; border-left: 1px solid rgba(191,230,255,.3); text-shadow: 0 0 10px rgba(191,230,255,.7); }
.tc-apexsec-status > small { font: 600 14px/1 "Barlow Condensed", sans-serif; color: #a9bbdc; letter-spacing: .04em; }
.tc-apexsec-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #dff3ff; box-shadow: 0 0 10px #8fdcff, 0 0 18px #7f6bff; animation: tcApexBlink 2.4s ease-in-out infinite; }
.tc-apexsec-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #bfe6ff; animation: axPing 2.4s ease-out infinite; }
@keyframes tcApexBlink { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.tc-apexsec-who { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 2px; }
.tc-apexsec-who span { display: grid; gap: 1px; min-width: 0; }
.tc-apexsec-who small { color: #a9b6d8; font: 700 11px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.tc-apexsec-who b { color: #fff; font: 800 21px/1.1 "Barlow Condensed", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 12px rgba(191,230,255,.5); }
.tc-apexsec-val { display: grid; gap: 4px; margin-top: 6px; }
.tc-apexsec-val small { color: #a9b6d8; font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .32em; text-transform: uppercase; }
.tc-apexsec-val strong { font: 900 clamp(50px, 6.2vw, 80px)/.92 "Barlow Condensed", sans-serif; letter-spacing: .01em; font-variant-numeric: tabular-nums; padding-bottom: 2px;
    background: linear-gradient(180deg, #ffffff 4%, #fff6d6 30%, #f5d27a 58%, #c08a2a 82%, #ffe9a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)) drop-shadow(0 0 20px rgba(255,210,122,.45)) drop-shadow(0 0 44px rgba(255,79,216,.25)); }

/* the card: light rays turning slowly behind it, a glowing holo edge, floating */
.tc-apexsec-vis { position: relative; display: grid; isolation: isolate; }
.tc-apexsec-vis .ax-halo { position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(223,243,255,.2) 0 3deg, transparent 3deg 15deg);
    -webkit-mask: radial-gradient(closest-side, #000 22%, rgba(0,0,0,.5) 50%, transparent 76%); mask: radial-gradient(closest-side, #000 22%, rgba(0,0,0,.5) 50%, transparent 76%);
    animation: axSpin 90s linear infinite; }
.tc-apexsec-card { width: 100%; cursor: pointer; animation: axFloat 6s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(143,220,255,.5)) drop-shadow(0 0 50px rgba(255,79,216,.3)); }
.tc-apexsec-lock { position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 16px; overflow: hidden; border: 2px solid transparent; animation: axFloat 6s ease-in-out infinite;
    background: linear-gradient(#04020a, #04020a) padding-box, linear-gradient(150deg, #ffffff, #8fdcff 18%, #7f6bff 38%, #ff6fe0 58%, #ffd27a 76%, #dff3ff) border-box;
    box-shadow: 0 0 26px rgba(143,220,255,.6), 0 0 64px rgba(127,107,255,.45), 0 0 110px -20px rgba(255,79,216,.55), 0 30px 40px -16px rgba(0,0,0,.9); }
.tc-apexsec-lock img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.4) contrast(1.35); }
.tc-apexsec-core { position: absolute; left: 50%; top: 28%; width: 125%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(closest-side, rgba(255,255,255,.9), rgba(223,243,255,.55) 10%, rgba(143,220,255,.28) 26%, rgba(255,79,216,.16) 46%, transparent 70%); animation: tcApexPulse 5.5s ease-in-out infinite; }
.tc-apexsec-veil { position: absolute; inset: 8px; border-radius: 10px; border: 1px solid rgba(223,243,255,.3); background: linear-gradient(180deg, transparent 48%, rgba(3,1,8,.78)); }
/* cosmic foil sheen sweeping across the hidden card */
.tc-apexsec-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform; animation: axSheen 5.5s ease-in-out infinite;
    background: linear-gradient(115deg, transparent 32%, rgba(191,230,255,.28) 43%, rgba(255,155,232,.32) 50%, rgba(255,226,140,.26) 56%, transparent 66%); }
.tc-apexsec-q { position: absolute; left: 0; right: 0; top: 54%; translate: 0 -50%; text-align: center; font: 900 92px/1 "Barlow Condensed", sans-serif; color: rgba(236,248,255,.92);
    text-shadow: 0 0 24px rgba(143,220,255,.9), 0 0 50px rgba(127,107,255,.7), 0 0 80px rgba(255,79,216,.4); }
.tc-apexsec-plate { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 4px; border-radius: 6px; white-space: nowrap;
    font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; color: #fff;
    background: linear-gradient(180deg, #1a1030, #06030f) padding-box, linear-gradient(90deg, #8fdcff, #ffffff, #ff6fe0, #b06bff) border-box; border: 1px solid transparent; box-shadow: 0 0 16px rgba(127,107,255,.7); }

@keyframes axDrift { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); } }
@keyframes axRise { to { transform: translate3d(0, -360px, 0); } }
@keyframes axRise2 { to { transform: translate3d(0, -520px, 0); } }
@keyframes axPulse { 0%, 100% { transform: scale(.88); opacity: .72; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes axSpin { to { rotate: 360deg; } }
@keyframes axFloat { 50% { transform: translateY(-7px); } }
@keyframes axSheen { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(110%); } }
@keyframes axPing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes axFoil { to { background-position: -200% 0; } }

@media (max-width: 900px) and (min-width: 761px) { .tc-apexsec { grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; padding: 26px 28px; } .tc-apexsec-sky .ax-flare { right: 123px; } }
@media (max-width: 760px) {
    .tc-apexsec { grid-template-columns: minmax(0, 1fr) 118px; gap: 14px; padding: 20px 16px 20px 18px; margin-bottom: 12px; border-radius: 18px; }
    .tc-apexsec-txt { gap: 8px; }
    .tc-apexsec-eye { font-size: 10.5px; letter-spacing: .14em; gap: 6px; white-space: nowrap; }
    .tc-apexsec-sky .ax-bg { width: 100%; right: 0; background-size: 150% auto; background-position: 40% 0; } .tc-apexsec-eye .tc-star4 { width: 10px; height: 10px; }
    .tc-apexsec-title { font-size: 40px; }
    .tc-apexsec-stamp { font-size: 11px; letter-spacing: .16em; padding: 6px 10px 5px; gap: 6px; } .tc-apexsec-stamp::before, .tc-apexsec-stamp::after { width: 5px; height: 5px; }
    .tc-apexsec-blurb { font-size: 13.5px; }
    .tc-apexsec-status { font-size: 13px; padding: 6px 12px 5px 10px; gap: 3px 8px; } .tc-apexsec-status > b { font-size: 14.5px; padding-left: 8px; } .tc-apexsec-status > small { font-size: 12.5px; }
    .tc-apexsec-val strong { font-size: 38px; }
    .tc-apexsec-who b { font-size: 17px; }
    .tc-apexsec-q { font-size: 50px; } .tc-apexsec-plate { bottom: 9px; font-size: 9.5px; padding: 4px 7px 3px; gap: 4px; } .tc-apexsec-plate .tc-star4 { width: 8px; height: 8px; }
    .tc-apexsec-lock { border-radius: 12px; } .tc-apexsec-veil { inset: 5px; border-radius: 8px; }
    /* the found card: drawn at its normal 190px size and scaled down, so its text fits like everywhere else */
    .tc-apexsec-card { width: 118px; height: 165px; } .tc-apexsec-card > .tc-card { width: 190px !important; transform: scale(.621); transform-origin: 0 0; }
    .tc-apexsec-sky .ax-flare { right: 75px; width: 380px; height: 380px; }
    .tc-apexsec-sky .ax-vig { background: linear-gradient(90deg, rgba(4,2,10,.9) 0%, rgba(4,2,10,.72) 50%, rgba(4,2,10,.3) 80%, rgba(4,2,10,.15)), linear-gradient(180deg, rgba(4,2,10,.3), transparent 30%, transparent 70%, rgba(4,2,10,.5)); }
    /* phones: everything holds still except the small sheen + dot */
    .tc-apexsec-sky .ax-bg, .tc-apexsec-sky .ax-dust, .tc-apexsec-sky .ax-flare, .tc-apexsec-vis .ax-halo, .tc-apexsec-core, .tc-apexsec-lock, .tc-apexsec-card, .tc-apexsec-stamp { animation: none; }
    .tc-apexsec-sky .ax-dust.ax-d2 { display: none; }
}
@media (max-width: 380px) { .tc-apexsec { grid-template-columns: minmax(0, 1fr) 104px; } .tc-apexsec-title { font-size: 36px; } .tc-apexsec-val strong { font-size: 34px; }
    .tc-apexsec-card { width: 104px; height: 146px; } .tc-apexsec-card > .tc-card { transform: scale(.547); } }
@media (prefers-reduced-motion: reduce) { .tc-apexsec *, .tc-apexsec *::before, .tc-apexsec *::after { animation: none !important; } }
/* Odds tile + (i) guide */
.tc-odds-f.f-apex { position: relative; overflow: hidden; border: 1px solid transparent;
    background: radial-gradient(120% 90% at 0% 0%, rgba(143,220,255,.18), transparent 60%) padding-box, linear-gradient(160deg, #140b28, #05030c) padding-box, linear-gradient(120deg, #8fdcff, #ffffff, #ff6fe0, #b06bff, #4f7bff) border-box;
    box-shadow: 0 0 22px -6px rgba(127,107,255,.65); }
.tc-odds-f.f-apex > b { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(90deg, #ffffff, #bfe6ff, #ffa6ea); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-odds-f.f-apex > b .tc-star4 { width: 14px; height: 14px; }
.tc-odds-f.f-apex > span { color: #d9eeff; } .tc-odds-f.f-apex > small { color: #a9b2cc; }
.tc-help-grid b.f-apex { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 800; background: linear-gradient(90deg, #ffffff, #9fd8ff, #ff8ad8); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ── the reveal: black room while it charges, then a screen-wide burst ── */
.tc-modal.apex-charge .tc-dim { opacity: 1; background: radial-gradient(38% 38% at 50% 42%, rgba(20,10,44,.35), rgba(0,0,0,.97) 72%); transition: opacity 1.1s ease; }
.tc-fc.charge.c-apex .tc-back { animation-duration: .05s; box-shadow: inset 0 0 0 3px #120a22, inset 0 0 0 4px #fff, 0 0 60px #bfe6ff, 0 0 120px #7f6bff, 0 0 200px rgba(255,79,216,.6) !important; }
.tc-apex-burst { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.tc-apex-burst i { position: absolute; display: block; pointer-events: none; }
.axb-flash { inset: 0; background: radial-gradient(circle at 50% 45%, #fff 0, rgba(223,243,255,.92) 16%, rgba(143,220,255,.5) 34%, rgba(127,107,255,.22) 54%, transparent 76%); opacity: 0; animation: axbFlash 1.5s ease-out forwards; }
.axb-ring { left: 50%; top: 45%; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; border-radius: 50%; border: 3px solid rgba(223,243,255,.9);
    box-shadow: 0 0 40px rgba(143,220,255,.8), inset 0 0 40px rgba(255,79,216,.55); opacity: 0; animation: axbRing 1.7s cubic-bezier(.15,.7,.3,1) forwards; }
.axb-ring.r2 { animation-delay: .2s; border-color: rgba(255,111,224,.85); box-shadow: 0 0 40px rgba(255,79,216,.7), inset 0 0 30px rgba(143,220,255,.5); }
.axb-glow { inset: -10%; background: radial-gradient(50% 45% at 50% 45%, rgba(127,107,255,.35), rgba(255,79,216,.14) 50%, transparent 75%); opacity: 0; animation: axbGlow 2.5s ease-out forwards; }
@keyframes axbFlash { 0% { opacity: 0; transform: scale(.35); } 10% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes axbRing { 0% { transform: scale(.04); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes axbGlow { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@media (hover: none), (max-width: 760px) { .axb-ring.r2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .tc-apex-burst { display: none; } }
.tc-banner.apex { font-size: clamp(22px, 4.6vw, 42px); letter-spacing: .1em; padding: 0 12px; line-height: 1.05;
    background: linear-gradient(100deg, #ffffff, #bfe6ff 30%, #ffa6ea 55%, #ffffff 78%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
    filter: drop-shadow(0 0 14px rgba(143,220,255,.85)) drop-shadow(0 0 30px rgba(255,79,216,.5)); }
/* full-screen moment: no backdrop blur here (perf), a deeper glass instead */
.tc-cele.apex .tc-cele-in { -webkit-backdrop-filter: none; backdrop-filter: none; border: 2px solid transparent; padding: 22px 40px 24px;
    background: radial-gradient(120% 140% at 50% 0%, rgba(143,220,255,.22), transparent 60%) padding-box, linear-gradient(rgba(6,3,14,.93), rgba(6,3,14,.93)) padding-box, linear-gradient(120deg, #8fdcff, #ffffff, #ff6fe0, #b06bff, #4f7bff, #8fdcff) border-box;
    box-shadow: 0 0 70px rgba(127,107,255,.75), 0 0 150px rgba(255,79,216,.3); }
.tc-cele.apex em { color: #cfe9ff; letter-spacing: .24em; text-align: center; }
.tc-cele.apex b { background-image: linear-gradient(100deg, #8fdcff, #ffffff 22%, #e3f5ff 36%, #ff9be8 52%, #b06bff 66%, #ffffff 82%, #8fdcff); filter: drop-shadow(0 0 24px rgba(143,220,255,.65)); letter-spacing: .06em; }
.tc-cele.apex span { color: #eaf6ff; }
.tc-star4.big { width: 34px; height: 34px; filter: drop-shadow(0 0 10px #bfe6ff) drop-shadow(0 0 22px #7f6bff); }
@media (max-width: 560px) { .tc-cele.apex .tc-cele-in { padding: 16px 18px 18px; margin: 0 12px; } .tc-cele.apex em { font-size: 11px; letter-spacing: .16em; } }

/* ═══ Animated finish (owner 11/5 "Animated finish - YES"; the anim1 demo, section B) ═══════════════════════════════════
   cardHtml adds .tca + .tca-full / .tca-portrait / .tca-item (+ .tca-hot = warm, fiery art) and the layers below. At rest
   it's a STILL frame (static fog / back-light / spotlight, the plate, a spark parked on the frame): no animations, no
   will-change, no filters, canvases 0×0. Everything moves only under .tca-on, which cards.js sets for a card on screen that
   is hovered (PC) or shown big (Inspect, pack reveal, Showcase, Hunts, anything outside a grid), at most 8 at once (phones 3).
   Particles (embers / dust) are one small canvas per playing card, drawn by cards.js. */
@property --tca-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tca-l { position: absolute; pointer-events: none; }
/* the plate: orange, a play mark, a shine that runs across it while the card plays */
.tc-card.f-animated .tc-fin { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; overflow: hidden; isolation: isolate; white-space: nowrap; max-width: calc(100% - 20px); color: #1c1004;
    background: linear-gradient(90deg, #ffe2a8, #ffb35c 55%, #ff8a3d); box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 14px rgba(255,150,70,.4), inset 0 1px 0 rgba(255,255,255,.6); }
.tc-card.f-animated .tc-fin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%) 100% 0 / 250% 100% no-repeat; }
.tc-card.tca-on .tc-fin::after { animation: tcaShine 3.2s ease-in-out infinite; }
.tca-play { display: inline-block; flex: none; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.tc-grid .tc-card.f-animated .tc-fin, .tc-slot .tc-card.f-animated .tc-fin, .tc-fan-card .tc-card.f-animated .tc-fin, .tc-tgrid .tc-card.f-animated .tc-fin { font-size: 8.5px !important; letter-spacing: .08em; padding: 3px 7px 3px 5px; gap: 4px; right: 8px; }
.tc-grid.small .tc-card.f-animated .tc-fin, .tc-tgrid .tc-card.f-animated .tc-fin { font-size: 7.5px !important; padding: 3px 6px 3px 5px; }
.tc-grid .tc-card.f-animated .tca-play, .tc-slot .tc-card.f-animated .tca-play, .tc-tgrid .tc-card.f-animated .tca-play { border-left-width: 5px; border-top-width: 3px; border-bottom-width: 3px; }
.tc-insp .tc-card.f-animated .tc-fin { font-size: 11px; padding: 5px 10px 5px 8px; gap: 6px; }
@media (max-width: 560px) { .tc-card.f-animated .tc-fin { font-size: 8px; letter-spacing: .08em; padding: 3px 6px 3px 5px; gap: 4px; right: 8px; } .tc-insp .tc-card.f-animated .tc-fin { font-size: 10px; } }
/* a spark of light that circles the frame (parked at the top-left corner while still) */
.tca-comet { inset: 0; border-radius: 16px; padding: 3px; transform: translateZ(.6px); -webkit-backface-visibility: hidden; backface-visibility: hidden;
    background: conic-gradient(from var(--tca-a), transparent 0deg 230deg, color-mix(in srgb, var(--rc) 70%, transparent) 290deg, #fff 328deg, rgba(255,255,255,.4) 338deg, transparent 350deg);
    -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); }
.tc-card.r-mythic .tca-comet { padding: 4px; }
.tca-on .tca-comet { animation: tcaSpin 4.8s linear infinite; }
/* a slow band of light across the whole card (not drawn at all while still) */
.tca-sweep { inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; display: none; }
.tca-on .tca-sweep { display: block; }
.tca-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 55%; mix-blend-mode: screen; transform: translateX(-130%) skewX(-8deg);
    background: linear-gradient(100deg, transparent 0%, rgba(255,236,200,.05) 30%, rgba(255,248,232,.24) 50%, rgba(255,236,200,.05) 70%, transparent 100%); }
.tca-on .tca-sweep::before { animation: tcaSweep 7.5s cubic-bezier(.45,0,.25,1) infinite; }
/* rolling fog / smoke: procedural, tileable (two layers at different speeds) */
.tca-smoke { left: 0; right: 0; bottom: 0; height: 46%; overflow: hidden; z-index: 0;
    -webkit-mask: linear-gradient(to top, #000 35%, transparent); mask: linear-gradient(to top, #000 35%, transparent); }
.tca-smoke b { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; background-repeat: repeat-x; background-size: 50% 100%; }
.tca-smoke b:nth-child(1) { opacity: .55; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005 .016' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .86 0 0 0 0 .86 0 0 0 0 .88 0 0 0 1.7 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tca-smoke b:nth-child(2) { opacity: .45; height: 80%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .022' numOctaves='3' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .8 0 0 0 0 .84 0 0 0 1.8 -.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tca-on .tca-smoke b { will-change: transform; animation: tcaDrift 34s linear infinite; }
.tca-on .tca-smoke b:nth-child(2) { animation-duration: 22s; animation-direction: reverse; }
/* full art · warm: campfire smoke sits under the bottom fade (text stays crisp), lit warm from below — colored in the SVG
   itself (no CSS filter); the firelight flickers */
.tca-hot .tca-smoke { height: 62%; bottom: 8%; -webkit-mask: linear-gradient(to top, transparent 0%, #000 30%, #000 45%, transparent 100%); mask: linear-gradient(to top, transparent 0%, #000 30%, #000 45%, transparent 100%); }
.tca-hot .tca-smoke b:nth-child(1) { opacity: .42; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005 .016' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .84 0 0 0 0 .58 0 0 0 0 .4 0 0 0 1.7 -.68'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tca-hot .tca-smoke b:nth-child(2) { opacity: .3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .022' numOctaves='3' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .78 0 0 0 0 .52 0 0 0 0 .36 0 0 0 1.8 -.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.tca-glow { inset: 0; z-index: 0; mix-blend-mode: screen; opacity: .72; background: radial-gradient(42% 30% at var(--fx, 50%) var(--fy, 90%), rgba(255,130,40,.55), rgba(255,90,20,.18) 45%, transparent 75%); }
.tca-on .tca-glow { animation: tcaFlicker 2.6s steps(1, end) infinite; }
.tca-full .tca-fx { inset: 0; width: 100%; height: 100%; z-index: 0; }
/* full art breathes: a slow push-in and drift (parallax) */
.tca-on.tca-full .tc-bleed { transform-origin: 40% 70%; animation: tcaPush 11s ease-in-out infinite alternate; }
/* survivor: breathing, a back-light that pulses with the breath, thin ground fog, dust motes */
.tca-portrait .tc-art > img, .tca-portrait .tc-avatar { position: relative; z-index: 1; }
.tca-back { inset: 0; z-index: 0; mix-blend-mode: screen; opacity: .45; background: radial-gradient(55% 45% at 50% 38%, color-mix(in srgb, var(--rc) 55%, transparent), transparent 72%); }
.tca-portrait .tca-smoke { z-index: 2; height: 42%; -webkit-mask: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 35%, transparent 85%); mask: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 35%, transparent 85%); }
.tca-portrait .tca-smoke b:nth-child(1) { opacity: .34; } .tca-portrait .tca-smoke b:nth-child(2) { opacity: .24; }
.tca-portrait .tca-fx { inset: 0; width: 100%; height: 100%; z-index: 3; }
.tca-on.tca-portrait .tc-art > img, .tca-on.tca-portrait .tc-avatar { transform-origin: 50% 100%; animation: tcaBreathe 4.8s ease-in-out infinite; }
.tca-on .tca-back { animation: tcaPulse 4.8s ease-in-out infinite; }
/* weapon / item: floats on its stand, a glint runs along the metal only, a spotlight sways overhead with dust in the beam */
.tca-item .tc-art > img { position: relative; z-index: 1; }
.tca-beam { left: 6%; right: 6%; top: 0; bottom: 0; z-index: 0; transform-origin: 50% 0; mix-blend-mode: screen; opacity: .8;
    background: radial-gradient(30% 22% at 50% 0%, rgba(255,236,190,.34), transparent 75%), conic-gradient(from 160deg at 50% 0%, rgba(255,226,170,0) 0deg, rgba(255,226,170,.2) 14deg, rgba(255,232,180,.26) 20deg, rgba(255,226,170,.2) 26deg, rgba(255,226,170,0) 40deg, transparent 40deg);
    -webkit-mask: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); mask: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%); }
.tca-on .tca-beam { animation: tcaBeam 9s ease-in-out infinite; }
.tca-gshine { display: none; left: 4%; top: 4%; width: 92%; height: 92%; z-index: 1; transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.07); transition: transform .3s ease; mix-blend-mode: screen;
    -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
    background: linear-gradient(100deg, transparent 38%, rgba(255,250,230,0) 42%, rgba(255,252,240,.95) 50%, rgba(255,250,230,0) 58%, transparent 62%) 100% 0 / 300% 100% no-repeat; }
.tca-on .tca-gshine { display: block; animation: tcaGShine 5.2s ease-in-out infinite, tcaBob 6s ease-in-out infinite; }
.tca-on.tca-item .tc-art > img { animation: tcaBob 6s ease-in-out infinite; }
.tca-item .tca-fx { inset: 0; width: 100%; height: 100%; z-index: 2; }
@keyframes tcaSpin { from { --tca-a: 0deg; } to { --tca-a: 360deg; } }
@keyframes tcaSweep { 0% { transform: translateX(-130%) skewX(-8deg); } 42%, 100% { transform: translateX(260%) skewX(-8deg); } }
@keyframes tcaDrift { to { transform: translateX(-50%); } }
@keyframes tcaFlicker { 0% { opacity: .65; } 6% { opacity: .9; } 11% { opacity: .55; } 19% { opacity: .8; } 27% { opacity: .62; } 36% { opacity: 1; } 44% { opacity: .7; } 52% { opacity: .85; } 63% { opacity: .58; } 71% { opacity: .92; } 80% { opacity: .66; } 90% { opacity: .82; } }
@keyframes tcaPush { from { scale: 1; translate: 0 0; } to { scale: 1.05; translate: -1.4% -1%; } }
@keyframes tcaBreathe { 0%, 100% { scale: 1 1; translate: 0 0; } 45% { scale: 1.012 1.022; translate: 0 -.8%; } }
@keyframes tcaPulse { 0%, 100% { opacity: .25; } 45% { opacity: .75; } }
@keyframes tcaBob { 0%, 100% { translate: 0 2px; rotate: .5deg; } 50% { translate: 0 -5px; rotate: -.7deg; } }
@keyframes tcaGShine { 0% { background-position: 100% 0; } 38%, 100% { background-position: 0% 0; } }
@keyframes tcaShine { 0% { background-position: 100% 0; } 38%, 100% { background-position: 0% 0; } }
@keyframes tcaBeam { 0%, 100% { rotate: -5deg; opacity: .7; } 50% { rotate: 5deg; opacity: 1; } }
/* phones: one fog layer */
@media (hover: none) { .tca-smoke b:nth-child(2) { display: none; } }
@media (prefers-reduced-motion: reduce) { .tca-on:not(.tc-insp *) *, .tca-on:not(.tc-insp *) *::before, .tca-on:not(.tc-insp *) *::after { animation: none !important; } } /* Inspect still plays (11/5) */
/* reveal banner (orange-amber, its own tier), Odds tile, (i) guide */
.tc-banner.anim { background: linear-gradient(100deg, #fff1d6, #ffc46b 32%, #ff8a3d 62%, #ffe2a8); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(255,150,60,.85)) drop-shadow(0 0 28px rgba(255,110,30,.45)); }
.tc-odds-f.f-animated b, .tc-help-box b.f-animated { display: inline-flex; align-items: center; gap: 6px; color: #ffb35c; }
.tc-odds-f.f-animated { border-color: rgba(255,150,70,.35); background: radial-gradient(120% 90% at 0% 0%, rgba(255,140,60,.12), transparent 60%), rgba(255,255,255,.03); }

/* quick sell on the pack reveal (owner 11/5: sell select ones right there) */
.tc-tray.done .tc-slot { position: relative; }
.tc-tray.done .tc-slot.tc-qs-pickable { cursor: pointer; }
.tc-tray.done .tc-slot.tc-qs-pickable::after { content: ""; position: absolute; top: 8px; right: 8px; z-index: 6; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: rgba(10,10,14,.55); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tc-tray.done .tc-slot.tc-qs-on::after { border-color: #ffd36a; background: #e4ae39 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23140d02' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.tc-tray.done .tc-slot.tc-qs-on .tc-inner { box-shadow: 0 0 0 3px #e4ae39, 0 0 22px rgba(228,174,57,.55); }
.tc-tray.done .tc-slot.tc-qs-sold { opacity: .32; filter: grayscale(.85); pointer-events: none; }
.tc-tray.done .tc-slot.tc-qs-dupe::before { content: "DUPE"; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); z-index: 7; padding: 4px 10px; border-radius: 999px; background: #1b1f27; border: 1px solid rgba(255,211,106,.6); font: 800 12px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .14em; color: #ffd36a; box-shadow: 0 3px 10px rgba(0,0,0,.5); pointer-events: none; }
.tc-tray.done .tc-slot.tc-qs-sold::before { content: "SOLD"; position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; font: 800 22px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .18em; color: #fff; text-shadow: 0 2px 10px #000; }

/* ═══ Free tab v2 (owner 11/5 night: "where the pack itself is the attraction") ═══════════════════════════════════════════
   .tcf = one free reward: big pack render on a glow (left), eyebrow + one big number + bar + one line + one button (right).
   --fa = the tile's accent. Phones: same layout, smaller pack. */
.tc-free-grid { gap: 14px; }
.tcf { --fa: #3fd8c4; position: relative; display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 18px 16px 12px; border-radius: 18px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--fa) 38%, transparent); background: radial-gradient(70% 120% at 16% 50%, color-mix(in srgb, var(--fa) 22%, transparent), transparent 70%), linear-gradient(180deg, #15181e, #0f1115); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.tcf.daily { --fa: #c58bff; } .tcf.playtime { --fa: #7ee35a; } .tcf.field { --fa: #9fe0ff; } .tcf.weekly { --fa: #ffc44d; } .tcf.spend { --fa: #ff7ad9; } .tcf.pick { --fa: #ffd84a; } .tcf.community { --fa: #5ab8ff; }
.tcf.wide { grid-column: 1 / -1; }
.tcf-pack { position: relative; width: 100%; aspect-ratio: 560 / 899; display: grid; place-items: center; }
.tcf-pack img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 12px 16px rgba(0,0,0,.55)); transform: rotate(-4deg); transition: transform .3s ease; }
.tcf:hover .tcf-pack img { transform: rotate(-2deg) translateY(-4px); }
.tcf-glow { position: absolute; inset: 10% -8%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--fa) 45%, transparent), transparent 75%); }
.tcf.pick .tcf-pack { aspect-ratio: auto; height: 130px; }
.tcf.pick .tc-pick-mini { z-index: 1; }
.tcf-txt { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.tcf-eye { font: 800 12.5px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .18em; font-style: normal; color: var(--fa); }
.tcf-name { font: 900 22px/1 "Barlow Condensed", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
#tc-root .tcf .tcf-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font: 800 36px/1 "Barlow Condensed", system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px color-mix(in srgb, var(--fa) 45%, transparent); }
#tc-root .tcf .tcf-of { font: 700 16px/1 "Barlow Condensed", system-ui, sans-serif; color: #aeb5c2; letter-spacing: .03em; text-shadow: none; }
.tcf-bar { width: min(300px, 100%); height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.tcf-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--fa) 70%, #fff 0%), var(--fa)); transition: width .5s ease; }
#tc-root .tcf .tcf-sub { font-size: 13.5px !important; line-height: 1.3; color: #aab1be !important; }
#tc-root .tcf .tcf-btn { margin-top: 4px; min-width: 170px; height: 42px; }
#tc-root .tcf .tcf-info { position: absolute; top: 10px; right: 10px; z-index: 3; width: 24px; height: 24px; min-height: 0; padding: 0 !important; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45); background: rgba(0,0,0,.25); color: #e6e9ef; font: 700 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal; text-transform: lowercase; cursor: pointer; }
#tc-root .tcf .tcf-info:hover { border-color: var(--fa); color: var(--fa); }
.tcf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
#tc-root .tcf .tcf-chip { display: grid; justify-items: center; gap: 2px; min-height: 0; padding: 6px 10px !important; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #cfd5df; font: 800 15px/1 "Barlow Condensed", system-ui, sans-serif; cursor: default; }
#tc-root .tcf .tcf-chip small { font: 600 11px/1.1 "Barlow Condensed", system-ui, sans-serif; color: #8e96a4; letter-spacing: .02em; }
#tc-root .tcf .tcf-chip.done { border-color: rgba(126,227,90,.35); color: #9be37f; }
#tc-root .tcf .tcf-chip.ready { cursor: pointer; border-color: #ffd36a; background: rgba(228,174,57,.18); color: #ffd36a; box-shadow: 0 0 14px rgba(228,174,57,.3); }
#tc-root .tcf .tcf-chip.ready small { color: #f0d690; }
/* the (i) pop-up */
.tcf-help .tcf-help-box { width: min(460px, 100%) !important; text-align: left; }
.tcf-help h3 { margin: 0 0 6px; }
.tcf-help .tcf-help-box ul.tcf-rows { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
.tcf-rows li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.tcf-ri { font-size: 22px; line-height: 1.1; text-align: center; }
.tcf-rows b { display: block; font: 800 17px/1.15 "Barlow Condensed", system-ui, sans-serif; color: #fff; }
.tcf-rows small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: #bfc6d2; }
@media (max-width: 760px) {
  .tcf { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 12px 12px 8px; border-radius: 16px; }
  .tcf-name { font-size: 18px; }
  #tc-root .tcf .tcf-big { font-size: 28px; }
  #tc-root .tcf .tcf-of { font-size: 14px; }
  #tc-root .tcf .tcf-sub { font-size: 12.5px !important; }
  #tc-root .tcf .tcf-btn { width: 100%; min-width: 0; height: 38px; }
  .tcf.pick .tcf-pack { height: 100px; }
  .tcf.pick .tc-pick-mini { transform: scale(.85); }
}
@media (prefers-reduced-motion: reduce) { .tcf-pack img { transition: none; } }

/* SUPER RARE (11/5 night): The Furnace, 1 in 1,500 Mythic pulls. A molten ember frame + slow heat shimmer, on top of
   whatever finish it rolled. Grids stay still on phones (the old crash rule); the glow is a static box-shadow there. */
.tc-card.super-rare .tc-inner { box-shadow: 0 0 0 2px #ff8a1e, 0 0 18px rgba(255, 120, 30, .75), 0 0 46px rgba(255, 60, 10, .45) !important; }
.tc-card.super-rare .tc-inner::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: linear-gradient(0deg, rgba(255, 90, 20, .28), transparent 38%), radial-gradient(120% 60% at 50% 105%, rgba(255, 150, 40, .35), transparent 60%); mix-blend-mode: screen; }
.tc-card.super-rare .tc-rar { color: #ffb347 !important; }
.tc-card.super-rare .tc-rar::before { content: "SUPER RARE · "; color: #ff8a1e; font-weight: 800; letter-spacing: .06em; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .tc-card.super-rare .tc-inner { animation: srHeat 3.2s ease-in-out infinite; } }
@keyframes srHeat { 50% { box-shadow: 0 0 0 2px #ffb347, 0 0 26px rgba(255, 140, 40, .9), 0 0 64px rgba(255, 70, 10, .55); } }
/* hero v5 (11/5 night, the 4 packs on the right of the image, no crates): the live card fan sits between the text and the packs on desktop,
   and on phones over the blurred crate on the right, so it never covers the Hype Drop / Black Label packs */
@media (min-width: 761px) { #cases .tc-hero-fan { left: 29.5% !important; width: min(230px, 16%) !important; bottom: 13% !important; } } /* hero v6: 31.5 → 29.5 so the fan clears the Black Label pack */
@media (max-width: 760px) { #cases .tc-hero-fan { left: auto !important; right: 8% !important; width: 36% !important; bottom: 9% !important; } }
/* owner 11/12 ("on the hero for mobile the 3 cards are kinda off, where it says 3/10 prismatic hologr…"): the finish badges sat
   mid-card over the names and "Holographic" got cut → on phones they're small tags in the top corner: gem + 3/10, gem + 7/25, HOLO */
@media (max-width: 760px) {
  #cases .tc-fan-card .tc-fin { top: 6px !important; right: 6px !important; left: auto !important; max-width: none !important; font-size: 0 !important; gap: 3px !important; padding: 2px 5px !important; letter-spacing: .04em !important; }
  #cases .tc-fan-card .tc-fin em { font-size: 7px !important; border: 0 !important; padding-left: 0 !important; letter-spacing: .04em !important; }
  #cases .tc-fan-card .tc-fin .tc-gem { width: 7px !important; height: 7px !important; }
  #cases .tc-fan-card .tc-card.f-holo .tc-fin::after { content: "HOLO"; font-size: 7px; letter-spacing: .12em; }
}
/* Regrade (owner 11/7): the card's Gem Mint chance under the button */
.tc-grade-odds { font: 700 14px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #cfd6e2; } .tc-grade-odds b { color: #ffe08a; font-size: 16px; }

/* "Offer in a trade" player picker (11/7) */
.tco-box { width: min(460px, calc(100vw - 24px)); }
.tco-res { display: grid; gap: 6px; padding: 0 18px 18px; }
.tco-res:empty { display: none; }
.tco-p { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px !important; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #fff; text-align: left; cursor: pointer; }
.tco-p:hover { border-color: rgba(242,195,107,.5); background: rgba(242,195,107,.07); }
.tco-p span { display: grid; gap: 2px; min-width: 0; } .tco-p b { font: 800 16px/1.1 "Barlow Condensed", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tco-p small { font: 600 12px/1.1 "Barlow Condensed", sans-serif; color: #8a929e; }
.tco-p em { flex: none; font: 800 13px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #f2c36b; }
@media (max-width: 560px) { .tco-res { padding: 0 12px 14px; } .tcfd .tco-box input[data-tco-q] { font-size: 16px; } }

/* ── Black Label set (owner 11/7, approved look scratchpad blcards2.html; cards.js cardHtml adds .tc-bl). Black card body,
   gold foil border + an inner gold hairline, "AFTERLIFE ◆ BLACK LABEL" header, the art in a gold-rimmed 15:14 window (= the
   art files) with its number, a gold serif name, a gold rule, rarity + value. Every size is in container units (cqw of
   .tc-inner), so it reads the same in a 150 px grid, the Binder and Inspect. Finishes still show: Foil / Holo / Gold /
   Animated recolor the outer border (the gold hairline stays), Black Diamond / Prismatic / 1 of 1 keep their own stock and
   frame; shine, glitter, glints and Animated layers draw over everything. lib/cardImage.js draws the same frame for Discord. ── */
.tc-card.tc-bl:not(.f-black):not(.f-one) { --rc: #e9c46a; }
.tc-card.tc-bl .tc-inner { container-type: inline-size; display: flex; flex-direction: column; gap: 0; padding: 3% 3% 3.4%; text-align: center; }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-inner { border: 2px solid transparent; animation: none;
    background: radial-gradient(90% 34% at 50% 0%, rgba(233,196,106,.09), transparent 70%) padding-box, linear-gradient(160deg, #1b1813, #050505 55%, #14110b) padding-box,
        linear-gradient(135deg, #4a3612, #b48a34 28%, #2c2109 52%, #d0a648 78%, #3e2d0e) border-box;
    box-shadow: inset 0 0 0 1px rgba(255,220,140,.1), 0 0 0 1px rgba(0,0,0,.55), 0 0 18px rgba(233,196,106,.16); }
.tc-card.tc-bl.f-foil:not(.f-black) .tc-inner { background: linear-gradient(160deg, #1b1813, #050505 55%, #14110b) padding-box,
    linear-gradient(125deg, #ffffff, #c3cbd6 20%, #7d8794 40%, #eef2f7 58%, #4f5764 78%, #fffaf0) border-box; }
.tc-card.tc-bl.f-holo:not(.f-black) .tc-inner { border-width: 3px; animation: tcSpinA 6s linear infinite;
    background: linear-gradient(160deg, #1b1813, #050505 55%, #14110b) padding-box, conic-gradient(from var(--tc-a), #ff8ad8, #ffd36e, #8affc1, #6ed8ff, #b48aff, #ff8ad8) border-box;
    box-shadow: inset 0 0 0 1px rgba(255,220,140,.1), 0 0 18px rgba(180,140,255,.38); }
.tc-card.tc-bl.f-gold:not(.f-black) .tc-inner { border-width: 3px;
    background: radial-gradient(100% 40% at 50% 0%, rgba(255,196,77,.2), transparent 70%) padding-box, linear-gradient(160deg, #2a2008, #0c0904 55%, #1e1606) padding-box,
        linear-gradient(135deg, #fff1b8, #f3cf6a 25%, #c99227 50%, #6e4a0c 70%, #e4ae39 85%, #fff1b8) border-box;
    box-shadow: inset 0 1px 0 rgba(255,240,190,.45), 0 0 26px rgba(255,196,77,.45); }
.tc-card.tc-bl.f-animated:not(.f-black) .tc-inner { box-shadow: inset 0 0 0 1px rgba(255,220,140,.1), 0 0 0 1px rgba(0,0,0,.55), 0 0 22px rgba(255,154,77,.4); }
.tc-grid .tc-card.tc-bl:not(.f-black):not(.f-one) .tc-inner { box-shadow: inset 0 0 0 1px rgba(255,220,140,.1), 0 2px 0 0 #f2d89a, 0 3px 0 0 #b8902f, 0 5px 0 0 #6b5017, 0 7px 0 0 #2a1f08, 0 18px 22px -8px rgba(0,0,0,.7); }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-edge { background: linear-gradient(135deg, #f6e7b8, #c9a056 35%, #3a2a0e 65%, #e8c983); }
/* the gold hairline just inside the border */
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-inner::before { content: ""; position: absolute; inset: 1.1%; z-index: 4; pointer-events: none; border-radius: 12px; border: 1.5px solid transparent;
    background: linear-gradient(135deg, #7a5418, #f7dc8e 25%, #b47c22 50%, #fff1c2 70%, #8a5f1c) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0) border-box; }
/* AFTERLIFE ◆ BLACK LABEL */
.tc-card.tc-bl .tc-top { flex: none; align-items: center; height: 8.4cqw; padding: 0 2.4cqw; font: 700 3.3cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .26em; }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-top { color: #e9c46a; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.tcbl-dia { flex: none; width: 3cqw; height: 3cqw; rotate: 45deg; background: linear-gradient(135deg, #fff6d6, #d9a33a); box-shadow: 0 0 6px rgba(255,214,120,.8); }
.tc-card.tc-bl.f-black .tcbl-dia { background: linear-gradient(135deg, #ffffff, #8fb5ff); box-shadow: 0 0 6px #cfe3ff; }
/* the art window */
.tc-card.tc-bl .tc-art { flex: 0 1 auto; min-height: 0; aspect-ratio: 15 / 14; place-items: stretch; border: 0; border-radius: 2.2cqw; background: #050505; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.tc-card.tc-bl .tc-art > img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.92); }
.tc-card.tc-bl .tc-art::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,214,120,.45);
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.6)), linear-gradient(115deg, transparent 40%, rgba(255,240,200,.14) 50%, transparent 60%); }
.tc-card.tc-bl.f-black .tc-art::after { box-shadow: inset 0 0 0 1px rgba(220,235,255,.45); }
/* the finish plate sits just inside the window's top-right corner, under the header (every finish, every size) */
.tc-card.tc-bl .tc-fin { top: 14.4cqw !important; right: 6cqw !important; }
.tcbl-no { position: absolute; right: 3cqw; bottom: 2.6cqw; z-index: 3; font: 700 3.7cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .12em; color: #f6d892; text-shadow: 0 1px 4px #000; }
/* gold serif name, gold rule, rarity + value */
.tc-card.tc-bl .tc-name { flex: none; margin-top: 4cqw; padding: 0 1cqw; font: 700 7.8cqw/1.1 Georgia, "Times New Roman", serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-name { color: transparent; background: linear-gradient(180deg, #fff4cf, #e7b955 55%, #a87622); -webkit-background-clip: text; background-clip: text; animation: none; text-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.85)); }
.tc-card.tc-bl .tc-info { flex: none; min-height: 0; max-height: 2.6em; overflow: hidden; margin-top: 2.2cqw; padding: 2.6cqw 4cqw 0; font: italic 3.7cqw/1.3 Georgia, "Times New Roman", serif;
    background: linear-gradient(90deg, transparent, #c9963a, transparent) top center / 72% 1px no-repeat; box-sizing: content-box; }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-info { color: #b5a37c; }
.tc-card.tc-bl .tc-foot { flex: none; margin-top: auto; padding: 2cqw 3cqw 0; border-top: 0; }
.tc-card.tc-bl .tc-rar { font: 700 3.4cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .2em; }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-rar { color: #cdb27a; background: none; -webkit-text-fill-color: currentColor; }
.tc-card.tc-bl.r-mythic:not(.f-black):not(.f-one) .tc-rar { color: #ffd6f5; text-shadow: 0 0 8px rgba(255,120,220,.6); }
.tc-card.tc-bl .tc-val { font: 700 4.5cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .03em; }
.tc-card.tc-bl:not(.f-black):not(.f-one) .tc-val { color: #f6d892; }

/* ── Zodiac set (owner 11/8, approved look scratchpad zod/zodiac-v6.html; cards.js cardHtml adds .tc-zd + .zd-<element>). The
   art is the whole card (night sky, gold engraving, constellation, struck-gold medallion: assets/cards/art/zd_*.webp); this
   draws the rest in container units (cqw of .tc-inner), so a 150 px grid card, the Binder and Inspect read the same: an
   element-colored ring with a soft glow + a faint inner hairline + four gold corner ornaments (.tc-inner::before), the
   "AFTERLIFE · ZODIAC · NN/12" header in the element color, the name in big gold serif, the dates, "Cardinal Fire · ruled by
   Mars", then LEGENDARY · value · element badge. Fire orange, Earth gold, Air silver-white, Water cyan. Finishes still show:
   Foil / Holo / Gold recolor the outer edge, Black Diamond / Prismatic / 1 of 1 keep their own stock, edge and name, and the
   shine, glitter, glints and Animated layers draw over the art; the element ring stays on every finish. lib/cardImage.js
   ("zd") draws the same frame for Discord. ── */
.tc-card.tc-zd { --el: #c9b56a; --elg: rgba(201,181,106,.45); }
.tc-card.tc-zd.zd-fire { --el: #ff8a3d; --elg: rgba(255,120,40,.45); }
.tc-card.tc-zd.zd-air { --el: #dfe6ef; --elg: rgba(223,230,239,.4); }
.tc-card.tc-zd.zd-water { --el: #4fd6e8; --elg: rgba(79,214,232,.45); }
.tc-card.tc-zd:not(.f-black):not(.f-one) { --rc: var(--el); }
.tc-card.tc-zd .tc-inner { container-type: inline-size; display: flex; flex-direction: column; gap: 0; padding: 0 0 6.4%; text-align: center; background-color: #04050a; }
/* standard / foil / animated: a dark card edge outside the ring (Holo / Gold / Black Diamond / Prismatic / 1 of 1 bring their own) */
.tc-card.tc-zd:not(.f-holo):not(.f-gold):not(.f-black):not(.f-one) .tc-inner { border-color: #0a0b11; }
.tc-card.tc-zd .tc-bleed-fade { display: none; } /* the art has its own vignette under the name plate */
/* the parallax zoom grows from near the top so the medallion never slides under the header; Animated pushes in around it */
.tc-card.tc-zd .tc-bleed { transform-origin: 50% 18%; }
.tc-card.tc-zd.tca-on.tca-full .tc-bleed { transform-origin: 19% 15%; }
/* the element ring + hairline + gold corners (the corners/hairline SVG is in card coordinates, the ring box = 8..372 × 8..524) */
.tc-card.tc-zd .tc-inner::before { content: ""; position: absolute; inset: 1.5% 2.1%; z-index: 4; pointer-events: none; border-radius: 3.4cqw;
    border: max(1.2px, .58cqw) solid var(--el); box-shadow: 0 0 2.2cqw var(--elg), inset 0 0 2cqw var(--elg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 364 516' preserveAspectRatio='none'%3E%3Crect x='15' y='15' width='350' height='502' rx='9' fill='none' stroke='%23fff' stroke-opacity='.18'/%3E%3Cg fill='none' stroke='%23f3cf7a'%3E%3Cpath d='M22 60V22H60M358 60V22H320M22 472V510H60M358 472V510H320' stroke-width='1.6' opacity='.9'/%3E%3Cpath d='M29 47Q29 29 47 29M351 47Q351 29 333 29M29 485Q29 503 47 503M351 485Q351 503 333 503' opacity='.6'/%3E%3C/g%3E%3Cg fill='%23f3cf7a'%3E%3Ccircle cx='29' cy='29' r='2.2'/%3E%3Ccircle cx='351' cy='29' r='2.2'/%3E%3Ccircle cx='29' cy='503' r='2.2'/%3E%3Ccircle cx='351' cy='503' r='2.2'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat border-box; }
/* AFTERLIFE · ZODIAC · 05/12 */
.tc-card.tc-zd .tc-top { flex: none; justify-content: center; align-items: center; margin-top: 6.6cqw; padding: 0 0 0 .3em; font: 700 2.5cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .3em; color: var(--el); text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.tc-card.tc-zd .tc-top b { font-weight: 700; color: rgba(243,207,122,.85); }
.tc-card.tc-zd .tc-art { flex: 1 1 auto; min-height: 0; border: 0; background: none; }
/* the name: big gold serif, shrunk for the long ones (--zl = letters) so SAGITTARIUS stays inside the ring */
.tc-card.tc-zd .tc-name { flex: none; margin: 0; padding: 0 0 0 .16em; font: 700 min(10cqw, calc(95cqw / var(--zl, 6)))/1.05 Georgia, "Times New Roman", serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.tc-card.tc-zd:not(.f-black):not(.f-one) .tc-name { color: transparent; background: linear-gradient(180deg, #fff8de, #eec76c 55%, #a87a26); -webkit-background-clip: text; background-clip: text; animation: none; text-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.85)); }
/* dates + "Cardinal Fire · ruled by Mars" */
.tc-card.tc-zd .tc-info { flex: none; display: grid; gap: 1.9cqw; min-height: 0; margin-top: 2.2cqw; padding: 0; color: inherit; }
.tc-card.tc-zd .tc-info b { padding-left: .2em; font: 700 3.3cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .2em; color: #efe5cc; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.tc-card.tc-zd .tc-info span { font: italic 3.15cqw/1.1 Georgia, "Times New Roman", serif; letter-spacing: .06em; color: rgba(239,229,204,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 9cqw; }
/* LEGENDARY · value · element badge */
.tc-card.tc-zd .tc-foot { flex: none; justify-content: space-between; align-items: center; gap: 2cqw; margin: 3.4cqw 12.5cqw 0; padding: 0; border: 0; }
.tc-card.tc-zd .tc-rar { font: 700 2.65cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .24em; }
.tc-card.tc-zd:not(.f-black):not(.f-one) .tc-rar { color: #f3cf7a; background: none; -webkit-text-fill-color: currentColor; text-shadow: 0 0 8px rgba(243,207,122,.45); }
.tc-card.tc-zd .tc-val { font: 700 3.4cqw/1 Georgia, "Times New Roman", serif; letter-spacing: .03em; }
.tc-card.tc-zd:not(.f-black):not(.f-one):not(.f-gold) .tc-val { color: #f6e2a8; }
.tczd-el { flex: none; padding: 1.3cqw 2.4cqw 1.3cqw 2.64cqw; border: max(1px, .26cqw) solid var(--el); border-radius: 999px; font: 700 2.65cqw/1 Georgia, "Times New Roman", serif; font-style: normal; letter-spacing: .24em; text-transform: uppercase; color: var(--el); box-shadow: 0 0 2.6cqw var(--elg); background: rgba(4,5,10,.35); }
/* the finish plate sits top-right, level with the medallion (every finish, every size) */
.tc-card.tc-zd .tc-fin { top: 16.5cqw !important; right: 7cqw !important; }
/* small cards (phone grids, small grids, trays): the plate's text doesn't shrink with the card, so it drops just under the
   medallion instead of running into it */
@container (max-width: 230px) { .tc-card.tc-zd .tc-fin { top: 31.5cqw !important; right: 6cqw !important; } }
/* The Typiq Collection pack (11/12): its "cards" are card backs. The back fills the card, its name sits under it; the worn
   one gets a gold ring + check. 20 of them → smaller slots in the result row, no idle wobble (perf). */
.tc-bkcard { border-radius: 9px; }
.tc-bkcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.14); }
.tc-bkcard > b { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); white-space: nowrap; font: 800 13px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #f2dca0; text-shadow: 0 2px 6px #000; }
.tc-fc .tc-bkcard > b, .tc-tray:not(.done) .tc-bkcard > b { display: none; }
.tc-bkcard.tc-bk-top > img { box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 2px #e9c46c, 0 0 28px rgba(233,196,108,.45); }
.tc-typiq .tc-tray.done { row-gap: 40px; max-width: 1100px; margin-inline: auto; }
.tc-typiq .tc-tray.done .tc-slot { width: clamp(96px, 12vw, 150px); animation: none; cursor: pointer; }
.tc-typiq .tc-tray.done .tc-slot:hover .tc-bkcard > img { transform: translateY(-4px); transition: transform .18s ease; }
.tc-typiq .tc-tray.done .tc-slot.tc-bk-on .tc-bkcard > img { box-shadow: 0 0 0 3px #e4ae39, 0 0 22px rgba(228,174,57,.6); }
.tc-typiq .tc-tray.done .tc-slot.tc-bk-on::after { content: ""; position: absolute; top: 6px; right: 6px; z-index: 6; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ffd36a; background: #e4ae39 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23140d02' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 760px) { .tc-typiq .tc-tray.done .tc-slot { width: 28vw; max-width: 130px; } .tc-bkcard > b { font-size: 11px; letter-spacing: .08em; } }
/* Typiq Collection gift pop-up (11/12, cards.js typiqGift): every visit until the pack is ripped. Cheap: one float transform. */
.tqg-ov { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: calc(16px + var(--safe-top, 0px)) 16px 16px; animation: tqgIn .35s ease-out both; }
.tqg-ov.out { animation: tqgOut .26s ease-in both; }
.tqg-dim { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 42%, rgba(30,32,40,.82), rgba(4,5,8,.94)); }
.tqg-box { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; max-width: 420px; }
.tqg-pack { position: relative; width: min(250px, 58vw); aspect-ratio: 560 / 899; padding: 0 !important; border: 0; background: none; cursor: pointer; margin-bottom: 14px; animation: tqgFloat 3.6s ease-in-out infinite; }
.tqg-pack img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 26px 30px rgba(0,0,0,.6)); }
.tqg-glow { position: absolute; inset: -18% -30%; background: radial-gradient(closest-side, rgba(255,236,190,.38), rgba(190,220,255,.16) 55%, transparent); pointer-events: none; }
.tqg-box em { font: 800 13px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .34em; text-transform: uppercase; font-style: normal; color: #e9c46c; }
.tqg-box b { font: 900 34px/1.05 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.tqg-box span { font: 500 15px/1.4 Barlow, system-ui, sans-serif; color: rgba(255,255,255,.75); max-width: 340px; }
.tqg-btns { display: flex; gap: 10px; margin-top: 12px; }
.tqg-x { position: absolute; top: calc(14px + var(--safe-top, 0px)); right: 14px; width: 44px; height: 44px; padding: 0 !important; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10,10,14,.7); color: #fff; font: 600 20px/1 system-ui, sans-serif; cursor: pointer; }
@keyframes tqgIn { from { opacity: 0; } } @keyframes tqgOut { to { opacity: 0; } }
@keyframes tqgFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .tqg-pack { animation: none; } }
/* ═════ HARVEST (owner 11/21, Thanksgiving week Nov 23-30 only; services/cardService.js HARVEST_*): rainbow glitter holo pressed
   into a leaf-foil pattern. assets/cards/harvest-leaves.webp sits under the art, harvest-leaves-hi.webp (overlay) lights up the
   leaves, harvest-leaves-edge.webp etches gold leaf outlines, rainbow bands + heavy glitter follow the light, spinning rainbow
   border, burgundy plate with a rainbow rim "🍁 HARVEST #n". Holo and the rainbow fade out over the bottom text panel.
   GOTCHA: the extra <i> layers collapse to 0 height unless forced (display/position/inset below). */
.f-harvest { --rc: #f0b04a; }
.f-harvest .tc-inner, .f-harvest:hover .tc-inner { border: 6px solid transparent;
    background: url(/assets/cards/harvest-leaves.webp?v=1) center / cover padding-box, linear-gradient(180deg, #0a0604, #000) padding-box,
        conic-gradient(from var(--tc-a), #ff5fbf, #ffd25f, #ff9a3c, #5fffb2, #5fc8ff, #b77bff, #ff5f6d, #ffd25f, #ff5fbf) border-box;
    animation: tcSpinA 5s linear infinite;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), inset 0 0 22px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.55), 0 0 22px rgba(255,170,90,.45), 0 0 46px rgba(190,120,255,.3); }
.f-harvest.s-full .tc-bleed { opacity: .84; filter: contrast(1.1) saturate(1.05); }
.f-harvest .tc-shine { z-index: 2; background: url(/assets/cards/harvest-leaves-hi.webp?v=1) center / cover; mix-blend-mode: overlay; opacity: 1; animation: none; filter: sepia(.4) saturate(1.3) contrast(1.25);
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.9) 30%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.45));
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.9) 30%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.45)); }
.f-harvest .tc-inner > i.hx-edge, .f-harvest .tc-inner > i.hx-sheen { display: block; position: absolute; inset: 0; width: auto; height: auto; z-index: 2; pointer-events: none; border-radius: inherit; }
.f-harvest .tc-inner > i.hx-edge { background: url(/assets/cards/harvest-leaves-edge.webp?v=1) center / cover; mix-blend-mode: screen; opacity: .3;
    -webkit-mask: linear-gradient(#000 60%, transparent 85%); mask: linear-gradient(#000 60%, transparent 85%); }
.f-harvest .tc-inner > i.hx-sheen { background: repeating-linear-gradient(118deg, #ff4fae 0 3.4%, #ffd24f 6.8%, #4fffa8 10.2%, #4fc4ff 13.6%, #a86bff 17%, #ff4fae 20.4%) 0 0 / 220% 220%;
    background-position: calc(var(--mx, var(--ix)) * 1.6) calc(var(--my, var(--iy)) * 1.6); mix-blend-mode: color-dodge; opacity: .3;
    -webkit-mask: radial-gradient(120% 90% at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.18) 100%), linear-gradient(#000 58%, transparent 82%); -webkit-mask-composite: source-in;
    mask: radial-gradient(120% 90% at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.18) 100%) intersect, linear-gradient(#000 58%, transparent 82%); }
.f-harvest .tc-gloss { background: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), rgba(255,236,200,.38), rgba(255,200,120,.12) 18%, transparent 34%); mix-blend-mode: screen; }
.f-harvest .tc-glitter { background-image: url(/assets/cards/glitter.webp?v=2), url(/assets/cards/diamond-dust.webp?v=1); background-size: 260px 260px, 200px 200px; filter: saturate(1.6) brightness(1.1); mix-blend-mode: color-dodge; opacity: .85; animation: none;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.3) 65%, rgba(0,0,0,.2));
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.3) 65%, rgba(0,0,0,.2)); }
.f-harvest .tc-glints b { background: radial-gradient(circle, #fff 0 1.6px, rgba(255,220,150,.9) 2.6px, transparent 6px), linear-gradient(0deg, transparent 46%, rgba(255,245,220,.95) 50%, transparent 54%), linear-gradient(90deg, transparent 46%, rgba(255,245,220,.95) 50%, transparent 54%); }
.f-harvest .tc-name { background: linear-gradient(100deg, #fff 10%, #ffe08a 30%, #ffb3e6 50%, #b3f0ff 70%, #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); text-shadow: none; }
.f-harvest .tc-rar, .f-harvest .tc-top { color: #f6dcb0; }
.f-harvest .tc-fin { display: inline-flex; align-items: center; gap: 6px; top: 26px; right: 12px; padding: 5px 9px 5px 7px; border-radius: 7px; color: #fff0d0; letter-spacing: .16em; white-space: nowrap;
    border: 1px solid transparent; background: linear-gradient(180deg, #4a1208, #1a0503 55%, #2e0a05) padding-box, linear-gradient(90deg, #ff5fbf, #ffd25f, #5fffb2, #5fc8ff, #b77bff) border-box;
    box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0,0,0,.8), 0 0 14px rgba(255,170,70,.5), inset 0 1px 0 rgba(255,220,170,.4); }
.f-harvest .tc-fin .hx-leaf { width: 12px; height: 12px; flex: 0 0 auto; filter: drop-shadow(0 0 4px #ffb04a);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='%23ffd27a' d='M50 4l7 15 11-5-3 18 14-7-4 13 13 3-11 10 5 6-19 3 2 10-14-7v20h-2V73l-14 7 2-10-19-3 5-6-11-10 13-3-4-13 14 7-3-18 11 5z'/></svg>") center / contain no-repeat; }
.f-harvest .tc-fin em { font-style: normal; margin-left: 2px; padding-left: 7px; border-left: 1px solid rgba(255,220,170,.35); color: #fff; letter-spacing: .06em; }
.tc-slot .f-harvest .tc-fin, .tc-grid.small .f-harvest .tc-fin, .tc-fan-card .f-harvest .tc-fin { font-size: 8.5px; letter-spacing: .08em; padding: 4px 6px; gap: 4px; }
@media (max-width: 560px) { .f-harvest .tc-fin { font-size: 8.5px; letter-spacing: .08em; padding: 4px 6px; gap: 4px; right: 8px; } }
/* ═════ CHRISTMAS (owner 11/29 picked look B "Christmas Lights"; Dec 1-25 2026 once he switches it on, services/cardService.js
   XMAS_FIN_*): snowflake foil pressed into the card (assets/cards/xmas-flakes.webp under the art, -hi overlay lit by the light,
   -edge etched outlines), out-of-focus Christmas lights drifting with the light, heavy glitter, snow falling over the card,
   a spinning red / green / gold border and a deep-green enamel plate "❄ CHRISTMAS #n". Never tints the art. */
.f-xmas { --rc: #ff4a4a; }
.f-xmas .tc-inner, .f-xmas:hover .tc-inner { border: 6px solid transparent;
    background: url(/assets/cards/xmas-flakes.webp?v=1) center / cover padding-box, linear-gradient(180deg, #0a0e16, #000) padding-box,
        conic-gradient(from var(--tc-a), #ff2a3c, #ffd25f, #1fd06a, #fff3cf, #ff2a3c, #ffb21e, #19a85a, #ffe9a8, #ff2a3c) border-box;
    animation: tcSpinA 4.5s linear infinite;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 0 0 22px rgba(0,0,0,.85), 0 0 0 1px rgba(255,240,200,.55), 0 0 22px rgba(255,80,80,.4), 0 0 46px rgba(40,210,110,.28); }
.f-xmas.s-full .tc-bleed { opacity: .86; filter: contrast(1.08) saturate(1.05); }
.f-xmas .tc-shine { z-index: 2; background: url(/assets/cards/xmas-flakes-hi.webp?v=1) center / cover; mix-blend-mode: overlay; opacity: 1; animation: none;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.92) 30%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.42));
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.92) 30%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.42)); }
.f-xmas .tc-inner > i.xs-edge, .f-xmas .tc-inner > i.xs-sheen, .f-xmas .tc-inner > i.xs-snow { display: block; position: absolute; inset: 0; width: auto; height: auto; z-index: 2; pointer-events: none; border-radius: inherit; }
.f-xmas .tc-inner > i.xs-edge { background: url(/assets/cards/xmas-flakes-edge.webp?v=1) center / cover; mix-blend-mode: screen; opacity: .5;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 35%, rgba(0,0,0,.25) 75%), linear-gradient(#000 60%, transparent 86%); -webkit-mask-composite: source-in;
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 35%, rgba(0,0,0,.25) 75%) intersect, linear-gradient(#000 60%, transparent 86%); }
/* the holo is a field of out-of-focus Christmas lights that drifts with the light */
.f-xmas .tc-inner > i.xs-sheen { mix-blend-mode: screen; opacity: .9; filter: blur(2px) saturate(1.3);
    background:
        radial-gradient(circle at 12% 18%, rgba(255,60,60,.9) 0 2.2%, transparent 4.5%), radial-gradient(circle at 34% 9%, rgba(255,210,90,.9) 0 1.8%, transparent 4%),
        radial-gradient(circle at 58% 22%, rgba(40,220,110,.85) 0 2.4%, transparent 4.8%), radial-gradient(circle at 82% 12%, rgba(80,150,255,.85) 0 2%, transparent 4.2%),
        radial-gradient(circle at 22% 44%, rgba(40,220,110,.8) 0 1.6%, transparent 3.6%), radial-gradient(circle at 70% 46%, rgba(255,60,60,.85) 0 2.2%, transparent 4.6%),
        radial-gradient(circle at 90% 38%, rgba(255,210,90,.85) 0 1.9%, transparent 4%), radial-gradient(circle at 44% 58%, rgba(80,150,255,.8) 0 1.7%, transparent 3.8%),
        radial-gradient(circle at 8% 66%, rgba(255,210,90,.8) 0 2%, transparent 4.2%), radial-gradient(circle at 62% 70%, rgba(40,220,110,.8) 0 1.6%, transparent 3.6%);
    background-size: 140% 140%; background-position: calc(var(--mx, var(--ix)) * .6) calc(var(--my, var(--iy)) * .6);
    -webkit-mask: radial-gradient(130% 100% at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.25) 100%), linear-gradient(#000 60%, transparent 84%); -webkit-mask-composite: source-in;
    mask: radial-gradient(130% 100% at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.65) 40%, rgba(0,0,0,.25) 100%) intersect, linear-gradient(#000 60%, transparent 84%); }
/* snow drifting down over the card (transform only) */
.f-xmas .tc-inner > i.xs-snow { z-index: 3; overflow: hidden; }
.f-xmas .tc-inner > i.xs-snow::before { content: ""; position: absolute; left: 0; right: 0; top: -100%; height: 200%; opacity: .9;
    background-image: radial-gradient(circle at 23% 31%, #fff 0 1.3px, transparent 2px), radial-gradient(circle at 71% 64%, rgba(255,255,255,.7) 0 .9px, transparent 1.5px), radial-gradient(circle at 46% 12%, rgba(255,255,255,.85) 0 1.8px, transparent 2.6px), radial-gradient(circle at 88% 27%, rgba(255,255,255,.6) 0 .8px, transparent 1.3px), radial-gradient(circle at 9% 83%, rgba(255,255,255,.8) 0 1.1px, transparent 1.8px);
    background-size: 131px 113px, 89px 151px, 173px 127px, 67px 97px, 109px 179px; background-position: 0 0, 37px 52px, 71px 19px, 13px 88px, 53px 41px; animation: xsFall 9s linear infinite; will-change: transform; } /* odd tile sizes + dot positions: no visible grid */
@keyframes xsFall { to { transform: translate(10px, 50%); } }
.f-xmas .tc-gloss { background: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), rgba(255,240,210,.42), rgba(255,200,140,.12) 18%, transparent 34%); mix-blend-mode: screen; }
.f-xmas .tc-glitter { background-image: url(/assets/cards/glitter.webp?v=2), url(/assets/cards/diamond-dust.webp?v=1); background-size: 260px 260px, 200px 200px; filter: saturate(1.8) brightness(1.1); mix-blend-mode: color-dodge; opacity: .85; animation: none;
    -webkit-mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.3) 65%, rgba(0,0,0,.2));
    mask: radial-gradient(circle at var(--mx, var(--ix)) var(--my, var(--iy)), #000 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.3) 65%, rgba(0,0,0,.2)); }
.f-xmas .tc-name { background: linear-gradient(100deg, #fff 10%, #ffe08a 30%, #ff9a9a 50%, #a8f0c4 70%, #fff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); text-shadow: none; }
.f-xmas .tc-rar, .f-xmas .tc-top { color: #ffe6c0; }
.f-xmas .tc-fin { display: inline-flex; align-items: center; gap: 6px; top: 26px; right: 12px; padding: 5px 9px 5px 7px; border-radius: 7px; color: #fff3d6; letter-spacing: .16em; white-space: nowrap;
    border: 1px solid transparent; background: linear-gradient(180deg, #0f4a2a, #05200f 55%, #0b3a20) padding-box, linear-gradient(90deg, #ff2a3c, #ffd25f, #1fd06a, #ffd25f, #ff2a3c) border-box;
    box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0,0,0,.8), 0 0 14px rgba(255,90,90,.45), inset 0 1px 0 rgba(255,230,180,.4); }
.f-xmas .tc-fin .xs-flake { width: 13px; height: 13px; flex: 0 0 auto; filter: drop-shadow(0 0 4px #ffd25f);
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><g stroke='%23fff' stroke-width='7' stroke-linecap='round'><path d='M0-46V46M-40-23L40 23M-40 23L40-23'/><path d='M0-30l-9-9M0-30l9-9M0 30l-9 9M0 30l9 9M-26-15l-12 0M-26-15l-6-11M26 15l12 0M26 15l6 11M26-15l12 0M26-15l6-11M-26 15l-12 0M-26 15l-6 11'/></g></svg>") center / contain no-repeat; }
.f-xmas .tc-fin em { font-style: normal; margin-left: 2px; padding-left: 7px; border-left: 1px solid rgba(255,230,180,.35); color: #fff; letter-spacing: .06em; }
.tc-slot .f-xmas .tc-fin, .tc-grid.small .f-xmas .tc-fin, .tc-fan-card .f-xmas .tc-fin { font-size: 8.5px; letter-spacing: .08em; padding: 4px 6px; gap: 4px; }
@media (max-width: 560px) { .f-xmas .tc-fin { font-size: 8.5px; letter-spacing: .08em; padding: 4px 6px; gap: 4px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { .f-xmas .tc-inner > i.xs-snow::before { animation: none; } }