@font-face { font-family: "Titillium Web"; src: url(/fonts/TitilliumWeb-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url(/fonts/TitilliumWeb-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Titillium Web"; src: url(/fonts/TitilliumWeb-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #15171c;
  --panel: #1b1d24;
  --raised: #23262e;
  --hover: #2b2f38;
  --line: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: #9ea7b1;
  --toggle: rgba(193, 206, 255, .04);
  --toggle-on: rgba(193, 206, 255, .1);
  --faint: #7c818f;
  --accent: #e8620f;
  --accent-hi: #ff7a2a;
  --accent-ink: #15171c;
  --accent-soft: rgba(232, 98, 15, .14);
  --good: #3ccf6e;
  --good-soft: rgba(60, 207, 110, .14);
  --bad: #f25555;
  --wear-fn: #1f9d46; --wear-mw: #8ccf3a; --wear-ft: #c8c24a; --wear-ww: #c55a5a; --wear-bs: #e5323b;
  --r-common: #fef945; --r-rare: #ffa300; --r-epic: #d100ff; --r-legendary: #00ff76; --r-classified: #fdfde0; --r-limitedEdition: #d2a679;
  --radius: 12px;
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ascii-skeleton: #4a4e5a;
  --ascii-accent: var(--accent);
  --ascii-flash: var(--accent-hi);
  --ascii-surface: var(--panel);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--hover) var(--bg); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 15px/1.45 "Titillium Web", system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--hover); border-radius: 10px; border: 2px solid var(--bg); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
input, select, button { font: inherit; color: inherit; caret-color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The page column grows, so the footer stays at the bottom on short pages. */
body > div.shell { flex: 1 0 auto; }
.shell { padding: 0 max(60px, env(safe-area-inset-right)) 0 max(60px, env(safe-area-inset-left)); }

/* Top bar: a rounded slab hanging from the top edge */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 30px; height: calc(70px + env(safe-area-inset-top)); padding: calc(15px + env(safe-area-inset-top)) 15px 15px; background: rgba(27, 29, 36, .8); backdrop-filter: blur(12px); border-radius: 0 0 12px 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--raised); color: var(--accent-hi); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-text { font-size: 19px; font-weight: 700; }
.logo-text b { color: var(--accent); }
.topnav { display: flex; gap: 5px; height: 70px; margin: 0 0 -15px; align-self: flex-end; }
.topnav a, .topnav-menu { position: relative; display: flex; align-items: center; padding: 0 15px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s; }
.topnav-menu { gap: 4px; border: 0; background: none; font-family: inherit; cursor: pointer; }
.topnav-menu .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.topnav-menu[aria-expanded="true"] .icon { transform: rotate(180deg); }
.topnav a:hover, .topnav-menu:hover, .topnav-menu[aria-expanded="true"] { color: var(--text); }
.topnav a[aria-current="page"], .topnav-menu[aria-current="page"] { color: var(--text); }
.topnav a[aria-current="page"]::after, .topnav-menu[aria-current="page"]::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
/* The glow under the active tab is part of the pinned CSFloat look (user brief). */
.topnav a[aria-current="page"]::before, .topnav-menu[aria-current="page"]::before { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 36px; background: radial-gradient(50% 50% at 50% 50%, rgba(232, 98, 15, .35), transparent); pointer-events: none; }
.bell { position: relative; background: var(--toggle); }
.bell[hidden] { display: none; }
.bell-count { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.bell-panel { position: fixed; z-index: 46; width: min(400px, calc(100vw - 20px)); max-height: min(560px, 75dvh); display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); }
.bell-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bell-panel h2 { font-size: 15px; }
.bell-list { list-style: none; margin: 0; padding: 6px; overflow: auto; }
.bell-list li a, .bell-list li > div { display: grid; gap: 2px; padding: 10px; border-radius: 8px; }
.bell-list li a:hover { background: var(--hover); }
.bell-list .unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.bell-list b { font-size: 14px; font-weight: 600; }
.bell-list p { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bell-list time { font-size: 12px; color: var(--faint); }
.toggle-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ticker { display: flex; align-items: center; gap: 14px; height: 34px; margin-top: 8px; padding: 0 12px; background: var(--panel); border-radius: 7px; font-size: 13px; overflow: hidden; }
.ticker-clock { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticker-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.ticker-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.ticker-live.stale::before { background: var(--bad); }
.ticker-track { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-feed { display: inline-flex; gap: 28px; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker-feed:hover { animation-play-state: paused; }
.ticker-feed a { color: var(--muted); }
.ticker-feed a:hover { color: var(--text); }
.ticker-feed b { color: var(--text); font-weight: 600; }
.ticker-feed .tag { font-size: 11px; font-weight: 700; letter-spacing: .4px; margin-right: 6px; }
.ticker-feed .tag.new { color: var(--good); }
.ticker-feed .tag.sold { color: var(--accent-hi); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.install-top { background: var(--toggle); }
.install-top[hidden] { display: none; }
.sheet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.sheet-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--raised); border-radius: 10px; font-size: 15px; }
.sheet-steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.sheet-steps .icon { width: 18px; height: 18px; color: var(--accent-hi); vertical-align: -3px; }
.session { display: flex; align-items: center; gap: 10px; }
/* Bell, Inventory, Install and the account: one group on the right, 8 px apart, whatever is shown. */
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-actions .session > .btn-ghost { padding-left: 8px; }
.inventory-top { gap: 8px; background: var(--toggle); color: var(--muted); }
.inventory-top:hover, .inventory-top[aria-current="page"] { color: var(--text); background: var(--toggle-on); }
.inventory-top[aria-current="page"] .icon { color: var(--accent); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--raised); object-fit: cover; }

/* Category bar with weapon dropdowns */
.catbar { display: flex; align-items: stretch; margin-top: 15px; padding: 3px; height: 38px; background: var(--toggle); border-radius: 7px; overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.cat { position: relative; flex: 1 0 auto; display: flex; }
.cat > a, .cat > button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; height: 32px; padding: 0 12px; border: 0; border-radius: 5px; background: none; color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: .42px; cursor: pointer; white-space: nowrap; }
.cat > a:hover, .cat > button:hover, .cat.active > a, .cat.active > button { color: var(--text); }
.cat.active > a, .cat.active > button { background: var(--toggle-on); }
.cat .icon { width: 16px; height: 16px; }
.cat-menu { position: fixed; max-height: 60dvh; overflow: auto; z-index: 45; min-width: 200px; padding: 6px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); display: none; }
.cat-menu.open { display: grid; }
.cat-menu a { padding: 8px 12px; border-radius: 7px; color: var(--muted); font-weight: 600; }
.cat-menu a:hover { background: var(--hover); color: var(--text); }
.cat-menu a.all { color: var(--text); border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; margin-bottom: 4px; }

/* Buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--raised); font-weight: 600; cursor: pointer; transition: background .15s, transform .15s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--raised); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; height: 46px; font-size: 16px; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .36px; }
.input, .select { height: 42px; width: 100%; padding: 0 12px; background: var(--raised); border: 1px solid transparent; border-radius: 8px; outline: none; transition: border-color .15s; }
.input:focus, .select:focus { border-color: var(--accent); }
.input::placeholder { color: var(--faint); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 12px; top: 11px; color: var(--faint); pointer-events: none; }
.search-box .input { padding-left: 40px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); z-index: 40; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 7px; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--hover); }
.suggest img { width: 52px; height: 36px; object-fit: contain; }

main { padding: 16px 0 32px; outline: none; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 8px 0 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 700; }
.sub { color: var(--muted); margin: 4px 0 0; }

/* Market: filter sidebar + results */
.market { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 15px; align-items: start; }
.filters { position: sticky; top: calc(85px + env(safe-area-inset-top)); background: var(--panel); border-radius: var(--radius); padding: 20px; max-height: calc(100dvh - 100px); overflow: auto; }
.filters-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters-head h2 { font-size: 17px; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.filter-group:first-of-type { border-top: 0; padding-top: 16px; }
.filter-group h3 { font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range-inputs .field-label { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 26px; padding: 0 12px; border-radius: 12px; border: 0; background: var(--toggle); color: var(--muted); font-size: 12px; font-weight: 400; cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); background: var(--hover); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-hi); box-shadow: inset 0 0 0 1px var(--accent); }
.wear-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wear-chips .chip { padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14px; letter-spacing: .25px; }
.check input { appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid var(--faint); border-radius: 4px; display: grid; place-items: center; flex: none; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* Dual range slider: two native ranges over one painted track */
.dual { position: relative; height: 24px; }
.dual .track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--raised); }
.dual .fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.dual.wear .track { background: linear-gradient(90deg, var(--wear-fn) 0 7%, var(--wear-mw) 7% 15%, var(--wear-ft) 15% 38%, var(--wear-ww) 38% 45%, var(--wear-bs) 45% 100%); }
.dual.wear .fill { background: transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; appearance: none; pointer-events: none; }
.dual input[type=range]::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid #fff; transform: translateY(8px); cursor: pointer; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border: 0; border-radius: 3px; background: #fff; cursor: pointer; }
.dual input[type=range]:focus-visible { outline: none; }
.dual input[type=range]:focus-visible::-webkit-slider-thumb { border-bottom-color: var(--accent); }

.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; margin-right: auto; }
.tabs { display: flex; height: 38px; background: var(--toggle); border-radius: 7px; padding: 3px; }
.tab { height: 32px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-weight: 500; font-size: 14px; letter-spacing: .42px; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-current="page"] { background: var(--toggle-on); color: var(--text); }
.toolbar .select { width: 170px; height: 38px; font-size: 14px; background-color: var(--panel); }
.toolbar .btn-icon { height: 38px; width: 38px; background: var(--panel); }
.filter-toggle { display: none; }
.mobile-search { display: none; margin-bottom: 10px; }

/* Listing card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.14), 0 1px 3px rgba(0,0,0,.12); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-head { padding: 10px; min-height: 54px; }
.card-name { font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name .sep { color: inherit; font-weight: 500; }
.card-name .finish { color: inherit; }
.card-sub { margin-top: 6px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-media { --pad: 6px; position: relative; height: 177px; overflow: hidden; background: linear-gradient(180deg, rgba(27, 29, 36, 0) 20%, color-mix(in srgb, var(--rc, var(--r-common)) 32%, transparent) 100%); }
.card-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rc, var(--r-common)); }
.card-media img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); transition: transform .35s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.sticker-row { position: absolute; left: 8px; bottom: 10px; display: flex; gap: 4px; z-index: 1; }
.sticker-row img { position: static; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); transform: none !important; }
.badge { position: absolute; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 700; background: rgba(21, 23, 28, .85); }
.badge-left { left: 8px; }
.badge-right { right: 8px; }
.card-body { padding: 12px; display: grid; gap: 10px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; }
.price .icon { width: 16px; height: 16px; color: #f2c94c; stroke-width: 2; }
.usd { font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 4px; border-radius: 12px; background: var(--toggle); color: var(--muted); font-size: 12px; font-weight: 700; }
.pill i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-style: normal; font-size: 15px; line-height: 1; }
.pill.over i { background: rgba(242, 85, 85, .15); color: var(--bad); }
.float-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.float-line .rank { color: var(--muted); }
.meta-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.meta-line .who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-line .who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.meta-line .who.fresh::before { background: var(--good); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Wear bar: five wear bands, a marker at the exact float */
.floatbar { position: relative; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--wear-fn) 0 7%, var(--wear-mw) 7% 15%, var(--wear-ft) 15% 38%, var(--wear-ww) 38% 45%, var(--wear-bs) 45% 100%); }
.floatbar i { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px var(--panel); transform: translateX(-50%); }
.floatbar.legacy { background: var(--raised); }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); background: var(--panel); border-radius: var(--radius); }
.empty h2 { color: var(--text); font-size: 20px; margin-bottom: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 20px 0 4px; color: var(--muted); }

.locked { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 12px; border-radius: var(--radius); background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--panel); box-shadow: inset 0 0 0 1px rgba(232, 98, 15, .35); }
.locked .icon { color: var(--accent); }
.locked p { margin: 0; flex: 1; }

/* Panels, tables, item page */
.panel { background: var(--panel); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 17px; font-weight: 700; }
.panel-body { padding: 20px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.crumbs a:hover { color: var(--text); }
.item { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 16px; align-items: start; }
.item-hero { position: sticky; top: calc(85px + env(safe-area-inset-top)); overflow: hidden; }
.item-hero .card-media { height: 280px; --pad: 28px; }
.item-title { padding: 16px 20px 4px; }
.item-title h1 { font-size: 24px; font-weight: 700; }
.rarity-label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.rarity-icon { width: 18px; height: 18px; flex: none; }
.card-sub .rarity-icon, .check .rarity-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.rarity-icon, .dot { display: inline-block; }
.card-sub .dot, .check .dot { vertical-align: 0; margin-right: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 14px 0 0; }
.stat { background: var(--panel); padding: 12px 20px; }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.chart { position: relative; height: 260px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .axis { fill: var(--faint); font-size: 12px; }
.chart .gridline { stroke: var(--line); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .area { fill: url(#chart-fill); }
.chart .bar { fill: var(--accent); opacity: .85; }
.chart .bar.alt { fill: #5b6170; }
.chart-tip { position: absolute; pointer-events: none; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, -115%); }
.chart-cursor { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.chart-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.histo { display: grid; grid-template-columns: repeat(20, 1fr); align-items: end; gap: 3px; height: 90px; }
.histo span { background: var(--hover); border-radius: 3px 3px 0 0; min-height: 2px; }
.histo-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 6px; }
.rows { width: 100%; border-collapse: collapse; }
.rows th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rows td { padding: 10px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rows tr:last-child td { border-bottom: 0; }
.rows tbody tr:hover { background: rgba(255, 255, 255, .02); }
.rows .num { text-align: right; }
.rows .floatcell { min-width: 160px; }
.rows .floatcell .floatbar { margin-top: 6px; }
.rows .thumb { width: 96px; height: 56px; object-fit: contain; position: relative; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
/* Database: the skin sits on a glow in its rarity colour; the rarest tiers also get a light sweep. */
.thumb-shine { position: relative; display: inline-block; border-radius: 10px; overflow: hidden; padding: 4px 8px; background: radial-gradient(ellipse 70% 80% at 50% 60%, color-mix(in srgb, var(--rc) 38%, transparent), transparent 75%); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--rc) 70%, transparent); }
.thumb-shine.r-legendary::after, .thumb-shine.r-classified::after, .thumb-shine.r-limitedEdition::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--rc) 45%, rgba(255,255,255,.35)) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.2s var(--ease) infinite; pointer-events: none; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .thumb-shine::after { animation: none; display: none; } }
.wear-name { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.mini { display: grid; gap: 4px; padding: 10px; background: var(--raised); border-radius: 10px; font-size: 13px; transition: background .15s; }
.mini:hover { background: var(--hover); }
.mini img { height: 60px; width: 100%; object-fit: contain; }
.mini b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini span { color: var(--muted); }

/* Movers, sellers, stats */
.movers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mover { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--panel); border-radius: var(--radius); transition: background .2s; }
.mover:hover { background: var(--raised); }
.mover img { width: 72px; height: 50px; object-fit: contain; }
.mover-name { font-weight: 600; line-height: 1.3; }
.mover-price { color: var(--muted); font-size: 13px; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.trend .icon { width: 18px; height: 18px; }
.up { color: var(--good); } .down { color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 16px; }
.kpis div { background: var(--panel); padding: 16px 20px; }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis dt { font-size: 13px; color: var(--muted); }
.kpis dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.legend i.alt { background: #5b6170; }

/* Drawer: listing detail */
.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 9, .6); opacity: 0; transition: opacity .25s; }
.drawer { position: fixed; z-index: 51; top: 0; right: 0; bottom: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); width: min(460px, 100vw); background: var(--panel); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .8); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-backdrop.open { opacity: 1; }
.drawer-body { overflow: auto; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.drawer-body .card-media { height: 220px; border-radius: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--raised); border-radius: 8px; font-size: 14px; }
.timeline span { color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 9px; background: var(--raised); }
.notice.good { box-shadow: inset 0 0 0 1px rgba(60, 207, 110, .5); }
.notice.bad { box-shadow: inset 0 0 0 1px rgba(242, 85, 85, .5); }

/* Inventory tiles (Sell duplicates, trade search, trade editor) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; padding: 0 0 10px; border: 0; border-radius: 10px; background: var(--raised); color: inherit; font: inherit; text-align: left; overflow: hidden; }
button.tile { cursor: pointer; transition: background .15s, box-shadow .2s var(--ease), transform .2s var(--ease); }
button.tile:hover { background: var(--hover); }
button.tile:active { transform: scale(.98); }
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.tile[aria-pressed="true"]::after { content: ""; position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tile-media { position: relative; display: block; height: 92px; margin-bottom: 4px; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--rc, var(--r-common)) 30%, transparent) 100%); }
.tile-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rc, var(--r-common)); }
.tile-media img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.tile-tag { position: absolute; left: 6px; top: 6px; z-index: 1; height: 20px; padding: 0 6px; border-radius: 5px; background: rgba(21, 23, 28, .85); font-size: 11px; font-weight: 600; line-height: 20px; }
.tile-name { display: grid; padding: 0 10px; font-size: 12px; color: var(--muted); line-height: 1.25; min-width: 0; }
.tile-name b { color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { display: flex; justify-content: space-between; gap: 6px; padding: 0 10px; font-size: 12px; color: var(--muted); }
.tile-owner { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-link { display: block; border-radius: 10px; }
.tile-link:hover .tile { background: var(--hover); }
.tile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dupe { display: grid; gap: 8px; align-content: start; position: relative; }
.dupe-count { position: absolute; top: 6px; right: 6px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; }
.friend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.friend-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--raised); }
.friend-name { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.friend-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-name span { font-size: 12px; color: var(--muted); }
.friend-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--faint); }
.friend-dot.on { background: var(--good); }
.friend-dot.match { background: var(--accent); }
.dupe-price { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.dupe-price .icon { width: 14px; height: 14px; color: #f2c94c; }
.al-filters { display: grid; gap: 12px; }
.al-filters .chip { gap: 6px; }
.al-filters .rarity-icon { width: 14px; height: 14px; }
.al-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.al-row .input { flex: 1; min-width: 200px; height: 36px; }
.al-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.al-summary .sub { max-width: 70ch; }
.al-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
details.panel > summary { list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "Show"; color: var(--muted); font-size: 13px; }
details.panel[open] > summary::after { content: "Hide"; }
.buy-confirm { display: grid; gap: 10px; padding: 14px; border-radius: 10px; background: var(--raised); box-shadow: inset 0 0 0 1px rgba(232, 98, 15, .45); }
.buy-confirm .icon { width: 15px; height: 15px; color: #f2c94c; vertical-align: -2px; }
.buy-confirm-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
/* Trade handshake: two seals joined by a line that fills when both confirmed. */
.trade-confirm { position: sticky; bottom: 12px; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; margin: 16px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 -1px 0 var(--line), var(--shadow); }
.trade-confirm[data-stage="locked"], .trade-confirm[data-stage="running"] { box-shadow: inset 0 0 0 1px rgba(232, 98, 15, .45), var(--shadow); }
.tc-seals { display: flex; align-items: center; }
.tc-seal { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.tc-mark .icon { width: 18px; height: 18px; color: #fff; stroke-width: 3; }
.tc-seal.on .tc-mark { background: var(--accent); box-shadow: none; }
.tc-who { display: grid; line-height: 1.2; min-width: 0; }
.tc-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.tc-who span { font-size: 12px; color: var(--muted); }
.tc-seal.on .tc-who span { color: var(--accent-hi); }
.tc-link { position: relative; width: 44px; height: 2px; margin: 0 12px; border-radius: 1px; background: var(--line-strong); overflow: hidden; }
.tc-link.on { background: var(--accent); }
.trade-confirm[data-stage="locked"] .tc-link::after, .trade-confirm[data-stage="running"] .tc-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-100%); animation: tc-flow 1.6s var(--ease) infinite; }
@keyframes tc-flow { to { transform: translateX(100%); } }
.tc-text p { margin: 0; }
.tc-title { font-weight: 600; font-size: 15px; }
.tc-text .sub { font-size: 13px; }
.tc-sum { margin-top: 4px !important; }
.tc-actions { display: flex; gap: 8px; }
.tc-go .icon { width: 18px; height: 18px; stroke-width: 2.5; }
@media (prefers-reduced-motion: reduce) { .tc-link::after { animation: none !important; display: none; } }
.al-stats { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 20px; margin-bottom: 18px; padding: 16px 18px; border-radius: 12px; background: var(--raised); }
.al-nums { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.al-nums dt { font-size: 12px; color: var(--muted); }
.al-nums dd { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.al-nums dd .icon { width: 18px; height: 18px; color: #f2c94c; }
.al-nums dd.warn { color: var(--accent-hi); }
.al-go { justify-self: end; }
.al-bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--panel); }
.al-bar span { min-width: 3px; }
.al-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.al-legend li { display: inline-flex; align-items: center; gap: 6px; }
.al-legend i { width: 8px; height: 8px; border-radius: 2px; }
.al-legend b { color: var(--text); font-weight: 600; }
.al-foot { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); max-width: 90ch; }
/* New auction: inventory picker + terms */
.an-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.an-terms { position: sticky; top: 90px; }
.an-form { display: grid; gap: 14px; }
.an-skin { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.an-skin-media { position: relative; height: 72px; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, transparent 15%, color-mix(in srgb, var(--rc, var(--r-common)) 32%, transparent)); }
.an-skin-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rc, var(--r-common)); }
.an-skin-media img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; }
.an-skin > div:last-child { display: grid; gap: 2px; min-width: 0; }
.an-skin b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-skin .sub { margin: 0; font-size: 12px; }
.an-value { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.an-value .icon { width: 14px; height: 14px; color: #f2c94c; }
.an-hint { justify-self: start; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--accent-hi); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.an-hint:hover { text-decoration: underline; }
.an-summary { padding: 12px 14px; border-radius: 10px; background: var(--raised); font-size: 14px; }
.an-summary dd .sub { display: inline; font-size: 12px; font-weight: 400; }
.auction-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.auction-link:hover { color: var(--text); }
.auction-link .icon { width: 14px; height: 14px; }
.payout { display: grid; gap: 10px; }
.payout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.payout-head b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 24px; }
.payout-head .icon { width: 20px; height: 20px; color: #f2c94c; }
.payout-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.payout-bar i { background: var(--good); }
.payout-bar i.fee { background: var(--line-strong); }
.payout-rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--muted); }
.payout-rows dd { margin: 0; text-align: right; color: var(--text); }
.search-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 640px; }

/* Trade offer editor */
.trade-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.trade-swap { align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--raised); color: var(--muted); }
.offer-box .panel-body { min-height: 170px; }
.offer-empty { display: grid; place-items: center; min-height: 120px; margin: 0; padding: 16px; border-radius: 10px; background: var(--toggle); color: var(--muted); text-align: center; }
.trade-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 -1px 0 var(--line), var(--shadow); }
.trade-gold { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.trade-gold .input { height: 34px; }
.trade-sum { display: grid; margin: 0; font-size: 15px; }
.trade-sum .sub { margin: 0; font-size: 12px; }
.tab .sub { margin: 0 0 0 6px; font-size: 12px; }
.trade-actions { display: flex; gap: 8px; margin-left: auto; }
.trade-note { flex: 1 1 220px; min-width: 0; }
.trade-note .input { height: 36px; width: 100%; }
.trade-message { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 6px; }
.trade-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Pricing */
.pricing-head { text-align: center; max-width: 640px; margin: 20px auto 28px; }
.pricing-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.pricing-head p { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tier { display: flex; flex-direction: column; padding: 24px 20px; background: var(--panel); border-radius: 14px; }
.tier.featured { box-shadow: inset 0 0 0 1px var(--accent), 0 18px 40px -22px rgba(232, 98, 15, .55); }
.tier h2 { font-size: 20px; font-weight: 700; }
.tier .tier-price { font-size: 32px; font-weight: 700; margin: 10px 0 2px; }
.tier .tier-price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.tier .tier-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.tier ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.tier li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tier li span:first-child { color: var(--muted); }
.tier li b { font-weight: 600; }
.tier .btn { margin-top: auto; }
.tier-current { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* Account, sell, auctions, ads */
.narrow { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
textarea.input { height: auto; min-height: 88px; padding: 10px 12px; font: inherit; line-height: 1.45; resize: vertical; }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ticket-status { font-size: 13px; font-weight: 700; color: var(--accent-hi); }
.ticket-status.answered { color: var(--good); }
.ticket-status.closed { color: var(--muted); }
.ticket-text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-reply { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--good); background: var(--good-soft); border-radius: 6px; }
.prose { color: var(--muted); max-width: 70ch; }
.prose h1 { color: var(--text); font-size: 28px; margin-bottom: 12px; }
.prose mark.todo { background: rgba(232, 98, 15, .25); color: var(--text); padding: 0 4px; border-radius: 4px; }
.prose code { color: var(--text); }
.prose h2 { color: var(--text); font-size: 18px; margin: 28px 0 8px; }
.list-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.list-form .input { height: 34px; }
.auction-start summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 2px 0; }
.auction-start summary:hover { color: var(--text); }
.auction-form { display: grid; gap: 6px; margin-top: 6px; }
.auction-form .input, .auction-form .select { height: 34px; }
.ad-slot { grid-column: 1 / -1; position: relative; min-height: 120px; padding: 22px 12px 12px; background: var(--panel); border-radius: var(--radius); }
.ad-label { position: absolute; top: 6px; left: 12px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.card.sponsor { box-shadow: inset 0 0 0 1px var(--line-strong); }
.card.sponsor .card-body { position: relative; padding-top: 26px; height: 100%; align-content: start; }
.credit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.credit-balance { font-size: 30px; font-weight: 700; line-height: 1; }
.shop { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.shop li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--raised); border-radius: 9px; }

.footer { color: var(--faint); font-size: 13px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.install { display: none; }
.install.ready { display: inline-flex; }

/* ascii-reveal skeleton card */
.skeleton-card { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.skeleton-card .sk-media { height: 177px; padding: 14px; background: var(--raised); overflow: hidden; }
.skeleton-card .sk-body { padding: 12px; }

.bottomnav { display: none; }

@media (max-width: 1180px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav a, .topnav-menu { padding: 0 10px; }
}

@media (max-width: 1023px) {
  .an-layout { grid-template-columns: minmax(0, 1fr); }
  .an-terms { position: static; }
  .shell { padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .market { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; }
  .mobile-search { display: block; }
  .filters .search-box { display: none; }
  .filters { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; top: auto; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .35s var(--ease); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .filters.open { transform: none; box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, .8); }
  .filters-head { display: flex; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item-hero { position: static; }
  .topnav { display: none; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  /* Below desktop the top nav is gone: the bottom bar carries every destination (More holds the rest). */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a, .bottomnav button { display: grid; justify-items: center; align-content: center; gap: 2px; padding: 8px 0 7px; min-height: 58px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
  .bottomnav a[aria-current="page"], .bottomnav button[aria-current="page"], .bottomnav button[aria-expanded="true"] { color: var(--accent); }
  .more-sheet { position: fixed; z-index: 31; width: min(380px, calc(100vw - 20px)); right: max(10px, env(safe-area-inset-right)); bottom: calc(66px + env(safe-area-inset-bottom)); display: grid; gap: 2px; padding: 6px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 -12px 40px -12px rgba(0, 0, 0, .8); }
  .more-sheet[hidden] { display: none; }
  .more-sheet a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 10px; font-weight: 600; color: var(--muted); }
  .more-sheet a:hover, .more-sheet a[aria-current="page"] { background: var(--hover); color: var(--text); }
  .more-sheet .icon { width: 20px; height: 20px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .trade-bar, .trade-confirm { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .footer a { display: inline-block; padding: 12px 4px; }
}

@media (max-width: 767px) {
  .al-stats { grid-template-columns: minmax(0, 1fr); }
  .al-go { justify-self: stretch; }
  .al-nums { gap: 10px 20px; }
  .al-nums dd { font-size: 19px; }
  .trade-confirm { grid-template-columns: minmax(0, 1fr); bottom: calc(64px + env(safe-area-inset-bottom)); gap: 12px; }
  .tc-actions .btn { flex: 1; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .tile-media { height: 76px; }
  .trade-board { grid-template-columns: minmax(0, 1fr); }
  .trade-swap { justify-self: center; transform: rotate(90deg); }
  .trade-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .trade-actions { width: 100%; }
  .trade-actions .btn { flex: 1; }
  .shell { padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
  .topbar { height: calc(60px + env(safe-area-inset-top)); padding: calc(10px + env(safe-area-inset-top)) 10px 10px; border-radius: 0 0 10px 10px; }
  .topnav { display: none; }
  .catbar { margin-top: 8px; }
  main { padding-top: 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-head { padding: 10px 10px 0; min-height: 46px; }
  .card-name { font-size: 14px; }
  .card-sub { font-size: 12.5px; }
  .card-media { height: 130px; --pad: 8px; }
  .sticker-row img { width: 22px; height: 22px; }
  .card-body { padding: 10px; gap: 6px; }
  .price { font-size: 17px; }
  .pill { height: 22px; font-size: 12px; padding-right: 7px; }
  .pill i { width: 15px; height: 15px; font-size: 13px; }
  .float-line { font-size: 12px; }
  .float-line .rank { display: none; }
  .meta-line { display: none; }
  .page-head h1 { font-size: 22px; }
  .toolbar .select { flex: 1; width: auto; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1; justify-content: center; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .rows .hide-sm { display: none; }
  .rows td, .rows th { padding: 10px 12px; }
  .kpis, .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.five div:last-child { grid-column: span 2; }
  .rows .thumb { width: 64px; height: 40px; }
  .drawer { top: auto; width: 100vw; max-height: calc(100dvh - env(safe-area-inset-top) - 12px); padding-top: 0; border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .logo-text { font-size: 17px; }
  .install-top { height: 40px; width: 40px; padding: 0; flex: none; }
  .install-top span, .inventory-top span { display: none; }
  .inventory-top { width: 40px; padding: 0; }
  .bell { width: 40px; flex: none; }
  .topbar { gap: 8px; }
  .session .tier-name { display: none; }
  .signed-in .logo-text { display: none; }
}

@media (max-width: 767px) {
  .ticker { height: 30px; font-size: 12px; gap: 10px; }
  .ticker-live span { display: none; }
}

/* Touch screens have no hover: give cards, buttons and tabs a visible press instead of the hover lift. */
@media (hover: none) {
  .card { -webkit-tap-highlight-color: transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
  .card:active { transform: scale(.97); box-shadow: var(--shadow); }
  .card:active .card-media img { transform: scale(1.06); }
  .btn, .tab, .chip, .cat > a, .cat > button, .mini, .mover, .bottomnav a { -webkit-tap-highlight-color: transparent; transition: transform .15s var(--ease), background .15s, opacity .15s; }
  .btn:active, .chip:active, .mini:active, .mover:active { transform: scale(.96); }
  .tab:active, .cat > a:active, .cat > button:active, .bottomnav a:active { opacity: .6; }
  .card:hover { transform: none; box-shadow: none; }
  .card:hover .card-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-feed { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Colour and sticker filters */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 2px solid var(--line-strong); cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.sticker-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.sticker-opt { aspect-ratio: 1; padding: 4px; border-radius: 8px; background: var(--raised); border: 1px solid transparent; cursor: pointer; }
.sticker-opt img { width: 100%; height: 100%; object-fit: contain; }
.sticker-opt:hover { background: var(--hover); }
.sticker-opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--raised)); }
.tier-fine { color: var(--faint); font-size: 12.5px; margin: 8px 0 0; text-align: center; }
.tier-gift { display: flex; gap: 8px; margin-top: 12px; }
.tier-gift .select, .tier-gift .input { flex: 1; min-width: 0; }
.promo-banner { margin: 0 auto 18px; max-width: 960px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); text-align: center; }
.promo-banner code { font-weight: 700; color: var(--accent-hi); letter-spacing: .5px; }
.gift-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.gift-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
