/* Cards round 11/5 (card-craft.js): Crafting (.tcc-*), the WANTED card of the week (.tcw-*), the Showcase (.tcs-*).
   Grids stay light: no per-card animation, no backdrop-filter. */

/* the new tab + phones: a lone last tab in the 4-wide grid spans the row */
.tc-tabs-v3 .tc-t-craft { --ta: #e0954f; }
@media (max-width: 760px) { .tc-tabs-v3 > button:last-child:nth-child(4n+1) { grid-column: 1 / -1; } }

/* ── Scrap nut (CSS only: a hex nut in brushed brass) ── */
.tcc-nut { display: inline-block; width: .86em; height: .86em; margin-right: .28em; vertical-align: -.07em; flex: 0 0 auto;
  background: linear-gradient(135deg, #fbecc6 0%, #d8ad5c 38%, #8a6224 62%, #e9c57e 85%, #fff2cf 100%);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 23%, #000 26%); mask: radial-gradient(circle at 50% 50%, transparent 0 23%, #000 26%); }
.tcc-nut.big { width: 34px; height: 34px; margin: 0; vertical-align: middle; }

/* ═══ Crafting ═══ */
.tcc { display: grid; gap: 14px; }
.tcc-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(110% 170% at 0% 0%, rgba(224,149,79,.2), transparent 58%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012)), #141215;
  border: 1px solid rgba(224,149,79,.42); }
.tcc-bal { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-right: 1px solid rgba(255,255,255,.08); }
.tcc-bal-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(255,214,140,.16), rgba(0,0,0,.25)); border: 1px solid rgba(224,149,79,.35); filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.tcc-bal > div { display: grid; gap: 2px; }
.tcc-bal em { font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #f0b27a; }
.tcc-bal b { font: 900 34px/1 "Barlow Condensed", sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.tcc-bal small { color: #9aa1ad; font-size: 13px; }
.tcc-head-txt { display: grid; gap: 3px; min-width: 0; }
.tcc-head-txt b { font: 900 22px/1.05 "Barlow Condensed", sans-serif; color: #fff; }
.tcc-head-txt span { color: #b9bfcb; font-size: 14.5px; line-height: 1.35; }
.tcc-head-act { display: grid; gap: 8px; justify-items: stretch; }
.tcc-dupes { background: linear-gradient(180deg, #e7a160, #b5652a) !important; color: #1d0f04 !important; border: 0 !important; font-weight: 800 !important; box-shadow: 0 6px 16px rgba(224,149,79,.28); }
.tcc-head-act .cx-btn { height: auto !important; min-height: 46px; }
.tcc-dupes { display: grid !important; place-content: center; gap: 2px; padding: 7px 18px !important; line-height: 1.05; }
.tcc-dupes small { font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: none; opacity: .85; }
.tcc-dupes:disabled { background: rgba(255,255,255,.06) !important; color: #8d95a5 !important; box-shadow: none; }

.tcc-rates { display: grid; grid-template-columns: auto repeat(6, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #121318; }
.tcc-rate { display: grid; grid-template-rows: repeat(3, auto); text-align: center; border-left: 1px solid rgba(255,255,255,.06); }
.tcc-rate > span { padding: 7px 10px; font: 700 15px/1.1 "Barlow Condensed", sans-serif; color: #e7eaf0; font-variant-numeric: tabular-nums; }
.tcc-rate > span:first-child { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; letter-spacing: .04em; color: var(--rr, #c9ced8); background: rgba(255,255,255,.025); }
.tcc-rate > span:first-child i { width: 8px; height: 8px; border-radius: 2px; background: var(--rr, #9ea4ac); transform: rotate(45deg); }
.tcc-rate > span:nth-child(2) { color: #f0b27a; }
.tcc-rate.h { border-left: 0; text-align: left; }
.tcc-rate.h > span { color: #8d95a5; font: 800 11.5px/1.3 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; padding-top: 9px; }
.tcc-rate.h > span:first-child { background: rgba(255,255,255,.025); justify-content: flex-start; }
.tcc-rate-note { grid-column: 1 / -1; margin: 0; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.06); color: #8d95a5; font-size: 13px; line-height: 1.35; }
:is(.tcc-rate, .tcc-chip, .tcw).r-common { --rr: #b4bac3; } :is(.tcc-rate, .tcc-chip, .tcw).r-uncommon { --rr: #4cc764; } :is(.tcc-rate, .tcc-chip, .tcw).r-rare { --rr: #6b86ff; }
:is(.tcc-rate, .tcc-chip, .tcw).r-epic { --rr: #a274ff; } :is(.tcc-rate, .tcc-chip, .tcw).r-legendary { --rr: #e4ae39; } :is(.tcc-rate, .tcc-chip, .tcw).r-mythic { --rr: #ff4fd8; }

.tcc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tcc-sel { display: flex; align-items: center; gap: 8px; color: #8d95a5; font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tcc-sel select { height: 36px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: #16181e; color: #fff; font: 600 15px "Barlow Condensed", sans-serif; letter-spacing: 0; text-transform: none; }
.tcc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tcc-chip { height: 32px; padding: 0 12px !important; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rr, #c9ced8) 40%, transparent); background: rgba(255,255,255,.03);
  color: color-mix(in srgb, var(--rr, #c9ced8) 70%, #fff); font: 700 14px/1 "Barlow Condensed", sans-serif; cursor: pointer; box-shadow: none; }
.tcc-chip.on { background: color-mix(in srgb, var(--rr, #c9ced8) 85%, #000); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.tcc-chip:not(.on):hover { background: rgba(255,255,255,.07); }
.tcc-toggle { display: flex; align-items: center; gap: 7px; color: #d6dae2; font: 600 15px "Barlow Condensed", sans-serif; cursor: pointer; }
.tcc-toggle input { width: 17px; height: 17px; accent-color: #e0954f; }
.tcc-count { margin: 0; color: #8d95a5; font-size: 14px; line-height: 1.4; }
/* search + scrap filters (11/6 player request) */
.tcc-search { flex: 1 1 240px; max-width: 360px; display: block; }
.tcc-search input { width: 100%; height: 36px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); color: #fff; font: 600 15px "Barlow Condensed", sans-serif;
  background: #16181e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d95a5' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px center/16px no-repeat; }
.tcc-search input:focus { outline: none; border-color: rgba(224,149,79,.7); }
.tcc-scrap > .tcc-filters { padding: 12px 14px; border-radius: 12px; background: #141619; border: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.tcc-sall:not(.ghost) { background: rgba(224,149,79,.2) !important; border-color: rgba(224,149,79,.6) !important; color: #ffd2a8 !important; }
.tcc-picked { margin: 2px 0 6px; padding: 9px 14px; border-radius: 10px; background: #141619; border: 1px solid rgba(224,149,79,.35); color: #d6dae2; font-size: 14px; }
.tcc-picked b { color: #ffd2a8; }
.tcc-scrap > .tcc-count { margin: 0 0 12px; font-size: 13px; }
.tcc-scrap .tcc-sbar { flex-wrap: wrap; } .tcc-scrap .tcc-sbar > span { flex: 1 1 340px; }
@media (max-width: 600px) { .tcc-search { max-width: none; flex-basis: 100%; } }
/* phones (player screenshot 11/6: the hint was squeezed into a one-word column with the buttons pushed off the right): hint on
   its own full-width line, then the buttons in a tidy 2-column grid; the Scrap button spans the full width */
@media (max-width: 600px) {
    .tcc-scrap .tcc-sbar { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
    .tcc-scrap .tcc-sbar > span { grid-column: 1 / -1; min-width: 0; font-size: 14px; line-height: 1.4; }
    .tcc-scrap .tcc-sbar .cx-btn { grid-column: span 2; width: 100%; min-width: 0; height: 44px; padding: 0 8px !important; font-size: 13px !important; letter-spacing: .05em !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tcc-scrap .tcc-sbar [data-tcc-sclear] { grid-column: span 1; }
    .tcc-scrap .tcc-sbar .tcc-go { grid-column: span 3; }
}

/* ── Craft by set (11/6 player request): strip of set tiles → set panel with "Craft all missing". Premium dark, gold + the
   workbench orange, never purple ── */
.tcc-sets { display: grid; gap: 10px; margin: 0 0 14px; }
.tcc-sets-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tcc-sets-h b { position: relative; padding-left: 12px; font: 800 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #eef0f3; }
.tcc-sets-h b::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; border-radius: 2px; background: #e0954f; }
.tcc-sets-h small { font-size: 13px; color: #7a818b; }
.tcc-sets-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.tcc-settile { position: relative; display: grid; gap: 7px; align-content: start; padding: 14px 14px 12px; border-radius: 14px; cursor: pointer; scroll-snap-align: start; outline: none;
    background: radial-gradient(90% 80% at 0% 0%, rgba(224,149,79,.08), transparent 60%), linear-gradient(180deg, #1a1c21, #111317);
    border: 1px solid rgba(255,255,255,.08); border-top-color: rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 26px -18px #000; transition: border-color .15s, transform .15s; }
.tcc-settile:hover, .tcc-settile:focus-visible { border-color: rgba(224,149,79,.5); transform: translateY(-2px); }
.tcc-settile b { font: 800 18px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #fff; padding-right: 54px; }
.tcc-settile > span { position: absolute; top: 14px; right: 14px; font: 700 13px/1 "Barlow Condensed", sans-serif; color: #9aa1ab; }
.tcc-settile small { font-size: 12.5px; color: #c9a27c; } .tcc-settile.done small { color: #7fe0a0; }
.tcc-setp-bar { display: block; height: 6px; border-radius: 99px; overflow: hidden; background: #0a0b0d; box-shadow: inset 0 1px 2px rgba(0,0,0,.7); }
.tcc-setp-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b5652a, #e7a160 60%, #f6d77a); }
.tcc-settile.done .tcc-setp-bar > i, .tcc-setp.done .tcc-setp-bar > i { background: linear-gradient(90deg, #2f9e5c, #7fe0a0); }
.tcc-setp { position: relative; display: grid; gap: 14px; margin: 0 0 14px; padding: 18px 20px; border-radius: 16px; isolation: isolate;
    background: radial-gradient(70% 120% at 0% 0%, rgba(224,149,79,.09), transparent 60%), linear-gradient(180deg, #1b1d22, #111317);
    border: 1px solid rgba(255,255,255,.08); border-top-color: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 40px -26px #000; }
.tcc-setp::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(246,215,122,.75), transparent); }
.tcc-setp-h { display: flex; align-items: flex-start; gap: 12px; }
.tcc-setp-t { display: grid; gap: 5px; min-width: 0; }
.tcc-setp-t em { font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; font-style: normal; color: #e0954f; }
.tcc-setp-t b { font: 800 30px/1 "Barlow Condensed", sans-serif; letter-spacing: .01em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.tcc-setp-t span { font-size: 13.5px; color: #9aa1ab; }
.tcc-setp-x { margin-left: auto; flex: none; height: 34px; min-height: 0; padding: 0 12px !important; border-radius: 9px; cursor: pointer; font: 700 13px/1 system-ui, sans-serif; text-transform: none; letter-spacing: 0;
    color: #c9ced6; background: #15171b; border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.tcc-setp-x:hover { color: #fff; border-color: rgba(255,255,255,.22); }
.tcc-setp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tcc-setp-stats > div { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; background: #0b0c0f; border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 2px 6px rgba(0,0,0,.5); min-width: 0; }
.tcc-setp-stats b { display: flex; align-items: center; gap: 4px; font: 800 22px/1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; }
.tcc-setp-stats .gold b { color: #f0b27a; }
.tcc-setp-stats small { font: 700 10.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6f7680; }
.tcc-setp-go { display: grid; gap: 10px; }
.tcc-setp-go .tcc-go { height: 50px; font-size: 17px !important; }
.tcc-setp-go .tcc-go:disabled { opacity: .45; filter: grayscale(.4); }
.tcc-setp-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.tcc-setp-notes li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.4; color: #8b929c; }
.tcc-setp-notes li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: #5f666f; }
.tcc-setp-done { margin: 0; font-weight: 700; color: #7fe0a0; }
.tcc-batch { width: min(760px, 100%) !important; } .tcc-batch-grid { width: 100%; margin: 4px 0; grid-template-columns: repeat(auto-fit, minmax(150px, 180px)) !important; justify-content: center; }
.tcc-batch-err { margin: 0; color: #ffb52b; font-size: 14px; } .tcc-batch-left { margin: 0; color: #9aa1ab; }
@media (max-width: 600px) {
    .tcc-sets-row { grid-auto-columns: 74%; }
    .tcc-setp { padding: 16px 14px; } .tcc-setp-t b { font-size: 26px; }
    .tcc-setp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tcc-setp-go .tcc-go { height: auto; min-height: 50px; padding: 10px 12px !important; white-space: normal; line-height: 1.2; font-size: 15px !important; }
}

.tcc-grid { gap: 22px 14px !important; }
.tcc-item, .tcc-sitem { display: grid; gap: 8px; cursor: pointer; border-radius: 12px; outline: none; }
.tcc-item:hover .tc-card, .tcc-item:focus-visible .tc-card, .tcc-sitem:hover .tc-card { transform: translateY(-3px); }
.tcc-item .tc-card, .tcc-sitem .tc-card { transition: transform .15s; }
.tcc-item:focus-visible, .tcc-sitem:focus-visible { box-shadow: 0 0 0 2px #e0954f; }
.tcc-cost { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 10px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.tcc-cost > span { font: 800 16px/1 "Barlow Condensed", sans-serif; color: #e7eaf0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcc-cost small { color: #8d95a5; font-size: 12.5px; white-space: nowrap; }
.tcc-cost b { padding: 5px 11px; border-radius: 8px; background: linear-gradient(180deg, #e7a160, #b5652a); color: #1d0f04; font: 900 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.tcc-item.owned .tcc-cost { opacity: .75; }
.tcc-sitem.sel .tcc-cost { border-color: rgba(224,149,79,.6); background: rgba(224,149,79,.12); }
.tcc-sitem .tcc-cost > span { color: #f0b27a; }
.tcc-sbar { margin-bottom: 4px; }
.tcc-go { background: linear-gradient(180deg, #e7a160, #b5652a) !important; color: #1d0f04 !important; border: 0 !important; font-weight: 800 !important; }
.tcc-go:disabled { background: rgba(255,255,255,.06) !important; color: #8d95a5 !important; }
.tcc-more { justify-self: center; margin-top: 4px; }
.tcc-none { padding: 18px 0; }

/* craft pop-up */
.tcc-modal { z-index: 1350; }
.tcc-mbox { width: min(420px, 100%) !important; justify-items: center; text-align: center; }
.tcc-mbox h3 { margin: 0; }
.tcc-mcard { width: 210px; margin: 6px 0 2px; }
.tcc-mcard .tc-card { width: 210px; }
.tcc-msub { margin: 0; color: #9aa1ad; font-size: 15px; }
.tcc-fins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tcc-fin { display: grid; gap: 4px; justify-items: center; padding: 10px 8px !important; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: #d6dae2; cursor: pointer; box-shadow: none; height: auto; }
.tcc-fin b { font: 800 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.tcc-fin span { font: 800 18px/1 "Barlow Condensed", sans-serif; color: #f0b27a; }
.tcc-fin.on { border-color: #e0954f; background: rgba(224,149,79,.14); color: #fff; box-shadow: 0 0 0 1px #e0954f inset; }
.tcc-mbal { margin: 0; font-size: 16px; color: #c9ced8; }
.tcc-mbal b { color: #fff; } .tcc-mbal b.short { color: #ff6b5e; }
.tcc-mbox .tc-sure-yes:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; transform: none; }

@media (max-width: 760px) {
  .tcc-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 12px 14px; }
  .tcc-bal { border-right: 0; padding-right: 0; }
  .tcc-head-txt { grid-column: 1 / -1; grid-row: 2; }
  .tcc-head-act { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tcc-head-act .cx-btn { padding: 0 8px !important; font-size: 14px; }
  .tcc-bal b { font-size: 30px; }
  .tcc-rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tcc-rate.h { display: none; }
  .tcc-rate { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .tcc-rate:nth-child(3n+3), .tcc-rate:nth-child(3n+4) { border-left: 1px solid rgba(255,255,255,.06); }
  .tcc-rate > span { padding: 5px 6px; font-size: 14px; }
  .tcc-rate > span:nth-child(2)::before { content: "Scrap "; color: #8d95a5; font-weight: 600; }
  .tcc-rate > span:nth-child(3)::before { content: "Craft "; color: #8d95a5; font-weight: 600; }
  .tcc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 12px !important; }
  .tcc-sbar .cx-btn { flex: 1 1 auto; }
}

/* ═══ WANTED card of the week (Shop tab) ═══ */
.tcw-slot:empty { display: none; }
.tcw-slot { margin-bottom: 16px; }
.tcw { --brass: #c9a256; display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: #0f0d0b;
  border: 1px solid rgba(201,162,86,.3); box-shadow: 0 22px 44px -22px rgba(0,0,0,.85); }
.tcw-poster { position: relative; padding: 16px 20px 22px; color: #e9dcc0; cursor: pointer; isolation: isolate; outline: none;
  background:
    radial-gradient(110% 75% at 50% 38%, rgba(214,178,112,.17), transparent 66%),
    repeating-linear-gradient(93deg, rgba(255,236,200,.022) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(1.5deg, rgba(0,0,0,.13) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, #231b12, #140f0a);
  box-shadow: inset 0 0 80px rgba(0,0,0,.78); }
.tcw-poster::before { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1px solid rgba(201,162,86,.42); outline: 1px solid rgba(201,162,86,.16); outline-offset: 3px; pointer-events: none; }
.tcw-poster:focus-visible { box-shadow: inset 0 0 80px rgba(0,0,0,.78), inset 0 0 0 2px var(--brass); }
.tcw-nail { position: absolute; top: 11px; z-index: 3; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3eee4, #91887a 45%, #3a342b 78%); box-shadow: 0 2px 3px rgba(0,0,0,.75); }
.tcw-nail.l { left: 13px; } .tcw-nail.r { right: 13px; }
.tcw-top { display: flex; justify-content: space-between; gap: 8px; padding: 4px 14px 0; font: 700 10.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(233,220,192,.5); }
.tcw-word { margin: 10px 0 0; text-align: center; font: 900 66px/.88 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-indent: .14em;
  background: linear-gradient(180deg, #f7ecd4 0%, #dcc69e 58%, #a78957 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.7)); }
.tcw-rule { display: flex; align-items: center; gap: 10px; margin: 8px 6px 0; }
.tcw-rule::before, .tcw-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.tcw-rule::after { background: linear-gradient(90deg, var(--brass), transparent); }
.tcw-rule span { font: 800 11.5px/1 "Barlow Condensed", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.tcw-body { display: grid; justify-items: center; gap: 12px; margin-top: 16px; }
.tcw-frame { position: relative; width: 148px; height: 207px; border-radius: 11px; background: #0b0907;
  box-shadow: 0 0 0 1px rgba(201,162,86,.6), 0 0 0 6px #0c0a08, 0 0 0 7px rgba(201,162,86,.28), 0 20px 30px -10px rgba(0,0,0,.9); }
.tcw-scale { position: absolute; top: 0; left: 0; width: 190px; transform: scale(.779); transform-origin: 0 0; }
.tcw-scale .tc-card { width: 190px; }
.tcw-reward { display: grid; justify-items: center; gap: 2px; text-align: center; }
.tcw-who { order: -1; margin-bottom: 4px; font: 800 19px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #efe2c4; }
.tcw-reward em { font: 800 11.5px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--brass); }
.tcw-reward b { font: 900 42px/1 "Barlow Condensed", sans-serif; color: #f4d27f; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 22px rgba(244,210,127,.18); font-variant-numeric: tabular-nums; }
.tcw-reward small { font: 700 15px/1.1 "Barlow Condensed", sans-serif; color: #e9dcc0; letter-spacing: .04em; }
.tcw-stamp { position: absolute; right: 56px; top: 226px; z-index: 2; transform: rotate(-9deg); padding: 5px 10px 4px; border: 2.5px solid rgba(214,58,48,.85); border-radius: 4px;
  font: 900 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #ec5a4c; background: rgba(110,18,12,.22); box-shadow: inset 0 0 0 1px rgba(214,58,48,.3); pointer-events: none; }
.tcw.done .tcw-stamp { top: 46%; right: 50%; transform: translate(50%, -50%) rotate(-12deg); font-size: 26px; padding: 8px 16px 7px; border-width: 3.5px; background: rgba(60,8,6,.55); }
.tcw.done .tcw-frame, .tcw.done .tcw-reward b { filter: saturate(.55) brightness(.85); }

.tcw-info { display: grid; align-content: center; gap: 9px; padding: 20px 24px; min-width: 0; border-left: 1px solid rgba(201,162,86,.18);
  background: radial-gradient(90% 120% at 100% 0%, rgba(179,38,30,.12), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.008)), #121014; }
.tcw-info > * { max-width: 760px; }
.tcw-eyebrow { font: 800 12.5px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: #ec5a4c; }
.tcw-name { font: 900 32px/1 "Barlow Condensed", sans-serif; color: #fff; }
.tcw-meta { font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: var(--rr, #c9ced8); }
.tcw-info p { margin: 0; color: #b9bfcb; font-size: 15px; line-height: 1.42; }
.tcw-info p b { color: #f4d27f; }
.tcw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.tcw-stats > div { display: grid; gap: 4px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.tcw-stats small { font: 800 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8d95a5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcw-stats b { font: 900 24px/1 "Barlow Condensed", sans-serif; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcw-stats b i { font-style: normal; font-size: 15px; color: #8d95a5; margin-left: 3px; }
.tcw-mine { color: #7fe3a0 !important; font-weight: 600; }
.tcw-mine.dim { color: #9aa1ad !important; }
.tcw-claims { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tcw-claims li { display: flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(201,162,86,.1); border: 1px solid rgba(201,162,86,.28); font-size: 14px; }
.tcw-claims li span { font: 800 12px/1 "Barlow Condensed", sans-serif; color: var(--brass); }
.tcw-claims li b { color: #fff; font-weight: 700; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcw-claims li small { color: #8d95a5; font-size: 12px; }
.tcw-claims li.me { border-color: rgba(127,227,160,.5); background: rgba(127,227,160,.1); }
.tcw-none { color: #8d95a5 !important; font-size: 14px !important; }
@media (max-width: 760px) {
  .tcw { grid-template-columns: minmax(0, 1fr); }
  .tcw-poster { padding: 14px 16px 18px; }
  .tcw-word { font-size: 52px; margin-top: 8px; }
  .tcw-body { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 16px; margin-top: 14px; padding: 0 6px; }
  .tcw-frame { width: 118px; height: 165px; }
  .tcw-scale { transform: scale(.621); }
  .tcw-reward { justify-items: start; text-align: left; }
  .tcw-reward em { text-indent: 0; }
  .tcw-reward b { font-size: 36px; }
  .tcw-who { font-size: 17px; }
  .tcw-stamp { top: auto; bottom: 16px; right: 16px; }
  .tcw.done .tcw-stamp { top: 58%; bottom: auto; }
  .tcw-info { border-left: 0; border-top: 1px solid rgba(201,162,86,.18); padding: 14px 16px 16px; }
  .tcw-name { font-size: 26px; }
  .tcw-stats > div { padding: 8px 9px; }
  .tcw-stats b { font-size: 20px; }
}

/* ═══ Showcase ═══ */
.tcs-slot { position: relative; width: 76px; height: 106px; }
.tcs-scale { position: absolute; top: 0; left: 0; width: 190px; transform: scale(.4); transform-origin: 0 0; }
.tcs-scale .tc-card { width: 190px; }
/* My Cards strip */
.tcs-strip { display: grid; grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); align-items: center; gap: 12px 18px; margin-bottom: 14px; padding: 12px 16px; border-radius: 16px;
  background: radial-gradient(120% 170% at 0% 0%, rgba(229,190,110,.14), transparent 58%), #131218; border: 1px solid rgba(229,190,110,.3); }
.tcs-strip-txt { display: grid; gap: 4px; }
.tcs-strip-txt em { font: 800 13px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #f0d08a; }
.tcs-strip-txt span { color: #b9bfcb; font-size: 14px; line-height: 1.35; }
.tcs-strip-txt code { padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; }
.tc-grid.tcs-row { display: flex; justify-content: flex-end; gap: 10px; }
.tcs-pin { position: relative; flex: 0 0 auto; width: 76px; height: 106px; cursor: pointer; }
.tcs-pin:hover .tcs-slot { transform: translateY(-2px); }
.tcs-pin .tcs-slot { transition: transform .15s; }
.tcs-pin.empty { display: grid; place-items: center; border-radius: 9px; border: 1.5px dashed rgba(229,190,110,.3); background: rgba(255,255,255,.02); cursor: default; }
.tcs-pin.empty span { font: 800 18px/1 "Barlow Condensed", sans-serif; color: rgba(229,190,110,.45); }
.tcs-x { position: absolute; top: -7px; right: -7px; z-index: 8; width: 22px; height: 22px; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: #1d1f26; color: #fff; font: 700 11px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.6); }
.tcs-x:hover { background: #c0262d; }
.tcs-pin-btn.on { border-color: rgba(229,190,110,.55) !important; color: #f0d08a !important; }
@media (max-width: 760px) {
  .tcs-strip { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .tc-grid.tcs-row { justify-content: space-between; gap: 6px; }
  .tcs-pin, .tcs-slot { width: 60px; height: 84px; }
  .tcs-pin .tcs-scale { transform: scale(.316); }
}
/* profile (top of the page) */
.profile-showcase:empty { display: none; }
.profile-showcase { min-width: 0; max-width: 100%; } /* the scrolling shelf must never widen the page (grid item min-content) */
.tcs-pro { min-width: 0; overflow: hidden; margin: 0 0 16px; padding: 16px 18px 6px; border-radius: 18px; font-family: "Barlow Condensed", system-ui, sans-serif;
  background: radial-gradient(80% 120% at 50% 0%, rgba(229,190,110,.13), transparent 62%), linear-gradient(180deg, #15141b, #0d0c11); border: 1px solid rgba(229,190,110,.28); }
.tcs-pro.empty { padding-bottom: 16px; }
.tcs-pro-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.tcs-pro-h em { font: 800 13px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: #f0d08a; }
.tcs-pro-h b { font: 900 22px/1.05 "Barlow Condensed", sans-serif; color: #fff; }
.tcs-pro-h span { color: #9aa1ad; font-size: 15px; }
.tcs-pro-h .grow { flex: 1; }
.tcs-pro-h .cx-btn { align-self: center; }
.tc-grid.tcs-shelf { display: flex; justify-content: center; gap: 18px; padding: 16px 4px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  background: linear-gradient(90deg, transparent, rgba(229,190,110,.45), transparent) center calc(100% - 46px) / 100% 1px no-repeat; }
.tcs-item { flex: 0 0 auto; display: grid; justify-items: center; gap: 3px; cursor: pointer; scroll-snap-align: center; outline: none; }
.tcs-item:hover .tcs-slot, .tcs-item:focus-visible .tcs-slot { transform: translateY(-4px); }
.tcs-item .tcs-slot { transition: transform .18s; }
.tcs-slot.big { width: 190px; height: 266px; margin-bottom: 8px; }
.tcs-slot.big .tcs-scale { transform: none; }
.tcs-item b { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 16px/1.1 "Barlow Condensed", sans-serif; color: #fff; }
.tcs-item small { font: 700 14px/1 "Barlow Condensed", sans-serif; color: #f0d08a; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .tcs-slot.big { width: 160px; height: 224px; } .tcs-slot.big .tcs-scale { transform: scale(.842); } .tcs-item b { max-width: 160px; } }
@media (max-width: 560px) {
  .tcs-pro { padding: 14px 12px 4px; }
  .tcs-pro-h { align-items: center; }
  .tcs-pro-h b { font-size: 19px; order: 3; flex-basis: 100%; }
  .tcs-pro-h span { order: 4; font-size: 14px; }
  .tcs-pro-h .grow { display: none; }
  .tcs-pro-h .cx-btn { order: 2; margin-left: auto; height: 32px; padding: 0 14px !important; font-size: 14px; }
  .tc-grid.tcs-shelf { justify-content: flex-start; gap: 12px; margin: 0 -12px; padding: 14px 12px; }
  .tcs-slot.big { width: 133px; height: 186px; } .tcs-slot.big .tcs-scale { transform: scale(.7); } .tcs-item b { max-width: 133px; font-size: 15px; }
}
