/* Pack reveal, round 11/8 (card-reveal.js): rim light, NEW tag, set progress, phone tilt. Demo-only blocks at the bottom
   (walkout, slow-motion Mythic, value counter) do nothing until their flags are on. Transform / opacity only; the only
   filter is a small glow on the card-sized rim (phones: one soft shadow). */

/* ── rim light ── */
.tc-rv-rim { position: absolute; inset: -1px; z-index: 7; pointer-events: none; border-radius: 17px; opacity: 0; transform: translateZ(1px);
  --rh: color-mix(in srgb, var(--rv) 45%, #fff); /* the hot center of the light (gold on a gold frame still reads) */
  filter: drop-shadow(0 0 2px var(--rh)) drop-shadow(0 0 8px var(--rv)); }
.tc-rv-rim.l0 { filter: none; }
.tc-rv-rim.l1 { filter: drop-shadow(0 0 3px var(--rv)); }
.tc-rv-rim.l3, .tc-rv-rim.l4 { inset: -2px; border-radius: 18px; filter: drop-shadow(0 0 4px var(--rh)) drop-shadow(0 0 18px var(--rv)); }
.tc-rv-rim .rr-ring { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; padding: 2px;
  -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-rv-rim.l0 .rr-ring { padding: 1px; } .tc-rv-rim.l1 .rr-ring { padding: 1.5px; }
.tc-rv-rim.l2 .rr-ring { padding: 2.5px; } .tc-rv-rim.l3 .rr-ring { padding: 3.5px; } .tc-rv-rim.l4 .rr-ring { padding: 4px; }
/* the light: a short white-hot head with a long fading tail behind it */
.tc-rv-rim .rr-sweep { position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; translate: -50% -50%; will-change: transform;
  background: conic-gradient(from 0deg, transparent 0turn 0.56turn, color-mix(in srgb, var(--rv) 30%, transparent) 0.76turn, var(--rv) 0.89turn, var(--rh) 0.935turn, #fff 0.957turn, var(--rh) 0.972turn, transparent 1turn); }
/* mythic and up: two lights from opposite corners */
.tc-rv-rim.l4 .rr-sweep { background: conic-gradient(from 0deg, transparent 0turn 0.12turn, color-mix(in srgb, var(--rv) 30%, transparent) 0.27turn, var(--rv) 0.39turn, var(--rh) 0.435turn, #fff 0.457turn, var(--rh) 0.472turn, transparent 0.5turn 0.62turn, color-mix(in srgb, var(--rv) 30%, transparent) 0.77turn, var(--rv) 0.89turn, var(--rh) 0.935turn, #fff 0.957turn, var(--rh) 0.972turn, transparent 1turn); }
/* afterwards the whole bevel catches the light for a moment (epic and up) */
.tc-rv-rim .rr-bevel { position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--rv) 60%, #fff), color-mix(in srgb, var(--rv) 55%, transparent) 38%, color-mix(in srgb, var(--rv) 20%, transparent) 60%, color-mix(in srgb, var(--rv) 70%, #fff));
  -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); }
@media (hover: none) { .tc-rv-rim, .tc-rv-rim.l1, .tc-rv-rim.l3, .tc-rv-rim.l4 { filter: drop-shadow(0 0 5px var(--rv)); } .tc-rv-rim.l0 { filter: none; } }
/* 11/8 boost (owner: "enhance the rim light & make some rainbow, it should glow"): thicker light, a real glow, rainbow on shiny pulls */
.tc-rv-rim.l1 .rr-ring { padding: 2px; } .tc-rv-rim.l2 .rr-ring { padding: 3px; } .tc-rv-rim.l3 .rr-ring { padding: 4px; } .tc-rv-rim.l4 .rr-ring { padding: 5px; }
.tc-rv-rim.l1, .tc-rv-rim.l2 { filter: drop-shadow(0 0 4px var(--rh)) drop-shadow(0 0 16px var(--rv)) !important; }
.tc-rv-rim.l3, .tc-rv-rim.l4 { filter: drop-shadow(0 0 5px var(--rh)) drop-shadow(0 0 22px var(--rv)) drop-shadow(0 0 44px color-mix(in srgb, var(--rv) 55%, transparent)) !important; }
.tc-rv-rim .rr-bevel { padding: 2px; }
.tc-rv-rim.rb .rr-sweep { background: conic-gradient(from 0deg, transparent 0turn 0.42turn, #ff4d6d 0.52turn, #ff9f43 0.6turn, #ffe66d 0.67turn, #5cf0a0 0.74turn, #4dc3ff 0.81turn, #8f7bff 0.88turn, #ff7ad9 0.93turn, #fff 0.957turn, #ffd6f3 0.972turn, transparent 1turn) !important; }
.tc-rv-rim.l4.rb .rr-sweep { background: conic-gradient(from 0deg, transparent 0turn 0.05turn, #ff4d6d 0.12turn, #ffe66d 0.22turn, #5cf0a0 0.3turn, #4dc3ff 0.38turn, #ff7ad9 0.44turn, #fff 0.457turn, transparent 0.5turn 0.55turn, #ff4d6d 0.62turn, #ffe66d 0.72turn, #5cf0a0 0.8turn, #4dc3ff 0.88turn, #ff7ad9 0.94turn, #fff 0.957turn, transparent 1turn) !important; }
.tc-rv-rim.rb .rr-bevel { background: linear-gradient(135deg, #ff6b8a, #ffd36e 22%, #6dffb0 44%, #6db8ff 66%, #c38bff 84%, #ff7ad9) !important; }
.tc-rv-rim.rb { filter: drop-shadow(0 0 4px rgba(255,255,255,.9)) drop-shadow(0 0 16px rgba(190,140,255,.75)) drop-shadow(0 0 34px rgba(90,200,255,.45)) !important; }
@media (hover: none) { .tc-rv-rim.l1, .tc-rv-rim.l2, .tc-rv-rim.l3, .tc-rv-rim.l4, .tc-rv-rim.rb { filter: drop-shadow(0 0 3px var(--rh)) drop-shadow(0 0 12px var(--rv)) !important; } .tc-rv-rim.rb { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 12px rgba(190,140,255,.8)) !important; } }

/* ── NEW: a small gold hairline pill on the top edge of the card (and in the row of pulled cards) ── */
.tc-rv-new { position: absolute; left: 50%; top: -10px; z-index: 9; overflow: hidden; pointer-events: none; transform: translate(-50%, 0) translateZ(8px);
  padding: 4px 10px 4px calc(10px + .3em); border-radius: 999px; font: 700 10px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase;
  color: #f4dc98; background: linear-gradient(180deg, rgba(34,30,22,.96), rgba(14,13,11,.96)); border: 1px solid rgba(240,206,120,.78);
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 6px 14px rgba(0,0,0,.55), 0 0 12px rgba(240,200,110,.22); }
.tc-rv-new > i { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,244,210,.55) 50%, transparent 70%); transform: translateX(-120%); }
.tc-slot { position: relative; }
.tc-rv-new.sm { top: -7px; padding: 3px 7px 3px calc(7px + .26em); font-size: 8.5px; letter-spacing: .26em; transform: translate(-50%, 0); }
.tc-tray.done .tc-rv-new.sm { top: -8px; padding: 4px 9px 4px calc(9px + .28em); font-size: 10px; letter-spacing: .28em; }
@media (max-width: 760px) { .tc-tray.done .tc-rv-new.sm { padding: 3px 7px 3px calc(7px + .26em); font-size: 8.5px; } }
/* the DUPE pill hangs off the bottom of the card above: rows get room for both */
.tc-tray.done:has(.rv-new) { row-gap: 26px; }

/* ── set progress under the card: "ZODIAC  4 → 5 / 12" over a thin bar ── */
.tc-rv-prog { position: absolute; left: 50%; bottom: -2px; z-index: 6; display: grid; justify-items: center; gap: 7px; min-width: 150px; pointer-events: none;
  transform: translate(-50%, 0); font-family: "Barlow Condensed", system-ui, sans-serif; white-space: nowrap; }
.tc-rv-prog[hidden] { display: none; }
.tc-rv-prog .rp-line { display: inline-flex; align-items: baseline; gap: 12px; }
.tc-rv-prog .rp-name { font-weight: 700; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: #aab2be; }
.tc-rv-prog .rp-n { display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #8d95a1; font-variant-numeric: tabular-nums; }
.tc-rv-prog .rp-from { font-weight: 700; color: #8d95a1; }
.tc-rv-prog .rp-arr { font-style: normal; font-size: 12px; color: #6d7480; }
.tc-rv-prog .rp-to { font-weight: 800; color: #f4dc98; text-shadow: 0 0 12px rgba(240,200,110,.35); }
.tc-rv-prog .rp-n em { font-style: normal; color: #8d95a1; }
.tc-rv-prog .rp-done { font-weight: 800; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #f4dc98; }
.tc-rv-prog .rp-bar { position: relative; width: 100%; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.1); }
.tc-rv-prog .rp-bar i { position: absolute; inset: 0; transform-origin: 0 50%; border-radius: inherit; }
.tc-rv-prog .rp-was { background: rgba(244,220,152,.4); }
.tc-rv-prog .rp-fill { background: linear-gradient(90deg, #c9a24a, #f6dc8f); box-shadow: 0 0 8px rgba(240,200,110,.6); transform: scaleX(0); }
@media (max-width: 760px) { .tc-rv-prog { bottom: 0; gap: 6px; } .tc-rv-prog .rp-name { font-size: 11px; letter-spacing: .22em; } .tc-rv-prog .rp-n { font-size: 14px; } }

/* ── phone tilt: the card follows the phone frame by frame (card-reveal.js lerps it), so no CSS easing on top ── */
.tc-card.rv-tilt .tc-3d { transition: none !important; }
.tc-card.rv-tilt .tc-glare { opacity: .9; }
.tc-card.rv-tilt .tc-gloss, .tc-card.rv-tilt .tc-art img, .tc-card.rv-tilt .tc-bleed { transition: none; }

/* ════ DEMO ONLY (CardReveal.demo) ════ */
/* walkout: lit from behind, the room goes dark */
.tc-rv-walk, .tc-rv-bloomw { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.tc-rv-walk .wk-halo { position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--cw) * 2.7); aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rv) 75%, #fff 10%), color-mix(in srgb, var(--rv) 42%, transparent) 34%, color-mix(in srgb, var(--rv) 14%, transparent) 60%, transparent 76%); }
.tc-rv-walk .wk-shaft { position: absolute; left: var(--cx); top: 0; width: calc(var(--cw) * 1.9); height: var(--cy); opacity: 0; transform: translateX(-50%);
  background: linear-gradient(to top, color-mix(in srgb, var(--rv) 24%, transparent), color-mix(in srgb, var(--rv) 8%, transparent) 45%, transparent 85%);
  clip-path: polygon(38% 0, 62% 0, 92% 100%, 8% 100%);
  -webkit-mask: linear-gradient(90deg, transparent 8%, #000 40%, #000 60%, transparent 92%); mask: linear-gradient(90deg, transparent 8%, #000 40%, #000 60%, transparent 92%); }
.tc-rv-core { position: absolute; inset: 3% 4%; border-radius: 16px; opacity: 0; pointer-events: none; transform: translateZ(-24px);
  background: color-mix(in srgb, var(--rv) 70%, #fff);
  box-shadow: 0 0 22px 6px color-mix(in srgb, var(--rv) 85%, #fff), 0 0 70px 22px var(--rv), 0 0 150px 40px color-mix(in srgb, var(--rv) 45%, transparent); }
.tc-fc.rv-rise { transform: translate3d(0, -5%, 110px) !important; transition: transform 1.1s cubic-bezier(.2,.75,.2,1) !important; }
.tc-fc.rv-rise .tc-back { animation: none !important; filter: brightness(.42) saturate(.8); transition: filter .9s ease;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--rv) 55%, #fff), 0 0 18px 2px var(--rv) !important; }
.tc-fc.rv-rise .tc-back-foil { opacity: .25; }
.tc-modal.rv-walk .tc-dim { opacity: 1; background: radial-gradient(40% 44% at 50% 40%, rgba(0,0,0,.15), rgba(0,0,0,.95) 76%); transition: opacity .9s ease; }
.tc-modal.rv-walk .tc-tray, .tc-modal.rv-walk .tc-open-hint, .tc-modal.rv-walk .tc-open-btns, .tc-modal.rv-walk .tc-rv-total { opacity: .18; transition: opacity .7s ease; }
.tc-modal .tc-tray, .tc-modal .tc-open-btns { transition: opacity .6s ease; }

.tc-modal.rv-noflash .tc-flash { display: none; }
/* slow-motion Mythic: the room drains to grey; the color floods back as the card turns */
.tc-modal.tc-opening.rv-slow { --tc-glow: #6f747c; }
.tc-modal.rv-slow .tc-open { filter: saturate(0) brightness(.78); }
.tc-modal .tc-open { transition: filter 1s ease; }
.tc-modal.rv-slow .tc-dim { opacity: 1; background: radial-gradient(42% 46% at 50% 40%, rgba(0,0,0,.1), rgba(0,0,0,.9) 76%); transition: opacity .8s ease; }
.tc-fc.rv-slowlift { transform: translate3d(0, -4%, 90px) !important; transition: transform 1.4s cubic-bezier(.3,.6,.2,1) !important; }
.tc-fc.rv-slowlift .tc-back { animation: none !important; }
.tc-rv-bloom { position: absolute; left: var(--cx); top: var(--cy); width: calc(var(--cw) * 2.9); aspect-ratio: 1; pointer-events: none; opacity: 0; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rv) 55%, #fff 10%), color-mix(in srgb, var(--rv) 26%, transparent) 38%, transparent 72%); }

/* value counter: an odometer of the pack's running total */
.tc-rv-total { display: grid; justify-items: center; gap: 4px; margin-top: -4px; font-family: "Barlow Condensed", system-ui, sans-serif; }
/* keeps its space from the start (hidden = invisible, not removed) so nothing jumps when it appears; fades in on the first flip */
.tc-rv-total { transition: opacity .5s ease; }
.tc-rv-total[hidden] { display: grid !important; visibility: hidden; opacity: 0; }
/* owner 11/8 ("huge gap from the top"): the counter takes NO space in the layout: pinned top-centre of the screen */
.tc-rv-total { position: fixed !important; top: calc(16px + var(--safe-top, 0px)); left: 0; right: 0; width: max-content; max-width: calc(100vw - 120px); margin: 0 auto !important; justify-content: center; z-index: 8; pointer-events: none; }
/* one compact line (PACK VALUE $12,300 · price/profit) that takes the hint's place once cards start flipping */
.tc-rv-total { display: flex !important; align-items: center; gap: 10px; white-space: nowrap; }
.tc-rv-total .rt-num { font-size: 30px; }
.tc-rv-total .rt-sub { height: 22px; min-width: 0; }
.tc-modal:has(.tc-rv-total:not([hidden])) .tc-open-hint { visibility: hidden; }
@media (max-width: 760px) { .tc-rv-total { top: calc(14px + var(--safe-top, 0px)); gap: 8px; } .tc-rv-total .rt-num { font-size: 24px; } .tc-rv-total em { font-size: 9px; letter-spacing: .2em; } .tc-rv-total .rt-cost, .tc-rv-total .rt-profit { font-size: 11px; } }
.tc-rv-total em { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: #8d95a1; }
.tc-rv-total .rt-num { display: inline-flex; align-items: flex-start; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: .01em; color: #f2f4f7; font-variant-numeric: tabular-nums; transition: color .8s ease, text-shadow .8s ease; }
.tc-rv-total .rt-cur { margin-right: 2px; }
.tc-rv-total .rt-digits { display: inline-flex; }
.tc-rv-total .rt-dg { display: inline-block; height: 1em; width: .54em; overflow: hidden; text-align: center; transition: width .5s cubic-bezier(.2,.8,.2,1), opacity .5s;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.tc-rv-total .rt-dg i { display: block; font-style: normal; line-height: 1em; will-change: transform; }
.tc-rv-total .rt-sep { display: inline-block; width: .24em; transition: width .5s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.tc-rv-total .off { width: 0; opacity: 0; }
.tc-rv-total .rt-sub { position: relative; display: grid; place-items: center; height: 22px; min-width: 180px; }
.tc-rv-total .rt-cost, .tc-rv-total .rt-profit { grid-area: 1 / 1; white-space: nowrap; }
.tc-rv-total .rt-cost { font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #6f7783; transition: opacity .5s ease; }
.tc-rv-total .rt-profit { opacity: 0; padding: 4px 12px 4px calc(12px + .2em); border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: #f4dc98; background: linear-gradient(180deg, rgba(34,30,22,.96), rgba(14,13,11,.96)); border: 1px solid rgba(240,206,120,.78); box-shadow: 0 0 16px rgba(240,200,110,.3); }
.tc-rv-total.profit .rt-cost { opacity: 0; }
.tc-rv-total.profit .rt-num { color: #f6dc8f; text-shadow: 0 0 18px rgba(240,190,90,.45), 0 0 2px rgba(255,236,180,.6); }

/* owner 11/8: phones get a cheap slow-mo (a dark wash instead of greying the whole screen) */
@media (hover: none), (max-width: 760px) {
  .tc-modal.rv-slow .tc-open { filter: none !important; }
  .tc-modal.rv-slow .tc-open::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgba(8,9,12,.62); }
}
/* owner 11/8 ("the card below the main card doesn't look right"): the cards revealed so far are small chips with a label */
.tc-tray:not(.done):not(:empty) { position: relative; padding-top: 16px; gap: 6px; }
.tc-tray:not(.done):not(:empty)::before { content: "Revealed"; position: absolute; top: 0; left: 50%; transform: translateX(-50%); font: 700 10px/1 "Barlow Condensed", system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.tc-tray:not(.done) .tc-slot { width: 58px !important; opacity: .9; }
.tc-tray:not(.done) .tc-slot .tc-name, .tc-tray:not(.done) .tc-slot .tc-info, .tc-tray:not(.done) .tc-slot .tc-foot { display: none !important; }
@media (max-width: 760px) { .tc-rv-total em { display: none; } .tc-rv-total { max-width: calc(100vw - 132px); overflow: hidden; } }
@media (max-width: 760px) { .tc-rv-total { flex-direction: column; gap: 2px; overflow: visible; max-width: none; top: calc(8px + var(--safe-top, 0px)); } .tc-rv-total .rt-sub { height: 18px; } }

/* owner 11/8: on desktop the pack value sits just above the cards, not at the screen's top edge */
@media (min-width: 761px) { .tc-rv-total { top: max(16px, calc(50vh - 345px)); } }

/* owner 11/8: on phones the final row visibly grew from the small chips (width transition + re-layout) → switch instantly */
@media (max-width: 760px) { .tc-tray.done .tc-slot { transition: none !important; } .tc-tray.done { gap: 8px; } }
.tc-open-btns [hidden] { display: none !important; } /* a hidden button (Reveal all after the pack is done) never shows */
/* the finished row follows the phone's tilt (card-reveal.js done) over the fixed phone angle */
@media (hover: none) { .tc-tray .tc-card.rv-tilt .tc-3d { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important; transition: none !important; } }
/* owner 11/8 ("cards don't wobble like they did"): the finished cards sway gently on their own, out of step with each other.
   On the slot (outside the card), so the phone rule that stops animations inside cards doesn't kill it, and tilt still works inside. */
/* 11/8 "end of the rip is buggy": no tcLand replay when the row finishes (every card re-landed at once) → the row fades in once, then the wobble starts */
.tc-tray.done { animation: rvTrayIn .4s ease-out both; }
@keyframes rvTrayIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tc-tray.done .tc-slot { animation: rvWobble 4.2s ease-in-out .8s infinite both; transform-style: preserve-3d; }
.tc-tray.done .tc-slot:nth-child(2n) { animation-delay: 1.6s; }
.tc-tray.done .tc-slot:nth-child(3n) { animation-delay: 2.4s; animation-duration: 4.8s; }
@keyframes rvWobble { 0%, 100% { transform: perspective(700px) rotateY(0deg) rotateX(0deg) translateY(0); } 25% { transform: perspective(700px) rotateY(-5deg) rotateX(2deg) translateY(0); } 75% { transform: perspective(700px) rotateY(5deg) rotateX(-2deg) translateY(-3px); } }
.tc-tray.done .tc-slot.tc-qs-sold { animation: none; }
/* owner 11/10 (PC froze on the selling screen after a Hype Drop pack: 5 Rare+ cards = 5 looping rims with a per-frame blur,
   all swaying in 3D): while picking cards to sell, or while the "Are you sure?" pop-up is open, the row holds still */
.tc-qs-mode .tc-tray.done .tc-slot, .tc-qs-mode .tc-tray .tc-rv-rim, .tc-qs-mode .tc-tray .tc-rv-rim *,
body.tc-sure-open .tc-modal .tc-tray.done .tc-slot, body.tc-sure-open .tc-modal .tc-tray .tc-rv-rim, body.tc-sure-open .tc-modal .tc-tray .tc-rv-rim * { animation-play-state: paused !important; }
/* owner 11/12 ("still laggy as fuck"): measured on a 10-card row the page was ~60% busy while picking. The edge lights are JS
   (Web Animations) loops, which a CSS pause never reached → while picking / the pop-up is open the lights are switched OFF and
   every CSS effect in the row is removed (not paused), plus the drifting background dust stops. ~60% → ~25% busy. */
.tc-qs-mode .tc-tray .tc-rv-rim, body.tc-sure-open .tc-modal .tc-tray .tc-rv-rim { display: none !important; }
.tc-qs-mode .tc-tray.done .tc-slot, .tc-qs-mode .tc-tray.done .tc-slot *, body.tc-sure-open .tc-modal .tc-tray.done .tc-slot, body.tc-sure-open .tc-modal .tc-tray.done .tc-slot * { animation: none !important; }
.tc-modal.tc-opening.tc-qs-mode::after { animation-play-state: paused !important; }
/* owner 11/12, the finished row itself (measured: ~75% busy on PC, ~45 fps): the light drift (--ix/--iy), the holo frame spin
   (--tc-a) and the animated-card comet (--tca-a) animate CSS variables, which restyles the WHOLE card every frame × every card.
   In the row they hold still unless the mouse is on that card (then everything plays as usual); the card's inner sway is
   dropped because the slot already wobbles. Glints, sweeps, rims and the wobble (GPU-only) keep moving. */
.tc-tray .tc-slot:not(:hover) .tc-card, .tc-tray .tc-slot:not(:hover) .tc-inner, .tc-tray .tc-slot:not(:hover) .tca-comet,
.tc-tray .tc-slot:not(:hover) .tc-card.sway .tc-3d { animation-name: none !important; } /* 11/12 pm: from the first card that lands, not only once the row is done */
/* owner 11/12 pm ("ripping is laggy, the reveal is laggy … FIX IT"): measured 89% busy with 229 ms freezes while tapping through
   a 10-card pack. All 10 cards in the stack ran their effects at once (backs: shine + glow pulse; hidden faces: holo frame spin,
   glints, glitter, sheen) though only the top card can be seen. Now only the TOP card animates, and its face only once flipped. */
.tc-stack .tc-fc:not(:first-child) *, .tc-stack .tc-fc:not(.flip) .tc-face * { animation: none !important; transition: none !important; }
.tc-qs-mode .tc-tray .tc-rv-rim.rv-loop, body.tc-sure-open .tc-modal .tc-tray .tc-rv-rim.rv-loop { filter: none !important; }
body.tc-sure-open .tc-modal.tc-opening::after { animation-play-state: paused !important; }/* looping rim on the finished row: on phones a cheap static glow (box-shadow) instead of the per-frame drop-shadow filter */
/* 11/12 pm: on EVERY device (was phones only) — the looping row lights stacked 2-3 big blur filters over a shape that changes
   every frame (re-blurred every frame × every card = the biggest drawing cost in the reveal); a fixed glow looks the same */
.tc-tray .tc-rv-rim.rv-loop { filter: none !important; } .tc-tray .tc-rv-rim.rv-loop .rr-bevel { box-shadow: 0 0 10px var(--rv), 0 0 22px color-mix(in srgb, var(--rv) 50%, transparent); }
/* owner 11/8 ("slower & like a small glow"): a wider, softer head that fades in and out instead of a thin bright streak */
.tc-rv-rim:not(.rb) .rr-sweep { background: conic-gradient(from 0deg, transparent 0turn 0.66turn, color-mix(in srgb, var(--rv) 18%, transparent) 0.76turn, color-mix(in srgb, var(--rv) 70%, transparent) 0.86turn, var(--rh) 0.93turn, color-mix(in srgb, var(--rh) 60%, #fff) 0.955turn, color-mix(in srgb, var(--rv) 60%, transparent) 0.985turn, transparent 1turn) !important; }
.tc-rv-rim.rb:not(.l4) .rr-sweep { background: conic-gradient(from 0deg, transparent 0turn 0.6turn, rgba(255,77,109,.35) 0.68turn, #ff9f43 0.74turn, #ffe66d 0.8turn, #5cf0a0 0.86turn, #4dc3ff 0.91turn, #c38bff 0.95turn, #fff 0.97turn, rgba(255,214,243,.5) 0.99turn, transparent 1turn) !important; }.tc-tray.done .tc-slot { transition: none !important; } /* no width tween at the end on any screen (re-laid out every frame) */
