/* The Card Vault — qtb.cards */
:root {
  --black: #0e0c09;
  --vault: #17140f;
  --vault-2: #211c15;
  --line: #3a3124;
  --gold: #d9ac3c;
  --gold-hi: #f6dc8a;
  --brass: #8c6a22;
  --ivory: #f3ead3;
  --muted: #a99c80;
  --steel: #7b8187;
  --gain: #4cb37a;
  --loss: #d4574b;
  --radius-s: 6px;
  --radius-m: 12px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Barlow", "Segoe UI", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 172, 60, 0.13), transparent 70%),
    repeating-radial-gradient(circle at 50% -20%, rgba(255,255,255,0.012) 0 2px, transparent 2px 9px);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--gold-hi); text-decoration-color: rgba(246, 220, 138, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 12, 9, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 10px; border-radius: var(--radius-s);
}
.nav a:hover { color: var(--ivory); }
.nav a[aria-current="page"] { color: var(--black); background: var(--gold); }
.top-search { position: relative; }
.top-search input { width: 180px; }

input[type="search"], input[type="text"], select {
  background: var(--vault); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 8px 12px; font-size: 15px; color: var(--ivory);
}
input::placeholder { color: #7d725c; }
select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin: 0 -10px; overflow-x: auto; }
  .top-search { margin-left: auto; }
  .top-search input { width: 140px; }
}

main { padding-bottom: 80px; }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--gold); color: var(--black); border: 0; border-radius: var(--radius-s);
  font-weight: 700; padding: 10px 16px; text-decoration: none;
}
.btn:hover { background: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--gold-hi); border: 1px solid var(--brass); }
.btn.ghost:hover { border-color: var(--gold); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--ivory); border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.chip .n { opacity: 0.6; font-weight: 500; margin-left: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  padding: 2px 9px 2px 7px; border-radius: 999px; white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge.creator { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 50%, var(--brass)); color: var(--black); }
.badge.sup { background: transparent; color: var(--gold-hi); border: 1px solid var(--brass); }

/* ---------- binder header ---------- */
.owner { padding: 36px 0 22px; }
.owner h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(30px, 7vw, 64px); line-height: 1; margin: 0 0 14px; overflow-wrap: anywhere;
}
.owner h1 .at { color: var(--brass); font-weight: 500; }
.owner .sub { color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ledger {
  margin-top: 26px; display: grid; grid-template-columns: 1.6fr repeat(var(--cols, 4), 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ledger > div { padding: 14px 16px 14px 0; }
.ledger > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.ledger dt { color: var(--muted); font-size: 14px; }
.ledger dd { margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.ledger .big dd { font-size: 34px; color: var(--gold-hi); }
.ledger dd small { display: block; font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > div { padding: 12px 0; border-left: 0 !important; padding-left: 0 !important; }
  .ledger .big { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .ledger dd { font-size: 19px; }
  .ledger .big dd { font-size: 30px; }
}
.spark { margin-top: 18px; color: var(--muted); font-size: 14px; }
.spark svg { display: block; width: 100%; height: 70px; }

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: 60px; z-index: 10; background: rgba(14, 12, 9, 0.94); backdrop-filter: blur(8px);
  padding: 12px 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.toolbar .selects { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.toolbar input[type="search"] { width: 170px; }
.result-count { color: var(--muted); font-size: 14px; margin: -10px 0 16px; }
@media (max-width: 760px) {
  .toolbar { top: 0; position: relative; }
  .toolbar .selects { margin-left: 0; width: 100%; }
  .toolbar .selects > * { flex: 1 1 140px; min-width: 0; }
  .toolbar input[type="search"] { width: 100%; }
}

/* ---------- grid ---------- */
.grid {
  display: grid; gap: 26px 18px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  align-items: start;
}
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.item { min-width: 0; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: block; width: 100%; color: inherit; }
.item .cap { margin-top: 10px; }
.item .nm { font-weight: 700; font-size: 15px; line-height: 1.25; display: flex; gap: 6px; align-items: baseline; }
.item .nm .fav { color: var(--gold); }
.item .meta { color: var(--muted); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .pr { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--gold-hi); margin-top: 3px; letter-spacing: -0.01em; }
.chg { font-family: var(--body); font-size: 13px; font-weight: 600; margin-left: 6px; }
.chg.up { color: var(--gain); }
.chg.down { color: var(--loss); }
.more { display: flex; justify-content: center; padding: 30px 0; }

/* raw card */
.card-img {
  position: relative; aspect-ratio: 245 / 342; border-radius: 4.5% / 3.3%; overflow: hidden;
  background: linear-gradient(160deg, #2a241b, #15120d);
  box-shadow: 0 10px 22px -12px rgba(0,0,0,0.9);
  transition: transform 0.18s ease;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item:hover .card-img { transform: translateY(-4px); }
.card-img.noart { display: grid; place-items: center; text-align: center; padding: 14px; border: 1px solid var(--line); }
.card-img.noart span { font-family: var(--display); font-size: 13px; color: var(--muted); }
.card-img.noart::before {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(217,172,60,0.25); border-radius: 6px;
}

/* ---------- THE SLAB ---------- */
.slab {
  --tilt-x: 0deg; --tilt-y: 0deg; --glare: 30%;
  position: relative; border-radius: 10px; padding: 7px 7px 10px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.09)),
    rgba(190, 205, 215, 0.07);
  border: 1px solid rgba(235, 240, 245, 0.28);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.05),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.35),
    0 18px 30px -16px rgba(0,0,0,0.95);
  transform: perspective(700px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.25s ease;
  transform-style: preserve-3d;
}
.slab::after { /* glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent calc(var(--glare) - 18%), rgba(255,255,255,0.20) var(--glare), transparent calc(var(--glare) + 14%));
  mix-blend-mode: screen;
}
.slab .window {
  margin-top: 6px; padding: 6px; border-radius: 5px;
  background: rgba(0,0,0,0.35);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 2px 8px rgba(0,0,0,0.7);
}
.slab .window .card-img { box-shadow: none; }
.item:hover .slab .card-img { transform: none; }

.label {
  position: relative; border-radius: 4px; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 0 6px; align-items: stretch;
  padding: 5px 6px 5px 7px; min-height: 52px;
  background: linear-gradient(100deg, #a77d22 0%, #e9c768 22%, #c79a35 45%, #f2d98c 70%, #b98a2a 100%);
  color: #1b1307; font-family: var(--label); line-height: 1.05;
  box-shadow: inset 0 0 0 1px rgba(60, 40, 5, 0.45);
}
.label .l-left { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.label .co { font-weight: 800; font-size: 8.5px; letter-spacing: 0.08em; display: flex; align-items: center; gap: 3px; opacity: 0.9; white-space: nowrap; overflow: hidden; }
.label .co svg { flex-shrink: 0; }
.label .co svg { width: 9px; height: 9px; }
.label .ln { font-weight: 700; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label .ls { font-weight: 500; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.label .cert { font-weight: 600; font-size: 8.5px; letter-spacing: 0.06em; opacity: 0.75; white-space: nowrap; }
.label .l-right {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; text-align: right;
  padding-left: 6px; border-left: 1px solid rgba(40, 25, 0, 0.35);
}
.label .gw { font-weight: 800; font-size: 9.5px; letter-spacing: 0.05em; max-width: 62px; line-height: 1; }
.label .gn { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 0.95; letter-spacing: -0.04em; }

/* Gem mint: star punch on the label */
.slab.g10 .label .gn::before { content: "★"; font-size: 11px; vertical-align: top; margin-right: 1px; }

/* Black Label Pristine */
.slab.g11 { border-color: rgba(246, 220, 138, 0.55); box-shadow:
    inset 0 0 0 3px rgba(246,220,138,0.08), inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 1px rgba(0,0,0,0.6),
    0 18px 34px -14px rgba(217,172,60,0.45); }
.slab.g11 .label {
  background: linear-gradient(180deg, #151209, #050403);
  box-shadow: inset 0 0 0 1px rgba(217,172,60,0.7), inset 0 0 0 3px #050403, inset 0 0 0 4px rgba(217,172,60,0.35);
  color: var(--gold-hi);
}
.slab.g11 .label .l-right { border-left-color: rgba(217,172,60,0.4); }
.slab.g11 .foil {
  background: linear-gradient(100deg, #8c6a22 0%, #f6dc8a 25%, #fff6d2 32%, #d9ac3c 45%, #8c6a22 60%, #f6dc8a 80%, #8c6a22 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 4.5s linear infinite;
}
@keyframes foil { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Junk slabs (grades 1–7) */
.slab.junk { overflow: hidden; background: linear-gradient(115deg, rgba(255,255,255,0.08), rgba(120,110,90,0.08)), rgba(120, 112, 95, 0.08);
  border-color: rgba(200, 190, 170, 0.18); }
.slab.junk .label {
  background: linear-gradient(100deg, #8f8b84, #b8b3a8 40%, #9b968d);
  color: #2a2722; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.3);
}
.slab.junk .label::after { /* coffee ring */
  content: ""; position: absolute; width: 38px; height: 38px; right: 26px; top: -14px; border-radius: 50%;
  border: 3px solid rgba(92, 58, 22, 0.28); filter: blur(0.4px);
}
.slab.junk .window .card-img { filter: saturate(0.55) brightness(0.85) sepia(0.15); }
.slab.junk .crack { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.slab.junk .crack path { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 0.8; }
.slab.junk .crack path.shadow { stroke: rgba(0,0,0,0.5); stroke-width: 1.4; transform: translate(0.6px, 0.6px); }
.slab.g1, .slab.g2 { transform: perspective(700px) rotate(-1.4deg); }
.slab.g3 { transform: perspective(700px) rotate(1deg); }

@media (prefers-reduced-motion: reduce) {
  .slab.g11 .foil { animation: none; background-position: 30% 0; }
  .slab, .card-img { transition: none; }
}

/* ---------- sealed box ---------- */
.box { position: relative; aspect-ratio: 245 / 342; display: flex; align-items: flex-end; padding-top: 16%; }
.box .face {
  --h: 40;
  position: relative; width: 100%; height: 100%; border-radius: 3px; overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, hsla(var(--h), 80%, 70%, 0.55), transparent 45%),
    linear-gradient(160deg, hsl(var(--h), 55%, 34%), hsl(calc(var(--h) + 40), 50%, 14%));
  box-shadow: inset -10px 0 0 rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.12), 0 16px 26px -14px rgba(0,0,0,0.95);
  padding: 14px 18px 12px 12px; display: flex; flex-direction: column; justify-content: space-between;
}
.box .face::before { /* shrink-wrap sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 38%, transparent 46%, transparent 70%, rgba(255,255,255,0.08) 76%, transparent 82%);
}
.box .top-face {
  position: absolute; left: 0; right: 0; top: 0; height: 16%;
  background: linear-gradient(180deg, hsl(var(--h), 45%, 48%), hsl(var(--h), 50%, 30%));
  transform-origin: bottom; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  border-radius: 3px 3px 0 0; opacity: 0.9;
}
.box .bx-set { position: relative; font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.05; letter-spacing: -0.02em; color: #fff8e6; text-shadow: 0 2px 0 rgba(0,0,0,0.35); overflow-wrap: anywhere; }
.box .bx-kind { position: relative; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: rgba(255,248,230,0.8); }
.box .seal {
  position: absolute; right: 12px; bottom: 34px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--brass));
  display: grid; place-items: center; transform: rotate(-12deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.box .seal span { font-family: var(--label); font-weight: 800; font-size: 9px; line-height: 1; text-align: center; color: #2a1c05; letter-spacing: 0.04em; }

/* ---------- detail dialog ---------- */
dialog.detail {
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0;
  background: var(--vault); color: var(--ivory); width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
}
dialog.detail::backdrop { background: rgba(5, 4, 2, 0.8); backdrop-filter: blur(3px); }
.detail .inner { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 30px; padding: 28px; }
.detail .art { max-width: 340px; width: 100%; margin: 0 auto; }
.detail h2 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 6px; }
.detail .set { color: var(--muted); margin: 0 0 20px; }
.detail .value { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--gold-hi); letter-spacing: -0.03em; line-height: 1; }
.detail .facts { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 15px; }
.detail .facts dt { color: var(--muted); }
.detail .facts dd { margin: 0; }
.detail .close {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--black); cursor: pointer; font-size: 20px; line-height: 1;
}
.detail .market { margin-top: 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 15px; }
.detail .market h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.detail .market p { margin: 0; }
@media (max-width: 700px) {
  dialog.detail { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .detail .inner { grid-template-columns: 1fr; padding: 22px 16px 30px; gap: 20px; }
  .detail .art { max-width: 250px; }
}

/* ---------- home + sections ---------- */
.hero { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6.2vw, 76px); line-height: 0.98; letter-spacing: -0.04em; margin: 0 0 20px; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 0 26px; font-size: 18px; }
.hero form { display: flex; gap: 8px; max-width: 460px; }
.hero form input { flex: 1; font-size: 17px; padding: 12px 14px; min-width: 0; }
.hero .showcase { display: flex; justify-content: center; }
.hero .showcase .slab { width: min(260px, 70vw); }
.vault-line { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.vault-line b { color: var(--ivory); font-weight: 600; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; } .hero .showcase { order: -1; } }

.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; align-items: start; }
.strip > * { scroll-snap-align: start; }
.strip .who { color: var(--muted); font-size: 13px; }

.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.board h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 0 0 10px; letter-spacing: -0.01em; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.board li .rk { font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 14px; }
.board li:nth-child(1) .rk { color: var(--gold-hi); }
.board li:nth-child(2) .rk { color: #d8d4cc; }
.board li:nth-child(3) .rk { color: #c48a52; }
.board li a { color: var(--ivory); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li a:hover { color: var(--gold-hi); }
.board li .v { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--gold-hi); }
.board .all { display: inline-block; margin-top: 10px; font-size: 15px; }
.board.full li { padding: 11px 0; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 30px 22px; color: var(--muted); text-align: center; }
.empty strong { color: var(--ivory); display: block; font-size: 18px; margin-bottom: 4px; }
.notice { color: var(--muted); padding: 60px 0; text-align: center; }

.report { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; font-size: 18px; max-width: 70ch; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .movers { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; gap: 10px; }
.foot p { margin: 0; max-width: 90ch; }

/* ---------- support ---------- */
.support .lede { color: var(--muted); max-width: 60ch; font-size: 18px; margin: 0; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.way { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.way h2 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.way p { margin: 0 0 6px; color: var(--muted); flex: 1; }
.way.primary { border-color: var(--brass); background: linear-gradient(160deg, rgba(217,172,60,0.12), transparent 60%); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px 28px; }
.perk { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.perk p { margin: 0; color: var(--muted); font-size: 15px; }
.swatches { display: flex; gap: 6px; height: 22px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.swatches i:only-child { width: 70px; border-radius: 4px; }
.fine { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.wall { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wall li { border: 1px solid var(--brass); border-radius: 999px; padding: 6px 14px; display: flex; gap: 8px; align-items: baseline; }
.wall li a { font-weight: 700; text-decoration: none; }
.wall li span { color: var(--muted); font-size: 13px; }

/* ---------- supporter cosmetics (binder pages) ---------- */
.wrap[data-theme="emerald"]  { --gold: #3fbf8a; --gold-hi: #a6ecc8; --brass: #2a7a58; }
.wrap[data-theme="ruby"]     { --gold: #d9576b; --gold-hi: #f6a8b4; --brass: #8e2f3f; }
.wrap[data-theme="sapphire"] { --gold: #5b8be0; --gold-hi: #b3cbf6; --brass: #2f4f8e; }
.wrap[data-theme="amethyst"] { --gold: #a77be0; --gold-hi: #d8c2f6; --brass: #634090; }
.wrap[data-theme="onyx"]     { --gold: #c9ccd1; --gold-hi: #ffffff; --brass: #6d7178; }
.wrap[data-legacy-label] .slab:not(.g11):not(.junk) .label {
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--sup-label) 65%, black) 0%, var(--sup-label) 30%,
    color-mix(in srgb, var(--sup-label) 55%, white) 62%, color-mix(in srgb, var(--sup-label) 75%, black) 100%);
}

/* ---------- subscriber + supporter perks ---------- */
.badge.sub { background: #7c4dcc; color: #fff; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tier h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.tier .when { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.tier ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; width: 100%; }
.tier li { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; color: var(--muted); font-size: 15px; }
.tier li > :first-child { justify-self: start; }
.tier code { font-family: var(--label); font-weight: 700; font-size: 15px; color: var(--ivory); background: var(--vault-2); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 480px) { .tier li { grid-template-columns: 1fr; gap: 6px; } }
.covers { display: flex; gap: 5px; }
.covers i { width: 18px; height: 26px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.wall.subs li { border-color: #7c4dcc; }

/* binder covers (supporter perk) */
.owner[data-cover] { position: relative; margin-top: 22px; padding: 28px 22px 0; border-radius: var(--radius-m); overflow: hidden; isolation: isolate; }
.owner[data-cover]::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9; }
.owner[data-cover] .ledger { margin-left: -22px; margin-right: -22px; padding: 0 22px; background: rgba(14,12,9,0.72); border-bottom: 0; }
[data-cover="vault"]::before, i[data-cover="vault"] {
  background: repeating-radial-gradient(circle at 85% 50%, rgba(217,172,60,0.0) 0 18px, rgba(217,172,60,0.22) 18px 20px, rgba(0,0,0,0) 20px 34px),
              radial-gradient(circle at 85% 50%, #3a3020, #17140f 60%); }
[data-cover="holo"]::before, i[data-cover="holo"] {
  background: linear-gradient(115deg, #2a1f4d, #1d4a5a 25%, #4d2a45 50%, #2a4d33 75%, #2a1f4d);
  background-size: 300% 100%; animation: holo 14s linear infinite; }
[data-cover="starfield"]::before, i[data-cover="starfield"] {
  background: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 70%, #f6dc8a, transparent),
              radial-gradient(1.2px 1.2px at 80% 20%, #fff, transparent), radial-gradient(1px 1px at 35% 80%, #cfd8ff, transparent),
              radial-gradient(1.5px 1.5px at 90% 60%, #fff, transparent), radial-gradient(ellipse at 70% 40%, #1b2147, #0b0c18 70%);
  background-size: 180px 120px, 220px 150px, 160px 110px, 200px 140px, 240px 160px, 100% 100%; }
[data-cover="aurora"]::before, i[data-cover="aurora"] {
  background: radial-gradient(ellipse 60% 80% at 20% 0%, rgba(76,179,122,0.55), transparent 70%),
              radial-gradient(ellipse 50% 70% at 70% 10%, rgba(124,77,204,0.5), transparent 70%), #0d1414; }
[data-cover="molten"]::before, i[data-cover="molten"] {
  background: radial-gradient(ellipse at 80% 120%, rgba(246,220,138,0.65), transparent 55%),
              radial-gradient(ellipse at 30% 140%, rgba(217,120,40,0.55), transparent 50%), linear-gradient(180deg, #1a120a, #3a2410); }
@keyframes holo { from { background-position: 0% 0; } to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { [data-cover="holo"]::before, i[data-cover="holo"] { animation: none; } }

/* ---------- sleeves (raw cards) ---------- */
.wrap[data-sleeve] .item > .card-img::after, .sleeves i::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.sleeves, .cases { display: flex; gap: 5px; }
.sleeves i, .cases i { position: relative; width: 18px; height: 26px; border-radius: 3px; background: #4a4236; overflow: hidden; }
[data-sleeve="holo"] .item > .card-img::after, i[data-sleeve="holo"]::after {
  background: linear-gradient(125deg, rgba(255,0,128,0.35), rgba(255,200,0,0.3) 20%, rgba(0,255,170,0.3) 40%, rgba(0,160,255,0.35) 60%, rgba(190,0,255,0.3) 80%, rgba(255,0,128,0.35));
  background-size: 250% 250%; mix-blend-mode: color-dodge; opacity: 0.55; transition: background-position 0.6s ease; }
[data-sleeve="holo"] .item:hover > .card-img::after { background-position: 100% 100%; }
[data-sleeve="gold"] .item > .card-img::after, i[data-sleeve="gold"]::after {
  box-shadow: inset 0 0 0 4px #d9ac3c, inset 0 0 0 5px #f6dc8a, inset 0 0 18px rgba(246,220,138,0.35);
  background: linear-gradient(135deg, rgba(246,220,138,0.18), transparent 35%, transparent 65%, rgba(246,220,138,0.14)); }
[data-sleeve="cosmic"] .item > .card-img::after, i[data-sleeve="cosmic"]::after {
  background: radial-gradient(1.2px 1.2px at 15% 20%, #fff, transparent), radial-gradient(1px 1px at 70% 35%, #fff, transparent),
              radial-gradient(1.4px 1.4px at 40% 75%, #e6d4ff, transparent), radial-gradient(1px 1px at 85% 85%, #fff, transparent),
              linear-gradient(160deg, rgba(110,60,220,0.35), rgba(30,90,200,0.25));
  background-size: 60px 80px, 70px 60px, 90px 70px, 50px 90px, 100% 100%; mix-blend-mode: screen; }
[data-sleeve="prism"] .item > .card-img::after, i[data-sleeve="prism"]::after {
  background: conic-gradient(from 200deg at 70% 30%, rgba(255,90,90,0.3), rgba(255,220,90,0.3), rgba(90,255,160,0.3), rgba(90,170,255,0.3), rgba(200,90,255,0.3), rgba(255,90,90,0.3));
  mix-blend-mode: soft-light; opacity: 0.9; }
[data-sleeve="shadow"] .item > .card-img::after, i[data-sleeve="shadow"]::after {
  box-shadow: inset 0 0 0 5px #0b0a08, inset 0 0 0 6px rgba(255,255,255,0.08), inset 0 0 30px rgba(0,0,0,0.6); }
@media (prefers-reduced-motion: reduce) { [data-sleeve="holo"] .item > .card-img::after { transition: none; } }

/* ---------- slab case tints ---------- */
.wrap[data-case="smoke"] .slab:not(.junk), i[data-case="smoke"] { background: linear-gradient(115deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.06)), rgba(20,20,22,0.75); border-color: rgba(200,200,210,0.25); }
.wrap[data-case="ice"] .slab:not(.junk), i[data-case="ice"] { background: linear-gradient(115deg, rgba(255,255,255,0.20), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0.12)), rgba(120,190,240,0.18); border-color: rgba(190,225,255,0.45); }
.wrap[data-case="rose"] .slab:not(.junk), i[data-case="rose"] { background: linear-gradient(115deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.10)), rgba(240,120,160,0.16); border-color: rgba(255,190,210,0.40); }
.wrap[data-case="gold"] .slab:not(.junk), i[data-case="gold"] { background: linear-gradient(115deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.10)), rgba(217,172,60,0.20); border-color: rgba(246,220,138,0.55); }

/* ---------- showcase card in the binder header ---------- */
.owner.has-pin { display: grid; grid-template-columns: 1fr 190px; column-gap: 32px; align-items: start; }
.owner.has-pin > :not(.pin) { grid-column: 1; }
.owner.has-pin > .pin { grid-column: 2; grid-row: 1 / span 4; position: relative; width: 190px; transform: rotate(2deg); }
.owner.has-pin .ledger { grid-column: 1; }
.pin-cap { display: block; margin-top: 8px; text-align: center; font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--gold-hi); }
@media (max-width: 700px) {
  .owner.has-pin { grid-template-columns: 1fr 110px; column-gap: 16px; }
  .owner.has-pin > .pin { width: 110px; grid-row: 1 / span 3; }
  .owner.has-pin .ledger { grid-column: 1 / -1; }
}

/* ---------- card actions (grade / favorite via chat) ---------- */
.detail .actions { margin-top: 22px; padding: 16px; border: 1px solid var(--brass); border-radius: var(--radius-s); background: rgba(217,172,60,0.06); }
.detail .actions h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.detail .act-row { display: flex; gap: 8px; flex-wrap: wrap; }
.detail .act-help { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.detail .act-help code { font-family: var(--label); font-weight: 700; color: var(--ivory); background: var(--vault-2); padding: 1px 6px; border-radius: 4px; }

/* ---------- identity row + avatars ---------- */
.id-row { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; min-width: 0; }
.id-text { min-width: 0; }
.id-row h1 { margin: 0; }
.avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--vault-2); display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar span { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--muted); }
.mini-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--vault-2); display: inline-grid; place-items: center; font-family: var(--display); font-size: 11px; color: var(--muted); }
.who-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 480px) { .avatar { width: 56px; height: 56px; } .id-row { gap: 12px; } }

/* ---------- premium binder (subs, supporters, the Vault Keeper) ---------- */
.owner.premium { padding-bottom: 0; }
.owner[data-cover="premium"]::before {
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(217,172,60,0.30), transparent 60%),
    radial-gradient(ellipse 50% 90% at 0% 100%, rgba(140,106,34,0.25), transparent 70%),
    repeating-linear-gradient(135deg, rgba(246,220,138,0.035) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #1f1a12, #120f0b);
}
.owner.premium { box-shadow: inset 0 0 0 1px rgba(217,172,60,0.35); }
.avatar.ring { width: 96px; height: 96px; padding: 4px; background: conic-gradient(from 0deg, var(--brass), var(--gold-hi), var(--gold), var(--brass), var(--gold-hi), var(--brass)); box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 10px 30px -10px rgba(217,172,60,0.6); }
.avatar.ring img, .avatar.ring span { border-radius: 50%; background: var(--vault); }
.avatar.ring span { width: 100%; height: 100%; display: grid; place-items: center; }
.member-tag { margin: 0 0 4px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: var(--gold-hi); }
.member-tag svg { width: 14px; height: 14px; }
.foil-name {
  background: linear-gradient(100deg, var(--ivory) 0%, var(--gold-hi) 30%, #fff 40%, var(--gold) 55%, var(--ivory) 75%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 9s linear infinite;
}
.foil-name .at { -webkit-text-fill-color: var(--brass); }
.owner.premium .ledger dd { color: var(--ivory); }
.owner.premium .ledger .big dd { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 480px) { .avatar.ring { width: 72px; height: 72px; padding: 3px; } }
@media (prefers-reduced-motion: reduce) { .foil-name { animation: none; } }

.premium-page .chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); border-color: var(--gold); color: var(--black); }
.premium-page .toolbar { border-bottom-color: rgba(217,172,60,0.35); }
.premium-page .item .pr { color: var(--gold-hi); text-shadow: 0 0 12px rgba(217,172,60,0.25); }
.premium-page .item:hover .card-img, .premium-page .item:hover .box .face { box-shadow: 0 0 0 1px rgba(217,172,60,0.5), 0 14px 30px -12px rgba(217,172,60,0.45); }

/* top-3 shelf */
.shelf { margin: 30px 0 8px; }
.shelf h2 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 16px; letter-spacing: -0.01em; }
.shelf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: end; padding: 22px 22px 0;
  background: linear-gradient(180deg, transparent 70%, rgba(217,172,60,0.10) 70%, rgba(217,172,60,0.04)); border-bottom: 3px solid var(--brass); border-radius: var(--radius-m) var(--radius-m) 0 0; }
.shelf-slot { max-width: 230px; justify-self: center; width: 100%; }
.shelf-slot.n1 { order: 2; max-width: 260px; }
.shelf-slot.n2 { order: 1; }
.shelf-slot.n3 { order: 3; }
@media (max-width: 600px) { .shelf-row { gap: 10px; padding: 14px 10px 0; } .shelf-slot .meta { display: none; } }

/* Perk Studio */
.studio { margin: 26px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--vault); }
.studio.mine { border-color: rgba(217,172,60,0.45); background: linear-gradient(160deg, rgba(217,172,60,0.08), var(--vault) 50%); }
.studio summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.studio summary::-webkit-details-marker { display: none; }
.studio summary::after { content: "+"; margin-left: auto; font-family: var(--display); font-size: 20px; color: var(--gold-hi); }
.studio[open] summary::after { content: "−"; }
.st-title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.st-sub { color: var(--muted); font-size: 15px; }
.st-body { padding: 4px 20px 20px; display: grid; gap: 16px; }
.st-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.st-label { color: var(--muted); font-size: 15px; }
.st-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.st-opt { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ivory); cursor: pointer; font-size: 14px; text-transform: capitalize; }
.st-opt:hover { border-color: var(--brass); }
.st-opt[aria-checked="true"] { border-color: var(--gold); background: rgba(217,172,60,0.15); }
.st-opt .sw { position: relative; display: block; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background-color: #4a4236; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.st-opt .sleeve-sw::after { content: ""; position: absolute; inset: 0; }
.st-opt .cover-sw, .st-opt [data-case] { border-radius: 5px; }
#st-showcase { max-width: 100%; }
.st-save { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; justify-items: start; }
.st-note { margin: 0; color: var(--muted); font-size: 14px; }
.st-cmds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-cmds li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-cmds code { font-family: var(--label); font-weight: 700; font-size: 16px; background: var(--vault-2); padding: 4px 10px; border-radius: 4px; }
.st-cmds .btn { padding: 6px 12px; font-size: 14px; }
@media (max-width: 560px) { .st-row { grid-template-columns: 1fr; gap: 6px; } }

/* phones: showcase card sits under the name instead of squeezing it */
@media (max-width: 700px) {
  .owner.has-pin { display: flex; flex-direction: column; align-items: stretch; }
  .owner.has-pin > .id-row { order: 1; }
  .owner.has-pin > .sub { order: 2; }
  .owner.has-pin > .pin { order: 3; width: 150px; align-self: center; margin: 18px 0 4px; transform: rotate(-1.5deg); }
  .owner.has-pin > .ledger { order: 4; }
  .owner.has-pin > .spark { order: 5; }
}

/* ---------- stand-in art for cards without a scan ---------- */
.card-img.stand-in {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 9% 8% 8%;
  background: radial-gradient(ellipse at 50% 45%, #3a3226, #1d1912 70%);
  box-shadow: inset 0 0 0 3px #8c6a22, inset 0 0 0 5px #1d1912, inset 0 0 0 6px rgba(246,220,138,0.4), 0 10px 22px -12px rgba(0,0,0,0.9);
}
.card-img.stand-in img { width: 92%; height: auto; flex: 1; min-height: 0; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.6)); }
.card-img.stand-in .si-name { font-family: var(--display); font-weight: 700; font-size: clamp(10px, 1.1vw, 14px); color: var(--ivory); text-align: center; line-height: 1.15; }
.card-img.stand-in .si-set { font-family: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.05em; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* our own card back (never the official design) */
.card-img.vault-back {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8%; padding: 10%;
  color: var(--gold);
  background:
    repeating-radial-gradient(circle at 50% 46%, transparent 0 10px, rgba(217,172,60,0.07) 10px 11px),
    radial-gradient(ellipse at 50% 46%, #2c2416, #120f0a 75%);
  box-shadow: inset 0 0 0 4px #8c6a22, inset 0 0 0 6px #120f0a, inset 0 0 0 7px rgba(246,220,138,0.35), 0 10px 22px -12px rgba(0,0,0,0.9);
}
.card-img.vault-back svg { width: 46%; height: auto; filter: drop-shadow(0 0 10px rgba(217,172,60,0.35)); }
.card-img.vault-back .vb-word { font-family: var(--label); font-weight: 800; font-size: clamp(9px, 1vw, 12px); letter-spacing: 0.16em; color: var(--gold-hi); }
.card-img.vault-back .vb-name { font-family: var(--body); font-size: clamp(10px, 1vw, 13px); color: var(--muted); text-align: center; line-height: 1.2; }

/* ---------- QTB Vault logo ---------- */
.brand .logo { height: 30px; width: auto; display: block; }
.brand b { padding-left: 12px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .brand b { display: none; } .brand .logo { height: 28px; } }
.hero-logo { display: block; height: 64px; width: auto; margin: 0 0 22px; }
@media (max-width: 800px) { .hero-logo { height: 48px; margin-bottom: 16px; } }
.foot-logo { height: 34px; width: auto; opacity: 0.8; margin-bottom: 4px; }
.card-img.vault-back .vb-logo { width: 62%; height: auto; filter: drop-shadow(0 0 10px rgba(217,172,60,0.35)); }

/* =====================================================================
   TILT + SHINE: every card follows the pointer
   ===================================================================== */
.item > .card-img, .item > .box, .art > .card-img, .art > .box {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
  will-change: transform;
}
.item:hover > .card-img { --lift: -4px; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.card-img.tilting, .box.tilting, .slab.tilting { transition: transform 0.06s linear; }
.card-img.tilting { box-shadow: 0 22px 34px -16px rgba(0,0,0,0.95), 0 0 0 1px rgba(246,220,138,0.25); }
/* moving light spot */
.card-img::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.45), rgba(255,255,255,0.08) 35%, transparent 60%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity 0.25s ease;
}
.card-img.tilting::before { opacity: 1; }
.slab::after { background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,0.28), transparent 45%),
  linear-gradient(105deg, transparent calc(var(--glare) - 18%), rgba(255,255,255,0.20) var(--glare), transparent calc(var(--glare) + 14%)); }
.box .face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.35), transparent 50%); opacity: 0; transition: opacity 0.25s; }
.box.tilting .face::after { opacity: 1; }

/* light sweep when a card is picked */
@keyframes sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.card-img.flash::before, .slab.flash::after, .box.flash .face::after {
  opacity: 1; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 35%, rgba(255,250,230,0.75) 48%, rgba(255,255,255,0.95) 50%, rgba(255,250,230,0.75) 52%, transparent 65%);
  background-size: 250% 100%; animation: sweep 0.9s cubic-bezier(.3,.7,.3,1) both;
}
@media (prefers-reduced-motion: reduce) {
  .item > .card-img, .item > .box, .art > .card-img, .art > .box { transition: none; transform: none; }
}

/* =====================================================================
   SLEEVES, louder (and they react to the pointer)
   ===================================================================== */
[data-sleeve="holo"] .item > .card-img::after, .art > .card-img[data-sleeve-x="holo"]::after, i[data-sleeve="holo"]::after {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 5px, rgba(255,255,255,0.10) 5px 6px),
    linear-gradient(125deg, rgba(255,0,128,0.6), rgba(255,200,0,0.55) 18%, rgba(0,255,170,0.55) 36%, rgba(0,160,255,0.6) 54%, rgba(190,0,255,0.55) 72%, rgba(255,0,128,0.6));
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--mx, 25%) var(--my, 25%);
  mix-blend-mode: color-dodge; opacity: 0.7; transition: none;
}
[data-sleeve="gold"] .item > .card-img::after, i[data-sleeve="gold"]::after {
  box-shadow: inset 0 0 0 6px #d9ac3c, inset 0 0 0 7px #fff3c4, inset 0 0 0 9px #8c6a22, inset 0 0 26px rgba(246,220,138,0.55);
  background: linear-gradient(115deg, transparent 30%, rgba(246,220,138,0.40) 45%, rgba(255,255,255,0.45) 50%, rgba(246,220,138,0.40) 55%, transparent 70%);
  background-size: 260% 100%; background-position: var(--mx, 30%) 0; mix-blend-mode: normal; opacity: 1;
}
[data-sleeve="cosmic"] .item > .card-img::after, i[data-sleeve="cosmic"]::after {
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 68% 30%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 38% 72%, #e6d4ff, transparent), radial-gradient(1.2px 1.2px at 86% 84%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 52% 12%, #cfe2ff, transparent),
    radial-gradient(ellipse at var(--mx, 30%) var(--my, 30%), rgba(160,110,255,0.55), transparent 60%),
    linear-gradient(160deg, rgba(110,60,220,0.55), rgba(30,90,200,0.45));
  background-size: 55px 75px, 65px 55px, 85px 65px, 45px 85px, 70px 60px, 100% 100%, 100% 100%;
  mix-blend-mode: screen; opacity: 1;
}
[data-sleeve="prism"] .item > .card-img::after, i[data-sleeve="prism"]::after {
  background: conic-gradient(from calc(200deg + var(--ry, 0deg) * 8) at var(--mx, 70%) var(--my, 30%),
    rgba(255,90,90,0.55), rgba(255,220,90,0.55), rgba(90,255,160,0.55), rgba(90,170,255,0.55), rgba(200,90,255,0.55), rgba(255,90,90,0.55));
  mix-blend-mode: overlay; opacity: 1;
}
[data-sleeve="shadow"] .item > .card-img::after, i[data-sleeve="shadow"]::after {
  box-shadow: inset 0 0 0 8px #0b0a08, inset 0 0 0 9px rgba(255,255,255,0.14), inset 0 0 40px rgba(0,0,0,0.75);
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.35)); mix-blend-mode: normal; opacity: 1;
}
/* the Vault Keeper's own sleeve (only on the creator's binder) */
[data-sleeve="keeper"] .item > .card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 5px #d9ac3c, inset 0 0 0 6px #fff3c4, inset 0 0 0 8px #1a140a, inset 0 0 0 9px rgba(246,220,138,0.6);
  background:
    url("logo-gold.png") no-repeat right 9% bottom 6% / 24% auto,
    linear-gradient(115deg, transparent 28%, rgba(246,220,138,0.45) 44%, rgba(255,255,255,0.55) 50%, rgba(246,220,138,0.45) 56%, transparent 72%);
  background-size: 24% auto, 260% 100%;
  background-position: right 9% bottom 6%, var(--mx, 20%) 0;
}

/* =====================================================================
   THE VAULT KEEPER: exclusive to the creator accounts
   ===================================================================== */
.owner[data-cover="keeper"]::before {
  background:
    radial-gradient(ellipse 60% 140% at 100% 50%, rgba(217,172,60,0.38), transparent 60%),
    radial-gradient(ellipse 40% 80% at 0% 0%, rgba(246,220,138,0.16), transparent 70%),
    linear-gradient(180deg, #17120a, #070605);
}
.owner.premium .keeper-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.keeper-fx .rays {
  position: absolute; width: 1400px; height: 1400px; right: -560px; top: 50%; margin-top: -700px;
  background: repeating-conic-gradient(from 0deg, rgba(246,220,138,0.10) 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); mask: radial-gradient(circle, #000 0 18%, transparent 55%);
  animation: rays 60s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.keeper-fx .kwm { position: absolute; right: 4%; top: 50%; transform: translateY(-62%); height: 70%; width: auto; opacity: 0.10; }
.keeper-fx i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f6dc8a; box-shadow: 0 0 6px 1px rgba(246,220,138,0.8); opacity: 0; animation: dust 7s ease-in-out infinite; }
.keeper-fx i:nth-child(3n)   { left: 12%; top: 70%; animation-delay: 0s; }
.keeper-fx i:nth-child(3n+1) { left: 46%; top: 30%; animation-delay: 1.3s; }
.keeper-fx i:nth-child(3n+2) { left: 78%; top: 62%; animation-delay: 2.6s; }
.keeper-fx i:nth-child(4n)   { left: 64%; top: 18%; animation-delay: 3.4s; }
.keeper-fx i:nth-child(5n)   { left: 28%; top: 40%; animation-delay: 4.7s; }
.keeper-fx i:nth-child(7n)   { left: 90%; top: 36%; animation-delay: 5.5s; }
@keyframes dust { 0% { opacity: 0; transform: translateY(10px) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(1.1); } }

.wrap[data-ring="keeper"] .avatar.ring { position: relative; background: none; overflow: visible; width: 108px; height: 108px; padding: 5px; }
.wrap[data-ring="keeper"] .avatar.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #8c6a22, #fff3c4, #d9ac3c, #8c6a22, #f6dc8a, #fff, #d9ac3c, #8c6a22);
  animation: rays 6s linear infinite; box-shadow: 0 0 24px rgba(246,220,138,0.55);
}
.wrap[data-ring="keeper"] .avatar.ring img, .wrap[data-ring="keeper"] .avatar.ring > span:not(.medal) { position: relative; z-index: 1; width: 100%; height: 100%; }
.keeper .avatar .medal {
  position: absolute; z-index: 2; right: -4px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #1b1307;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #d9ac3c 55%, #8c6a22); box-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 0 2px #070605;
}
.keeper .avatar .medal svg { width: 18px; height: 18px; }
.plaque {
  display: inline-block; margin: 8px 0 0; padding: 4px 12px; border-radius: 4px;
  font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #1b1307;
  background: linear-gradient(100deg, #a77d22, #f2d98c 30%, #c79a35 55%, #fff3c4 75%, #b98a2a);
  box-shadow: inset 0 0 0 1px rgba(60,40,5,0.5), 0 4px 12px -4px rgba(217,172,60,0.6);
}
.btn.live { padding: 6px 14px; gap: 8px; background: linear-gradient(135deg, #fff3c4, #d9ac3c); }
.btn.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0323c; box-shadow: 0 0 0 0 rgba(224,50,60,0.7); animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { to { box-shadow: 0 0 0 8px rgba(224,50,60,0); } }
.keeper .foil-name { font-size: clamp(34px, 8vw, 76px); }
.keeper .owner .ledger dd { background: linear-gradient(180deg, #fff3c4, #d9ac3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keeper .owner .ledger dd small { -webkit-text-fill-color: var(--muted); }
/* Keeper Edition slab labels (Black Labels stay black) */
.wrap[data-label="keeper"] .slab:not(.g11):not(.junk) .label {
  background: linear-gradient(180deg, #1c160c, #080604);
  color: #f6dc8a;
  box-shadow: inset 0 0 0 1px rgba(217,172,60,0.8), inset 0 0 0 3px #080604, inset 0 0 0 4px rgba(217,172,60,0.35);
}
.wrap[data-label="keeper"] .slab:not(.g11):not(.junk) .label .l-right { border-left-color: rgba(217,172,60,0.45); }
.wrap[data-label="keeper"] .slab:not(.g11):not(.junk) .label .gn { background: linear-gradient(180deg, #fff3c4, #d9ac3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keeper .slab:not(.junk) { border-color: rgba(246,220,138,0.5); }
/* leaderboard row */
.board li.keeper-row { background: linear-gradient(90deg, rgba(217,172,60,0.16), transparent 80%); border-top-color: rgba(217,172,60,0.5); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.board li.keeper-row a { color: var(--gold-hi); }
@media (prefers-reduced-motion: reduce) {
  .keeper-fx .rays, .keeper-fx i, .wrap[data-ring="keeper"] .avatar.ring::before, .btn.live .dot { animation: none; }
}
@media (max-width: 480px) { .wrap[data-ring="keeper"] .avatar.ring { width: 80px; height: 80px; padding: 4px; } .keeper .avatar .medal { width: 28px; height: 28px; } }

.wrap[data-label="keeper"] .slab:not(.g11):not(.junk) .label::before {
  content: ""; position: absolute; right: 50px; top: 50%; transform: translateY(-50%); height: 86%; aspect-ratio: 574 / 315;
  background: url("logo-gold.png") center / contain no-repeat; opacity: 0.16; pointer-events: none;
}
.label .l-left, .label .l-right { position: relative; z-index: 1; }
.keeper .foil-name {
  background: linear-gradient(100deg, #d9ac3c 0%, #fff3c4 22%, #f6dc8a 35%, #ffffff 42%, #d9ac3c 55%, #8c6a22 70%, #f6dc8a 85%, #d9ac3c 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(217,172,60,0.35));
}
[hidden] { display: none !important; }


/* =====================================================================
   PERK CATALOG LOOKS (names match perk_catalog.json)
   ===================================================================== */
/* themes */
.wrap[data-theme="rosegold"]  { --gold: #e0a090; --gold-hi: #f8d3c8; --brass: #9a5f52; }
.wrap[data-theme="frost"]     { --gold: #8fd0ff; --gold-hi: #e3f5ff; --brass: #3f7aa3; }
.wrap[data-theme="sunfire"]   { --gold: #ff8a3d; --gold-hi: #ffd08a; --brass: #a3451a; }
.wrap[data-theme="sovereign"] { --gold: #e8c66a; --gold-hi: #fffbe8; --brass: #7a5a14; }
.wrap[data-theme="eclipse"]   { --gold: #c9a7ff; --gold-hi: #f0e3ff; --brass: #5b3d8f; }

/* slab labels */
.wrap[data-label="teal"]    { --lab: #7fd1c7; } .wrap[data-label="rose"]   { --lab: #f2a0b5; }
.wrap[data-label="ice"]     { --lab: #a9d6f5; } .wrap[data-label="violet"] { --lab: #c3a6f2; }
.wrap[data-label="mint"]    { --lab: #9be3b0; } .wrap[data-label="crimson"]{ --lab: #e0606e; }
.wrap[data-label="silver"]  { --lab: #d5d8dc; } .wrap[data-label="sunset"] { --lab: #f5a65b; }
.wrap[data-label] .slab:not(.g11):not(.junk) .label {
  background: linear-gradient(100deg, color-mix(in srgb, var(--lab, #d9ac3c) 65%, black) 0%, var(--lab, #d9ac3c) 30%,
    color-mix(in srgb, var(--lab, #d9ac3c) 55%, white) 62%, color-mix(in srgb, var(--lab, #d9ac3c) 75%, black) 100%);
}
.wrap[data-label="aurora"] .slab:not(.g11):not(.junk) .label { background: linear-gradient(100deg, #1f8a6a, #7fe0c0 30%, #b6a3ff 62%, #5a3fb3); }
.wrap[data-label="ocean"]  .slab:not(.g11):not(.junk) .label { background: linear-gradient(100deg, #1d5fa8, #5ec8e8 40%, #d6f6ff 60%, #1d6fa8); }
.wrap[data-label="dusk"]   .slab:not(.g11):not(.junk) .label { background: linear-gradient(100deg, #5a2f90, #f08a7a 50%, #ffcf8a 80%, #c46a5a); }
.wrap[data-label="pearl"]  .slab:not(.g11):not(.junk) .label { background: linear-gradient(100deg, #d9d3c6, #ffffff 40%, #e2dcf2 60%, #cfc8b8); }
.wrap[data-label="obsidian"] .slab:not(.g11):not(.junk) .label {
  background: linear-gradient(100deg, #050505, #262626 50%, #050505); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.wrap[data-label="obsidian"] .slab:not(.g11):not(.junk) .label .gn,
.wrap[data-label="obsidian"] .slab:not(.g11):not(.junk) .label .ln {
  background: linear-gradient(100deg, #ff5e7e, #ffd36b, #5effb1, #5ec8ff, #c07bff, #ff5e7e); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite;
}
.wrap[data-label="spectrum"] .slab:not(.g11):not(.junk) .label {
  background: linear-gradient(100deg, #ff7a95, #ffd36b, #7dffc0, #7ad2ff, #c99bff, #ff7a95); background-size: 300% 100%;
  animation: foil 8s linear infinite; color: #120a1a;
}
.wrap[data-label="obsidian"] .slab .label .l-right, .wrap[data-label="keeper"] .slab .label .l-right { border-left-color: rgba(255,255,255,0.25); }

/* sleeves */
[data-sleeve="frost"] .item > .card-img::after {
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.8) 0 1px, transparent 2px),
    linear-gradient(160deg, rgba(255,255,255,0.55), rgba(160,215,255,0.25) 40%, rgba(255,255,255,0.0) 60%, rgba(160,215,255,0.35));
  background-size: 40px 50px, 55px 45px, 100% 100%;
  box-shadow: inset 0 0 0 5px rgba(220,240,255,0.9), inset 0 0 22px rgba(160,215,255,0.6); mix-blend-mode: screen; opacity: 1;
}
[data-sleeve="lava"] .item > .card-img::after {
  background: radial-gradient(ellipse at var(--mx, 50%) 115%, rgba(255,140,40,0.75), rgba(255,60,0,0.25) 45%, transparent 70%);
  box-shadow: inset 0 0 0 5px #ff5a1a, inset 0 0 0 6px #ffd08a, inset 0 0 30px rgba(255,90,20,0.7); mix-blend-mode: screen; opacity: 1;
}
[data-sleeve="galaxy"] .item > .card-img::after {
  background:
    radial-gradient(1.6px 1.6px at 20% 25%, #fff, transparent), radial-gradient(1.2px 1.2px at 75% 15%, #fff, transparent),
    radial-gradient(2px 2px at 55% 60%, #ffe9ff, transparent), radial-gradient(1.2px 1.2px at 30% 85%, #fff, transparent),
    radial-gradient(ellipse at var(--mx, 70%) var(--my, 30%), rgba(255,120,220,0.55), transparent 45%),
    radial-gradient(ellipse at 20% 80%, rgba(80,140,255,0.55), transparent 55%),
    linear-gradient(160deg, rgba(60,20,140,0.55), rgba(10,10,60,0.55));
  background-size: 50px 70px, 60px 50px, 80px 60px, 45px 80px, 100% 100%, 100% 100%, 100% 100%;
  box-shadow: inset 0 0 0 4px rgba(192,123,255,0.8); mix-blend-mode: screen; opacity: 1;
}
[data-sleeve="crown"] .item > .card-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 6px #d9ac3c, inset 0 0 0 7px #fff3c4, inset 0 0 0 10px #1a140a, inset 0 0 0 11px #d9ac3c, inset 0 0 30px rgba(246,220,138,0.5);
  background:
    radial-gradient(circle at 7% 5%, #ff5e9e 0 3px, #fff3c4 4px, transparent 5px),
    radial-gradient(circle at 93% 5%, #5ec8ff 0 3px, #fff3c4 4px, transparent 5px),
    radial-gradient(circle at 7% 95%, #5effb1 0 3px, #fff3c4 4px, transparent 5px),
    radial-gradient(circle at 93% 95%, #c07bff 0 3px, #fff3c4 4px, transparent 5px),
    linear-gradient(115deg, transparent 25%, rgba(255,94,158,0.35) 38%, rgba(255,243,196,0.6) 50%, rgba(94,200,255,0.35) 62%, transparent 75%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 260% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0, var(--mx, 20%) 0;
}

/* slab cases */
.wrap[data-case="emerald"] .slab:not(.junk) { background: linear-gradient(115deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.10)), rgba(63,191,138,0.20); border-color: rgba(160,240,200,0.45); }
.wrap[data-case="obsidian"] .slab:not(.junk) { background: linear-gradient(115deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.06)), rgba(0,0,0,0.85); border-color: rgba(255,255,255,0.35); }
.wrap[data-case="keeper"] .slab:not(.junk) {
  background: linear-gradient(115deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.08)), rgba(10,8,4,0.85);
  border-color: #d9ac3c; box-shadow: inset 0 0 0 1px rgba(246,220,138,0.6), inset 0 0 18px rgba(217,172,60,0.25), 0 18px 34px -14px rgba(217,172,60,0.45);
}

/* covers */
.owner[data-cover="nebula"]::before {
  background: radial-gradient(ellipse 50% 90% at 75% 40%, rgba(192,123,255,0.55), transparent 65%),
              radial-gradient(ellipse 40% 70% at 25% 70%, rgba(60,120,255,0.45), transparent 70%),
              radial-gradient(1.5px 1.5px at 30% 20%, #fff, transparent), radial-gradient(1px 1px at 60% 80%, #fff, transparent),
              #07051a;
  background-size: 100% 100%, 100% 100%, 140px 110px, 180px 130px, 100% 100%;
}
.owner[data-cover="throne"]::before {
  background: radial-gradient(ellipse 60% 140% at 100% 50%, rgba(217,172,60,0.45), transparent 60%),
              repeating-linear-gradient(90deg, rgba(246,220,138,0.06) 0 2px, transparent 2px 40px),
              linear-gradient(135deg, #2a0f3a, #12061a 60%, #070308);
}

/* avatar rings */
.wrap[data-ring] .avatar.ring { position: relative; background: none; overflow: visible; }
.wrap[data-ring] .avatar.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ringbg); animation: rays var(--spin, 0s) linear infinite; box-shadow: var(--ringglow, none); }
.wrap[data-ring] .avatar.ring img, .wrap[data-ring] .avatar.ring > span:not(.medal) { position: relative; z-index: 1; }
.wrap[data-ring="silver"]   { --ringbg: conic-gradient(#6d7178, #fff, #c9ccd1, #6d7178, #fff, #6d7178); }
.wrap[data-ring="emerald"]  { --ringbg: conic-gradient(#1e6b4a, #9ff0c8, #3fbf8a, #1e6b4a, #9ff0c8, #1e6b4a); --spin: 10s; }
.wrap[data-ring="sapphire"] { --ringbg: conic-gradient(#1f3f8e, #b3cbf6, #5b8be0, #1f3f8e, #b3cbf6, #1f3f8e); --spin: 10s; }
.wrap[data-ring="neon"]     { --ringbg: conic-gradient(#00f0ff, #ff00d4, #00f0ff, #ff00d4, #00f0ff); --spin: 4s; --ringglow: 0 0 18px rgba(0,240,255,0.6), 0 0 30px rgba(255,0,212,0.4); }
.wrap[data-ring="rainbow"]  { --ringbg: conic-gradient(#ff5e7e, #ffd36b, #5effb1, #5ec8ff, #c07bff, #ff5e7e); --spin: 5s; --ringglow: 0 0 20px rgba(255,255,255,0.35); }
.wrap[data-ring="fire"]     { --ringbg: conic-gradient(#ff3d00, #ffd08a, #ff7a1a, #ff3d00, #ffd08a, #ff3d00); --spin: 3s; --ringglow: 0 0 22px rgba(255,90,20,0.65); }
@media (prefers-reduced-motion: reduce) { .wrap[data-ring] .avatar.ring::before { animation: none; } }

/* tier badges + studio tags */
.badge.sub.t2 { background: linear-gradient(135deg, #8f5be0, #5b8be0); }
.badge.sub.t3 { background: linear-gradient(135deg, #c07bff, #ff5e9e 50%, #ffd36b); color: #1a0a1a; }
.tier-tag { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 4px; font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: 0.04em; line-height: 16px; text-transform: none; }
.tier-tag.t2 { background: #5b8be0; color: #fff; }
.tier-tag.t3 { background: linear-gradient(135deg, #c07bff, #ff5e9e); color: #fff; }
.tier-tag.t9 { background: linear-gradient(135deg, #fff3c4, #d9ac3c); color: #1b1307; }
.st-opt.locked { opacity: 0.6; }
.st-opt.locked .lock { width: 12px; height: 12px; color: var(--muted); }
.st-opt.keeper-opt { border-color: rgba(217,172,60,0.55); background: rgba(217,172,60,0.07); }
.st-opt.keeper-opt[aria-checked="true"] { background: rgba(217,172,60,0.22); }
.st-status { margin: 0; color: var(--muted); font-size: 14px; }
.st-status b:not(.tier-tag) { color: var(--ivory); }
.st-cmds .need { color: var(--muted); font-size: 14px; }
.keeper-studio { border-color: rgba(217,172,60,0.7); }
/* keep the Keeper's own label and ring winning over the generic rules above */
.wrap[data-label="keeper"] .slab:not(.g11):not(.junk) .label { background: linear-gradient(180deg, #1c160c, #080604); color: #f6dc8a; }
.wrap[data-ring="keeper"] { --ringbg: conic-gradient(from 0deg, #8c6a22, #fff3c4, #d9ac3c, #8c6a22, #f6dc8a, #fff, #d9ac3c, #8c6a22); --spin: 6s; --ringglow: 0 0 24px rgba(246,220,138,0.55); }

.tiers.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tier.t2 { border-color: rgba(91,139,224,0.55); }
.tier.t3 { border-color: rgba(192,123,255,0.6); background: linear-gradient(160deg, rgba(192,123,255,0.08), transparent 60%); }
.supporter-tier { margin-top: 18px; }
.tt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.tt li { display: grid; gap: 2px; }
.tt-cat { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; color: var(--gold-hi); text-transform: uppercase; }
.tt-opts { color: var(--muted); font-size: 15px; text-transform: capitalize; }
.tt-opts .sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 0 4px 0 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.tt-opts .sw:first-child { margin-left: 0; }
.fine code { font-family: var(--label); font-weight: 700; color: var(--ivory); }
.tt-opts.tt-plain { text-transform: none; }

.st-cmds .st-all { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.st-cmds .st-all code { white-space: normal; word-break: break-word; max-width: 100%; }

/* ---------- accounts ---------- */
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn.twitch { background: #9146ff; color: #fff; padding: 8px 14px; font-size: 14px; }
.btn.twitch:hover { background: #a970ff; }
.acct-me { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-hi); text-decoration: none; font-weight: 700; font-size: 14px; }
.acct-me svg { width: 14px; height: 14px; }
.acct-out { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .account { margin-left: auto; } .acct-out { display: none; } .btn.twitch { padding: 6px 10px; font-size: 13px; } }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 100;
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--vault-2); color: var(--ivory);
  border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; font-size: 15px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.good { border-color: #2f7a52; }
#toast.bad { border-color: #8e2f3f; }

/* trade builder */
.trade-builder { padding: 26px; display: grid; gap: 16px; }
.trade-builder h2 { font-family: var(--display); font-size: 24px; margin: 0; }
.tb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tb-cols h3 { margin: 0 0 8px; font-size: 15px; color: var(--gold-hi); }
.tb-q { width: 100%; margin-bottom: 8px; }
.tb-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.tb-card { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.tb-card:hover { background: rgba(217,172,60,0.06); }
.tb-card input { accent-color: var(--gold); width: 16px; height: 16px; }
.tb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-g { font-family: var(--label); font-size: 11px; color: var(--gold-hi); margin-left: 4px; }
.tb-val { font-family: var(--display); font-size: 13px; color: var(--gold-hi); }
.tb-note { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.tb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-sum { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .tb-cols { grid-template-columns: 1fr; } .trade-builder { padding: 20px 16px; } .tb-list { max-height: 220px; } }

/* your trades + activity */
.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin: 26px 0 0; }
@media (max-width: 800px) { .panels { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 20px; background: var(--vault); }
.panel h2 { font-family: var(--display); font-size: 18px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 15px; margin: 0; }
.trades { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trade { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.trade p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.trade .tr-note { font-style: italic; }
.tr-btns { display: flex; gap: 8px; align-items: center; }
.tr-btns .btn { padding: 7px 12px; font-size: 14px; }
.tr-status { font-family: var(--label); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.tr-status.s-completed { color: var(--gain); }
.tr-status.s-failed, .tr-status.s-declined { color: var(--loss); }
.past summary { cursor: pointer; color: var(--muted); margin: 12px 0 8px; }
.acts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.acts li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; color: var(--muted); }
.acts li span { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ivory); }
.acts li.s-failed span { color: var(--loss); }
.acts li.s-done span { color: var(--gain); }
#st-saveall { justify-self: start; }
