/* ===== PokéBinder styles ===== */
@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/Nunito.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}
/* Display face — condensed signage for headings (the "card-shop poster" voice). */
@font-face {
  font-family: 'Oswald';
  src: url('../assets/fonts/Oswald.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
}
:root {
  /* Vintage-1999 hobby grade, refined: a deep WARM-CHARCOAL canvas (less 'brown mud') with
     kraft / gold / teal / field-green as the warm accents that pop against it. */
  --bg: #141310;
  --bg-2: #1b1915;
  --panel: #201e18;
  --panel-2: #2a271f;
  --line: #38332a;          /* warm hairline (inputs, chips) */
  --line-soft: #221f19;     /* near-invisible warm divider */
  --paper: #efe4cb;         /* parchment — light accents */
  --kraft: #c9a86a;         /* cardboard */
  --text: #f3ead7;          /* warm cream */
  --muted: #a4937a;         /* warm taupe */
  --accent: #5fb22e;        /* field green — primary action (toned from neon) */
  --accent-press: #4a8c22;  /* darker green for the 3D button base */
  --accent-2: #3a9d94;      /* muted teal — the cool pop against the warm browns */
  --gold: #f2b73c;          /* coin gold — cash */
  --good: #5fb22e;
  --bad: #d6553a;           /* terracotta red — danger */
  --warn: #f2b73c;
  --card-w: 122px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 30px -8px rgba(0,0,0,.6);
  font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== LIGHT THEME =====
   A true "daylight" counterpart (Vinted / eBay-collectibles DNA): warm near-white canvas, dark
   ink, the card art + accents pop. Almost everything flips just by re-pointing the tokens; only
   the few hardcoded-dark chrome surfaces below need an explicit override. Toggle in the Menu. */
[data-theme="light"] {
  --bg: #f4ecda;
  --bg-2: #eadfc6;
  --panel: #fffdf6;
  --panel-2: #f3ebd6;
  --line: #d6c9a9;
  --line-soft: #e7dcc3;
  --paper: #fffdf6;
  --kraft: #9c7b41;
  --text: #2a2417;
  --muted: #847859;
  --accent: #4f9e22;
  --accent-press: #3c7c18;
  --accent-2: #2f8c83;
  --gold: #c2891a;
  --good: #4f9e22;
  --bad: #cf4326;
  --warn: #c2891a;
  --shadow-1: 0 1px 2px rgba(60,48,20,.12);
  --shadow-2: 0 12px 30px -10px rgba(60,48,20,.28);
}
[data-theme="light"] body { background: radial-gradient(1100px 600px at 50% -16%, #fffaef 0%, var(--bg) 62%); }
[data-theme="light"] .app-header { background: rgba(249,244,233,0.85); }
[data-theme="light"] .tabbar { background: rgba(249,244,233,0.80); }
[data-theme="light"] .hero { background: linear-gradient(105deg, var(--panel) 24%, #efe3c6 100%); }
[data-theme="light"] .show-banner.ready { background: linear-gradient(90deg, #f7eccb, #f1e2ad); }
[data-theme="light"] .show-banner.active { background: linear-gradient(90deg, #d6efe4, #c6e8d6); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1100px 600px at 50% -16%, #221f18 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100%;
  font-weight: 500;
  letter-spacing: -0.1px;
  /* Tabular figures everywhere so money, counts and timers align column-to-column. */
  font-variant-numeric: tabular-nums;
}
/* Subtle paper grain over everything (decorative, click-through) — a vintage-print tell. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.icon { display: block; }

/* App-like behaviour (especially when installed as a PWA): no rubber-band overscroll, no tap
   flash, no accidental text selection / long-press menus — except in real inputs. */
html, body { overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }
body { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
input, textarea, .import-area { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* Headings speak in the condensed display voice; body/data stay in Nunito. */
h1, h2, h3, .panel h2, .panel h3, .brand-title, .reward-headline, .shop-heading {
  font-family: 'Oswald', 'Nunito', system-ui, sans-serif;
  letter-spacing: .4px;
}

/* ---- Header ---- */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; gap: 12px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 20;
  background: rgba(20,17,11,0.82); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-size: 26px; line-height: 1; color: #fff;
  background: linear-gradient(180deg, #ee1515 50%, #f6f6f6 50%);
  border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center;
  border: 3px solid #14181f; box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.brand-title { font-weight: 800; letter-spacing: -0.2px; font-size: 17px; }
.brand-sub { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }

.pills { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pill {
  background: color-mix(in srgb, var(--panel) 50%, transparent); border: 1px solid transparent; border-radius: 999px;
  padding: 4px 10px; display: flex; gap: 6px; align-items: center;
}
.pill-label { font-size: 11px; color: var(--muted); font-weight: 800; display: flex; align-items: center; }
.pill-value { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.pill.money { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.pill.money .pill-value { color: var(--gold); }
.gear {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 50%; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center;
}
.gear:hover { background: var(--panel-2); }

/* ---- Tabs (top on desktop, bottom bar on mobile) ---- */
.tabbar {
  display: flex; gap: 4px; padding: 8px 12px; position: sticky; top: 60px; z-index: 15;
  background: rgba(20,17,11,0.78); backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft); overflow-x: auto;
}
.tab {
  position: relative;
  flex: 1; min-width: 76px; background: transparent; border: none;
  color: var(--muted); padding: 8px 8px; border-radius: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800;
  transition: color .12s ease, background .12s ease;
}
.tab:hover { color: var(--text); }
/* Locked tab: greyed + non-actionable, with a small lock badge teasing the system to come. */
.tab.locked { color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: default; }
.tab.locked:hover { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.tab.locked .tab-icon { opacity: .5; filter: grayscale(1); }
.tab-lock { display: none; position: absolute; top: 4px; right: 50%; transform: translateX(22px); color: var(--muted); }
.tab.locked .tab-lock { display: inline-flex; }
.tab.active { color: var(--accent); }
.tab.active .tab-icon { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tab-icon { display: grid; place-items: center; width: 42px; height: 30px; border-radius: 999px; transition: background .12s ease; }
.tab-icon .icon { width: 22px; height: 22px; }

.view-content { flex: 1; padding: 16px; }
.view { display: flex; flex-direction: column; gap: 16px; }

/* ---- Panels & generic ---- */
/* Panels read calmer/flatter now — a hairline + faint inner light instead of a big drop
   shadow, so sections feel like part of the page rather than floating boxes. */
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.panel h2 { margin: 0 0 6px; font-weight: 800; letter-spacing: -0.3px; }
.panel h3 { margin: 0 0 8px; font-weight: 700; letter-spacing: -0.2px; }

/* De-box: on a .stack view, panels stop being cards and become flat sections on the page canvas
   (the Shop grammar — content over chrome). Consecutive sections are split by a hairline so the
   eye still groups them; non-panel children (hero, chip rows, grids) keep their natural spacing.
   A .hero stays a card, giving each view one contained "moment" above the flat sections. */
.stack > .panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 2px 2px; }
.stack > .panel + .panel { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 2px; }
.muted { color: var(--muted); font-weight: 500; }
.small { font-size: 12.5px; }
.center { text-align: center; }
.warn { color: var(--warn); }
.big { font-size: 28px; font-weight: 900; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }

/* ---- Buttons (chunky, tactile) ---- */
.btn {
  background: var(--panel-2); color: var(--text); border: none;
  border-radius: var(--radius-sm); padding: 11px 16px; font-weight: 700; cursor: pointer; font-size: 14px;
  font-family: inherit; box-shadow: 0 3px 0 rgba(0,0,0,.35); transition: transform .04s ease, box-shadow .04s ease, filter .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(0,0,0,.35); }
.btn.primary { background: var(--accent); color: #08230a; box-shadow: 0 4px 0 var(--accent-press); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:active { transform: translateY(1px); }
.btn.danger { color: #fff; background: var(--bad); box-shadow: 0 4px 0 #c43030; }
.btn.small { padding: 7px 11px; font-size: 12.5px; border-radius: 10px; box-shadow: 0 3px 0 rgba(0,0,0,.3); }
.btn.block { width: 100%; }
.btn.disabled, .btn.disabled:hover { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.sell { background: #20402f; box-shadow: 0 3px 0 #143021; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.chip.active {
  background: color-mix(in srgb, var(--accent-2) 16%, var(--panel));
  color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 42%, var(--line));
}


/* ---- Stats ---- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px,1fr)); gap: 10px; margin-top: 12px; }
.stat-row.compact { margin: 0 0 12px; }
.stat { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 10px; text-align: center; }

/* Records: all-time personal-best tiles (kept across resets). */
.records-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 6px; }
.record-cell { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; }
.record-top { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.record-value { font-weight: 800; font-size: 18px; margin-top: 3px; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }

/* Completed: screenshot-ready milestone cards (time / cash / trades it took). */
.completions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 6px; }
.completion-card { background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--good) 35%, var(--line-soft)); border-radius: 12px; padding: 11px 13px; }
.completion-top { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--good); }
.completion-stats { margin-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.completion-stats .sep { color: var(--muted); font-weight: 400; }
.completion-stats span { display: inline-flex; align-items: center; gap: 3px; }
.stat-value { font-size: 19px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.3px; }
.stat-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; font-weight: 700; }

/* ---- Progress ---- */
.progress { position: relative; height: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--good)); transition: width .4s ease; }
.progress-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.filters { margin: -4px 0 0; }

/* ===== CARD ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 12px; }
.card {
  position: relative; width: 100%; aspect-ratio: 63 / 88; border-radius: 9px;
  user-select: none;
  container-type: inline-size; /* lets the 1st-ed stamp scale to the card via cqw + isolates paint */
}
.card.clickable { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.card.clickable:hover { transform: translateY(-3px) scale(1.02); z-index: 2; }
.card-frame {
  position: absolute; inset: 0; border-radius: 9px; overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #d8d4b0) 0%, color-mix(in srgb, var(--accent) 45%, #b9b48f) 100%);
  border: 3px solid #e8d98a;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  display: flex; flex-direction: column; padding: 5px;
}
.card-top { display: flex; justify-content: space-between; align-items: baseline; padding: 1px 3px; gap: 4px; }
.card-name { font-weight: 800; font-size: 11px; color: #1c1c1c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.card-hp { font-size: 9px; font-weight: 800; color: #b1402f; white-space: nowrap; }
.card-art {
  position: relative; flex: 1; margin: 2px; border-radius: 4px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #d9e2ec 70%, #b9c4d2 100%);
  border: 2px solid #c9b96a;
  display: grid; place-items: center;
}
.card-art img { width: 100%; height: 100%; object-fit: contain; padding: 4px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.card-bottom { display: flex; justify-content: space-between; padding: 2px 4px 1px; }
.card-number { font-size: 8.5px; color: #2a2a2a; font-weight: 700; }
.card-rarity { font-size: 8.5px; color: #2a2a2a; font-weight: 700; }

/* type accents */
.card.type-fire .card-frame { border-color: #f0a15a; }
.card.type-water .card-frame { border-color: #7fb0ec; }
.card.type-grass .card-frame { border-color: #8fcf7f; }
.card.type-lightning .card-frame { border-color: #f0d96a; }
.card.type-psychic .card-frame { border-color: #c79ad6; }
.card.type-fighting .card-frame { border-color: #d4a06a; }

/* holographic foil */
.card.holo .card-frame { border-color: #fff; }
.foil {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .55;
  background: linear-gradient(115deg, transparent 20%, #ff6ec4 35%, #7873f5 45%, #4ade80 55%, #facc15 65%, transparent 80%);
  background-size: 300% 300%; animation: foilshift 4s linear infinite;
}
@keyframes foilshift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.card.holo::after {
  content: ""; position: absolute; inset: 0; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 16px rgba(168,150,255,.5);
}

/* 1st edition stamp — the iconic dark foil stamp. Sized in cqw so it scales with the card (no more
   oversized stamp bleeding past small grid cards), and clipped to its own circle. */
.stamp {
  position: absolute; top: 30%; left: 7%; z-index: 4; pointer-events: none;
  width: 23%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 38% 30%, #2c3656 0%, #0c1326 78%);
  color: #eef2ff; border: 1px solid rgba(255,255,255,.35);
  font-weight: 900; line-height: .82; letter-spacing: .3px; text-align: center;
  display: grid; place-items: center; transform: rotate(-9deg);
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
  font-size: 6.2cqw;
}
.stamp small { font-size: 4.8cqw; display: block; opacity: .92; }

/* shadowless: slightly brighter, no inner shadow (denoted with subtle ring) */
.card.shadowless .card-art { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }

/* graded slab */
.card.graded { padding: 8px 4px; background: rgba(255,255,255,.06); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.card.graded .card-frame { inset: 18px 6px 6px; }
.slab-label {
  position: absolute; top: 2px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-size: 10px; font-weight: 900; letter-spacing: .5px; color: #111;
  background: #d7dbe2; padding: 2px 10px; border-radius: 4px; border: 1px solid #9aa3b2;
}
.slab-label.grade-10 { background: linear-gradient(90deg,#ffd700,#fff2a8); color: #5a4500; }
.slab-label.grade-9 { background: #ffe08a; }
.slab-label.grade-8 { background: #cfe6ff; }

/* card badges (NEW / xN) */
.card-badge {
  position: absolute; top: -6px; right: -6px; z-index: 5;
  background: var(--bad); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; border: 2px solid var(--bg);
}

/* 🔒 Frozen — protected from the counter's auto-sale until unfrozen */
.frozen-badge {
  position: absolute; top: -6px; left: -6px; z-index: 6; font-size: 12px; line-height: 1;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #cfe6ff; border: 2px solid var(--bg);
}
.card.frozen .card-frame { border-color: #8fc3ff; box-shadow: 0 0 0 1px rgba(143,195,255,.5); }

/* ✦ Special Edition — the ultra-rare foil chase tier: a richer gold-rainbow sweep + gold glow */
.card.special .card-frame { border-color: #ffd86b; }
.card.special::after {
  content: ""; position: absolute; inset: 0; border-radius: 9px; pointer-events: none;
  box-shadow: 0 0 20px rgba(255,200,80,.65), inset 0 0 0 1px rgba(255,216,107,.6);
}
.special-foil {
  position: absolute; inset: 0; z-index: 3; border-radius: 9px; pointer-events: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,231,154,.20), rgba(255,110,196,.16) 38%, rgba(120,115,245,.16) 52%, rgba(255,215,0,.20) 72%);
}
.special-stamp {
  position: absolute; top: 6%; left: 7%; z-index: 4; pointer-events: none;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: #5a4500;
  background: radial-gradient(circle at 35% 30%, #fff3c0, #f4c43c 70%);
  box-shadow: 0 0 8px rgba(255,200,80,.8); border: 1px solid #c9881a;
}

/* Promo cards — bundled bespoke art with a soft holographic sheen + a corner ribbon */
.card.promo .card-frame { border-color: #b18cff; }
.card.promo .card-art img { object-fit: cover; }
.promo-foil {
  position: absolute; inset: 0; z-index: 2; border-radius: 9px; pointer-events: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(177,140,255,.18), rgba(106,208,255,.14) 55%);
}
.promo-ribbon {
  position: absolute; top: 7px; left: -22px; z-index: 4; pointer-events: none;
  transform: rotate(-38deg); width: 80px; text-align: center;
  background: linear-gradient(90deg,#7a5cff,#b18cff); color: #fff;
  font-size: 8px; font-weight: 900; letter-spacing: 1px; padding: 2px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* reveal: special/promo flips get the chase-pop with an extra glow */
.flipper.is-special.flipped .flip-front .card { animation: chasepop .55s ease; }
.flipper.is-special .flip-back { box-shadow: 0 0 22px rgba(255,200,80,.6); }

.promos-panel .card-grid { margin-top: 8px; }

/* placeholder / unowned */
.card.placeholder .card-frame { background: #1d2433; border-color: #36425e; filter: grayscale(1); }
.card.placeholder .card-art { background: #161c28; border-color: #2c3650; }
.card.placeholder .card-name, .card.placeholder .card-number, .card.placeholder .card-rarity { color: #5b6884; }
.silhouette { font-size: 30px; color: #36425e; font-weight: 900; }

.card-with-caption { display: flex; flex-direction: column; gap: 4px; }
.card-caption { font-size: 11px; color: var(--muted); text-align: center; }

.card.mini { --card-w: 70px; width: 70px; }
.mini.card, .mini .card-frame { box-shadow: none; }

/* ===== SHOP ===== */
/* Image-led, borderless product tiles (StockX / Vinted DNA): the booster art sits on a clean
   "product-shot" backdrop, then name → facts → a price line → the buy action. No card border,
   no drop shadow, no accent stripe — whitespace and the imagery do the separating. */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 22px 18px; }
.pack-card { position: relative; height: 100%; background: transparent; border: none; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pack-art {
  position: relative; display: grid; place-items: center; padding: 18px; min-height: 188px;
  border-radius: 16px;
  background: radial-gradient(130% 110% at 50% 0%, var(--panel-2) 0%, var(--bg-2) 78%);
  transition: transform .16s ease, box-shadow .16s ease;
}
.pack-card:hover .pack-art { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pack-card.sold-out .pack-art { filter: saturate(.4) brightness(.8); }
.pack-meta { display: flex; flex-direction: column; gap: 2px; }
.pack-card h3 { margin: 0; line-height: 1.05; }
/* Clamp the blurb to two lines so a longer description (e.g. "shadowless") can't shove the
   price/CTA down — every tile in a row keeps the same vertical rhythm. */
.pack-blurb { margin: 1px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack-facts { margin: 5px 0 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
.pack-facts li { margin: 2px 0; }
/* Price hierarchy — the loudest type on the tile (StockX "Lowest Ask · $202"). margin-top:auto
   pins the price + buttons to the bottom of the (equal-height) tile, so the price baseline and
   the CTAs line up across every column regardless of how many fact lines sit above them. */
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.price-big { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 23px; letter-spacing: .5px; color: var(--text); font-variant-numeric: tabular-nums; }
.pack-card.sold-out .price-big { color: var(--muted); }
.pack-wrapper {
  position: relative; width: 110px; height: 150px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 40%, #1b2230) 100%);
  border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.pack-emblem { font-size: 44px; color: rgba(255,255,255,.85); }
.pack-shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.pack-shine::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-120%) skewX(-14deg);
  animation: foilsheen 5s linear infinite; }

/* reveal */
/* ===== Test Pack: the cut-to-open animation (draw a line to slice it) ===== */
.test-pack-panel .test-pack-art { transform: scale(.62); transform-origin: left center; flex: none; }
.pack-cut-stage { text-align: center; }
.pcut-holder { display: grid; place-items: center; min-height: 250px; margin: 8px 0 4px; }
.pack-cut {
  position: relative; width: 152px; height: 212px;
  touch-action: none; cursor: crosshair; user-select: none;
}
/* the pack face — rendered three times: whole (pre-cut), then body + offcut (clipped at cut time) */
.pcut-face {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden; z-index: 3;
  background: linear-gradient(160deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 38%, #161b27) 100%);
  border: 2px solid rgba(255,255,255,.3); box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.pcut-face .pack-feature { position: absolute; width: 86%; bottom: 9%; left: 7%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); pointer-events: none; }
.pcut-logo { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.95); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pcut-offcut { z-index: 4; }
.pcut-body, .pcut-offcut { display: none; }            /* shown only after the cut */
.pack-cut.cut .pcut-whole { display: none; }
.pack-cut.cut .pcut-body, .pack-cut.cut .pcut-offcut { display: block; }
.pack-cut.cut .pcut-offcut { animation: pcut-fall .55s cubic-bezier(.4,.1,.7,1) forwards; }
@keyframes pcut-fall { to { transform: translateY(96px) rotate(7deg); opacity: 0; } }
.pack-cut.opened .pcut-body { animation: pcut-open .45s ease-out forwards; }
@keyframes pcut-open { from { transform: translateY(0); } to { transform: translateY(-5px); } }
/* the pencil line you draw */
.pcut-ink { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible; transition: opacity .3s ease; }
.pcut-ink path { fill: none; stroke: #fdf3c4; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(255,230,120,.9)); }
.pack-cut.cut .pcut-ink { opacity: 0; }
/* the burst of light as it opens */
.pcut-glow { position: absolute; inset: -10px; border-radius: 20px; pointer-events: none; z-index: 2; opacity: 0; background: radial-gradient(circle at 50% 28%, rgba(255,246,206,.95), rgba(255,205,90,0) 60%); }
.pack-cut.opened .pcut-glow { animation: pcut-glow .6s ease-out; }
@keyframes pcut-glow { 0%,100% { opacity: 0; } 45% { opacity: 1; } }
.pcut-hint { color: var(--muted); font-size: 13px; margin-bottom: 10px; transition: opacity .2s ease; }


.reveal { text-align: center; }
.reveal-deck { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0; }
.flipper { width: 92px; aspect-ratio: 63/88; perspective: 800px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s ease; }
.flipper.flipped .flip-inner { transform: rotateY(180deg); }
.flip-back, .flip-front { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 9px; }
.flip-back {
  background: linear-gradient(160deg, #2b3a8f, #14204f); border: 3px solid #f0c000;
  display: grid; place-items: center; color: #f0c000; font-size: 34px;
}
.flip-front { transform: rotateY(180deg); }
.flip-front .card { width: 100%; }
.flipper.is-chase.flipped .flip-front .card { animation: chasepop .5s ease; }
@keyframes chasepop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ===== TRADE ===== */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.offer-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 15px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
.offer-card.locked { opacity: .8; }
.npc-name { font-weight: 700; }
.tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; margin-left: auto; }
.tag.cash { background: #2a3a32; color: var(--good); }
.tag.trade { background: #2a3144; color: #8fb6ff; }
.offer-note { font-style: italic; color: var(--muted); font-size: 12.5px; margin: 0; }
.offer-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--bg-2); border-radius: 10px; padding: 10px; }
.offer-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.offer-label { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.offer-arrow { font-size: 22px; color: var(--muted); }
.want-text { font-size: 12px; font-weight: 700; text-align: center; }
.reward-cash { font-size: 24px; font-weight: 900; color: var(--good); }
.reward-cards { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* ===== GRADING ===== */
.grade-queue { display: flex; flex-direction: column; gap: 10px; }
.queue-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px; }
.queue-row .card { --card-w: 70px; }
.queue-row.ready { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.queue-name { font-weight: 700; }
.grade-timer { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.badge { font-size: 11px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 4px 10px; }
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 12px; }
.grade-cell { display: flex; flex-direction: column; gap: 6px; }
.grade-cell .card { --card-w: 100%; }
.grade-result { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.grade-result .card { width: 150px; }

/* ===== JOBS ===== */
.job-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.job-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.job-icon { font-size: 24px; text-align: center; }
.job-name { font-weight: 700; }
.wager { width: 90px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px; font-size: 14px; }
.flip-result { min-height: 20px; font-weight: 700; margin-top: 6px; }
.flip-result.win { color: var(--good); }
.flip-result.lose { color: var(--bad); }

/* ===== MODAL / TOAST ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,8,4,.74); display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity .2s ease; z-index: 100; overflow:auto; }
.modal-overlay.show { opacity: 1; }
.modal-dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; max-width: 460px; width: 100%; transform: translateY(8px); transition: transform .2s ease; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.modal-overlay.show .modal-dialog { transform: translateY(0); }
.modal-dialog.wide { max-width: 760px; }
.intro-list { padding-left: 18px; line-height: 1.7; }
.intro-list li { margin: 4px 0; }
.copy-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow: auto; }
.copy-row { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.copy-row .card { --card-w: 80px; }
.copy-summary { font-size: 13px; margin-bottom: 8px; }
.import-area { width: 100%; height: 140px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: monospace; }

.toast-root, #toast-root { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; align-items: center; }
.toast { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: all .25s ease; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--good); }
.toast-error { border-color: var(--bad); }

/* ===== v2: dynamic market, reputation, trade shows, stats ===== */
.strong { font-weight: 700; }
.trend { font-size: 11px; }
.trend.up { color: var(--good); }
.trend.down { color: var(--bad); }
.trend.flat { color: var(--muted); }
.sparkline { display: block; }
.pill.timer .pill-value { font-variant-numeric: tabular-nums; }

/* reputation */
.rep-box { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; }
.rep-box .progress { margin-top: 6px; height: 12px; }

/* market news */
.news-panel .news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 5px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }

/* trade-show banner */
.show-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 600; flex-wrap: wrap; }
.show-banner.ready { background: linear-gradient(90deg, #322a13, #211c0c); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.show-banner.active { background: linear-gradient(90deg, #112b26, #0f211b); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
/* Informational banners (out-of-print, coming-soon) read as a quiet inline line, not a box. */
.show-banner.soon { color: var(--muted); background: transparent; border-color: transparent; padding: 6px 4px; }

/* negotiation modal */
.negotiate-cards { margin: 12px 0; }
.negotiate-offer { display: flex; justify-content: space-between; align-items: center; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.negotiate-offer .reward-cash { font-size: 22px; }
.negotiate-status { min-height: 20px; color: var(--accent); font-weight: 600; }
.negotiate-actions { margin-top: 12px; }

/* trade show */
.tradeshow .panel { margin-top: 12px; }
.show-timer { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.vendor-cell { display: flex; flex-direction: column; gap: 6px; }
.vendor-box-art { display: grid; place-items: center; padding: 4px 0; }
.vendor-cell .card { --card-w: 100%; }

/* stats: movers + leaderboard + run timer */
.run-timer-value { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.1; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.movers-head { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.movers-head.up { color: var(--good); }
.movers-head.down { color: var(--bad); }
.sparkline { display: block; max-width: 100%; flex: 0 0 auto; }
.mover-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); overflow: hidden; }
.mover-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-price { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); }
.mover-pct { font-size: 12px; font-weight: 700; white-space: nowrap; }
.mover-pct.up { color: var(--good); }
.mover-pct.down { color: var(--bad); }
.leaderboard { width: 100%; border-collapse: collapse; font-size: 13px; }
.leaderboard th, .leaderboard td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.leaderboard th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.leaderboard tr.top td { color: var(--accent); }

/* ===== v3: shop products, booster art, grading detail, mini-games ===== */
.shop-heading { margin: 6px 4px -4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* booster wrapper art */
.pack-feature { position: absolute; width: 84%; bottom: 12%; left: 8%; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); pointer-events: none; }
.pack-logo { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.deck-tag { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-weight: 900; font-size: 10px; color: #fff; background: rgba(0,0,0,.4); padding: 2px; letter-spacing: 2px; }
.pack-box { position: relative; width: 132px; height: 120px; border-radius: 8px; background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #1b2230)); border: 2px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.45); display: grid; place-items: center; overflow: hidden; }
.pack-box-lid { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.pack-box .pack-feature { position: relative; width: 66%; bottom: auto; left: auto; }
.pack-box-count { position: absolute; top: 6px; right: 8px; background: rgba(0,0,0,.55); color: #fff; font-weight: 900; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.box-holos { margin-top: 10px; }

/* grading detail */
.grade-legend { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.legend-item { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; min-width: 46px; }
.legend-item.good { border-color: var(--good); }
.legend-item.bad { border-color: var(--bad); }
.legend-grade { font-size: 10px; color: var(--muted); }
.legend-mult { font-weight: 800; }
.legend-item.good .legend-mult { color: var(--good); }
.legend-item.bad .legend-mult { color: var(--bad); }
.grade-cell .est { color: var(--accent); font-weight: 600; }
.subgrades { display: flex; gap: 8px; justify-content: center; margin: 10px 0; flex-wrap: wrap; }
.subgrade { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 56px; }
.subgrade-val { font-size: 18px; font-weight: 800; color: var(--accent); }
.subgrade-label { font-size: 10px; color: var(--muted); text-transform: capitalize; }
.grade-delta { font-weight: 600; }
.grade-delta.up { color: var(--good); }
.grade-delta.down { color: var(--bad); }

/* mini-games */
.minigame { min-width: 290px; text-align: center; }
.minigame-head h3 { margin: 0 0 4px; }
.minigame-result { padding: 20px 8px; }
.tg-track { position: relative; height: 36px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; overflow: hidden; }
.tg-zone { position: absolute; top: 0; bottom: 0; background: rgba(68,192,138,.32); border-left: 2px solid var(--good); border-right: 2px solid var(--good); }
.tg-marker { position: absolute; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: translateX(-50%); box-shadow: 0 0 8px var(--accent); }
.rg-board { position: relative; height: 240px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; overflow: hidden; }
.rg-dot { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c0, var(--accent)); border: none; color: #1a1a1a; font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.mg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px auto; max-width: 240px; }
.mg-pad { height: 80px; border-radius: 10px; border: 2px solid rgba(255,255,255,.15); cursor: pointer; opacity: .5; transition: opacity .1s ease, transform .1s ease; }
.mg-pad.lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 18px currentColor; }
.pad-0 { background: #e2615a; color: #e2615a; }
.pad-1 { background: #4f9d4f; color: #4f9d4f; }
.pad-2 { background: #4f7ad0; color: #4f7ad0; }
.pad-3 { background: #e3b53b; color: #e3b53b; }

/* ===== v5: auctions ===== */
.auction-card-art { display: flex; justify-content: center; }
.auction-card-art .card { --card-w: 90px; width: 90px; }
.auction-bid { font-size: 22px; font-weight: 900; color: var(--good); text-align: center; }
.auction-status { text-align: center; min-height: 16px; }
.auction-status.up { color: var(--good); font-weight: 700; }
.auction-status.down { color: var(--bad); font-weight: 700; }
.view-auctions .show-timer { text-align: center; display: block; }
.auction-result { text-align: center; font-weight: 700; padding: 6px; }

/* ===== v4: counterfeits, sealed vault, collections ===== */
.fake-banner { position: absolute; top: 40%; left: -8%; right: -8%; transform: rotate(-12deg); background: var(--bad); color: #fff; font-weight: 900; font-size: 10px; text-align: center; letter-spacing: 1px; padding: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.5); z-index: 6; }
.unverified-badge { position: absolute; top: -6px; left: -6px; z-index: 5; width: 20px; height: 20px; border-radius: 50%; background: var(--warn); color: #1a1a1a; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg); font-size: 12px; }
.vault-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.vault-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.vault-info { min-width: 170px; }
.collection-row { margin: 10px 0; }
.collection-row .progress { height: 12px; margin-top: 4px; }

/* ===== v6: multi-set, eras, trainer/energy frames, new mini-games ===== */
.binder-sets, .shop-sets { display: flex; flex-direction: column; gap: 18px; }
.binder-set .card-grid { margin-top: 8px; }
.job-card.locked { opacity: .6; }

/* Trainer/Energy cards have no artwork — render a typed frame instead. */
.card-frameart { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 6px; text-align: center; }
.frameart-name { font-weight: 800; font-size: 12px; color: #232323; line-height: 1.12; }
.frameart-kind { font-size: 8px; letter-spacing: 1px; color: #6a6a55; margin-top: 5px; }
.card.type-trainer .card-frame { border-color: #d9a85a; }
.card.type-trainer .card-art { background: linear-gradient(180deg, #efe2bf, #d8c490); }
.card.type-energy .card-frame { border-color: #a7b56a; }
.card.type-energy .card-art { background: linear-gradient(180deg, #e6ecc4, #c3cd92); }
.card.type-darkness .card-frame { border-color: #5a5a72; }
.card.type-metal .card-frame { border-color: #9aa0ad; }

/* Who's That Pokémon? + trivia */
.wt-stage { display: grid; place-items: center; padding: 8px; }
.wt-stage img { width: 150px; height: 150px; object-fit: contain; transition: filter .35s ease; }
.wt-silhouette { filter: brightness(0); }
.wt-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* card-tile option rows (Spot-the-priciest / Odd-one-out) */
.mini-card-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.mini-card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; height: auto; padding: 8px 6px; }
.mini-card-art { width: 64px; height: 64px; object-fit: contain; }
.mini-card-name { font-size: 11px; font-weight: 700; line-height: 1.1; }

/* ===== v7: real card scans, animations, bottom nav ===== */
/* Real TCG scan overlays the rendered frame; if it fails to load it's hidden, revealing the frame. */
.card-scan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; border-radius: 9px; background: #0f131b; }
.card-scan.scan-failed { display: none; }
.card.graded .card-scan { inset: 18px 6px 6px; border-radius: 6px; }
/* Holographic foils — a cheap STATIC tint + a single transform-only sheen streak. The sweep
   ANIMATION runs only in spotlight contexts (reveal / detail / hero) so dense binder grids and
   rails stay perfectly static: no per-frame paint, no blend-mode compositing. This is the big
   mobile-smoothness win — previously every holo card animated background-position under
   mix-blend-mode: color-dodge, which thrashed paint + compositing. */
.card-foil {
  position: absolute; inset: 0; z-index: 2; border-radius: 9px; pointer-events: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,110,196,.12), rgba(120,115,245,.10) 45%, rgba(74,222,128,.10) 60%, rgba(250,204,21,.12));
}
.card-foil::before, .special-foil::before, .promo-foil::before {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(40%) skewX(-14deg);
}
.special-foil::before { width: 50%; background: linear-gradient(105deg, transparent, rgba(255,245,205,.85), transparent); }
.reveal .card-foil::before, .reveal .special-foil::before, .reveal .promo-foil::before,
.card-detail .card-foil::before, .card-detail .special-foil::before, .card-detail .promo-foil::before,
.hero .card-foil::before {
  animation: foilsheen 2.8s linear infinite;
}
@keyframes foilsheen {
  0% { transform: translateX(-130%) skewX(-14deg); }
  100% { transform: translateX(360%) skewX(-14deg); }
}

/* celebratory micro-animations (low weight) */
@keyframes pop-in { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop-in .3s ease-out both; }
@keyframes confetti-fly { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
.confetti-burst { position: fixed; left: 50%; top: 44%; z-index: 300; pointer-events: none; }
.confetti { position: absolute; width: 9px; height: 9px; border-radius: 2px; animation: confetti-fly .75s ease-out forwards; }
@keyframes float-up { 0% { transform: translate(-50%, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-50%, -64px); opacity: 0; } }
.floater { position: fixed; z-index: 300; font-weight: 900; font-size: 22px; pointer-events: none; animation: float-up 1.05s ease-out forwards; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
@keyframes pulse-ready { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.queue-row.ready { animation: pulse-ready 1.6s ease-in-out infinite; }

/* Respect reduced-motion: kill looping shimmer/pulse and make one-shot anims effectively instant. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== v8: Mobbin-informed refinements (dark) =====
   Patterns mined from Mobbin (Duolingo lesson-complete, Robinhood stock detail,
   Family/eBay collectible card detail, Duolingo/Finch quests) and adapted to the
   existing dark token set. See DESIGN.md. */

/* Reward tiles — the Duolingo "lesson complete" payoff: a row of color-coded
   tiles (UPPERCASE label + big value), each tinted by tone. Used on pack reveals,
   box summaries, grade results, and mini-game results. */
.reward-headline { font-size: 26px; font-weight: 900; text-align: center; margin: 2px 0; letter-spacing: .2px; }
.reward-headline.tone-gold { color: var(--gold); }
.reward-headline.tone-green { color: var(--good); }
.reward-headline.tone-blue { color: var(--accent-2); }
.reward-headline.tone-red { color: var(--bad); }
.reward-headline.tone-neutral { color: var(--text); }

.reward-tiles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0; }
.reward-tile {
  flex: 1 1 0; min-width: 82px; max-width: 150px;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 9px 8px 11px; text-align: center;
}
.reward-tile .rt-label { font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.reward-tile .rt-value { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.12; margin-top: 3px; }
.reward-tile.tone-gold  { border-color: color-mix(in srgb, var(--gold) 55%, var(--line));     background: color-mix(in srgb, var(--gold) 9%, var(--bg-2)); }
.reward-tile.tone-gold  .rt-value { color: var(--gold); }
.reward-tile.tone-blue  { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); background: color-mix(in srgb, var(--accent-2) 9%, var(--bg-2)); }
.reward-tile.tone-blue  .rt-value { color: var(--accent-2); }
.reward-tile.tone-green { border-color: color-mix(in srgb, var(--good) 55%, var(--line));     background: color-mix(in srgb, var(--good) 10%, var(--bg-2)); }
.reward-tile.tone-green .rt-value { color: var(--good); }
.reward-tile.tone-red   { border-color: color-mix(in srgb, var(--bad) 50%, var(--line));      background: color-mix(in srgb, var(--bad) 9%, var(--bg-2)); }
.reward-tile.tone-red   .rt-value { color: var(--bad); }

/* Quest rows — Duolingo/Finch task rows: a colored icon tile, title + blurb, an
   inline cooldown progress bar, and the payout range on the right. */
.quest-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.quest-row {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 11px 12px;
}
.quest-row.ready { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.quest-row.locked { opacity: .55; }
/* Teach-on-unlock card: a small, dismissible coachmark pinned above the tab bar that announces a
   freshly-unlocked system (one at a time). */
.teach-card {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 60;
  width: min(440px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 16px; box-shadow: var(--shadow-2);
  animation: teachIn .26s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes teachIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.teach-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.teach-body { flex: 1; min-width: 0; }
.teach-title { font-weight: 800; font-size: 14px; color: var(--text); }
.teach-text { font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.teach-card .btn { flex: 0 0 auto; }

/* "Getting Started" checklist (shown before Collector Contracts unlock). */
.starter-step { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 12px; }
.starter-step .starter-check { display: inline-flex; color: var(--muted); }
.starter-step.done { opacity: .65; }
.starter-step.done .starter-check { color: var(--good); }
.starter-step.done .quest-title { text-decoration: line-through; }
.quest-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 23px;
  background: color-mix(in srgb, var(--accent) 16%, var(--panel-2));
  color: var(--accent);
}
.quest-row.ready .quest-icon { background: color-mix(in srgb, var(--accent) 26%, var(--panel-2)); }
.quest-main { min-width: 0; }
.quest-title { font-weight: 800; }
.quest-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.quest-bar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }
.quest-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .3s ease; }
.quest-row.ready .quest-bar > i { background: var(--accent); }
.quest-reward { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.quest-pay { font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }

/* Stock-detail price block — Robinhood/Public: big price, colored change, full-width
   gradient sparkline. Used in the binder card detail. */
.price-detail { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.price-detail-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.price-big { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 2px; }
.price-change { font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.graded-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.graded-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.graded-chip b { font-weight: 900; }
.graded-chip.g9 { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-soft)); }
.graded-chip.g10 { border-color: color-mix(in srgb, var(--gold) 60%, var(--line-soft)); background: color-mix(in srgb, var(--gold) 10%, var(--bg)); }
.price-change.up { color: var(--good); }
.price-change.down { color: var(--bad); }
.price-detail .sparkline { width: 100% !important; margin-top: 12px; }

/* Trait chips — Family/eBay collectible detail: value bold over a muted label. */
.trait-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 14px; }
.trait-chip { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px 13px; text-align: center; min-width: 52px; }
.trait-chip .tc-value { font-weight: 900; font-size: 14px; }
.trait-chip .tc-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-top: 1px; }

/* Shop product badges — Duolingo "POPULAR" pill. */
.product-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; color: #08230a; background: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.product-badge.hot { background: var(--gold); color: #3a2c00; }
.product-badge.value { background: var(--accent-2); color: #04222f; }

/* Set sub-tabs — switch which set's products/cards you're viewing (Shop + Binder), so
   the page doesn't become one long scroll as sets release. */
.set-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tab {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 12px; font-weight: 800; font-size: 13px;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  cursor: pointer; white-space: nowrap; font-family: inherit; transition: color .12s ease, background .12s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.set-tab:hover { color: var(--text); }
.set-tab.active { background: var(--accent); color: #08230a; border-color: var(--accent); box-shadow: 0 2px 0 var(--accent-press); }
/* Locked sub-tab: greyed, hairline border, padlock — a tap explains how to unlock it. */
.set-tab.locked { opacity: .5; background: transparent; border-color: var(--line-soft); cursor: default; }
.set-tab.locked:hover { color: var(--muted); }
.set-tab.locked .icon { width: 12px; height: 12px; }

/* Offer cards (Trade + Trade Show) — colored NPC avatar tile + requirement chips,
   coherent with the quest-row icon tiles and the binder trait chips. */
.npc-avatar {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--accent-2) 16%, var(--panel-2)); flex: 0 0 auto;
}
.npc-meta { display: flex; flex-direction: column; line-height: 1.18; }
.req-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.req-chips.center { justify-content: center; }
.req-chip {
  font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
}

/* Random-event banner — a prominent, time-limited opportunity atop Trade/Shop. */
.event-banner {
  display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: var(--radius);
  flex-wrap: wrap; box-shadow: var(--shadow-2);
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 20%, var(--panel)), var(--panel) 70%);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
}
.event-banner.frenzy { background: linear-gradient(100deg, color-mix(in srgb, var(--bad) 20%, var(--panel)), var(--panel) 70%); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.event-banner.flashsale { background: linear-gradient(100deg, color-mix(in srgb, var(--accent-2) 20%, var(--panel)), var(--panel) 70%); border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line)); }
.event-icon { font-size: 22px; line-height: 1; }
.event-label { font-weight: 800; flex: 1; min-width: 150px; letter-spacing: -0.2px; }

/* Auction lot — labeled bid block (reads like the price block) + colored result. */
.bid-block { text-align: center; margin-top: 4px; }
.bid-label { text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1px; }
.auction-result.up { color: var(--good); }
.auction-result.down { color: var(--muted); }

@media (max-width: 560px) {
  :root { --card-w: 104px; }
  .brand-sub { display: none; }
  .offer-body { grid-template-columns: 1fr; }
  .offer-arrow { transform: rotate(90deg); }
  .movers { grid-template-columns: 1fr; }
  .reward-headline { font-size: 22px; }
  .reward-tile .rt-value { font-size: 19px; }
}

/* Bottom tab bar on phones/tablets (Duolingo/Apple style) */
@media (max-width: 680px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    border-top: 1px solid var(--line); border-bottom: none;
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; gap: 0; z-index: 40;
  }
  .view-content { padding-bottom: 92px; }
  .tab { min-width: 0; font-size: 10px; }
  .tab-icon { width: 38px; height: 28px; }
}

/* ===== v10: Shop hero + chase rail (vintage "card-shop poster") ===== */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-2);
  min-height: 152px; display: flex; align-items: flex-end; padding: 18px;
  background: linear-gradient(105deg, var(--panel) 24%, #26221a 100%);
}
.hero-art {
  position: absolute; right: -8px; bottom: -10px; height: 165%; width: auto; max-width: 58%;
  object-fit: contain; opacity: .92; filter: drop-shadow(0 8px 20px rgba(0,0,0,.55));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  pointer-events: none; user-select: none;
}
.hero::after { /* warm scrim so the left-side text always reads */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, var(--panel) 30%, transparent 78%);
}
.hero-body { position: relative; z-index: 2; max-width: 70%; }
.hero-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--kraft); }
.hero-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 40px; line-height: .98; margin: 7px 0 7px; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.hero-sub { color: var(--muted); font-size: 13px; }
.stats-hero .run-timer-value { font-size: 40px; line-height: 1; margin: 4px 0; }

.chase-rail-wrap { display: flex; flex-direction: column; gap: 8px; }
.card-rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.card-rail::-webkit-scrollbar { display: none; }
.card-rail .card { width: 96px; flex: 0 0 auto; }

@media (max-width: 560px) {
  .hero-title { font-size: 30px; }
  .hero-art { max-width: 52%; }
  .card-rail .card { width: 84px; }
}

/* ===== First-time onboarding coachmark (spotlight) ===== */
.coach { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.coach-ring {
  position: fixed; border: 3px solid var(--accent); border-radius: 12px;
  box-shadow: 0 0 0 4000px rgba(10,8,4,.5);  /* dims the screen, hole at the ring */
  transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease;
  animation: coach-pulse 1.5s ease-in-out infinite; pointer-events: none;
}
@keyframes coach-pulse {
  0%,100% { box-shadow: 0 0 0 4000px rgba(10,8,4,.5), 0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent); }
  50%     { box-shadow: 0 0 0 4000px rgba(10,8,4,.5), 0 0 0 9px transparent; }
}
.coach-tip {
  position: fixed; max-width: 224px; background: var(--accent); color: #08230a;
  font-weight: 700; font-size: 13px; line-height: 1.3; padding: 10px 12px; border-radius: 12px;
  box-shadow: var(--shadow-2); pointer-events: auto; display: flex; flex-direction: column; gap: 7px;
}
.coach-skip {
  align-self: flex-end; background: rgba(0,0,0,.18); border: none; color: #08230a;
  font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: 999px; cursor: pointer; font-family: inherit;
}

/* ===== Shop Counter / Storefront (the active "run your store" loop) ===== */
.shelf { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.shelf-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px;
}
.shelf-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shelf-item .card { --card-w: 52px; width: 52px; flex: 0 0 auto; }
.shelf-sealed {
  width: 52px; height: 72px; border-radius: 8px; display: grid; place-items: center; color: var(--kraft);
  background: linear-gradient(160deg, var(--panel-2), var(--bg-2)); border: 1px solid var(--line); flex: 0 0 auto;
}
.shelf-info { min-width: 0; }
.shelf-actions { display: flex; align-items: center; gap: 6px; }
.shelf-price { width: 86px; text-align: right; }
.counter-feed-wrap { margin-top: 14px; }
.counter-feed { display: flex; flex-direction: column; }
.feed-row { font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--line-soft); color: var(--muted); display: flex; align-items: center; gap: 5px; }
.feed-row.sold { color: var(--good); font-weight: 700; }
.feed-row.staff { color: var(--accent); }
.feed-row:last-child { border-bottom: none; }

/* hire-help (counter staff) rows */
.staff-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.staff-row:last-child { border-bottom: none; }
.staff-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--muted); }
.staff-row.hired .staff-ic { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-soft)); }

/* ===== Market: combined Trading Floor / Auctions / Trade Show sub-tabs ===== */
.view-market { display: flex; flex-direction: column; gap: 14px; }
.view-sub { display: flex; flex-direction: column; gap: 16px; }
.view-market .set-tabs { position: sticky; top: 0; z-index: 4; padding-top: 2px; }

/* ===== Shop Counter — built-out tab ===== */
.tiny { font-size: 11px; }
.grow { flex: 1 1 auto; }
.counter-meta { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.counter-meta .rep-box { margin: 0; }
.counter-stat {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
}
.counter-stat-top { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.counter-stat .strong { font-size: 15px; }
@media (max-width: 540px) {
  .counter-meta { grid-template-columns: 1fr 1fr; }
  .counter-meta .rep-box { grid-column: 1 / -1; }
}

.shelf-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.price-stepper { display: flex; align-items: center; gap: 4px; }
.price-field { display: flex; align-items: center; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1px 6px; }
.price-field .shelf-price { width: 60px; border: none; background: transparent; padding: 5px 0; text-align: right; }
.btn.tiny { padding: 5px 9px; font-size: 12px; min-height: 0; line-height: 1; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.btn.tiny svg { display: block; }
.pull-btn { color: var(--muted); }

.demand-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.demand-pill.hot { color: var(--good); }
.demand-pill.fair { color: var(--gold); }
.demand-pill.slow { color: var(--warn); }
.demand-pill.cold { color: var(--bad); }
.shelf-margin { color: var(--muted); }
.shelf-margin.up { color: var(--good); }
.shelf-margin.down { color: var(--bad); }
.demand-track { width: 100%; max-width: 220px; height: 4px; margin-top: 6px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.demand-track i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.2s ease; }
.empty-shelf { padding: 8px 2px; }

/* Sold-out vintage product */
.pack-card.sold-out { opacity: 0.6; filter: saturate(0.5); }
.pack-card.sold-out .product-badge { background: var(--bad); color: #fff; }
