/* =====================================================================
   CARD SHOP: packs, the collection, and the cards themselves
   A card is 2.5 x 3.5 (5:7). Sizes inside use cqw, so a card looks the
   same at 150px in the binder and 340px in the detail view.
   ===================================================================== */

/* ---------------------------------------------------------------- coins in the header */
.masthead { grid-template-columns: auto 1fr auto; }
.masthead .tabs { justify-content: center; }
.coin-pill { position: relative; justify-self: end; align-self: center; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 8px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fffaf0, #f3e7cc); border: 1px solid rgba(138, 95, 20, .35);
  box-shadow: 0 1px 0 #fff inset, 0 2px 8px -3px rgba(138, 95, 20, .45);
  font-family: var(--mono); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; transition: transform .25s var(--ease), box-shadow .25s; }
.coin-pill:hover { transform: translateY(-1px); box-shadow: 0 1px 0 #fff inset, 0 6px 16px -6px rgba(138, 95, 20, .6); }
.coin-ico { width: 18px; height: 18px; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .15)); }
.coin-dot { display: none; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--paper); }
.coin-pill.has-daily .coin-dot { display: block; animation: dot-pulse 1.8s infinite; }
@keyframes dot-pulse { 50% { transform: scale(1.3); } }
.coin-pill.bump { animation: coin-bump .7s var(--ease); }
@keyframes coin-bump { 30% { transform: scale(1.16); box-shadow: 0 0 0 6px rgba(217, 162, 58, .25); } }
.coin-toast { position: fixed; z-index: 1000; left: 50%; bottom: 28px; transform: translate(-50%, 0); display: flex; align-items: center; gap: 8px;
  padding: 11px 18px 11px 13px; border-radius: 999px; background: #1d1a16; color: #fbf7ee; font-family: var(--mono); font-size: 13px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); animation: toast-in .45s var(--ease); transition: opacity .5s, transform .5s var(--ease); }
.coin-toast b { color: #f6d488; font-size: 15px; }
.coin-toast.plain { padding-left: 18px; }
.coin-toast.go { opacity: 0; transform: translate(-50%, 14px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px) scale(.96); } }
.pb-coins { color: #d9a23a; font-weight: 600; }
.pb-team.pb-binder svg { width: 34px; height: 34px; }
.pb-team.pb-binder { background: linear-gradient(160deg, #fff6dc, #f1dca3); border-color: rgba(138, 95, 20, .4); }
.chip-fx.chip-coins { text-decoration: none; color: #6b4a0e; background: linear-gradient(180deg, #fff3cf, #f1d98f); border-color: rgba(138, 95, 20, .35); }
/* ---------------------------------------------------------------- the header menus: Play, Cards, Stats */
.masthead .tabs { gap: 6px; align-self: end; }
.tab-group { position: relative; }
.tab-btn, .tabs .tab-solo { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 12px 9px; border: 0; border-bottom: 3px solid transparent;
  background: none; cursor: pointer; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; transition: color .2s, border-color .25s; }
.tab-btn:hover, .tab-group.open .tab-btn, .tabs .tab-solo:hover { color: var(--ink); }
.tab-group.on .tab-btn, .tabs .tab-solo.on { color: var(--ink); border-bottom-color: var(--red); }
.tab-cur { font-family: var(--sans); font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.tab-cur:empty { display: none; }
.tab-cur::before { content: "·"; margin-right: 7px; color: var(--hair-2); }
.tab-chev { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); opacity: .55; transition: transform .25s var(--ease); }
.tab-group.open .tab-chev { transform: translateY(0) rotate(-135deg); }
.tab-menu { position: absolute; top: calc(100% + 6px); left: 50%; z-index: 80; display: grid; gap: 2px; min-width: 290px; padding: 8px;
  border: 1px solid var(--hair); border-radius: 16px; background: #fffaf0; box-shadow: 0 22px 50px -20px rgba(29, 26, 22, .45), 0 2px 6px rgba(29, 26, 22, .06);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .22s var(--ease), visibility 0s .22s; }
.tab-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* keeps hover alive across the gap */
.tab-group.open .tab-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s, transform .22s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tab-group:hover .tab-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s .05s, transform .22s .05s var(--ease); }
  .tab-group:hover .tab-chev { transform: translateY(0) rotate(-135deg); }
}
.tabs .tab-menu a { font-family: var(--sans); font-size: 14px; text-transform: none; letter-spacing: 0; white-space: normal; border-bottom: 0; }
.tab-menu a { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px 9px 8px;
  border-radius: 11px; text-decoration: none; color: var(--ink); transition: background .15s; }
.tab-menu a:hover, .tab-menu a:focus-visible { background: var(--paper-2); outline: none; }
.tab-menu a.on { background: #f6e7c8; }
.tm-ico { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); font-size: 17px; }
.tab-menu a.on .tm-ico { background: #fff; }
.tab-menu b { font-family: var(--sans); font-size: 14.5px; font-weight: 600; }
.tab-menu small { font-size: 12.5px; color: var(--muted); }
body.scrolled .tab-btn, body.scrolled .tabs .tab-solo { padding-bottom: 7px; }
@media (max-width: 1100px) and (min-width: 761px) { .tab-cur { display: none; } }
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead::after { order: 4; }
  .masthead .tabs { grid-column: 1 / -1; order: 3; justify-content: space-between; gap: 0; padding-bottom: 0; }
  .tab-btn, .tabs .tab-solo { padding: 6px 4px 8px; font-size: 12px; letter-spacing: .8px; }
  .tab-cur { font-size: 11.5px; }
}
@media (max-width: 480px) {
  .tab-cur { display: none; }
  .tab-group:first-child .tab-menu { left: 0; transform: translate(0, -6px); }
  .tab-group:first-child.open .tab-menu { transform: translate(0, 0); }
  .tab-group:nth-child(3) .tab-menu { left: auto; right: 0; transform: translate(0, -6px); }
  .tab-group:nth-child(3).open .tab-menu { transform: translate(0, 0); }
  .tab-menu { min-width: min(290px, calc(100vw - 28px)); }
  .coin-pill { margin-bottom: 8px; }
}

/* ---------------------------------------------------------------- the card */
/* cqw inside a card measures the wrapper, so the card itself can use them too */
.tc-wrap, .rflip-back, .td-back { container-type: inline-size; }
.tc-wrap { position: relative; }
.tc { --b1: #fbf8f0; --b2: #e9e2d0; --b3: #fbf8f0; --gem: #b9ad94;
  position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 4.6cqw; padding: 4cqw;
  background: linear-gradient(135deg, var(--b1), var(--b2) 45%, var(--b3) 60%, var(--b2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 0 0 1px rgba(29, 26, 22, .16), 0 2px 3px rgba(29, 26, 22, .12), 0 14px 26px -14px rgba(29, 26, 22, .5);
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), box-shadow .4s;
  cursor: pointer; user-select: none; isolation: isolate; outline: none; }
.tc:hover, .tc:focus-visible { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 0 0 1px rgba(29, 26, 22, .16), 0 26px 40px -18px rgba(29, 26, 22, .65); }
.tc:not(:hover) { --tx: 0deg; --ty: 0deg; }
.tc:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
.tc-frame { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; border-radius: 2.4cqw; overflow: hidden;
  background: var(--c1); box-shadow: 0 0 0 .7cqw rgba(0, 0, 0, .18); }
.tc-photo { position: relative; overflow: hidden; }
.tc-bg { position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .34), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 7cqw, rgba(255, 255, 255, .06) 7cqw 7.6cqw),
    linear-gradient(160deg, color-mix(in srgb, var(--c1) 70%, #fff) 0%, var(--c1) 46%, color-mix(in srgb, var(--c1) 55%, #000) 100%); }
.tc-bg::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 14%; height: 34%; transform: skewY(-9deg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c2) 85%, transparent), color-mix(in srgb, var(--c2) 40%, transparent)); opacity: .55; }
.tc-img { position: absolute; left: 50%; bottom: -2%; width: 96%; transform: translateX(-50%); object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 2cqw 2.4cqw rgba(0, 0, 0, .35)); pointer-events: none; }
.tc-ovr { position: absolute; top: 3.4cqw; left: 3.4cqw; display: grid; justify-items: center; min-width: 17cqw; padding: 1.6cqw 1.8cqw 1.4cqw;
  border-radius: 2cqw; background: rgba(15, 13, 11, .78); color: #fbf7ee; box-shadow: 0 0 0 .5cqw rgba(255, 255, 255, .28) inset; backdrop-filter: blur(2px); }
.tc-ovr b { font-family: var(--slab); font-weight: 700; font-size: 10.5cqw; line-height: .95; }
.tc-ovr span { font-family: var(--mono); font-weight: 600; font-size: 4.2cqw; letter-spacing: .4cqw; opacity: .85; }
.tc-logo { position: absolute; top: 3.6cqw; right: 3.6cqw; width: 15cqw; height: 15cqw; object-fit: contain; filter: drop-shadow(0 .6cqw 1cqw rgba(0, 0, 0, .35)); }
.tc-rc { position: absolute; left: 3.4cqw; bottom: 3.4cqw; display: grid; place-items: center; width: 12cqw; height: 13.5cqw; z-index: 2;
  clip-path: polygon(50% 0, 100% 14%, 100% 62%, 50% 100%, 0 62%, 0 14%); background: linear-gradient(180deg, #fff, #e7e1d4);
  font-family: var(--slab); font-weight: 700; font-size: 5.4cqw; color: #b8322a; padding-bottom: 1.6cqw; }
.tc-rc::before { content: ""; position: absolute; inset: 1cqw; clip-path: inherit; border: .7cqw solid #b8322a; z-index: -1; background: transparent; }
.tc-band { position: absolute; top: 4.5cqw; right: -9cqw; transform: rotate(38deg); padding: .9cqw 10cqw; z-index: 2;
  background: linear-gradient(180deg, #f6dc8e, #c88f2e); color: #3b2706; font-family: var(--mono); font-weight: 600; font-size: 3.6cqw; letter-spacing: .8cqw; text-transform: uppercase;
  box-shadow: 0 .6cqw 1.4cqw rgba(0, 0, 0, .3); }
.tc.leg .tc-logo { right: auto; left: auto; top: auto; bottom: 3.6cqw; right: 3.6cqw; width: 12cqw; height: 12cqw; }
.tc-auto { position: absolute; left: 4cqw; right: 4cqw; bottom: 3cqw; z-index: 3; display: grid; justify-items: center; padding: 1.4cqw 2cqw 1cqw;
  background: rgba(251, 248, 240, .86); border-radius: 1.6cqw; box-shadow: 0 0 0 .4cqw rgba(29, 26, 22, .25) inset, 0 1cqw 2cqw rgba(0, 0, 0, .25); }
.tc-auto span { font-family: "Mrs Saint Delafield", "Brush Script MT", cursive; font-size: 13cqw; line-height: .9; color: #1b3f8f; transform: rotate(-5deg); white-space: nowrap; }
.tc-auto small { font-family: var(--mono); font-size: 2.8cqw; letter-spacing: .5cqw; text-transform: uppercase; color: #6c6354; }
.tc-serial { position: absolute; right: 3.4cqw; bottom: 3.4cqw; z-index: 4; padding: .9cqw 2cqw; border-radius: 1cqw; font-family: var(--mono); font-weight: 600; font-size: 4.4cqw;
  background: linear-gradient(135deg, #fff3c4, #d9a23a 45%, #fff0b5 60%, #b07a1e); color: #3b2706; box-shadow: 0 .5cqw 1.2cqw rgba(0, 0, 0, .35); }
.tc-auto ~ .tc-serial { bottom: auto; top: 22cqw; }
.tc-plate { position: relative; padding: 3cqw 4cqw 3.2cqw; display: grid; grid-template-columns: 1fr auto; column-gap: 2cqw; color: #fbf7ee;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 82%, #000), color-mix(in srgb, var(--c1) 58%, #000)); }
.tc-plate::before { content: ""; position: absolute; left: 0; right: 0; top: -1.2cqw; height: 1.6cqw; background: var(--c2); transform: skewY(-2deg); transform-origin: left; }
.tc-first { grid-column: 1; font-family: var(--mono); font-size: 4.2cqw; text-transform: uppercase; letter-spacing: .5cqw; opacity: .8; min-height: 4.6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-last { grid-column: 1; font-family: var(--slab); font-weight: 700; font-size: 10cqw; line-height: .98; text-transform: uppercase; letter-spacing: -.1cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta { grid-column: 1; margin-top: .8cqw; font-family: var(--mono); font-size: 3.6cqw; letter-spacing: .3cqw; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.tc-gem { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 7cqw; height: 7cqw; transform: rotate(45deg); border-radius: 1cqw; background: var(--gem);
  box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .5) inset, 0 .6cqw 1.4cqw rgba(0, 0, 0, .4); }
.tc-foil, .tc-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tc-shine { background: radial-gradient(60% 45% at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .38), transparent 60%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.tc:hover .tc-shine { opacity: 1; }
.tc-count { position: absolute; top: -2.6cqw; right: -2.6cqw; z-index: 5; min-width: 15cqw; padding: 1.2cqw 2.4cqw; border-radius: 999px; text-align: center;
  background: #1d1a16; color: #fbf7ee; font-family: var(--mono); font-weight: 600; font-size: 5.4cqw; box-shadow: 0 0 0 1cqw var(--paper); }
.tc-new { position: absolute; top: -3cqw; left: 50%; transform: translateX(-50%); z-index: 5; padding: 1.2cqw 4cqw; border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--mono); font-weight: 600; font-size: 4.6cqw; letter-spacing: .6cqw; text-transform: uppercase; box-shadow: 0 1cqw 2.6cqw rgba(184, 50, 42, .5); }

/* rarity: the border stock and the gem */
.tc.r-uncommon { --b1: #f4f6f9; --b2: #a5adb7; --b3: #fdfeff; --gem: linear-gradient(135deg, #f3f6f9, #8e98a4); }
.tc.r-rare { --b1: #d7ebff; --b2: #3a73dc; --b3: #a9d6ff; --gem: linear-gradient(135deg, #9fd0ff, #1f4aa8); }
.tc.r-epic { --b1: #f4dcff; --b2: #8b3fd9; --b3: #ff9ce0; --gem: linear-gradient(135deg, #ffb4ec, #6a24c4); background-size: 220% 220%; animation: foil-drift 6s ease-in-out infinite alternate; }
.tc.r-legendary { --b1: #fff3c4; --b2: #c98d26; --b3: #fff8dc; --gem: linear-gradient(135deg, #fff1b8, #b07a1e);
  background: linear-gradient(120deg, #fff3c4, #d9a23a 20%, #fff6d6 34%, #b07a1e 50%, #f7d77a 64%, #a8741a 80%, #fff1c0); background-size: 260% 260%; animation: foil-drift 5s ease-in-out infinite alternate; }
@keyframes foil-drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.tc.r-rare .tc-foil { background: linear-gradient(115deg, transparent 30%, rgba(160, 210, 255, .25) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--mx, 50%) 0; mix-blend-mode: screen; }
.tc.r-epic .tc-foil { background: linear-gradient(115deg, transparent 20%, rgba(255, 140, 230, .22) 40%, rgba(140, 200, 255, .22) 55%, transparent 75%); background-size: 250% 100%; background-position: var(--mx, 50%) 0; mix-blend-mode: screen; }
.tc.r-legendary .tc-foil { background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 240, 190, .35), transparent 45%),
  repeating-linear-gradient(125deg, transparent 0 9cqw, rgba(255, 230, 160, .14) 9cqw 11cqw); mix-blend-mode: screen; }

/* Legends: a vintage look, cream stock and a sepia photo */
.tc.leg .tc-frame { background: #efe4c8; }
.tc.leg .tc-bg { background:
  radial-gradient(110% 80% at 50% 10%, #f8efd6, #e3d2a8 70%, #cdb682),
  repeating-linear-gradient(0deg, rgba(120, 90, 40, .05) 0 .5cqw, transparent .5cqw 1.4cqw); }
.tc.leg .tc-bg::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 70%, transparent), transparent); opacity: .35; }
.tc.leg .tc-img { filter: sepia(.45) contrast(1.06) saturate(.85) drop-shadow(0 2cqw 2.4cqw rgba(60, 40, 10, .35)); }
.tc.leg .tc-plate { background: linear-gradient(180deg, #f8f0da, #e9dcb8); color: #2b2216; }
.tc.leg .tc-plate::before { background: linear-gradient(90deg, var(--c1), var(--c2)); height: 1.2cqw; }
.tc.leg .tc-last { color: var(--c1); }

/* parallels: the finish on top of the rarity */
.tc.p-ref .tc-foil { background:
    linear-gradient(115deg, rgba(255, 0, 90, .18), rgba(255, 200, 0, .18) 20%, rgba(0, 255, 140, .18) 40%, rgba(0, 170, 255, .2) 60%, rgba(200, 0, 255, .18) 80%, rgba(255, 0, 90, .18)),
    repeating-radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .07) 0 .8cqw, transparent .8cqw 3.2cqw);
  background-size: 300% 300%, 100% 100%; background-position: var(--mx, 50%) var(--my, 50%), 0 0; mix-blend-mode: color-dodge; opacity: .6; animation: ref-shift 7s linear infinite; }
@keyframes ref-shift { to { filter: hue-rotate(360deg); } }
.tc.p-gold { background: linear-gradient(120deg, #fff3c4, #d9a23a 22%, #fff6d6 36%, #a8741a 52%, #f7d77a 66%, #8a5f14 82%, #ffe9a6); background-size: 260% 260%; animation: foil-drift 4s ease-in-out infinite alternate; }
.tc.p-gold .tc-frame { box-shadow: 0 0 0 .7cqw #8a5f14, 0 0 0 1.4cqw rgba(255, 240, 190, .6); }
.tc.p-gold .tc-foil { background: linear-gradient(115deg, transparent 25%, rgba(255, 215, 120, .4) 45%, transparent 65%); background-size: 260% 100%; background-position: var(--mx, 50%) 0; mix-blend-mode: overlay; }
.tc.p-super { background: repeating-conic-gradient(from 0deg at 50% 50%, #120d05 0 7deg, #d9a23a 7deg 10deg, #fff0b5 10deg 11deg, #120d05 11deg 18deg); animation: super-spin 14s linear infinite; }
@keyframes super-spin { to { background-position: 0 0; filter: hue-rotate(0deg) brightness(1.1); } }
.tc.p-super .tc-frame { box-shadow: 0 0 0 .8cqw #000, 0 0 0 1.6cqw #f6d488; }
.tc.p-super .tc-foil { background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255, 230, 150, .5), transparent 40%),
  repeating-conic-gradient(from 0deg at var(--mx, 50%) var(--my, 40%), rgba(255, 215, 120, .16) 0 4deg, transparent 4deg 12deg); mix-blend-mode: screen; opacity: .45; }
.tc.p-super .tc-serial { background: #0f0b05; color: #f6d488; box-shadow: 0 0 0 .5cqw #f6d488, 0 .5cqw 1.6cqw rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- insert series: the real chase */
.tc-ins-name { position: absolute; top: 21cqw; left: 50%; transform: translateX(-50%); z-index: 3; padding: .9cqw 3.4cqw; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono); font-weight: 600; font-size: 3.4cqw; letter-spacing: .5cqw; text-transform: uppercase;
  background: linear-gradient(135deg, #fff3c4, #d9a23a 45%, #fff0b5 60%, #b07a1e); color: #2b1d06; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .35); }
.tc.ins { animation: none; }
.tc.ins .tc-ovr { display: none; }

/* Image Variation SSP: a different photo, full bleed, black stock. Subtle on purpose, like the real ones */
.tc.x-img { background: linear-gradient(135deg, #2a2724, #0f0e0d 50%, #2a2724); }
.tc.x-img .tc-img { left: 0; bottom: 0; width: 100%; height: 100%; transform: none; object-fit: cover; object-position: 50% 20%; filter: none; }
.tc.x-img .tc-bg { display: none; }
.tc.x-img .tc-plate { background: #0f0e0d; }
.tc.x-img .tc-plate::before { background: var(--c1); }
.tc-ssp { position: absolute; left: 3cqw; bottom: 2.4cqw; z-index: 3; font-family: var(--mono); font-size: 2.8cqw; color: rgba(255, 255, 255, .55); letter-spacing: .3cqw; }

/* Golden Signatures /10: black and gold, the autograph in gold ink */
.tc.x-gsig { background: linear-gradient(120deg, #fff3c4, #d9a23a 22%, #fff6d6 36%, #a8741a 52%, #f7d77a 66%, #8a5f14 82%, #ffe9a6); background-size: 260% 260%; animation: foil-drift 4s ease-in-out infinite alternate; }
.tc.x-gsig .tc-frame { background: #0d0b08; box-shadow: 0 0 0 .7cqw #8a5f14; }
.tc.x-gsig .tc-bg { background: radial-gradient(90% 70% at 50% 20%, rgba(217, 162, 58, .45), transparent 65%), repeating-linear-gradient(135deg, rgba(217, 162, 58, .08) 0 2cqw, transparent 2cqw 5cqw), #0d0b08; }
.tc.x-gsig .tc-bg::after { display: none; }
.tc.x-gsig .tc-auto { background: rgba(10, 8, 5, .72); box-shadow: 0 0 0 .4cqw rgba(217, 162, 58, .7) inset; }
.tc.x-gsig .tc-auto span { color: #f2c14e; text-shadow: 0 0 1.4cqw rgba(242, 193, 78, .6); }
.tc.x-gsig .tc-auto small { color: #d9a23a; }
.tc.x-gsig .tc-plate { background: linear-gradient(180deg, #1a150c, #0d0b08); color: #f6d488; }
.tc.x-gsig .tc-plate::before { background: linear-gradient(90deg, #a8741a, #fff0b5, #a8741a); }

/* Rookie Patch Auto /25: a swatch of game-worn jersey plus the signature */
.tc.x-rpa { background: linear-gradient(135deg, #fbf8f0, #dcd3bf 45%, #fbf8f0 60%, #dcd3bf); }
.tc.x-rpa .tc-frame { box-shadow: 0 0 0 .7cqw var(--c2); }
.tc-patch { position: absolute; right: 5cqw; top: 31cqw; z-index: 3; width: 32cqw; height: 24cqw; padding: 1.4cqw; border-radius: 1.6cqw;
  background: linear-gradient(145deg, #e8e2d3, #b9b0a0); box-shadow: inset 0 .6cqw 1.4cqw rgba(0, 0, 0, .45), 0 .4cqw 0 rgba(255, 255, 255, .5); }
.tc-patch i { display: block; height: 100%; border-radius: 1cqw; outline: .4cqw dashed rgba(255, 255, 255, .55); outline-offset: -1.6cqw;
  background: linear-gradient(170deg, var(--c1) 0 38%, #fff 38% 46%, var(--c2) 46% 60%, #fff 60% 66%, var(--c1) 66%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 .5cqw, rgba(0, 0, 0, .08) .5cqw 1cqw); background-blend-mode: multiply; }
.tc.x-rpa .tc-ins-name { background: linear-gradient(135deg, #fff, #d7dde4 50%, #fff); }

/* Printing Plate 1/1: the actual metal plate used to print the card, in one ink */
.tc.x-plate { --inkc: #1ba7e0; background: repeating-linear-gradient(90deg, #d9dde2 0 .6cqw, #b7bdc5 .6cqw 1.2cqw), linear-gradient(135deg, #eef1f4, #8c939c); background-blend-mode: multiply; }
.tc.x-plate.ink-magenta { --inkc: #e0218a; } .tc.x-plate.ink-yellow { --inkc: #f2cf00; } .tc.x-plate.ink-black { --inkc: #1c1c1c; }
.tc.x-plate .tc-frame { filter: grayscale(1) contrast(1.25) brightness(1.08); }
.tc.x-plate .tc-foil { inset: 4cqw; border-radius: 2.4cqw; background: var(--inkc); mix-blend-mode: screen; opacity: .9; }
.tc.x-plate.ink-black .tc-foil { mix-blend-mode: multiply; opacity: .35; background: #3a3a3a; }
.tc.x-plate .tc-ins-name { background: linear-gradient(135deg, #f4f6f8, #9aa2ac 50%, #f4f6f8); }
.tc.x-plate .tc-serial { background: #1c1c1c; color: #fff; }

/* Cut Signature 1/1: a real signature clipped from an old document, set into a Legends card */
.tc.x-cut { background: linear-gradient(135deg, #5a1f1f, #2b0d0d 50%, #6b2b2b); }
.tc.x-cut .tc-frame { box-shadow: 0 0 0 .7cqw #c9a25c; }
.tc-cut { position: absolute; left: 7cqw; right: 7cqw; bottom: 6cqw; z-index: 3; display: grid; place-items: center; height: 20cqw; padding: 1cqw;
  background: #1d0f0a; border-radius: 1cqw; box-shadow: inset 0 0 0 .6cqw #c9a25c, 0 1cqw 2cqw rgba(0, 0, 0, .45); }
.tc-cut span { display: grid; place-items: center; width: 92%; height: 76%; font-family: "Mrs Saint Delafield", cursive; font-size: 11cqw; color: #1f2a52;
  background: linear-gradient(180deg, #f3e6c4, #e4d2a4); transform: rotate(-2deg);
  clip-path: polygon(0 6%, 9% 0, 22% 5%, 37% 1%, 54% 4%, 70% 0, 86% 5%, 100% 2%, 98% 40%, 100% 78%, 96% 100%, 80% 95%, 63% 100%, 45% 96%, 28% 100%, 12% 95%, 0 100%, 2% 60%); }
.tc.x-cut .tc-ins-name { background: linear-gradient(135deg, #f3e6c4, #c9a25c 50%, #f3e6c4); }

/* an empty sleeve in the binder */
.tc.missing { background: repeating-linear-gradient(135deg, #ece4d2 0 3cqw, #e6dcc6 3cqw 6cqw); animation: none;
  box-shadow: 0 0 0 1px rgba(29, 26, 22, .14) inset; }
.tc.missing .tc-frame { background: #d9cfbb; filter: grayscale(1); opacity: .55; box-shadow: none; }
.tc.missing .tc-bg { opacity: .45; }
.tc.missing .tc-plate { background: #8b8172; }
.tc.missing .tc-plate::before { display: none; }
.tc.missing .tc-foil { display: none; }
.tc-ghost { position: absolute; left: 50%; bottom: 0; width: 62%; height: 72%; transform: translateX(-50%); background: rgba(29, 26, 22, .28);
  clip-path: path("M50 0C30 0 22 16 22 30s6 26 14 31C14 66 2 80 0 100H100C98 80 86 66 64 61c8-5 14-17 14-31S70 0 50 0Z"); }
@supports not (clip-path: path("M0 0")) { .tc-ghost { border-radius: 50% 50% 0 0; } }
.tc-ghost { -webkit-mask: radial-gradient(circle at 50% 22%, #000 21%, transparent 21.5%), radial-gradient(ellipse 60% 48% at 50% 100%, #000 99%, transparent 100%);
  clip-path: none; }
.tc-slot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 1.6cqw 4cqw; border-radius: 999px; z-index: 3;
  background: rgba(251, 247, 238, .92); color: var(--ink-2); font-family: var(--mono); font-weight: 600; font-size: 5cqw; box-shadow: var(--sh-1); }
.tc.missing:hover { --tx: 0deg !important; --ty: 0deg !important; }

/* the back of a card */
.tc-back { width: 100%; aspect-ratio: 5 / 7; border-radius: 4.6cqw; padding: 5cqw 5.5cqw; display: flex; flex-direction: column; gap: 1.6cqw;
  background: linear-gradient(180deg, #f6efdd, #ece2c9); border: 3.6cqw solid #fbf8f0; box-shadow: 0 0 0 1px rgba(29, 26, 22, .16), 0 14px 26px -14px rgba(29, 26, 22, .5);
  color: #2b2216; font-family: var(--mono); overflow: hidden; }
.tb-top { display: flex; justify-content: space-between; margin: -5cqw -5.5cqw 1cqw; padding: 2.4cqw 5.5cqw; background: var(--c1); color: #fbf7ee; font-size: 3.6cqw; letter-spacing: .4cqw; text-transform: uppercase; }
.tb-no { font-weight: 600; }
.tc-back h4 { margin: 0; font-family: var(--slab); font-size: 8.6cqw; line-height: 1; color: var(--c1); }
.tb-bio { margin: 0; font-size: 3.5cqw; color: #5b5142; }
.tb-label { margin: 2cqw 0 0; font-size: 3.2cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .5cqw; color: #8a7c63; border-bottom: .4cqw solid #c9b994; padding-bottom: .8cqw; }
.tb-line { width: 100%; border-collapse: collapse; text-align: center; }
.tb-line th { font-size: 3.4cqw; color: #8a7c63; font-weight: 600; padding: .6cqw 0; }
.tb-line td { font-family: var(--slab); font-size: 6.6cqw; font-weight: 700; padding: .4cqw 0 1cqw; }
.tb-none { margin: 0; font-size: 3.6cqw; color: #8a7c63; }
.tb-bars { display: grid; gap: 1.3cqw; }
.tb-bar { display: grid; grid-template-columns: 22cqw 1fr 7cqw; align-items: center; gap: 2cqw; font-size: 3.4cqw; }
.tb-bar i { height: 2.2cqw; border-radius: 999px; background: linear-gradient(90deg, var(--c1) var(--v), rgba(29, 26, 22, .1) var(--v)); }
.tb-bar b { text-align: right; }
.tb-foot { margin-top: auto; display: flex; gap: 2cqw; align-items: center; font-size: 3.2cqw; color: #8a7c63; text-transform: uppercase; letter-spacing: .3cqw; }
.tb-foot > :last-child { margin-left: auto; }
.tb-rar, .tb-rc { display: inline-block; padding: .3em .8em; border-radius: 999px; font-family: var(--mono); font-weight: 600; font-size: inherit; text-transform: uppercase; letter-spacing: .06em; }
.tb-rar.r-common { background: #e6dfcf; color: #4a443b; }
.tb-rar.r-uncommon { background: linear-gradient(135deg, #f3f6f9, #b7bec7); color: #2f363e; }
.tb-rar.r-rare { background: linear-gradient(135deg, #cfe6ff, #5f8ee4); color: #0e2a66; }
.tb-rar.r-epic { background: linear-gradient(135deg, #f4cdff, #a15ae6); color: #fff; }
.tb-rar.r-legendary { background: linear-gradient(135deg, #fff1b8, #d9a23a); color: #3b2706; }
.tb-rc { background: #b8322a; color: #fff; }

/* the face-down card in a fresh pack */
.tc-cover { width: 100%; aspect-ratio: 5 / 7; border-radius: 4.6cqw; padding: 4cqw; background: #fbf8f0;
  box-shadow: 0 0 0 1px rgba(29, 26, 22, .16), 0 16px 30px -14px rgba(0, 0, 0, .6); }
.tc-cover span { display: block; height: 100%; border-radius: 2.4cqw; position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .12), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 3cqw, transparent 3cqw 6cqw),
    linear-gradient(160deg, #26466e, #142a46); }
.tc-cover span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34cqw; height: 34cqw; transform: translate(-50%, -50%) rotate(45deg); border: 1.4cqw solid rgba(246, 212, 136, .85);
  background: radial-gradient(circle, #f6efe2 0 30%, transparent 31%); border-radius: 2cqw; }

/* ---------------------------------------------------------------- the shop */
.cs-loading { display: grid; place-items: center; gap: 18px; padding: 90px 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.cs-loading-cards { position: relative; width: 70px; height: 96px; }
.cs-loading-cards i { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(160deg, #26466e, #142a46); border: 4px solid #fbf8f0; box-shadow: var(--sh-2);
  animation: shuffle 1.4s var(--ease) infinite; }
.cs-loading-cards i:nth-child(2) { animation-delay: .2s; } .cs-loading-cards i:nth-child(3) { animation-delay: .4s; }
@keyframes shuffle { 0%, 100% { transform: rotate(0); } 40% { transform: translateX(40px) rotate(12deg); } 70% { transform: translateX(-30px) rotate(-8deg); } }
.cs-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 26px; }
.cs-head h1 { margin: 0; font-family: var(--slab); font-size: clamp(42px, 6vw, 68px); line-height: .95; letter-spacing: -1px; }
.cs-wallet { display: grid; gap: 6px; justify-items: start; min-width: 250px; padding: 18px 22px 20px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-2); }
.cs-wallet-k { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cs-wallet-v { display: flex; align-items: center; gap: 10px; font-family: var(--slab); font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-wallet-v .coin-ico { width: 34px; height: 34px; }
.cs-wallet-sub { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cs-daily { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 26px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(110deg, #1d1a16, #3a2a14); color: #fbf7ee; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.cs-daily::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(246, 212, 136, .18) 50%, transparent 60%); background-size: 250% 100%; animation: sweep 3.2s linear infinite; pointer-events: none; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.cs-daily b { color: #f6d488; }
.cs-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cs-pack { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 22px 20px 20px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.cs-pack:hover { box-shadow: var(--sh-3); transform: translateY(-3px); }
.cs-pack-art { all: unset; cursor: pointer; display: block; width: 72%; justify-self: center; perspective: 800px; }
.cs-pack-art[data-short] { cursor: default; }
.cs-pack-art .pack { transition: transform .5s var(--ease); }
.cs-pack:hover .cs-pack-art:not([data-short]) .pack { transform: rotateY(-12deg) rotateX(4deg) translateY(-6px); }
.cs-pack-info { display: grid; gap: 8px; align-content: start; }
.cs-pack-info h3 { margin: 0; font-family: var(--slab); font-size: 24px; }
.cs-pack-info p { margin: 0; font-size: 14px; color: var(--ink-2); min-height: 40px; }
.cs-buy { justify-content: center; display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cs-buy .coin-ico { width: 18px; height: 18px; }
.cs-short { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; }
.cs-odds summary { cursor: pointer; font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.cs-odds table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 6px; }
.cs-odds td { padding: 5px 0; border-bottom: 1px solid var(--hair); }
.cs-odds td:last-child { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cs-odds small { font-size: 11.5px; color: var(--muted); }
[class^="dot-"] { display: inline-block; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); margin-right: 9px; vertical-align: 1px; }
.dot-common { background: #d8cfbb; } .dot-uncommon { background: #a5adb7; } .dot-rare { background: #3a73dc; } .dot-epic { background: #8b3fd9; } .dot-legendary { background: #d9a23a; }
.dot-ref { background: linear-gradient(135deg, #ff4d8d, #ffd84d, #4dffb0, #4dc3ff); } .dot-gold { background: #c98d26; } .dot-super { background: #120d05; box-shadow: 0 0 0 1.5px #d9a23a; } .dot-auto { background: #1b3f8f; }
.cs-lower { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-top: 34px; }
.cs-lower h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.cs-earn, .cs-log { padding: 22px 24px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.cs-earn ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cs-earn li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); }
.cs-earn li:first-child { border-top: 0; }
.cs-earn a, .cs-earn-k { font-family: var(--slab); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.cs-earn a:hover { color: var(--red); }
.cs-log ol { list-style: none; margin: 0; padding: 0; }
.cs-log li { display: grid; grid-template-columns: 1fr auto 74px; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.cs-log li:first-child { border-top: 0; }
.cs-log b { font-family: var(--mono); color: #8a5f14; font-variant-numeric: tabular-nums; }
.cs-log time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.cs-empty { color: var(--muted); font-size: 14px; }

.cs-fair { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 26px; justify-content: start; margin: -6px 0 24px; font-size: 13.5px; color: var(--ink-2); }
.cs-fair span { padding-left: 14px; border-left: 2px solid #d9a23a; }
.cs-fair a { color: var(--red); }
.rip-reward { margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(246, 212, 136, .14); color: #f6d488; font-size: 14px; }
.rip-reward b { margin-left: 6px; }
.cp-next { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.cp-total .cp-next b { color: #8a5f14; font: 600 12.5px var(--sans); line-height: inherit; }
.cp-play { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--red); text-decoration: none; }
.cp-play:hover { text-decoration: underline; }
.td-buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.td-buy-row .btn { display: inline-flex; align-items: center; gap: 7px; }
.td-buy-row .coin-ico { width: 16px; height: 16px; }
.td-missing small { color: var(--muted); }
@media (max-width: 900px) { .cs-fair { grid-template-columns: 1fr; } }

/* the pack wrapper */
.pack { --f1: #b8322a; --f2: #e9675c; --f3: #7d1c16; --ink-p: #fff6e6; position: relative; container-type: inline-size; width: 100%; aspect-ratio: 5 / 7.8; display: grid; grid-template-rows: 9% 1fr 9%;
  filter: drop-shadow(0 18px 22px rgba(29, 26, 22, .35)); transform-style: preserve-3d; }
.pack-jumbo { --f1: #1f3f7a; --f2: #6fa0e0; --f3: #0e1f40; }
.pack-box { --f1: #1a1408; --f2: #d9a23a; --f3: #000; --ink-p: #f6d488; aspect-ratio: 5 / 6.2; grid-template-rows: 14% 1fr 0; }
.pack-box .pk-crimp { -webkit-mask: none; mask: none; border-radius: 3cqw 3cqw 0 0; background-image: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(0, 0, 0, .25)), linear-gradient(115deg, var(--f3), var(--f1) 22%, var(--f2) 40%, var(--f1) 55%, var(--f3) 78%, var(--f1)); }
.pack-box .pk-crimp.bottom { display: none; }
.pack-box .pk-body { border-radius: 0 0 3cqw 3cqw; }
.pk-body, .pk-crimp { background: linear-gradient(115deg, var(--f3), var(--f1) 22%, var(--f2) 40%, var(--f1) 55%, var(--f3) 78%, var(--f1)); background-size: 220% 100%; }
.pk-crimp { position: relative; background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 1.2cqw, rgba(255, 255, 255, .1) 1.2cqw 2.4cqw), linear-gradient(115deg, var(--f3), var(--f1) 22%, var(--f2) 40%, var(--f1) 55%, var(--f3) 78%, var(--f1));
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 1.4cqw, #000 1.6cqw) 0 0 / 4cqw 100%; mask: radial-gradient(circle at 50% 0, transparent 1.4cqw, #000 1.6cqw) 0 0 / 4cqw 100%; }
.pk-crimp.bottom { -webkit-mask: radial-gradient(circle at 50% 100%, transparent 1.4cqw, #000 1.6cqw) 0 0 / 4cqw 100%; mask: radial-gradient(circle at 50% 100%, transparent 1.4cqw, #000 1.6cqw) 0 0 / 4cqw 100%; }
.pk-body { position: relative; overflow: hidden; display: grid; justify-items: center; align-content: center; gap: 2.4cqw; padding: 8cqw; color: var(--ink-p); text-align: center;
  box-shadow: inset 4cqw 0 6cqw -4cqw rgba(0, 0, 0, .45), inset -4cqw 0 6cqw -4cqw rgba(0, 0, 0, .45); }
.pk-body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 42%, transparent 54%); background-size: 260% 100%;
  background-position: 120% 0; transition: background-position .9s var(--ease); }
.cs-pack:hover .pk-body::after, .rip-pack.ready .pk-body::after { background-position: -40% 0; }
.rip-pack.ready .pk-body::after { animation: sweep 2.6s linear infinite; }
.pk-brand { font-family: var(--slab); font-style: italic; font-weight: 700; font-size: 9cqw; letter-spacing: -.2cqw; text-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25); }
.pk-year { font-family: var(--mono); font-size: 5cqw; letter-spacing: 1.6cqw; opacity: .85; }
.pk-name { font-family: var(--slab); font-weight: 700; font-size: 15cqw; line-height: .9; text-transform: uppercase; letter-spacing: -.3cqw; text-shadow: 0 1cqw 0 rgba(0, 0, 0, .3); }
.pk-diamond { width: 30cqw; height: 30cqw; margin: 3cqw 0; transform: rotate(45deg); border-radius: 3cqw; border: 1.4cqw solid currentColor;
  background: radial-gradient(circle, #f6efe2 0 34%, transparent 35%), rgba(0, 0, 0, .18); box-shadow: 0 0 0 2cqw rgba(255, 255, 255, .08); }
.pk-count { font-family: var(--mono); font-weight: 600; font-size: 5.4cqw; letter-spacing: .8cqw; text-transform: uppercase; padding: 1.4cqw 4cqw; border: .6cqw solid currentColor; border-radius: 999px; }
.pack-premium .pk-body { color: #14202f; } .pack-premium .pk-brand, .pack-premium .pk-name { text-shadow: 0 .6cqw 0 rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------- ripping a pack */
dialog.rip { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fbf7ee; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, #2c2a33 0%, #121116 70%, #09080b 100%); }
dialog.rip::backdrop { background: #000; }
.rip-stage { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 40px 24px 34px; }
dialog.rip.shake .rip-stage { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
.rip-hint { margin: 0; min-height: 22px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 247, 238, .6); }
.rip-x { position: absolute; top: 18px; right: 20px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  color: #fbf7ee; font-size: 24px; line-height: 1; cursor: pointer; }
.rip-x:hover { background: rgba(255, 255, 255, .15); }
.rip-err { color: #ffb4a8; font-size: 16px; }
.rip-pack { all: unset; grid-row: 2; grid-column: 1; width: min(270px, 52vw); cursor: pointer; transition: transform .6s var(--ease), opacity .6s; }
.rip-pack:not(.ready) { opacity: .6; cursor: progress; }
.rip-pack.ready { animation: bob 2.4s ease-in-out infinite; }
.rip-pack.ready:hover { animation: wiggle .5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes wiggle { 25% { transform: rotate(-2.5deg) scale(1.03); } 75% { transform: rotate(2.5deg) scale(1.03); } }
.rip-pack.torn { animation: none; }
.rip-pack.torn .pk-crimp.top { animation: tear-off .65s var(--ease) forwards; transform-origin: 0 100%; }
.rip-pack.torn .pk-body { animation: shake .4s var(--ease); }
@keyframes tear-off { to { transform: translate(60%, -160%) rotate(28deg); opacity: 0; } }
.rip-pack.gone { transform: translateY(70vh) rotate(8deg); opacity: 0; pointer-events: none; }
.rip-row { grid-row: 2; grid-column: 1; display: flex; gap: clamp(10px, 2vw, 26px); justify-content: center; align-items: center; perspective: 1400px; }
.rflip { position: relative; width: clamp(104px, min(15vw, 30vh), 220px); cursor: pointer; opacity: 0; transform: translateY(80px) scale(.7) rotate(calc((var(--i) - 2) * 4deg));
  transition: opacity .5s, transform .7s var(--ease); transition-delay: calc(var(--i) * .12s); }
.rip-row.dealt .rflip { opacity: 1; transform: none; }
.rflip:not(.on):hover .rflip-in { transform: translateY(-8px) rotateY(8deg); }
.rflip-in { position: relative; transform-style: preserve-3d; transition: transform .75s var(--ease); }
.rflip.on .rflip-in { transform: rotateY(180deg); }
.rflip-back, .rflip-front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rflip-front { position: absolute; inset: 0; transform: rotateY(180deg); }
.rflip.on { cursor: default; transition-delay: 0s; }
.rflip::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: -1; opacity: 0; transition: opacity .6s .35s; filter: blur(18px); }
.rflip.on.glow-rare::before { background: radial-gradient(circle, rgba(70, 140, 255, .7), transparent 65%); opacity: 1; }
.rflip.on.glow-epic::before { background: radial-gradient(circle, rgba(190, 90, 255, .8), transparent 65%); opacity: 1; animation: glow 1.6s ease-in-out infinite; }
.rflip.on.glow-legendary::before, .rflip.on.glow-gold::before { background: radial-gradient(circle, rgba(255, 200, 80, .95), transparent 65%); opacity: 1; animation: glow 1.2s ease-in-out infinite; }
.rflip.on.glow-super::before { background: conic-gradient(from 0deg, #ffd46b, #fff, #d9a23a, #fff6c8, #ffd46b); opacity: .9; animation: spin 3s linear infinite; }
.rflip.on.glow-ref::before { background: conic-gradient(#ff4d8d, #ffd84d, #4dffb0, #4dc3ff, #c94dff, #ff4d8d); opacity: .55; animation: spin 4s linear infinite; }
@keyframes glow { 50% { transform: scale(1.08); filter: blur(24px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.rflip.on.is-hit .rflip-in { animation: pop .9s var(--ease) .3s; }
@keyframes pop { 40% { transform: rotateY(180deg) scale(1.1); } 100% { transform: rotateY(180deg) scale(1); } }
.rflip-cap { margin: 14px 0 0; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: rgba(251, 247, 238, .7); opacity: 0; transform: translateY(6px); transition: .4s .5s; }
.rflip.on .rflip-cap { opacity: 1; transform: none; }
.rflip.on.glow-insert::before { background: conic-gradient(#fff, #f6d488, #ff7ad1, #7ad7ff, #fff); opacity: 1; animation: spin 2.4s linear infinite; inset: -26%; }
.cap-insert { background: linear-gradient(90deg, #f6d488, #fff, #f6d488); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .04em; }
dialog.rip.insert-hit { background: radial-gradient(70% 60% at 50% 40%, #3a2f1a 0%, #141116 70%, #09080b 100%); }
dialog.rip.insert-hit .rip-hint { color: #f6d488; font-size: 15px; }
.cs-odds th { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--muted); text-align: right; padding: 4px 0; }
.cs-odds td:nth-child(2) { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.odds-sep td { padding-top: 12px !important; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #8a5f14; }
.dot-img { background: #1c1a18; } .dot-gsig { background: linear-gradient(135deg, #f6d488, #8a5f14); } .dot-rpa { background: linear-gradient(135deg, #b8322a, #213a5c); }
.dot-plate { background: linear-gradient(135deg, #1ba7e0, #e0218a, #f2cf00); } .dot-cut { background: #5a1f1f; box-shadow: 0 0 0 1.5px #c9a25c; }
.td-par.p-ins { font-weight: 700; color: #8a5f14; }
.rip-row { flex-wrap: wrap; max-height: 78vh; overflow-y: auto; overflow-x: hidden; padding: 22px 8px; scrollbar-width: thin; }
dialog.rip { color-scheme: dark; }
.cap-common { color: #e3dccb; } .cap-uncommon { color: #c9d1db; } .cap-rare { color: #8fc0ff; } .cap-epic { color: #d9a6ff; } .cap-legendary { color: #f6d488; }
.rip-foot { grid-row: 3; display: grid; justify-items: center; gap: 14px; min-height: 60px; }
.rip-foot .btn-line { background: transparent; border-color: rgba(251, 247, 238, .5); color: #fbf7ee; }
.rip-foot .btn-line:hover:not(:disabled) { background: #fbf7ee; color: #121116; }
.rip-sum { margin: 0; display: flex; gap: 18px; align-items: center; font-size: 15px; color: rgba(251, 247, 238, .85); }
.rip-sum b { color: #f6d488; }
.rip-sum span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.rip-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.burst { position: fixed; z-index: 10; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #f6d488; box-shadow: 0 0 10px #ffd46b; animation: burst 1.1s var(--ease) var(--d) forwards; }
.burst i:nth-child(3n) { background: #fff; width: 5px; height: 5px; }
.burst i:nth-child(4n) { background: #d9a23a; }
@keyframes burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.3) rotate(220deg); opacity: 0; } }
@media (max-width: 760px) {
  .rip-row { flex-wrap: wrap; } .rflip { width: 28vw; }
  .rip-stage { padding-top: 70px; }
}

/* ---------------------------------------------------------------- the collection */
.cp { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto auto; gap: 18px 34px; padding: 24px 26px; border-radius: 22px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-2); }
.cp-total { grid-row: span 2; display: grid; align-content: start; gap: 4px; padding-right: 30px; border-right: 1px solid var(--hair); }
.cp-k { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cp-total b { font-family: var(--slab); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
.cp-of { font-size: 15px; color: var(--ink-2); }
.cp-big { margin-top: 12px; height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.cp-big i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), #e0703e); }
.cp-pct { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.cp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cp-rows li { display: grid; grid-template-columns: 118px 1fr 70px; gap: 14px; align-items: center; font-size: 14px; }
.cp-rows b { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cp-rows small, .cp-tiles small { color: var(--muted); font-weight: 400; }
.cp-bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.cp-bar i { display: block; height: 100%; border-radius: inherit; min-width: 2px; }
.bar-common { background: #b9ad94; } .bar-uncommon { background: linear-gradient(90deg, #8e98a4, #c9d0d8); } .bar-rare { background: linear-gradient(90deg, #1f4aa8, #5f8ee4); }
.bar-epic { background: linear-gradient(90deg, #6a24c4, #c46ae6); } .bar-legendary { background: linear-gradient(90deg, #a8741a, #f1c65a); }
.cp-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cp-tiles div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--hair); }
.cp-tiles span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cp-tiles b { font-family: var(--slab); font-size: 24px; font-variant-numeric: tabular-nums; }
.cp-sell { grid-column: 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cp-sell small { color: var(--muted); font-size: 12.5px; }
.cc-tools { position: sticky; top: 64px; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 8px; padding: 10px 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--hair); }
.cc-tools input, .cc-tools select { font: 500 14px var(--sans); color: var(--ink); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--hair-2); background: var(--card-2); outline: none; }
.cc-tools input { flex: 1 1 220px; min-width: 180px; }
.cc-tools input:focus, .cc-tools select:focus { border-color: var(--ink); }
.cc-tools .seg button { padding: 7px 14px; font-size: 11.5px; }
.cc-count { margin: 6px 2px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 26px 20px; }
.cc-more { display: flex; justify-content: center; margin-top: 30px; }

/* the detail view */
dialog.tc-detail { width: min(860px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 34px; border: 1px solid var(--hair-2); border-radius: 26px; background: var(--card-2); color: var(--ink); box-shadow: var(--sh-3); overflow: auto; }
dialog.tc-detail::backdrop { background: rgba(18, 17, 22, .62); backdrop-filter: blur(4px); }
dialog.tc-detail .rip-x { color: var(--ink); border-color: var(--hair-2); background: var(--paper); }
.td-grid { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: start; }
.td-card { display: grid; justify-items: center; gap: 10px; }
.td-flip { position: relative; width: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); cursor: pointer; perspective: 1200px; outline: none; }
.td-flip.flipped { transform: rotateY(180deg); }
.td-front, .td-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.td-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.td-info h2 { margin: 0 0 8px; font-family: var(--slab); font-size: 38px; line-height: 1; }
.td-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 22px; font-size: 14px; color: var(--ink-2); }
.td-sub .tb-rar, .td-sub .tb-rc { font-size: 11px; }
.td-info h3 { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.td-info h3 small { margin-left: 4px; color: var(--ink); }
.td-copies { list-style: none; margin: 0; padding: 0; }
.td-copies li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.td-par b { font-family: var(--mono); margin-left: 4px; }
.td-par em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #1b3f8f; color: #fff; font-family: var(--mono); font-size: 11px; }
.td-par.p-ref { background: linear-gradient(90deg, #d4145a, #e0a100, #0a9e6e, #1774d1); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.td-par.p-gold { color: #8a5f14; font-weight: 600; } .td-par.p-super { color: #1d1a16; font-weight: 700; }
.td-val { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 13px; color: #8a5f14; }
.td-val .coin-ico { width: 15px; height: 15px; }
.td-missing { display: grid; gap: 8px; justify-items: start; padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px dashed var(--hair-2); font-size: 14px; color: var(--ink-2); }
.td-missing b { font-family: var(--slab); font-size: 20px; color: var(--ink); }
.td-missing .btn { margin-top: 6px; }

@media (max-width: 1100px) { .cs-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cs-head { grid-template-columns: 1fr; } .cs-wallet { min-width: 0; }
  .cs-lower { grid-template-columns: 1fr; }
  .cs-shelf { gap: 14px; } .cs-pack { padding: 16px 14px; }
  .cp { grid-template-columns: 1fr; } .cp-total { grid-row: auto; border-right: 0; padding-right: 0; } .cp-sell { grid-column: auto; }
  .cp-tiles { grid-template-columns: repeat(3, 1fr); }
  .cc-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 12px; }
  .td-grid { grid-template-columns: 1fr; } .td-card { max-width: 280px; justify-self: center; width: 100%; }
  dialog.tc-detail { padding: 22px; }
  .cs-daily { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tc, .tc-foil, .rflip::before { animation: none !important; }
}


/* ================================================================== collecting like the real hobby */
.btn-sm { padding: 7px 14px; font-size: 13px; }
.tc-want { position: absolute; top: -3cqw; right: -3cqw; z-index: 6; width: 15cqw; height: 15cqw; display: grid; place-items: center; border-radius: 50%;
  background: #d9a23a; color: #1d1a16; font-size: 9cqw; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* a graded slab: hard clear plastic, a printed label on top, the card floating in its well */
.slab-wrap { container-type: inline-size; position: relative; }
.slab { position: relative; padding: 3cqw 3.5cqw 4cqw; border-radius: 3.5cqw;
  background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(222, 228, 236, .55) 40%, rgba(255, 255, 255, .7));
  border: 1px solid rgba(120, 130, 145, .45); box-shadow: inset 0 0 0 1.4cqw rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(20, 17, 15, .45); }
.slab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 38%, transparent 46%); }
.slab-label { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2cqw; margin-bottom: 3cqw; padding: 2cqw 3cqw;
  border-radius: 1.6cqw; background: #fbf7ee; border: .5cqw solid #b8322a; font-family: var(--mono); color: #1d1a16; overflow: hidden; }
.slab.g-10 .slab-label { border-color: #c48f16; background: linear-gradient(90deg, #fff7df, #fbf7ee); }
.sl-l { display: grid; gap: .4cqw; min-width: 0; font-size: 4.2cqw; line-height: 1.15; text-transform: uppercase; }
.sl-l > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-l b { font-size: 3.6cqw; color: #8f241e; }
.sl-r { display: grid; justify-items: center; line-height: 1; }
.sl-r b { font-family: var(--slab); font-size: 11cqw; }
.sl-r span { font-size: 3.4cqw; font-weight: 700; }
.sl-brand { position: absolute; right: 1.6cqw; bottom: .4cqw; font-size: 2.6cqw; letter-spacing: .2em; color: rgba(29, 26, 22, .35); }
.slab-well { position: relative; padding: 2cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .12); }
.cc-grid .slab-wrap { align-self: start; }

/* pick a pack out of the box */
.rip-box { grid-row: 2; grid-column: 1; display: grid; justify-items: center; gap: 12px; }
.rip-box-in { display: grid; grid-template-columns: repeat(6, clamp(58px, 8vw, 96px)); gap: 6px 8px; padding: 22px 22px 14px; border-radius: 10px;
  background: linear-gradient(#2a2622, #1a1714); box-shadow: inset 0 10px 18px rgba(0, 0, 0, .5), 0 20px 40px -18px rgba(0, 0, 0, .7); border: 3px solid #3b342c; }
.rip-pick { all: unset; cursor: pointer; transform: rotate(var(--r)); transition: transform .25s var(--ease), opacity .3s; animation: pick-in .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.rip-pick:hover, .rip-pick:focus-visible { transform: translateY(-14px) rotate(0deg); }
.rip-pick .pk-count, .rip-pick .pk-year { display: none; }
.rip-box-lid { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 247, 238, .6); }
dialog.rip.picked .rip-pick:not(.chosen) { opacity: .15; }
dialog.rip.picked .rip-pick.chosen { transform: translateY(-40px) scale(1.25); z-index: 2; }
@keyframes pick-in { from { opacity: 0; transform: translateY(20px) rotate(var(--r)); } }
.rflip-cond { margin: 4px 0 0; text-align: center; font-family: var(--mono); font-size: 10.5px; color: rgba(251, 247, 238, .45); opacity: 0; transition: .4s .7s; }
.rflip.on .rflip-cond { opacity: 1; }
.cap-want { color: #f6d488; }

/* your copies: condition, grading */
.td-copies li { grid-template-columns: 1fr auto auto; }
.td-cl { display: grid; gap: 3px; min-width: 0; }
.td-cond { font-size: 12px; color: var(--muted); }
.td-grade { justify-self: start; padding: 2px 9px; border-radius: 6px; border: 1.5px solid #b8322a; background: #fbf7ee; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.td-grade.g-10 { border-color: #c48f16; background: #fff4d6; }
.td-out { font-size: 12.5px; color: #8a5f14; font-family: var(--mono); }
.td-out.ready { color: var(--red); font-weight: 700; }
.td-acts { display: flex; gap: 4px; align-items: center; }
.td-gradebox { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--hair-2); }
.td-gradebox p { margin: 0; font-size: 13px; color: var(--ink-2); }
.td-gradebox div { display: flex; flex-wrap: wrap; gap: 8px; }
.td-gradebox small { opacity: .75; font-weight: 400; margin-left: 4px; }
.cs-grades { background: linear-gradient(100deg, #213a5c, #1d1a16); }

/* the Card Show */
.sh-table { padding: 24px 26px 28px; border-radius: 22px; background: linear-gradient(#21402f, #183224); color: var(--chalk);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), var(--sh-2); }
.sh-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sh-k { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #f6d488; }
.sh-top h2 { margin: 4px 0 2px; font-family: var(--slab); font-size: 32px; }
.sh-blurb { margin: 0; color: rgba(244, 241, 230, .7); font-size: 14px; }
.sh-walk { display: grid; gap: 6px; justify-items: end; }
.sh-walk small { color: rgba(244, 241, 230, .55); font-size: 12px; }
.sh-walk .btn-line { color: var(--chalk); background: transparent; border-color: rgba(244, 241, 230, .4); }
.sh-walk .btn-line:disabled { opacity: .45; }
.sh-case { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; padding: 22px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 14px 30px -18px rgba(255, 255, 255, .35); }
.sh-item { display: grid; gap: 10px; align-content: start; justify-items: stretch; }
.sh-card { cursor: pointer; transition: transform .25s var(--ease); }
.sh-card:hover { transform: translateY(-4px); }
.sh-tag { display: grid; gap: 2px; padding: 8px 10px; border-radius: 4px; background: #fbf7ee; color: var(--ink); transform: rotate(-1deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3); font-size: 12px; }
.sh-price { font-family: var(--slab); font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.sh-price .coin-ico { width: 15px; height: 15px; }
.sh-what { font-weight: 600; }
.sh-cond { color: var(--muted); font-size: 11.5px; }
.sh-flag { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.sh-flag.need { color: var(--green); font-weight: 700; }
.sh-flag.want { color: #8a5f14; font-weight: 700; }
.sh-item.is-want .sh-tag { background: #fff2cf; }
.sh-item .btn:disabled { opacity: .5; }
.sh-lower { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.sh-lower h2 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.sh-trades, .sh-grading { padding: 22px 24px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.tr-offer { padding: 16px 0; border-top: 1px solid var(--hair); }
.tr-offer:first-of-type { border-top: 0; padding-top: 0; }
.tr-who { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.tr-who b { font-family: var(--slab); font-size: 17px; color: var(--ink); }
.tr-swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.tr-side { display: grid; gap: 8px; justify-items: start; }
.tr-side small { font-size: 12px; color: var(--muted); }
.tr-side small b { color: var(--ink); }
.tr-k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.tr-cards { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-mini { width: 62px; }
.tr-mini.big { width: 96px; }
.tr-arrow { font-size: 26px; color: var(--muted); }
.tr-cash { display: flex; align-items: center; gap: 6px; font-family: var(--slab); font-size: 28px; }
.tr-cash .coin-ico { width: 24px; height: 24px; }
.tr-btns { display: flex; gap: 8px; margin-top: 12px; }
.gb-list { list-style: none; margin: 0 0 16px; padding: 0; }
.gb-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
.gb-list li:first-child { border-top: 0; }
.gb-name { display: grid; } .gb-name small { color: var(--muted); font-size: 12px; }
.gb-due { font-family: var(--mono); font-size: 13px; color: #8a5f14; }
.gb-how { padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 13px; color: var(--ink-2); }
.gb-how p { margin: 0 0 10px; }
.gb-how table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 12.5px; }
.gb-how td { padding: 4px 0; border-top: 1px solid var(--hair); }
.gb-how td:last-child { text-align: right; font-family: var(--mono); }
.gb-fee { font-size: 12px; color: var(--muted); }

/* opening the grading envelope */
.gr-env { all: unset; grid-row: 2; grid-column: 1; position: relative; width: min(340px, 70vw); aspect-ratio: 1.55; cursor: pointer; border-radius: 6px;
  background: linear-gradient(#e9dcbf, #dccca8); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: bob 2.4s ease-in-out infinite; overflow: hidden; }
.gr-env-flap { position: absolute; inset: 0 0 45% 0; background: linear-gradient(#d6c49d, #cdb98f); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s var(--ease); }
.gr-env-lbl { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); padding: 6px 14px; border: 2px solid #b8322a; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #8f241e; white-space: nowrap; background: #fbf7ee; }
.gr-env.open { animation: none; transform: translateY(40vh) rotate(-6deg); opacity: 0; transition: transform .7s .2s var(--ease), opacity .5s .3s; }
.gr-env.open .gr-env-flap { transform: rotateX(180deg); }
.gr-out { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: min(250px, 42vw) minmax(0, 320px); gap: 34px; align-items: center; color: var(--chalk); animation: pick-in .6s var(--ease) both; --r: 0deg; }
.gr-num { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.gr-num b { font-family: var(--slab); font-size: 92px; line-height: .9; }
.gr-num span { font-family: var(--mono); font-size: 16px; text-transform: uppercase; letter-spacing: .12em; }
.gr-num.g-10 b { background: linear-gradient(90deg, #f6d488, #fff, #f6d488); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gr-verdict { margin: 4px 0 16px; font-size: 17px; color: rgba(244, 241, 230, .8); }
.gr-subs { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-family: var(--mono); font-size: 12.5px; }
.gr-subs td { padding: 4px 0; }
.gr-subs td:nth-child(2) { width: 50%; padding: 0 12px; }
.gr-subs i { display: block; height: 6px; border-radius: 3px; width: var(--v); background: linear-gradient(90deg, #d9a23a, #f6d488); }
.gr-val { margin: 0 0 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gr-val b { font-family: var(--slab); font-size: 22px; } .gr-val small { opacity: .6; }
@media (max-width: 860px) {
  .sh-lower { grid-template-columns: 1fr; }
  .tr-swap { grid-template-columns: 1fr; } .tr-arrow { transform: rotate(90deg); justify-self: center; }
  .gr-out { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rip-box-in { grid-template-columns: repeat(4, 64px); }
}

/* Binder Squad lineup editor */
.sq-dialog { width: min(760px, 94vw); }
.sq h2 { margin: 2px 0 6px; font-family: var(--slab); font-size: 30px; }
.sq-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.sq-warn { padding: 10px 14px; border-radius: 10px; background: #fff2cf; font-size: 13.5px; }
.sq-rows { list-style: none; margin: 0 0 14px; padding: 0; }
.sq-rows li { display: grid; grid-template-columns: 26px 40px 70px 1fr 34px 118px; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--hair); }
.sq-rows li:first-child { border-top: 0; }
.sq-n { font-family: var(--slab); font-size: 20px; font-weight: 700; text-align: center; }
.sq-move { display: flex; gap: 2px; }
.sq-move button { width: 19px; height: 22px; padding: 0; border: 1px solid var(--hair-2); border-radius: 5px; background: var(--card-2); font-size: 9px; cursor: pointer; }
.sq-move button:disabled { opacity: .3; cursor: default; }
.sq-rows select, .sq-sp select { min-width: 0; padding: 6px 8px; border: 1px solid var(--hair-2); border-radius: 8px; background: var(--card-2); font: inherit; font-size: 13.5px; }
.sq-ovr { font-family: var(--mono); text-align: right; }
.sq-rows em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--red); }
.sq-rows em.w { color: #8a5f14; }
.sq-rows li.off select[data-pos] { border-color: var(--red); }
.sq-rows li.weak { background: linear-gradient(90deg, rgba(217, 165, 32, .12), transparent); }
.sq-sp { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.sq-sp select { flex: 1; }
.sq-tip { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.sq-tip a { color: var(--red); }
.sq-btns { display: flex; gap: 10px; justify-content: flex-end; }
.cp-squad { margin-top: 8px; }
@media (max-width: 640px) { .sq-rows li { grid-template-columns: 22px 40px 62px 1fr 30px; } .sq-rows em { display: none; } }

/* premium and limited packs */
.pack-chrome { --f1: #5d6b7a; --f2: #e8eef5; --f3: #1e252e; --ink-p: #0f1820; }
.pack-chrome .pk-body::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 200deg at 30% 40%, rgba(255, 77, 141, .25), rgba(255, 216, 77, .25), rgba(77, 255, 176, .25), rgba(77, 195, 255, .25), rgba(201, 77, 255, .25), rgba(255, 77, 141, .25)); mix-blend-mode: overlay; }
.pack-elite { --f1: #0b0b0d; --f2: #3a3a40; --f3: #000; --ink-p: #f6d488; }
.pack-elite .pk-body { box-shadow: inset 0 0 0 1.4cqw #d9a23a, inset 0 0 0 2.2cqw #0b0b0d, inset 0 0 0 2.8cqw rgba(217, 162, 58, .5); }
.pack-rookie { --f1: #0f7a4f; --f2: #57d39b; --f3: #063a25; }
.pack-legends { --f1: #5a1f1f; --f2: #c9a25c; --f3: #2a0c0c; --ink-p: #fbe8c2; }
.pack-golden { --f1: #9a6a12; --f2: #ffe08a; --f3: #4a3204; --ink-p: #2a1a02; }
.pk-ltd { position: absolute; top: 4cqw; right: -9cqw; transform: rotate(35deg); padding: 1cqw 12cqw; background: #e0403a; color: #fff; font-family: var(--mono); font-size: 4.4cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cs-shelf-h { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; font-family: var(--slab); font-size: 24px; }
.cs-shelf-h small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.cs-shelf-h.ltd { color: #b8322a; }
.cs-ltd, .cs-prem { display: inline-block; justify-self: start; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cs-ltd { background: #fde3df; color: #8f241e; }
.cs-prem { background: #fff2cf; color: #8a5f14; }
.cs-pack.is-limited { border-color: rgba(184, 50, 42, .35); box-shadow: 0 0 0 3px rgba(184, 50, 42, .08), var(--sh-1); }
.cs-pack.is-premium { background: linear-gradient(180deg, #fffaf0, var(--card-2)); }

/* ---------------------------------------------------------------- art inserts */
/* Woodgrain: a warm wood border around a cream photo window, like the old-school sets */
.tc.x-wood { background: repeating-linear-gradient(92deg, #6b4423 0 .8cqw, #7a4f2a .8cqw 1.6cqw, #5c3a1e 1.6cqw 2.1cqw, #845733 2.1cqw 3.2cqw),
  linear-gradient(180deg, #8a5a32, #4a2d16); background-blend-mode: multiply; }
.tc.x-wood .tc-frame { box-shadow: 0 0 0 .9cqw #f3ead2, 0 0 0 1.5cqw #3a2410; }
.tc.x-wood .tc-bg { background: linear-gradient(180deg, #efe4c8, #d9c79c); }
.tc.x-wood .tc-bg::after { display: none; }
.tc.x-wood .tc-img { filter: sepia(.18) saturate(1.1); }
.tc.x-wood .tc-plate { background: #f3ead2; color: #3a2410; }
.tc.x-wood .tc-plate::before { background: var(--c1); }
.tc.x-wood .tc-ins-name { background: #3a2410; color: #f3ead2; }
/* Neon Nights: a night-city backdrop, the player outlined in glowing tube light */
.tc.x-neon { background: #07060d; box-shadow: 0 0 0 .5cqw #ff3cac, 0 0 3cqw rgba(255, 60, 172, .55); animation: neon-buzz 3.2s steps(1) infinite; }
.tc.x-neon .tc-frame { background: #07060d; box-shadow: 0 0 0 .5cqw #2ef2ff inset; }
.tc.x-neon .tc-bg { background: radial-gradient(70% 45% at 50% 30%, rgba(255, 60, 172, .35), transparent 70%),
  repeating-linear-gradient(0deg, rgba(46, 242, 255, .1) 0 .4cqw, transparent .4cqw 4cqw), linear-gradient(180deg, #1a0b2e, #07060d); }
.tc.x-neon .tc-bg::after { display: none; }
.tc.x-neon .tc-img { filter: drop-shadow(0 0 .6cqw #2ef2ff) drop-shadow(0 0 1.6cqw #ff3cac) contrast(1.1); }
.tc.x-neon .tc-plate { background: #07060d; color: #2ef2ff; text-shadow: 0 0 1.4cqw #2ef2ff; }
.tc.x-neon .tc-last { color: #ff7ad1; text-shadow: 0 0 1.6cqw #ff3cac; }
.tc.x-neon .tc-plate::before { background: #ff3cac; box-shadow: 0 0 2cqw #ff3cac; }
.tc.x-neon .tc-ins-name { background: #07060d; color: #2ef2ff; box-shadow: 0 0 0 .3cqw #2ef2ff, 0 0 2cqw #2ef2ff; }
@keyframes neon-buzz { 0%, 92%, 96% { filter: none; } 94% { filter: brightness(.7); } }
/* Stained Glass: jewel-toned panes with dark lead lines behind the player */
.tc.x-glass { background: #1b1b22; }
.tc.x-glass .tc-frame { box-shadow: 0 0 0 .8cqw #2b2b33; }
.tc.x-glass .tc-bg { background:
  conic-gradient(from 20deg at 30% 30%, #d4145a 0 60deg, #1774d1 0 140deg, #e0a100 0 210deg, #0a9e6e 0 280deg, #7b2fbf 0 360deg),
  #222; filter: saturate(1.2); }
.tc.x-glass .tc-bg::after { content: ""; position: absolute; inset: 0; display: block; opacity: 1;
  background: repeating-linear-gradient(35deg, transparent 0 9cqw, #1b1b22 9cqw 10cqw), repeating-linear-gradient(-55deg, transparent 0 12cqw, #1b1b22 12cqw 13cqw),
  radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .35), transparent 40%); }
.tc.x-glass .tc-plate { background: #1b1b22; color: #f3ecda; }
.tc.x-glass .tc-plate::before { background: linear-gradient(90deg, #d4145a, #e0a100, #0a9e6e, #1774d1, #7b2fbf); }
.tc.x-glass .tc-ins-name { background: #f3ecda; color: #1b1b22; }
/* Comic Burst: halftone dots, a starburst and heavy ink outlines */
.tc.x-comic { background: #ffd400; }
.tc.x-comic .tc-frame { box-shadow: 0 0 0 .9cqw #111; }
.tc.x-comic .tc-bg { background: radial-gradient(circle, #e8261b 22%, transparent 23%) 0 0 / 3cqw 3cqw,
  repeating-conic-gradient(from 0deg at 50% 38%, #ffd400 0 9deg, #ff8a00 9deg 18deg); }
.tc.x-comic .tc-bg::after { display: none; }
.tc.x-comic .tc-img { filter: drop-shadow(.6cqw 0 0 #111) drop-shadow(-.6cqw 0 0 #111) drop-shadow(0 .6cqw 0 #111) drop-shadow(0 -.6cqw 0 #111) saturate(1.4) contrast(1.15); }
.tc.x-comic .tc-plate { background: #fff; color: #111; border-top: .8cqw solid #111; }
.tc.x-comic .tc-last { font-style: italic; text-shadow: .5cqw .5cqw 0 #e8261b; }
.tc.x-comic .tc-plate::before { background: #e8261b; }
.tc.x-comic .tc-ins-name { background: #e8261b; color: #fff; box-shadow: .5cqw .5cqw 0 #111; transform: rotate(-4deg); }
.dot-wood { background: #6b4423; } .dot-neon { background: #ff3cac; box-shadow: 0 0 4px #2ef2ff; }
.dot-glass { background: conic-gradient(#d4145a, #1774d1, #e0a100, #0a9e6e, #d4145a); } .dot-comic { background: #ffd400; box-shadow: 0 0 0 1.5px #111; }

/* ---------------------------------------------------------------- Card Show: haggling, buy list, repacks */
.sh-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-btns .btn { flex: 1; padding-left: 8px; padding-right: 8px; }
.sh-table .sh-btns .btn-line { color: var(--chalk); background: transparent; border-color: rgba(244, 241, 230, .45); }
.btn-gold { background: #d9a23a; color: #1d1a16; border-color: #d9a23a; }
.sh-counter { width: 100%; }
.sh-offer { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: end; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); }
.sh-offer label { display: grid; gap: 3px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(244, 241, 230, .7); }
.sh-offer input { width: 100%; padding: 6px 8px; border-radius: 6px; border: 0; font: inherit; font-size: 14px; }
.sh-say { margin: 0; padding: 7px 10px; border-radius: 10px 10px 10px 2px; background: #fbf7ee; color: var(--ink); font-size: 12.5px; font-style: italic; }
.sh-extras { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.sh-extras h2 { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.sh-buy, .sh-repack { padding: 22px 24px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.sh-buy-sub { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.sh-buy-grid { display: grid; gap: 14px; }
.sh-buy-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.sh-buy-item > div:last-child { display: grid; gap: 6px; justify-items: start; }
.sh-buy-item b { font-family: var(--slab); font-size: 18px; }
.sh-pay { font-family: var(--mono); font-weight: 700; color: var(--green); display: flex; gap: 4px; align-items: center; }
.sh-pay .coin-ico { width: 14px; height: 14px; }
.sh-buy-item small { font-size: 12px; color: var(--muted); }
.sh-repack { display: grid; gap: 10px; justify-items: center; text-align: center; }
.sh-repack p { margin: 0; font-size: 13px; color: var(--ink-2); }
.sh-repack small { color: var(--muted); font-size: 12px; }
.sh-repack-box, .pack-repack { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; width: 150px; aspect-ratio: 5 / 6; cursor: pointer; border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 5px), linear-gradient(160deg, #c9a070, #a9804f); box-shadow: 0 14px 26px -12px rgba(29, 26, 22, .5);
  transition: transform .25s var(--ease); }
.sh-repack-box:hover:not(:disabled) { transform: rotate(-3deg) translateY(-4px); }
.sh-repack-box:disabled { opacity: .45; cursor: default; }
.rb-tape { position: absolute; inset: 40% -6px auto; height: 22px; background: rgba(240, 232, 200, .85); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.rb-q { position: relative; font-family: var(--slab); font-size: 64px; font-weight: 700; color: #3b2a16; text-shadow: 0 2px 0 rgba(255, 255, 255, .3); }
.rb-label { position: absolute; bottom: 10px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3b2a16; }
.pack-repack { width: 100%; }
.pack-repack .pk-crimp { display: none; }
.pack-repack .pk-body { background: none; color: #3b2a16; }
@media (max-width: 860px) { .sh-extras { grid-template-columns: 1fr; } }

/* the insert's name sits in the top corner (inserts hide the rating badge), clear of the player's face */
.tc.ins .tc-ins-name { top: 3.6cqw; left: 4cqw; transform: none; }
.tc.x-comic .tc-ins-name { transform: rotate(-4deg); }

/* ---------------------------------------------------------------- collector profile */
.col { margin: 22px 0 30px; padding: 22px 24px; border-radius: 22px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-2); }
.col:empty { display: none; }
.col-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 18px; }
.col-badge { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #d9a23a 55%, #8a5f14);
  box-shadow: 0 0 0 4px #fbf7ee, 0 0 0 6px #d9a23a, 0 10px 20px -8px rgba(138, 95, 20, .6); color: #2a1a02; line-height: 1; }
.col-badge span { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.col-badge b { font-family: var(--slab); font-size: 34px; }
.col-who h2 { margin: 2px 0 8px; font-family: var(--slab); font-size: 28px; }
.col-who small { font-size: 12.5px; color: var(--muted); }
.col-xp { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-bottom: 6px; max-width: 420px; }
.col-xp i { display: block; height: 100%; background: linear-gradient(90deg, #d9a23a, #f6d488); border-radius: 4px; transition: width .6s var(--ease); }
.col-body h3 { margin: 16px 0 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ach { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: var(--paper); border: 1px solid var(--hair); opacity: .78; }
.ach.done { opacity: 1; background: #fffaf0; border-color: rgba(217, 162, 58, .45); }
.ach b { display: block; font-family: var(--slab); font-size: 16px; }
.ach span { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.ach em { display: block; margin-top: 5px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.ach.done em { color: #8a5f14; }
.ach-medal { width: 30px; height: 30px; border-radius: 50%; filter: grayscale(1) opacity(.45); }
.ach.done .ach-medal { filter: none; }
.t-bronze .ach-medal { background: radial-gradient(circle at 35% 30%, #f3c9a0, #b06b2e 60%, #6b3a12); }
.t-silver .ach-medal { background: radial-gradient(circle at 35% 30%, #ffffff, #b8c0c8 55%, #6d757e); }
.t-gold .ach-medal { background: radial-gradient(circle at 35% 30%, #fff3c4, #d9a23a 55%, #8a5f14); }
.ach-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.ach-bar i { display: block; height: 100%; background: var(--ink-2); }
.col-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
.col-best-item { position: relative; display: grid; gap: 6px; justify-items: center; cursor: pointer; }
.col-best-item small { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.col-best-item small .coin-ico { width: 13px; height: 13px; }
.col-rank { position: absolute; top: -10px; left: -6px; z-index: 7; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #f6d488; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.col-pulls { list-style: none; margin: 0; padding: 0; }
.col-pulls li { display: grid; grid-template-columns: 1.2fr 1fr .8fr 80px; gap: 12px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--hair); font-size: 13.5px; cursor: pointer; }
.col-pulls li:hover { background: var(--paper); }
.col-pulls small { color: var(--muted); font-size: 12px; }
.col-pulls time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .col-head { grid-template-columns: auto 1fr; } .col-tabs { grid-column: 1 / -1; } .col-pulls li { grid-template-columns: 1fr 1fr; } }

/* unlock pop-up (shown anywhere in the app) */
.unlock-toast { position: fixed; left: 50%; top: 84px; z-index: 300; transform: translate(-50%, 0); display: grid; justify-items: center; gap: 2px; min-width: 260px; padding: 14px 26px 12px;
  border-radius: 18px; background: #1d1a16; color: #fbf7ee; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55), 0 0 0 2px #d9a23a; cursor: pointer; animation: unlock-in .5s var(--ease) both; }
.unlock-toast.go { opacity: 0; transform: translate(-50%, -14px); transition: .5s; }
.unlock-toast .ut-k { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #f6d488; }
.unlock-toast b { font-family: var(--slab); font-size: 22px; }
.unlock-toast .ut-t { font-size: 13px; color: rgba(251, 247, 238, .75); }
.unlock-toast .ut-c { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 13px; color: #f6d488; }
.unlock-toast .ut-c .coin-ico { width: 15px; height: 15px; }
.unlock-toast.tier-gold { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55), 0 0 0 2px #f6d488, 0 0 30px rgba(246, 212, 136, .5); }
.unlock-toast.tier-silver { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55), 0 0 0 2px #c8cfd6; }
.unlock-toast.tier-bronze { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55), 0 0 0 2px #b06b2e; }
@keyframes unlock-in { from { opacity: 0; transform: translate(-50%, -20px) scale(.92); } }

/* a repeat pull in the pack reveal */
.tc-new.tc-dupe { background: #4a443b; color: #fbf7ee; }
.cp-sell #cp-extras { margin-top: 8px; }


/* what makes one copy worth more than another */
.td-prem { font-family: var(--mono); font-size: 11px; font-weight: 600; color: #8a5f14; }
.rflip-prem { margin: 3px 0 0; text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #f6d488; opacity: 0; transition: .4s .8s; }
.rflip.on .rflip-prem { opacity: 1; }


/* ---------------------------------------------------------------- Card Odds */
.od-tools { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr; gap: 14px; margin-bottom: 22px; }
.od-tools label { display: grid; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.od-tools input, .od-tools select { padding: 11px 14px; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--card-2); font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.od-search { position: relative; }
#od-sug { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--card-2); box-shadow: var(--sh-3); border: 1px solid var(--hair); }
#od-sug li { display: grid; grid-template-columns: 26px 1fr; gap: 0 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; }
#od-sug li:hover { background: var(--paper); }
#od-sug img { grid-row: span 2; width: 26px; height: 26px; }
#od-sug b { font-family: var(--sans); font-size: 14px; color: var(--ink); }
#od-sug span { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); }
.od-result { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; margin-bottom: 24px; }
.od-info h2 { margin: 2px 0 4px; font-family: var(--slab); font-size: 34px; }
.od-kind { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: #8a5f14; }
.od-no { padding: 10px 14px; border-radius: 10px; background: #fde3df; color: #8f241e; font-size: 14px; }
.od-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.od-stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--hair); }
.od-stats span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.od-stats b { display: flex; align-items: center; gap: 5px; font-family: var(--slab); font-size: 22px; }
.od-stats b .coin-ico { width: 18px; height: 18px; }
.od-stats small { font-size: 12px; color: var(--ink-2); }
.od-note { font-size: 13px; color: var(--ink-2); }
.od-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.od-table { width: 100%; border-collapse: collapse; background: var(--card-2); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1); font-size: 14px; }
.od-table th { padding: 10px 14px; text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper); }
.od-table td { padding: 10px 14px; border-top: 1px solid var(--hair); }
.od-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.od-table tr.best td { background: #fff6dc; }
.od-table tr.best td:first-child::after { content: "Best value"; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #d9a23a; color: #1d1a16; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.od-table tr.none td { color: var(--muted); }
.od-ltd { font-style: normal; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: #fde3df; color: #8f241e; font-family: var(--mono); font-size: 10px; font-weight: 700; }
.od-ltd.rp { background: #e6efe5; color: var(--green); }
.od-foot { margin-top: 12px; font-size: 12.5px; color: var(--muted); max-width: 820px; }
@media (max-width: 860px) { .od-tools { grid-template-columns: 1fr; } .od-result { grid-template-columns: 1fr; } .od-card { max-width: 240px; } .od-table { font-size: 12.5px; } }

/* ---------------------------------------------------------------- Admin (owner only) */
.tabs a[hidden] { display: none !important; }
.ad-h { margin: 26px 0 12px; font-family: var(--slab); font-size: 24px; }
.ad-people small { color: var(--muted); font-size: 12px; }
.ad-feed-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ad-feed-head select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--hair-2); background: var(--card-2); font: inherit; }
.ad-feed-head small { color: var(--muted); font-size: 12px; }
.ad-hits { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; }
.ad-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ad-feed li { padding: 12px 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.ad-who { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.ad-who b { font-family: var(--slab); font-size: 17px; }
.ad-who span { font-family: var(--mono); font-size: 12px; color: #8a5f14; }
.ad-who time { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ad-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-c { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--paper); font-size: 12.5px; }
.ad-c i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ad-c em { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #8a5f14; }
.ad-c small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.ad-c.hit { background: #fff2cf; box-shadow: 0 0 0 1px rgba(217, 162, 58, .55); font-weight: 600; }

/* ---------------------------------------------------------------- the Collection: summary, views, recently pulled */
.cv-stats { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1.2fr; gap: 14px; margin-bottom: 22px; }
.cv-stat { display: grid; align-content: start; gap: 3px; padding: 16px 18px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--hair); box-shadow: var(--sh-1); min-width: 0; }
.cv-stat > span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cv-stat b { display: flex; align-items: center; gap: 6px; font-family: var(--slab); font-size: 26px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-stat b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.cv-stat b .coin-ico { width: 20px; height: 20px; flex: none; }
.cv-stat em { font-style: normal; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-bar { display: block; height: 6px; margin: 4px 0 2px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.cv-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #b8322a, #d9a23a); }
.cv-pick { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.cv-pick:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.cv-tabs { position: sticky; top: 74px; z-index: 20; display: flex; gap: 4px; margin: 0 0 18px; padding: 5px; border-radius: 16px; background: rgba(251, 247, 238, .92);
  backdrop-filter: blur(8px); border: 1px solid var(--hair); box-shadow: var(--sh-1); overflow-x: auto; }
.cv-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 14px; border: 0; border-radius: 12px; background: none;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.cv-tabs button:hover { background: var(--paper); }
.cv-tabs button.on { background: var(--ink); color: var(--card-2); }
.cv-tabs small { padding: 1px 7px; border-radius: 999px; background: rgba(29, 26, 22, .08); font-size: 10.5px; letter-spacing: 0; }
.cv-tabs button.on small { background: rgba(255, 255, 255, .18); }
.cv-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.cv-tools input[type=search] { flex: 1; min-width: 200px; max-width: 360px; padding: 10px 14px; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--card-2); font: inherit; }
.cv-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.cv-toggle small { color: var(--muted); }
.cv-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cv-day { margin-top: 18px; }
.cv-day h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); font-family: var(--slab); font-size: 22px; }
.cv-day h3 small { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.cv-item { margin: 0; display: grid; gap: 8px; cursor: pointer; }
.cv-item figcaption { display: grid; gap: 1px; text-align: center; }
.cv-item figcaption b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cv-item.special figcaption b { color: #8a5f14; }
.cv-item figcaption span { display: inline-flex; justify-content: center; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cv-item figcaption .coin-ico { width: 12px; height: 12px; }
.cv-item:hover .tc { transform: translateY(-4px); }
.cv-empty { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 22px; background: var(--card-2); border: 1px dashed var(--hair-2); }
.cv-empty h3 { margin: 0 0 6px; font-family: var(--slab); font-size: 26px; }
.cv-empty p { margin: 0 0 14px; color: var(--ink-2); }
@media (max-width: 980px) { .cv-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cv-stats { grid-template-columns: 1fr; } .cv-empty { grid-template-columns: 1fr; } .cv-tabs { top: 64px; } }

/* ---------------------------------------------------------------- free cards, saved packs, trivia */
.free-dots { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.free-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(251, 247, 238, .18); border: 1px solid rgba(246, 212, 136, .5); }
.free-dots i.on { background: #f6d488; }
.cs-free.done { opacity: .8; }
.cs-free.done::after { display: none; }
.cs-sealed { margin: 0 0 26px; }
.cs-sealed-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sealed-pack { position: relative; display: grid; justify-items: center; gap: 3px; width: 150px; padding: 12px 10px; cursor: pointer; text-align: center;
  border: 1px solid #ecd9a0; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #fbefd2); box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s; }
.sealed-pack:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--sh-2); }
.sp-art { width: 74px; display: block; }
.sp-art > * { width: 100%; height: auto; }
.sp-n { position: absolute; top: 8px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.sealed-pack b { font-size: 14px; }
.sealed-pack small { color: var(--muted); font-size: 12px; }
.cs-log li.is-pack b { color: #8a5f14; font-size: 13px; }
.unlock-toast.tier-pack { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55), 0 0 0 2px var(--red); cursor: pointer; }

.tv-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.tv-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tv-pay span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--hair); font-size: 13.5px; }
.tv-pay .coin-ico { width: 16px; height: 16px; }
.tv-card { padding: 26px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--card-2); box-shadow: var(--sh-2); text-align: center; display: grid; gap: 10px; justify-items: center; }
.tv-final { display: flex; align-items: baseline; gap: 8px; }
.tv-final b { font-family: var(--slab); font-size: 72px; line-height: 1; }
.tv-final span { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tv-final-sub { margin: 0; color: var(--ink-2, var(--ink)); }
.tv-won { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; }
.tv-won.muted { color: var(--muted); font-size: 14px; }
.tv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin: 8px 0 0; }
.tv-stats div { padding: 8px 4px; border-radius: 12px; background: var(--paper); }
.tv-stats dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tv-stats dd { margin: 2px 0 0; font-family: var(--slab); font-size: 20px; }
.tv-play { max-width: 820px; margin: 0 auto; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.tv-n b { font-family: var(--slab); font-size: 20px; }
.tv-dots { display: flex; gap: 5px; }
.tv-dots i { width: 22px; height: 6px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); }
.tv-dots i.past { background: var(--ink); border-color: var(--ink); } .tv-dots i.now { background: var(--red); border-color: var(--red); }
.tv-score { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 13px; }
.tv-score .coin-ico { width: 15px; height: 15px; }
.tv-q { padding: 30px 32px 22px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--card-2); box-shadow: var(--sh-2); }
.tv-q h2 { margin: 4px 0 16px; font-family: var(--slab); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.tv-clock { position: relative; height: 8px; margin: 0 0 20px; border-radius: 999px; background: var(--paper-2); }
.tv-clock i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--green); }
.tv-clock i.low { background: var(--red); }
.tv-clock span { position: absolute; right: 0; top: -22px; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tv-opt { display: flex; align-items: center; gap: 12px; padding: 15px 16px; text-align: left; cursor: pointer; border: 1.5px solid var(--hair-2); border-radius: 14px;
  background: #fff; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); transition: transform .15s, border-color .15s, background .15s; }
.tv-opt span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--paper); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.tv-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ink); }
.tv-opt:disabled { cursor: default; }
.tv-opt.chosen { border-color: var(--ink); }
.tv-opt.right { background: #e3f1df; border-color: var(--green); }
.tv-opt.right span { background: var(--green); color: #fff; }
.tv-opt.wrong { background: #fbe4e0; border-color: var(--red); }
.tv-opt.wrong span { background: var(--red); color: #fff; }
.tv-msg { min-height: 26px; margin: 14px 0 0; font-size: 15px; }
.tv-msg .ok { color: var(--green); } .tv-msg .no { color: var(--red); }
.tv-chip { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #fff3cf; border: 1px solid #ecd9a0; font-family: var(--mono); font-size: 12px; }
@media (max-width: 760px) { .tv-hero { grid-template-columns: 1fr; } .tv-opts { grid-template-columns: 1fr; } .tv-q { padding: 22px 18px; } .tv-dots i { width: 14px; } }

/* small phones: the header has to fit in 375px */
@media (max-width: 480px) {
  .masthead { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px 0; gap: 8px; }
  .wordmark, body.scrolled .wordmark { font-size: 17px; gap: 6px; min-width: 0; }
  .wordmark span { overflow: hidden; text-overflow: ellipsis; }
  .wordmark svg, body.scrolled .wordmark svg { width: 22px; height: 22px; flex: none; }
  .mh-right { gap: 5px; }
  .coin-pill { padding: 5px 9px 5px 6px; font-size: 12px; gap: 5px; }
  .coin-pill .coin-ico { width: 15px; height: 15px; }
  .tour-btn { display: none; }
  .acct-btn { padding: 6px 11px; font-size: 11px; }
  .tab-btn, .tabs .tab-solo { letter-spacing: .4px; padding-left: 2px; padding-right: 2px; }
}
