/* ===========================================================================
   Values page (/values/<game>) — bloxswaps-style value table, per-game
   filters, item detail modal. Page-owned; builds on app.css + shell.css.
   Borderless (owner rule): tone (--surface-1/2/3) + soft shadow, no outlines.
   Only lines: --hairline row dividers in the table, the focus ring, the item
   art tile's rarity bottom edge. Values carry the value icon (.vicon), never $.
   The mascot is static (one fade-in from app.css), never looping.
   =========================================================================== */

.values-page { position: relative; isolation: isolate; padding-bottom: 12px; }
/* the head glow spans the whole window (a sibling of <main>, so it never ends in a seam at the container's
   edges); left/right 0 of the initial containing block = the window without its scrollbar: no sideways overflow */
.vp-glow { position: absolute; top: 0; left: 0; right: 0; height: 600px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 56% at 14% 20%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(28% 46% at 86% 10%, rgba(109, 40, 217, .14), transparent 70%);
  animation: vp-glow-in 900ms var(--ease-out) both; }
@keyframes vp-glow-in { from { opacity: 0; } }
.vp-glow[data-game="mm2"] { background: radial-gradient(34% 56% at 14% 20%, rgba(139, 92, 246, .15), transparent 70%), radial-gradient(28% 46% at 86% 10%, rgba(239, 68, 68, .09), transparent 70%); }
.vp-glow[data-game="adoptme"] { background: radial-gradient(34% 56% at 14% 20%, rgba(139, 92, 246, .15), transparent 70%), radial-gradient(28% 46% at 86% 10%, rgba(56, 189, 248, .09), transparent 70%); }

/* ---------------------------------------------------------------- heading: title + source line + game tabs */
.vp-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; margin-bottom: 64px; }
.vp-head-main { min-width: 0; animation: slide-fade-in 420ms var(--ease-out) both; }
.vp-title { margin-top: 0; line-height: 1.1; }
.vp-title em { font-style: normal; background: linear-gradient(100deg, #c4b5fd, #8b5cf6 55%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
#vp-game-name { display: inline-block; }
/* the game's full name; its short one on phones ("BGSI Values" on one line: the full name took three lines at 320,
   over a panel that names the game again), like the market's tab labels */
.vp-h-s { display: none; }
@media (max-width: 480px) {
  .vp-h-l { display: none; }
  .vp-h-s { display: inline; }
}
/* the line under the title: just the item count ("6,732 items"), one line at every width. While the list loads
   (.is-wait, values.js) a message holds that line, cut to one line too, so nothing moves when the count lands
   (rule 17); a final message (importing, offline) wraps as it needs. */
.vp-sub { margin-top: 10px; max-width: 880px; line-height: 1.6; color: var(--muted); }
.vp-sub.is-wait { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-sub b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
/* the count's place while the list loads (the page's HTML and values.js): a quiet bar about as wide as "6,732 items",
   never a "Loading…" line that turns into the count */
.vp-sub-skel { display: inline-block; width: 82px; height: 12px; border-radius: 6px; vertical-align: middle; background: rgba(255, 255, 255, .08); }
.vp-sep { margin: 0 8px; color: rgba(255, 255, 255, .22); }
.vp-dim { color: rgba(255, 255, 255, .42); }
.vp-tabs { margin-top: 18px; }
.vp-tabs .gt { position: relative; }
.vp-tabs .gt:active { transform: scale(.97); }
/* item counts: the pill keeps its size while /api/config is on its way (empty = invisible, not gone), so the
   tabs don't widen and slide when the numbers land */
.gt-n { font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 38px; height: 18px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.gt-n:empty { visibility: hidden; }
.gt-n.soon { color: #f8c46d; background: rgba(248, 183, 77, .12); }
.gt.on .gt-n { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------------------------------------------------------------- card */
.vp-card { position: relative; border-radius: 22px; padding: 16px; background: var(--surface-1); box-shadow: var(--shadow-card), 0 30px 60px rgba(0, 0, 0, .22);
  animation: slide-fade-in 480ms var(--ease-out) 80ms both; }
/* static mascot peeking over the card: no motion of its own (app.css gives it one fade-in) */
.vp-peek { position: absolute; right: 44px; bottom: calc(100% - 9px); height: 124px; width: auto; z-index: 3; pointer-events: none;
  filter: drop-shadow(0 -6px 22px rgba(139, 92, 246, .22)); }
.vp-card.is-state .vp-peek { display: none; }
/* the state panel is the card's own surface (no second rounded frame inset 16px inside it) */
.vp-card.is-state { padding: 0; }
.vp-card.is-state .vp-soon-state { border-radius: inherit; }
/* arrived on a coming-soon game (values.js): no room kept for the peek, which stays away for the visit */
.vp-tight .vp-head { margin-bottom: 20px; }
.vp-tight .vp-peek { display: none; }
.vp-body.vp-in { animation: vp-fade 320ms var(--ease-out) both; }
@keyframes vp-fade { from { opacity: 0; } }

/* toolbar */
.vp-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vp-search { position: relative; flex: 1 1 240px; max-width: 380px; display: flex; align-items: center; height: 42px; padding: 0 10px 0 38px; border-radius: 14px; background: var(--surface-2); cursor: text;
  transition: box-shadow 160ms var(--ease-out), background-color 160ms; }
.vp-search > svg { position: absolute; left: 13px; width: 16px; height: 16px; color: rgba(255, 255, 255, .4); transition: color 200ms var(--ease-out), transform 250ms var(--ease-out-quart); }
.vp-search:hover { background: var(--surface-3); }
.vp-search:focus-within { box-shadow: 0 0 0 2px var(--accent); background: var(--surface-3); }
.vp-search:focus-within > svg { color: var(--accent-hover); transform: scale(1.08); }
.vp-search input { flex: 1; min-width: 0; height: 100%; background: none; border: none; outline: none; font-size: 14px; color: #fff; }
.vp-search input::placeholder { color: rgba(255, 255, 255, .38); }
.vp-search input:focus-visible { box-shadow: none; }
.vp-search input::-webkit-search-cancel-button { display: none; }
.vp-kbd { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: 600 11px/1 var(--font); color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); }
.vp-search:focus-within .vp-kbd, .vp-clear:not([hidden]) ~ .vp-kbd { display: none; }
.vp-search input:not(:placeholder-shown) + .vp-kbd { display: none; }
.vp-clear { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); transition: all 160ms var(--ease-out-quad); animation: fade-scale-in 160ms var(--ease-out) both; }
.vp-clear:hover { color: #fff; background: rgba(255, 255, 255, .12); transform: rotate(90deg); }
/* category / variant / sort: the custom dropdown trigger (ui/select.js) IS the pill */
.vp-dd { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.vp-dd[hidden] { display: none; }
.vp-dd .csel-trigger { height: 42px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; font-weight: 600; }
.vp-dd .csel-trigger:hover, .vp-dd .csel-trigger[aria-expanded="true"] { background: var(--surface-3); }
.csel-dot.vp-vdot { box-shadow: none; }
.vp-sort { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.vp-sort-ico { position: absolute; left: 13px; top: 50%; z-index: 1; margin-top: -7.5px; color: rgba(255, 255, 255, .5); pointer-events: none; transition: color 150ms var(--ease-smooth); }
.vp-sort .csel-trigger { height: 42px; padding: 0 12px 0 36px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }
.vp-sort .csel-trigger:hover, .vp-sort .csel-trigger[aria-expanded="true"] { background: var(--surface-3); }
.vp-sort:hover .vp-sort-ico, .vp-sort:focus-within .vp-sort-ico { color: var(--accent-hover); }
.vp-count { margin-left: auto; min-width: 96px; text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; } /* the width of "10,175 results" from the start: the toolbar wraps the same before and after the count lands */
.vp-count:has(> b:empty) { visibility: hidden; } /* no "0 results" while the list loads */
.vp-count b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Adopt Me: Normal / N / M segmented (sliding thumb) + F / R potion toggles, all on the toolbar row */
.vp-seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.vp-seg::-webkit-scrollbar { display: none; }
.vp-seg button { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .55); white-space: nowrap; transition: color 180ms var(--ease-out-quad), transform 180ms var(--ease-out-quad); }
.vp-seg button:hover { color: #fff; }
.vp-seg button:active { transform: scale(.96); }
.vp-seg button.on { color: #fff; }
.vp-seg button em { font-style: normal; font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .35); font-variant-numeric: tabular-nums; transition: color 150ms; }
.vp-seg button.on em { color: rgba(255, 255, 255, .75); }
.vp-seg button.is-zero { opacity: .45; }
.vp-seg button .vb { height: 16px; min-width: 16px; padding: 0 4px; font-size: 9px; }
.vp-seg-thumb { position: absolute; z-index: 0; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 10px; background: var(--grad-accent); box-shadow: 0 4px 16px rgba(139, 92, 246, .38); opacity: 0;
  transition: transform 340ms var(--ease-out-fluid), width 340ms var(--ease-out-fluid), opacity 200ms; pointer-events: none; }
.vp-vdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, .35); }
.vp-vdot.v-normal { background: #a1a1aa; }
.vp-vdot.v-golden { background: linear-gradient(135deg, #f7d774, #d39e1a); box-shadow: 0 0 8px rgba(247, 215, 116, .45); }
.vp-vdot.v-rainbow { background: conic-gradient(#ff5f6d, #ffc371, #7cff6b, #4fd1ff, #b36bff, #ff5f6d); }
.vp-vdot.v-shiny { background: linear-gradient(135deg, #e0f2ff, #9ad7ff); box-shadow: 0 0 8px rgba(154, 215, 255, .6); }
.vp-vdot.v-shiny-golden { background: linear-gradient(135deg, #fff6cf, #f7d774 45%, #9ad7ff); box-shadow: 0 0 8px rgba(247, 215, 116, .5); }
.vp-vdot.v-shiny-rainbow { background: conic-gradient(#ffd1dc, #fff3c4, #d4ffd0, #cdf3ff, #e7d4ff, #ffd1dc); box-shadow: 0 0 8px rgba(205, 243, 255, .6); }
.vp-vdot.v-chroma { background: conic-gradient(#22d3ee, #a78bfa, #f472b6, #facc15, #22d3ee); box-shadow: 0 0 8px rgba(167, 139, 250, .6); }
.vp-vdot.t-knife { background: #ef4444; }
.vp-vdot.t-gun { background: #3b82f6; }
.vp-vdot.t-pet { background: #a855f7; }
.vp-vdot.t-misc { background: #94a3b8; }
.vp-vdot.t-set { background: #8b5cf6; }
.vp-am { display: flex; align-items: center; gap: 8px; }
.vp-am[hidden] { display: none; }
.vp-seg-am button { min-width: 34px; justify-content: center; padding: 0 10px; }
.vp-seg-am button .vb, .vp-pots .vb { height: 18px; min-width: 18px; padding: 0 5px; font-size: 10px; }
.vp-pots { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.vp-pots button { display: grid; place-items: center; width: 34px; height: 32px; border-radius: 10px; opacity: .5; transition: opacity 150ms, background-color 150ms, transform 180ms var(--ease-out-quad); }
.vp-pots button:hover { opacity: .85; }
.vp-pots button:active { transform: scale(.94); }
.vp-pots button.on { opacity: 1; background: rgba(139, 92, 246, .28); }

/* ---------------------------------------------------------------- table */
.vp-table-wrap { margin-top: 14px; border-radius: 16px; background: rgba(255, 255, 255, .018); overflow-x: auto; overscroll-behavior-x: contain; }
.vp-table { border-collapse: separate; border-spacing: 0; table-layout: auto; }
.vp-table th { padding: 11px 12px; background: rgba(255, 255, 255, .03); border-bottom: none; font-size: 10.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .42); }
.vp-table th:first-child { border-top-left-radius: 16px; padding-left: 16px; }
.vp-table th:last-child { border-top-right-radius: 16px; padding-right: 16px; }
.vp-th { display: inline-flex; align-items: center; gap: 5px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 2px 0; transition: color 150ms; }
.vp-th:hover { color: rgba(255, 255, 255, .85); }
.vp-th-ico { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; opacity: .45; transition: transform 250ms var(--ease-out-quart), opacity 150ms, background-color 150ms; }
.vp-th:hover .vp-th-ico { opacity: .9; }
.vp-th.on { color: #fff; }
.vp-th.on .vp-th-ico { opacity: 1; color: #fff; background: var(--accent); box-shadow: 0 0 10px rgba(139, 92, 246, .5); }
.vp-th.on.asc .vp-th-ico { transform: rotate(180deg); }
.vp-table td { padding: 9px 12px; border-top: 1px solid var(--hairline); vertical-align: middle; white-space: nowrap; }
.vp-table td:first-child { padding-left: 14px; }
.vp-table td:last-child { padding-right: 16px; }
.vp-table tbody tr:first-child td { border-top-color: transparent; }
.vp-table .vt-row { outline: none; }
.vp-table .vt-row:hover { background: transparent; }
.vp-table .vt-row td { transition: background-color 160ms var(--ease-smooth); }
.vp-table .vt-row:hover td, .vp-table .vt-row:focus-visible td { background: rgba(255, 255, 255, .03); }
.vp-table .vt-row:hover td:first-child, .vp-table .vt-row:focus-visible td:first-child { background: linear-gradient(90deg, rgba(var(--rc), .14), rgba(255, 255, 255, .03) 70%); }
.vp-table .vt-row:active { transform: scale(.995); }
.vp-table tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.vp-table tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.vp-table tbody { transition: opacity 150ms var(--ease-out); }

.vp-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vp-table .vt-thumb { position: relative; flex: none; width: 46px; height: 46px; border-radius: 12px; overflow: visible;
  background: radial-gradient(circle at 50% 60%, rgba(var(--rc), .24), rgba(255, 255, 255, .03) 70%); }
.vp-table .vt-thumb img { padding: 4px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); opacity: 0; transform: scale(.85); transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out-quart); }
.vp-table .vt-thumb img.ld { opacity: 1; transform: none; }
.vp-table .vt-row:hover .vt-thumb img.ld { transform: scale(1.12) rotate(-2deg); }
.vp-table .vt-thumb img:not([src]) { visibility: hidden; }
.vp-item-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* the item column takes the table's spare width (width 100% + max-width 0: its content can't widen it), and a
   long name is cut only where that column ends — not at a fixed 300px while the column has room */
.vp-table td.c-item { width: 100%; max-width: 0; }
@media (min-width: 1200px) { .vp-table td.c-item { width: 46%; } } /* the data columns share the rest, nearer the names */
.vp-table .vt-name { max-width: none; font-weight: 600; font-size: 14px; }
.vp-item-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; color: rgba(255, 255, 255, .5); }
.vp-item-sub:not(.has-b) { display: none; }
.vp-badges { display: inline-flex; gap: 3px; }
.vp-badges .vb { height: 16px; min-width: 16px; padding: 0 5px; font-size: 8.5px; }
.vp-m-rar { display: none; color: rgb(var(--rc)); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-table .rarity-tag { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .82); letter-spacing: .02em; }
.vp-table .c-rarity .vt-sub { display: block; margin: 3px 0 0 16px; }
.vp-val { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.vp-table .vt-value { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 700; }
.vp-coin { width: 14px; height: 14px; margin-right: 6px; flex: none; vertical-align: -2px; }
.vp-trend { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vp-trend.up { color: #3ee48b; }
.vp-trend.down { color: #ff6b6e; }
.vp-soon { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #f8c46d; background: rgba(248, 183, 77, .1); }
.vp-dash { color: rgba(255, 255, 255, .25); }
.vp-table .vt-demand b { font-size: 12.5px; font-weight: 700; color: #fff; margin-left: 4px; }
.vp-of { font-size: 11px; color: rgba(255, 255, 255, .38); }
.vp-table .demand-meter i { width: 4px; height: 12px; }
.vp-table .demand-meter i.on { box-shadow: 0 0 6px rgba(var(--rc), .45); }
.vp-stock { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vp-stock.in { color: #3ee48b; background: rgba(5, 202, 98, .12); }
.vp-table td.c-rap, .vp-table td.c-exist { font-size: 13.5px; }

/* skeleton + empty rows */
.vp-skel td { padding: 9px 14px; border-top: 1px solid var(--hairline); }
.vp-skel-row { display: flex; align-items: center; gap: 14px; animation: vp-fade 300ms var(--ease-out) backwards; animation-delay: var(--rd, 0ms); }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(100deg, #141821 30%, #1c2130 50%, #141821 70%); background-size: 300% 100%; animation: skel-sweep 1.4s linear 600ms infinite; }
.sk-thumb { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.sk-name { width: 30%; max-width: 260px; }
.sk-a { width: 12%; margin-left: auto; }
.sk-b { width: 10%; }
.sk-c { width: 8%; }
.vp-empty-row td { padding: 20px 12px 28px; }
.vp-empty-row .empty-state { animation: slide-fade-in 320ms var(--ease-out) both; }

/* footer: range + pager */
.vp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; min-height: 36px; }
.vp-range { font-size: 13px; color: var(--muted); }
.vp-range b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.vp-foot .pager { margin: 0; }
#v-pager button { font-variant-numeric: tabular-nums; }
#v-pager button:active:not(:disabled) { transform: scale(.94); }
#v-pager button.on { background: var(--grad-accent); }
.vp-pg-nav { display: inline-grid; place-items: center; }
/* small phones: ‹ Page 3 of 169 › on one row (values.js renders it below 480px) */
#v-pager.vp-pager-c { flex-wrap: nowrap; gap: 10px; }
#v-pager.vp-pager-c .vp-pg-nav { width: 44px; height: 44px; }
.vp-pg-at { min-width: 120px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-pg-at b { color: #fff; font-weight: 700; }

.vp-note { display: flex; align-items: flex-start; gap: 10px; max-width: 760px; margin: 16px 4px 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); text-wrap: pretty; animation: slide-fade-in 400ms var(--ease-out) 200ms both; }
.vp-note .vp-coin { margin-top: 3px; }
.vp-note b { color: rgba(255, 255, 255, .8); font-weight: 600; }

/* ---------------------------------------------------------------- states */
.vp-state { animation: vp-fade 320ms var(--ease-out) both; }
.vp-soon-state { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 28px; padding: 30px 34px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(60% 90% at 18% 50%, rgba(139, 92, 246, .18), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }
.vp-soon-art { position: relative; display: grid; place-items: center; }
.vp-soon-art::before { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 68%); filter: blur(10px); }
.vp-soon-mascot { position: relative; width: 200px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); }
.vp-soon-bubble { position: absolute; top: 6px; right: 10px; padding: 6px 12px; border-radius: 14px 14px 14px 4px; font-size: 13px; font-weight: 800; color: #1a1030; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); animation: pop-spring 520ms var(--ease-out-quart) 500ms both; }
.vp-soon-kicker { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #f8c46d; background: rgba(248, 183, 77, .1); }
.vp-gico { width: 16px; height: 16px; opacity: .85; }
.vp-soon-copy h2 { margin: 12px 0 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.2; animation: slide-fade-in 400ms var(--ease-out) 120ms both; }
.vp-soon-copy p { margin: 0 0 20px; max-width: 520px; font-size: 14.5px; line-height: 1.65; color: var(--muted); animation: slide-fade-in 400ms var(--ease-out) 180ms both; }
.vp-soon-actions { display: flex; gap: 10px; flex-wrap: wrap; animation: slide-fade-in 400ms var(--ease-out) 240ms both; }
.vp-soon-actions .btn { height: 44px; padding: 0 18px; font-weight: 600; }
.vp-soon-actions .btn:not(.btn-primary):not(.btn-ghost):hover { transform: translateY(-1px); }
.vp-err .empty-state { padding: 40px 18px; }
/* a coming-soon game: the market's coming-soon look (.mk-grid-msg + emptyState: a clock tile, the title, one line, one
   button), on the card's own surface with the same soft glow from the top */
.vp-soon-empty { padding: 18px 0; border-radius: inherit; background: radial-gradient(60% 90% at 50% 0%, rgba(139, 92, 246, .1), transparent 70%); }

/* ---------------------------------------------------------------- detail modal */
.vd-modal { position: relative; width: min(820px, 100%); padding: 24px; background: radial-gradient(70% 50% at 20% 0%, rgba(var(--rc, 139, 92, 246), .08), transparent 70%), var(--surface-1); }
.vd-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.vd { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; outline: none; }
/* the dialog content takes the initial focus (screen readers start at the item); no ring on the container itself */
.vd:focus, .vd:focus-visible { box-shadow: none; }
.vd.vd-swap .vd-right > *, .vd.vd-swap .vd-art { animation: vd-swap-in 300ms var(--ease-out) both; }
@keyframes vd-swap-in { from { opacity: .3; transform: translateY(4px); } }
.vd-left { position: sticky; top: 0; }
/* a window shorter than the art column (a phone held sideways): it scrolls with the rest, so "Copy link" under the art
   can be reached */
@media (max-height: 500px) { .vd-left { position: static; } }
.vd-art { position: relative; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 50% 46%, rgba(var(--rc), .30), transparent 62%), linear-gradient(180deg, #151a26, #0c0f16);
  box-shadow: inset 0 -3px 0 rgb(var(--rc)), 0 20px 50px rgba(0, 0, 0, .35);
  animation: pop-spring 480ms var(--ease-out-quart) both; }
.vd-ring { position: absolute; inset: 14%; border-radius: 50%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(var(--rc), .35), transparent 40%, rgba(var(--rc), .25), transparent 75%); filter: blur(18px); animation: spin 9s linear infinite; }
.vd-float { width: 76%; height: 76%; display: grid; place-items: center; animation: hero-float-a 4.8s var(--ease-in-out) infinite; }
.vd-float img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.vd-art.fx-shiny::after { inset: 8%; }
/* chroma / rainbow: the swap cards' colour cycle (shell.css fx-hue) with this art's own shadow; values.js wireDetail
   sets .fx-play when the window opens or switches to the item and on hover, so it plays once each time, never as a loop */
.vd-art.fx-play img { animation: vd-hue 1.6s linear 1; }
@keyframes vd-hue { from { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)) hue-rotate(0deg); } to { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)) hue-rotate(360deg); } }
.vd-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 4px; flex-wrap: wrap; }
.vd-badges .vb { height: 22px; min-width: 22px; padding: 0 8px; font-size: 10.5px; }
.vd-right { min-width: 0; display: flex; flex-direction: column; padding-top: 2px; }
.vd-right > * { animation: slide-fade-in 360ms var(--ease-out) backwards; }
.vd-right > :nth-child(2) { animation-delay: 40ms; }
.vd-right > :nth-child(3) { animation-delay: 80ms; }
.vd-right > :nth-child(4) { animation-delay: 120ms; }
.vd-right > :nth-child(5) { animation-delay: 160ms; }
.vd-right > :nth-child(6) { animation-delay: 200ms; }
.vd-type { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--rc)); padding-right: 44px; }
.vd-type .vp-gico { width: 15px; height: 15px; }
.vd-name { margin: 6px 44px 0 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.vd-meta { margin: 4px 0 14px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.vd-name + .vd-prices { margin-top: 16px; }
.vd-prices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.vd-price { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.vd-price.main { background: linear-gradient(135deg, rgba(248, 183, 77, .14), rgba(139, 92, 246, .09)), var(--surface-2); }
.vd-k { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.vd-pv { display: flex; align-items: center; font-size: 26px; font-weight: 800; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; min-width: 0; }
.vd-pv .vp-coin { width: 20px; height: 20px; margin-right: 8px; }
.vd-exact { font-size: 11.5px; color: rgba(255, 255, 255, .42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.vd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin-top: 8px; }
.vd-stat { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.vd-sv { font-size: 14px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-sv-dim { color: rgba(255, 255, 255, .5); font-weight: 600; }
.vd-copy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .55); background: var(--surface-2); transition: color 150ms, background-color 150ms, transform 200ms var(--ease-out-quart); }
.vd-copy:hover { color: #fff; background: var(--surface-3); transform: translateY(-1px); }
.vd-copy:active { transform: scale(.97); }
.vd-copy.done { color: #3ee48b; background: rgba(5, 202, 98, .1); }
.vd-copy.fail { color: #ff8587; }
.vd-sv .vt-demand { display: inline-flex; align-items: center; gap: 4px; }
.vd-sv .vt-demand b { font-size: 13px; }
.vd-sv .demand-meter i { width: 3px; height: 11px; }
.vd-block { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.vd-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-var { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 104px; min-height: 44px; padding: 8px 11px; border-radius: 12px; background: var(--surface-2); text-align: left; transition: transform 200ms var(--ease-out-quart), background-color 150ms, box-shadow 200ms; }
.vd-var:hover { transform: translateY(-2px); background: var(--surface-3); }
.vd-var:active { transform: scale(.97); }
.vd-var.on { background: rgba(139, 92, 246, .24); box-shadow: 0 0 16px rgba(139, 92, 246, .18); }
.vd-var-t { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.vd-var b { display: inline-flex; align-items: center; font-size: 13.5px; color: #fff; font-variant-numeric: tabular-nums; }
.vd-var .vp-coin { width: 12px; height: 12px; margin-right: 5px; }
.vd-matrix { display: grid; grid-template-columns: minmax(78px, auto) repeat(4, minmax(0, 1fr)); gap: 4px; }
.vd-mh { display: flex; align-items: center; justify-content: center; gap: 3px; flex-wrap: wrap; min-height: 26px; font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .5); text-align: center; }
.vd-mh .vb { height: 15px; min-width: 15px; padding: 0 4px; font-size: 8.5px; }
.vd-mh-t { width: 100%; }
.vd-mr { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.vd-mr .vb { height: 16px; min-width: 16px; padding: 0 4px; font-size: 8.5px; }
.vd-cell { height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .85); background: var(--surface-2); font-variant-numeric: tabular-nums; transition: transform 180ms var(--ease-out-quart), background-color 150ms, box-shadow 180ms; }
button.vd-cell:hover { background: var(--surface-3); transform: translateY(-1px); }
button.vd-cell:active { transform: scale(.95); }
.vd-cell.on { color: #fff; background: var(--grad-accent); box-shadow: 0 0 14px rgba(139, 92, 246, .3); }
.vd-cell.na { color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .015); }
.vd-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.vd-actions .btn { justify-content: space-between; gap: 12px; }
.vd-buy { height: 52px; border-radius: 14px; padding: 0 18px; font-weight: 700; font-size: 15px; box-shadow: 0 8px 26px rgba(139, 92, 246, .35); }
.vd-buy:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(139, 92, 246, .45); }
.vd-buy:active { transform: scale(.98); }
.vd-btn-l { display: inline-flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vd-btn-l svg { flex: none; }
.vd-btn-p { display: inline-flex; align-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-btn-p .vp-coin { width: 15px; height: 15px; margin-right: 6px; }
.vd-actions-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.vd-sell { height: 46px; border-radius: 13px; padding: 0 14px; font-weight: 600; background: var(--surface-2); }
.vd-sell:hover { background: var(--surface-3); transform: translateY(-1px); }
.vd-market { height: 46px; padding: 0 16px; border-radius: 13px; justify-content: center !important; gap: 8px !important; background: var(--surface-2); color: #c4b5fd; font-weight: 600; }
.vd-market:hover { color: #fff; background: rgba(139, 92, 246, .12); transform: translateY(-1px); }
.btn.is-off { cursor: not-allowed; opacity: .55; background: var(--surface-2); box-shadow: none; color: rgba(255, 255, 255, .7); }
.btn.is-off:hover { transform: none; }
.vd-desk-note { margin: 2px 2px 0; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .45); }
.vd-rules { display: grid; gap: 6px; }
.vd-rules:empty { display: none; }
.vd-rule { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding: 8px 11px; border-radius: 11px; font-size: 12px; line-height: 1.5; color: #f8c46d; background: rgba(248, 183, 77, .1); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
}
@media (max-width: 1060px) {
  .vp-search { flex-basis: 100%; max-width: none; }
  .vp-table .c-exist { display: none; }
}
@media (max-width: 900px) {
  .vp-table .c-rap, .vp-table .c-stock { display: none; }
}
/* touch widths (tablets too, and a touch screen wider than that): every control is a 40px target — the column sort
   buttons get it as invisible padding */
@media (max-width: 899px), (pointer: coarse) {
  .vp-tabs .gt { height: 40px; }
  .vp-th { min-height: 40px; margin: -10px 0; }
  #v-pager button { min-width: 40px; height: 40px; }
  .vp-seg button, .vp-pots button { height: 40px; }
  .vp-seg-am button { min-width: 40px; }
  .vp-pots button { width: 40px; }
}

@media (max-width: 720px) {
  /* table collapses to card rows: thumb + name/sub | value + trend (or stock) */
  .vp-table-wrap { background: transparent; overflow: visible; margin-top: 12px; }
  .vp-table, .vp-table tbody { display: block; width: 100%; }
  .vp-table thead { display: none; }
  .vp-table tr.vt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 8px 12px 8px 8px; margin-bottom: 6px; border-radius: 14px; background: var(--surface-2); }
  .vp-table tr.vt-row:hover, .vp-table tr.vt-row:focus-visible { transform: none; background: var(--surface-3); }
  .vp-table tr.vt-row td { display: none; padding: 0; border: none; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
  .vp-table tr.vt-row td.c-item, .vp-table tr.vt-row td.c-value { display: block; }
  .vp-table td.c-value { text-align: right; }
  .vp-table .vp-val { align-items: flex-end; }
  .vp-item { gap: 10px; }
  .vp-table td.c-item { width: auto; max-width: none; }
  .vp-table .vt-thumb { width: 50px; height: 50px; }
  /* two lines before the cut: PS99 names share long prefixes ("Gargantuan …", "Rainbow Titanic …"), so one line
     hid exactly the words that tell rows apart */
  .vp-table .vt-name { max-width: none; font-size: 13.5px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .vp-item-sub, .vp-item-sub:not(.has-b) { display: flex; }
  .vp-m-rar { display: inline; }
  .vp-table .vt-value { font-size: 14px; }
  .vp-skel td { display: block; padding: 8px 4px; border: none; }
  .sk-b, .sk-c { display: none; }
  .vp-empty-row, .vp-empty-row td { display: block; border: none; }
}

@media (max-width: 640px) {
  .values-page { padding-top: calc(var(--header-h) + 14px); }
  .vp-head { gap: 16px; margin-bottom: 82px; }
  .vp-title { font-size: 30px; }
  .vp-sub { font-size: 12.5px; line-height: 1.55; }
  .vp-sep { margin: 0 5px; }
  .vp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .vp-tabs .gt { justify-content: center; padding: 0 6px; gap: 6px; height: 40px; font-size: 12.5px; }
  .vp-tabs .gt img { width: 17px; height: 17px; }
  .gt-n { display: none; }
  .vp-card { margin-inline: -4px; padding: 12px 10px 14px; border-radius: 20px; }
  .vp-peek { right: 18px; height: 84px; bottom: calc(100% - 6px); }
  .vp-toolbar { gap: 8px; }
  .vp-search { flex: 1 1 100%; max-width: none; height: 44px; }
  .vp-kbd { display: none; }
  /* category + variant/type share a row by their labels' widths (50/50 cut "All categories" at 320); sort + count
     always start the next row (a 60% basis never fits beside the two dropdowns) */
  .vp-dd { flex: 1 1 auto; min-width: 0; }
  .vp-sort { flex: 1 1 60%; min-width: 0; }
  .vp-dd .csel-trigger, .vp-sort .csel-trigger { width: 100%; height: 42px; }
  .vp-am { flex: 1 1 100%; }
  .vp-seg-am { flex: 1 1 auto; }
  .vp-seg-am button { flex: 1 1 0; height: 40px; }
  .vp-pots button { width: 44px; height: 40px; }
  .vp-count { min-width: 0; font-size: 12.5px; } /* phones: sort + count always have their own row, no reserve needed */
  .vp-seg button { height: 40px; }
  .vp-clear { width: 36px; height: 36px; border-radius: 10px; margin-right: -4px; }
  .vp-foot { justify-content: center; }
  .vp-range { width: 100%; text-align: center; }
  #v-pager button { min-width: 40px; height: 40px; }
  .vp-note { font-size: 12px; margin-inline: 2px; }
  .vp-soon-state { grid-template-columns: 1fr; text-align: center; padding: 22px 14px 24px; gap: 8px; }
  .vp-soon-mascot { width: 150px; }
  .vp-soon-art::before { width: 150px; height: 150px; }
  .vp-soon-actions { justify-content: center; }
  .vp-soon-actions .btn { flex: 1 1 40%; }
  .vp-soon-copy p { font-size: 13.5px; }

  .vd-modal { padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
  .vd-close { top: 16px; right: 12px; width: 40px; height: 40px; }
  .vd { grid-template-columns: 1fr; gap: 14px; }
  .vd-left { position: static; display: flex; justify-content: center; }
  .vd-art { width: min(168px, 48vw); border-radius: 20px; }
  .vd-copy { display: none; }
  .vd-type { padding-right: 0; }
  .vd-name { margin: 4px 0 0; font-size: 21px; }
  .vd-meta { margin-bottom: 12px; }
  .vd-name + .vd-prices { margin-top: 12px; }
  .vd-prices { gap: 6px; }
  .vd-price { padding: 10px 11px; }
  .vd-pv { font-size: 21px; }
  .vd-pv .vp-coin { width: 17px; height: 17px; margin-right: 6px; }
  .vd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-stat { padding: 9px 11px; }
  .vd-matrix { grid-template-columns: 64px repeat(4, minmax(0, 1fr)); gap: 3px; }
  .vd-mh-t { font-size: 9.5px; }
  .vd-mr { font-size: 10.5px; white-space: normal; line-height: 1.15; }
  .vd-cell { height: 40px; font-size: 11.5px; }
  .vd-var { min-width: 0; flex: 1 1 30%; }
  .vd-actions-row { grid-template-columns: 1fr; }
  .vd-buy { height: 52px; font-size: 14.5px; }
}
@media (max-width: 360px) {
  /* "All categories" + "All variants" fit one row at 320, and "Value: high → low" beside "6,732 results" */
  .vp-dd .csel-trigger { padding: 0 8px 0 10px; font-size: 13px; }
  .vp-sort .csel-trigger { padding: 0 8px 0 32px; font-size: 13px; }
  .vp-sort-ico { left: 11px; }
  /* the name column is ~125px at 320: a smaller thumb gives it 10px, and "SHINY RAINBOW" + "TITANIC" /
     "GOLDEN" + "GARGANTUAN" fit the sub line */
  .vp-item { gap: 8px; }
  .vp-table .vt-thumb { width: 42px; height: 42px; }
  .vp-item-sub { gap: 5px; }
  .vp-badges .vb { padding: 0 4px; }
  .vp-m-rar { letter-spacing: 0; }
}
/* small phones: the longest PS99 names ("Shiny Gargantuan Soccerball Trophy Angelus") get a third line */
@media (max-width: 374px) {
  .vp-table .vt-name { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* ---------------------------------------------------------------- five games (Oct 13: + BGSI, BGS)
   The tabs stay one calm row that ends before the mascot peeking over the card's right edge: below 960px the count
   pills go, below 721px the icons (and on a phone held sideways, up to 932px wide and 500px tall: its side insets take
   up to 118px of the row, which then ran under the mascot); phones (<= 640px) share the row by content; the narrowest
   phones tighten the padding. Every tab keeps >= 40px of width and height. */
@media (max-width: 959px) {
  .vp-tabs .gt-n { display: none; }
  /* a game that isn't live (app.css game states): its "Soon" / "Paused" capsule becomes a 6px dot with the counts */
  .vp-tabs { --gs-dot-w: 6px; --gs-dot-h: 6px; --gs-dot-pad: 0; --gs-dot-fs: 0; --gs-dot-bg: rgba(255, 255, 255, .42); --gs-dot-bg-on: #fff; --gs-dot-pos: absolute; --gs-dot-top: 6px; --gs-dot-right: 5px; }
}
@media (max-width: 720px), (max-width: 932px) and (max-height: 500px) {
  .vp-tabs .gt img { display: none; }
}
@media (max-width: 640px) {
  .vp-tabs { display: flex; }
  .vp-tabs .gt { flex: 1 1 auto; min-width: 40px; padding: 0 8px; gap: 5px; }
}
@media (max-width: 359px) {
  .vp-tabs .gt { padding: 0 6px; }
}
/* market-only games (BGSI, BGS): the detail's second action row holds one button, as wide as the first */
.vd-actions-row.is-one { grid-template-columns: minmax(0, 1fr); }
/* BGSI / BGS variant dots (Shiny / Mythic / XL) and their glow */
.vp-glow[data-game="bgsi"] { background: radial-gradient(34% 56% at 14% 20%, rgba(139, 92, 246, .15), transparent 70%), radial-gradient(28% 46% at 86% 10%, rgba(45, 212, 191, .09), transparent 70%); }
.vp-glow[data-game="bgs"] { background: radial-gradient(34% 56% at 14% 20%, rgba(139, 92, 246, .15), transparent 70%), radial-gradient(28% 46% at 86% 10%, rgba(244, 114, 182, .09), transparent 70%); }
.vp-vdot.v-mythic { background: linear-gradient(135deg, #f9a8d4, #db2777); box-shadow: 0 0 8px rgba(236, 72, 153, .5); }
.vp-vdot.v-shiny-mythic { background: linear-gradient(135deg, #e0f2ff, #f9a8d4 55%, #db2777); box-shadow: 0 0 8px rgba(249, 168, 212, .55); }
.vp-vdot.v-xl { background: linear-gradient(135deg, #fdba74, #ea580c); }
.vp-vdot.v-shiny-xl { background: linear-gradient(135deg, #e0f2ff, #fdba74 55%, #ea580c); box-shadow: 0 0 8px rgba(253, 186, 116, .5); }
.vp-vdot.v-mythic-xl { background: linear-gradient(135deg, #f9a8d4, #ea580c); box-shadow: 0 0 8px rgba(236, 72, 153, .45); }
.vp-vdot.v-shiny-mythic-xl { background: conic-gradient(#e0f2ff, #f9a8d4, #fdba74, #e0f2ff); box-shadow: 0 0 8px rgba(249, 168, 212, .55); }
