/* What every page shares on top of its own styles. The server adds this file to each page. */

/* Going from one page to the next fades across instead of cutting to white and back. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .14s; }
/* The logo, search and buttons are the same on every page, so that row stays put while the
   rest changes under it. (The whole header is not named: the home page's has a second row,
   and a header that changes height was being stretched from one size to the other.) */
.top .bar { view-transition-name: bar; }
/* Room for the scrollbar is always kept, so a short page and a long one are the same width
   and nothing shifts sideways when going between them. */
html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Room is kept for an icon before it arrives, so nothing jumps when it does. */
img.px { image-rendering: pixelated; }

.acct-btn.go { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.acct-btn:disabled { opacity: .6; cursor: progress; }

/* ---- A listing: the offer itself comes first and is the loudest thing on the page. */
.crumbs2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.crumbs2 a { color: inherit; text-decoration: none; }
.crumbs2 a:hover { color: var(--text); text-decoration: underline; }
.offer { border-width: 2px; }
.offer.auction { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.cta { display: block; width: 100%; border: 0; border-radius: 14px; padding: 16px 18px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; background: var(--accent); color: var(--accent-text); text-align: center; text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .12s ease, box-shadow .12s ease; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.cta:active { transform: translateY(0); }
.cta:disabled { opacity: .6; cursor: progress; transform: none; }
.cta-note { font-size: 13px; color: var(--muted); text-align: center; margin: -4px 0 0; }
.minor { display: flex; flex-wrap: wrap; gap: 6px; }
.minor button { border: 1px solid var(--line); background: none; border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--muted); }
.minor button:hover { color: var(--text); border-color: var(--accent); }
a.seller-box { text-decoration: none; color: inherit; }
a.seller-box:hover b { text-decoration: underline; }
.seller-box .av, .bid .av, .who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; font-weight: 700; }
.ends { font-size: 14px; font-weight: 600; }
.ends.soon { color: #d12c4a; }
.contact { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; font-size: 14px; }
.contact b.name { font-size: 20px; letter-spacing: -.01em; }
.contact[hidden] { display: none; }

/* ---- Bids: a box of fixed height. Once it is full it scrolls, and it stays on the newest. */
.bids { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 800px) { .bids { grid-template-columns: minmax(0, 1fr); } }
.bids h2 { margin: 0 0 10px; font-size: 17px; display: flex; gap: 8px; align-items: baseline; }
.bids h2 .count { font-size: 13px; font-weight: 600; color: var(--muted); }
.bid-box { height: 264px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.bid-box.none { display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 16px; }
.bid-box.none b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
/* The first bid sits at the bottom, like a chat, until there are enough to fill the box. */
.bid-box > .bid:first-child { margin-top: auto; }
.bid { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid transparent; }
.bid .who { min-width: 0; }
.bid .who a { font-weight: 600; color: inherit; text-decoration: none; }
.bid .who a:hover { text-decoration: underline; }
.bid .who small { display: block; color: var(--muted); font-size: 12px; }
.bid .amt { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bid .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-radius: 5px; padding: 1px 6px; margin-left: 6px; background: var(--chip); }
.bid.top { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.bid.top .tag.lead { background: var(--accent); color: var(--accent-text); }
.bid.new { animation: bid-in .5s ease; }
@keyframes bid-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bid-form { display: grid; gap: 10px; }
.bid-form .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bid-form .now { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bid-form .now small { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bid-form input { width: 100%; padding: 13px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.bid-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.raises { display: flex; flex-wrap: wrap; gap: 6px; }
.raises button { border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.raises button:hover { border-color: var(--accent); }
.bid-error { color: #d12c4a; font-size: 13px; min-height: 1.2em; }
.bid-form .hint { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- Below the offer: what is known about the item in general. */
.about-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-top: 8px; }
.about-head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.about-head a { font-weight: 600; text-decoration: none; color: var(--accent); }
.about-head a:hover { text-decoration: underline; }
.going { display: grid; gap: 2px; }
.going .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.going .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.going .v.none { font-size: 17px; font-weight: 600; color: var(--muted); }
.going small { color: var(--muted); font-size: 13px; }

/* ---- A trader's page. */
.trader { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
@media (max-width: 640px) { .trader { grid-template-columns: auto minmax(0, 1fr); } .trader .figures { grid-column: 1 / -1; } }
.trader .face { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 38px; font-weight: 800; overflow: hidden; }
.trader .face img { width: 100%; height: 100%; object-fit: cover; }
.trader h1 { margin: 0; font-size: 30px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.trader .sub { margin: 2px 0 0; color: var(--muted); }
.figures { display: flex; gap: 22px; }
.figures div { display: grid; }
.figures b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figures span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.lot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.lot:hover { border-color: var(--accent); transform: translateY(-1px); }
.lot .pic { width: 56px; height: 56px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; }
.lot .name { font-weight: 600; overflow-wrap: anywhere; }
.lot small { display: block; color: var(--muted); font-size: 12px; }
.lot .p { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.lot .p small { font-weight: 400; }
.none-yet { color: var(--muted); margin: 0; }

/* ---- The wanted board: a form to ask for an item, beside what others are asking for. */
.want { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .want { grid-template-columns: minmax(0, 1fr); } }
.want-form, .want-side { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 12px; align-content: start; }
.want-form { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); border-width: 2px; }
.want-form h3 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.want-form p { margin: 0; color: var(--muted); }
.want-form label { display: grid; gap: 4px; }
.want-form label > span { font-size: 13px; color: var(--muted); }
.want-form input { width: 100%; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; color: var(--text); }
.want-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.want-hint { color: var(--muted); font-size: 13px; min-height: 1.2em; }
.want-pick { position: relative; }
.want-options { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); display: grid; }
.want-options[hidden] { display: none; }
.want-options button { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; border: 0; background: none; color: inherit; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.want-options button:hover, .want-options button:focus { background: var(--chip); }
.want-options small { display: block; color: var(--muted); font-size: 12px; }
.want .pic { width: 36px; height: 36px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.want-reward { font-size: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 10px; padding: 9px 12px; }
.want-reward b { color: var(--accent); }
.want-reward.won { border-style: solid; color: var(--text); }
.want-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.want-head a, .want-all { font-size: 14px; }
.want-list { display: grid; gap: 6px; align-content: start; }
.want-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: inherit; }
.want-row:hover { border-color: var(--accent); }
.want-row .what b { display: block; overflow-wrap: anywhere; }
.want-row small { color: var(--muted); font-size: 12px; }
.want-row .pay { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.want-row .pay small { display: block; font-weight: 400; }
.want-none { display: grid; gap: 4px; justify-items: center; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 44px 16px; }
.want-none b { color: var(--text); font-size: 17px; }

/* ---- Most searched: one tile per item, numbered. */
.searched { position: relative; flex: none; width: 150px; display: grid; gap: 3px; text-decoration: none; color: inherit; }
.searched .sq { aspect-ratio: 1; border-radius: 16px; background: var(--tile); display: grid; place-items: center; margin-bottom: 4px; border: 1px solid transparent; }
.searched:hover .sq { border-color: var(--accent); }
.searched .rank { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.searched b { overflow-wrap: anywhere; line-height: 1.2; }
.searched small { color: var(--muted); font-size: 12px; }
.searched .going { font-size: 13px; font-weight: 600; }

/* ---- A boosted listing says so. */
.boosted { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--accent-text); background: var(--accent); border-radius: 5px; padding: 0 6px; margin-left: 6px; }
.who .boosted { margin-left: 0; }
.boost-note { margin: 0; font-size: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 10px; padding: 9px 12px; }
.searched .rank.tick { background: var(--good, #2f9e5b); color: #fff; }

/* ---- Where a price came from. */
.src { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-radius: 5px; padding: 1px 6px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.src.fm { color: #b7791f; border-color: color-mix(in srgb, #d69e2e 55%, var(--line)); background: color-mix(in srgb, #d69e2e 12%, transparent); }
.src.site { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.full-main .src { margin-left: 6px; font-size: 12px; }

/* ---- Popular price checks: a belt of tiles that goes round, and waits while you point at it. */
.merry { overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.belt { display: flex; gap: 14px; width: max-content; animation: belt linear infinite; }
.merry.pointed .belt, .merry:has(:focus-visible) .belt { animation-play-state: paused; }
/* Half the belt is the second lap, so moving by half lands exactly where it began. */
@keyframes belt { to { transform: translateX(calc(-50% - 7px)); } }
#searched-when { color: var(--muted); font-size: 13px; }
.searched .going.none { color: var(--muted); font-weight: 400; }
.searched .going { display: flex; flex-wrap: wrap; gap: 3px 5px; align-items: center; }
.searched .src { flex: none; width: max-content; }

/* ---- The hero's picker: the three things you can post. */
.post-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px; }
.post-pick span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.post-pick a { padding: 6px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line); transition: background .12s ease, color .12s ease, border-color .12s ease; }
.post-pick a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.links a:hover { color: var(--accent); }

/* ---- The three kinds of listing. One colour and one mark each, the same everywhere:
   auction is violet, for sale is green, wanted is blue. Always in that order. */
:root { --k-auction: #a98bff; --k-sell: #3fbf7a; --k-buy: #4aa3f5; }
.k-auction { --k: var(--k-auction); }
.k-sell { --k: var(--k-sell); }
.k-buy { --k: var(--k-buy); }
.kicon { display: inline-grid; place-items: center; flex: none; }
.kicon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ktag { display: inline-flex; align-items: center; gap: 5px; justify-self: start; width: max-content; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--k); background: color-mix(in srgb, var(--k) 13%, transparent); border: 1px solid color-mix(in srgb, var(--k) 42%, transparent); border-radius: 6px; padding: 2px 8px 2px 6px; white-space: nowrap; }
.khead { display: inline-flex; align-items: center; gap: 8px; color: var(--k); }
.khead .kicon svg { width: 20px; height: 20px; }

/* Listing cards: a line of the kind's colour across the top, and its label. */
.listing[class*="k-"] { border-top: 3px solid var(--k); }
.listing .ktag { margin: 2px 0; }
/* Home rows and their headings. */
main > section[class*="k-"] > .head h2 { border-left: 4px solid var(--k); padding-left: 10px; }
/* The hero's picker and the browse tabs. */
.post-pick a[class*="k-"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--k); margin-right: 8px; vertical-align: 1px; }
.post-pick a[class*="k-"]:hover { background: var(--k); border-color: var(--k); color: #0e0f13; }
.post-pick a[class*="k-"]:hover::before { background: #0e0f13; }
.bz-tabs button[class*="k-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.bz-tabs button[class*="k-"][aria-pressed="true"] { background: var(--k); color: #0e0f13; }
.bz-tabs button[class*="k-"][aria-pressed="true"]::before { background: #0e0f13; }
.icard .mk[class*="k-"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--k); vertical-align: 1px; }
/* Search suggestions' kind chips. */
.suggest .kind.auction { color: var(--k-auction); }
.suggest .kind.sell { color: var(--k-sell); }
.suggest .kind.buy { color: var(--k-buy); }

/* The post page. */
.kinds button[class*="k-"] { border-top: 4px solid var(--k); }
.kinds button[class*="k-"] b { display: flex; align-items: center; gap: 8px; }
.kinds button[class*="k-"] .kicon { color: var(--k); }
.kinds button[class*="k-"] .kicon svg { width: 20px; height: 20px; }
.kinds button[class*="k-"]:hover { border-color: color-mix(in srgb, var(--k) 60%, var(--line)); }
.kinds button[class*="k-"][aria-pressed="true"] { border-color: var(--k); background: color-mix(in srgb, var(--k) 12%, var(--bg)); }
.step[class*="k-"] > h2 .ktag { margin-left: auto; }
.step[class*="k-"] .cta { background: var(--k); color: #0e0f13; box-shadow: 0 6px 18px color-mix(in srgb, var(--k) 35%, transparent); }
.step.ready[class*="k-"] { border-color: var(--k); }

/* A listing's own page. */
.offer[class*="k-"] { border-color: color-mix(in srgb, var(--k) 55%, var(--line)); border-top: 4px solid var(--k); }
.offer[class*="k-"] .cta { background: var(--k); color: #0e0f13; box-shadow: 0 6px 18px color-mix(in srgb, var(--k) 35%, transparent); }
.full-main .ktag { font-size: 12px; padding: 3px 10px 3px 8px; }

/* The item page: three ways to trade, stacked beside the price. */
.t-ways { display: grid; gap: 12px; align-content: stretch; }
.t-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--k); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; align-content: center; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-best { font-size: 13px; font-weight: 600; color: var(--k); text-decoration: none; white-space: nowrap; }
.t-best:hover { text-decoration: underline; }
.t-stand { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.t-stand b { color: var(--text); }
.t-btn { border: 0; border-radius: 10px; padding: 11px 14px; font-size: 15px; font-weight: 800; cursor: pointer; background: var(--k); color: #0e0f13; transition: filter .12s ease, transform .12s ease; }
.t-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.s-card.s-kind { border-top: 4px solid var(--k); }
.s-card.s-kind h2 { display: flex; align-items: center; }
.s-lists { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1000px) { .s-lists { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---- For a first-time visitor: what this site is for, in three steps. */
.start { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.start h2 { margin: 0 0 12px; font-size: 18px; }
.start ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; counter-reset: step; }
@media (max-width: 760px) { .start ol { grid-template-columns: minmax(0, 1fr); } }
.start li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
.start li::before { content: counter(step); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.start li b { font-size: 16px; }
.start li span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.start li a { color: var(--k); font-weight: 700; text-decoration: none; }
.start li a:hover { text-decoration: underline; }

/* ---- "See all" is part of the row: it shows at the right edge, under the arrow, while the
   pointer is over the row. On a touch screen, where nothing hovers, it sits above the row. */
.has-all { position: relative; }
.see-all { position: absolute; z-index: 3; right: -10px; top: calc(50% + 34px); display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--k, var(--accent)); color: #0e0f13; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.has-all:hover > .see-all, .has-all:focus-within > .see-all, .see-all:focus-visible { opacity: 1; transform: none; pointer-events: auto; }
.see-all:hover { filter: brightness(1.08); }
section.has-all > .see-all { right: 0; top: 58%; }
@media (hover: none) {
  .see-all, section.has-all > .see-all { opacity: 1; transform: none; pointer-events: auto; top: -40px; right: 0; padding: 5px 12px; box-shadow: none; }
}

/* ---- A trade in progress: who, where to meet, and the button that closes it. */
.tradebox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(220px, .9fr); gap: 22px; align-items: center; border: 2px solid var(--k, var(--accent)); background: color-mix(in srgb, var(--k, var(--accent)) 7%, var(--panel)); }
@media (max-width: 900px) { .tradebox { grid-template-columns: minmax(0, 1fr); } }
.tradebox h2 { margin: 2px 0 4px; font-size: 26px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tradebox h2 a { color: inherit; }
.tradebox p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tradebox p b { color: var(--text); }
.tradebox .lab { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.tradebox .place { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 8px; }
.tradebox .place span { background: var(--bg); border: 1px solid color-mix(in srgb, var(--k, var(--accent)) 50%, var(--line)); border-radius: 12px; padding: 8px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.tradebox .place b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--k, var(--accent)); margin-left: 4px; vertical-align: -2px; }
.trade-acts { display: grid; gap: 8px; }
.tradebox .cta { background: var(--k, var(--accent)); color: #0e0f13; }
.tradebox .waiting-on { color: var(--text); font-weight: 600; font-size: 15px; }
.tradebox.done, .tradebox.off { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.tradebox.off { border-color: var(--line); background: var(--panel); }
.acct-badge { min-width: 20px; height: 20px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---- Reputation on a trader's page. */
.rep-num.up { color: #3fbf7a; }
.rep-num.down { color: #e5484d; }
.rep-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rep-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rep-list li:last-child { border-bottom: 0; }
.rep-list .d { font-weight: 800; font-variant-numeric: tabular-nums; }
.rep-list .d.up { color: #3fbf7a; }
.rep-list .d.down { color: #e5484d; }
.rep-list small { color: var(--muted); white-space: nowrap; }
.rep-list a { color: inherit; }

/* ---- Top price checks and latest sale prices: every tile the same size, nothing spilling into the next. */
.belt { gap: 16px; }
.searched { width: 168px; overflow: hidden; align-content: start; grid-template-columns: minmax(0, 1fr); }
.searched > * { min-width: 0; }
.searched .sq { width: 168px; height: 168px; aspect-ratio: auto; }
.searched b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.4em; line-height: 1.2; }
.searched .going { min-height: 1.5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex-wrap: nowrap; }
.searched small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; gap: 5px; align-items: center; }
.searched .src { flex: none; }
@keyframes belt { to { transform: translateX(calc(-50% - 8px)); } }

/* A quiet text button, for the lesser of two choices. */
.link-quiet { justify-self: center; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; padding: 4px; }
.link-quiet:hover { color: var(--text); }
.tradebox.ask { border-style: dashed; }
.trade-where p + p { margin-top: 6px; }

/* ---- The price on a tile is the thing to see: large, gold, with a soft glow. Its source sits beneath. */
.tile-price { display: flex; align-items: baseline; gap: 5px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #ffc857; text-shadow: 0 0 18px rgba(255, 200, 87, .38); font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 1.15em; }
.tile-price i { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); text-shadow: none; }
.tile-from { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.searched:hover .tile-price { text-shadow: 0 0 22px rgba(255, 200, 87, .6); }
@media (prefers-color-scheme: light) { .tile-price { color: #a8590a; text-shadow: none; } }
/* The same treatment for the price on a listing card. */
.listing .price { color: #ffc857; text-shadow: 0 0 16px rgba(255, 200, 87, .28); }
.listing .price small { color: var(--muted); text-shadow: none; }
.listing.buy .price { color: #7db4ff; text-shadow: 0 0 16px rgba(125, 180, 255, .28); }

/* ---- The trade panel as four steps: where it stands, then who, where and what to do. */
.tradebox { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(230px, .9fr); row-gap: 16px; }
.tb-steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0 0 14px; display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tb-steps li { flex: 1 1 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tb-steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--chip); flex: none; }
.tb-steps li.past { color: var(--text); }
.tb-steps li.past span { background: color-mix(in srgb, var(--k, var(--accent)) 30%, var(--chip)); }
.tb-steps li.now { color: var(--k, var(--accent)); }
.tb-steps li.now span { background: var(--k, var(--accent)); color: #0e0f13; }
.tb-time { font-size: 15px !important; color: var(--text) !important; font-weight: 600; margin: 2px 0 6px !important; }
.tb-clock { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--k, var(--accent)) !important; font-variant-numeric: tabular-nums; margin-left: 4px; }
.tb-later { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.tb-later.ask { border: 1px dashed var(--k, var(--accent)); border-radius: 10px; padding: 8px 10px; }
.tb-later p { flex: 1 1 100%; }
.tb-later select { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.tb-end { grid-column: 1 / -1; display: grid; gap: 8px; }
.tb-end h2 { margin: 0; }
.tb-review { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 6px; }
@media (max-width: 640px) { .tb-review { grid-template-columns: minmax(0, 1fr); } }
.tb-review textarea { width: 100%; resize: vertical; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: inherit; }
.tb-review .cta { width: auto; padding: 12px 20px; font-size: 15px; }
.tb-said q { color: var(--text); }
.tradebox.done, .tradebox.off { grid-template-columns: minmax(0, 1fr); }

/* ---- Stars. */
.stars { white-space: nowrap; }
.stars b { color: #ffc857; }
.stars.new { color: var(--muted); }
.said-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.said-list li { display: grid; gap: 2px; border-left: 3px solid var(--line); padding-left: 12px; }
.said-list q { font-size: 15px; }
.said-list small { color: var(--muted); font-size: 12px; }
.said-list a { color: inherit; }

/* ---- The bell. */
.btn.bell { position: relative; display: inline-grid; place-items: center; width: 42px; padding: 0; }
.btn.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.bell .acct-badge { position: absolute; top: -4px; right: -4px; }
.bell-panel { position: absolute; z-index: 50; width: min(380px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); padding: 6px; display: grid; gap: 2px; }
.bell-panel[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; }
.bell-alerts { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.bell-alerts:hover { color: var(--text); border-color: var(--accent); }
.bell-item { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.35; border-left: 3px solid transparent; }
.bell-item:hover { background: var(--chip); }
.bell-item.new { color: var(--text); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.bell-item.new.urgent { border-left-color: #e5484d; }
.bell-item small { color: var(--muted); font-size: 12px; }
.bell-none { margin: 0; padding: 14px 10px; color: var(--muted); font-size: 14px; }
.btn.bell { height: 42px; border-radius: 50%; flex: none; }
.acct-badge[hidden] { display: none; }

/* ---- The beta flag: a small note in the corner. It never takes a click meant for the page. */
.beta-flag { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: grid; gap: 1px; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); pointer-events: none; text-align: right; }
.beta-flag b { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); }
.beta-flag span { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .beta-flag { right: 8px; bottom: 8px; padding: 6px 10px; } .beta-flag span { font-size: 11px; } }
.beta-flag { max-width: min(300px, calc(100vw - 16px)); text-align: left; }
.beta-flag span { white-space: normal; line-height: 1.4; }
.beta-flag a { color: var(--text); font-weight: 600; pointer-events: auto; }

/* ---- Listing cards on a belt, and Popular types that can be clicked anywhere. */
.cards-belt .belt { gap: 12px; align-items: stretch; }
.cards-belt .listing { flex: none; }
.kind .quad a { aspect-ratio: 1; background: var(--tile); display: grid; place-items: center; transition: background .12s ease, transform .12s ease; }
.kind .quad a:hover { background: color-mix(in srgb, var(--accent) 22%, var(--tile)); }
.kind .quad a:hover img { transform: scale(1.12); }
.kind .quad img { transition: transform .12s ease; }
.kind a.foot { text-decoration: none; color: inherit; border-radius: 8px; padding: 4px 2px; }
.kind a.foot .shop { background: var(--text); color: var(--bg); border-radius: 6px; padding: 4px 12px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.kind a.foot:hover .shop { background: var(--accent); color: var(--accent-text); }
.kind a.foot:hover b { text-decoration: underline; }

/* ---- The button on a listing card, in its kind's colour. */
.card-act { display: block; margin-top: 4px; text-align: center; border-radius: 10px; padding: 9px 10px; font-weight: 800; font-size: 14px; text-decoration: none; background: var(--k, var(--accent)); color: #0e0f13; transition: filter .12s ease, transform .12s ease; }
.card-act:hover { filter: brightness(1.1); transform: translateY(-1px); }
.listing .badge.none { visibility: hidden; }

/* ---- One action on one listing: what it is, the price, one button, what happens next. */
main.act-page { max-width: 620px; }
.act-card { border-top: 4px solid var(--k, var(--accent)); }
.act-what { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
@media (max-width: 520px) { .act-what { grid-template-columns: auto minmax(0, 1fr); } .act-price { grid-column: 1 / -1; justify-items: start !important; } }
.act-what .tile { width: 84px; height: 84px; border-radius: 14px; }
.act-what h2 { margin: 6px 0 2px; font-size: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.act-what a { color: inherit; }
.act-price { display: grid; justify-items: end; gap: 0; }
.act-price span { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.act-price b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #ffc857; text-shadow: 0 0 18px rgba(255, 200, 87, .35); font-variant-numeric: tabular-nums; }
.act-price small { color: var(--muted); font-size: 12px; }
.act-field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.act-field input { font-size: 22px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.act-note { text-align: center; }
.act-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); line-height: 1.45; }
.act-page .back { justify-self: start; }
a.cta { display: block; }

/* ---- Over or under the market, on every listing card. */
.badge.ou { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge.ou.over { background: color-mix(in srgb, #e5484d 16%, transparent); color: #ff8a80; }
.listing .badge + .badge { margin-top: -2px; }

/* The whole card is a link to its listing (an invisible layer over it). The action button has to sit
   above that layer, or a click on "Place bid" lands on the card and opens the general listing. */
.listing .card-act { position: relative; z-index: 2; }
.listing .seller a { position: relative; z-index: 2; }

/* ---- Buy it now, beside the bid. */
.listing .card-now { position: relative; z-index: 2; display: block; text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; padding: 2px 0; }
.listing .card-now b { color: #ffc857; }
.listing .card-now:hover { color: var(--text); text-decoration: underline; }
.cta-second { display: block; text-align: center; border: 1px solid color-mix(in srgb, var(--k, var(--accent)) 60%, var(--line)); border-radius: 12px; padding: 11px 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.cta-second:hover { background: color-mix(in srgb, var(--k, var(--accent)) 14%, transparent); }
.cta-second b { color: #ffc857; }

.tickline { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px !important; color: var(--text) !important; cursor: pointer; }
.tickline input { margin-top: 3px; flex: none; width: auto !important; }
.tickline span { color: var(--muted); line-height: 1.4; }
.tickline b { color: var(--text); }
.early { border-left: 3px solid var(--k, var(--accent)); padding-left: 10px; }

/* ---- Your own listing: said plainly, with real buttons for what you can do to it. */
.owner-title, .owner-box { display: grid; gap: 4px; border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.owner-title b, .owner-box b { font-size: 17px; color: var(--accent); }
.owner-title span, .owner-box p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.owner-box { gap: 10px; }
.minor.owner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.minor.owner button { padding: 11px 14px; font-size: 15px; font-weight: 700; border-radius: 12px; color: var(--text); background: var(--chip); border: 1px solid var(--line); text-align: center; }
.minor.owner button:hover { border-color: var(--accent); }
.minor.owner button.danger { color: #ff8a80; border-color: color-mix(in srgb, #e5484d 55%, var(--line)); background: color-mix(in srgb, #e5484d 10%, transparent); }
.minor.owner button.danger:hover { background: color-mix(in srgb, #e5484d 22%, transparent); border-color: #e5484d; }

/* ---- A listing as a tile, the same shape as the price tiles. Its kind is its colour:
   the bar across the top of the picture, the label on it, and the button. */
.ltile { position: relative; flex: none; width: 168px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; align-content: start; }
.ltile > * { min-width: 0; }
.ltile .sq { position: relative; width: 168px; height: 168px; border-radius: 16px; background: var(--tile); display: grid; place-items: center; margin-bottom: 4px; overflow: hidden; border: 1px solid transparent; box-shadow: inset 0 4px 0 var(--k); transition: border-color .12s ease, transform .12s ease; }
.ltile:hover .sq { border-color: var(--k); transform: translateY(-2px); }
.ltile .sq .ktag { position: absolute; top: 11px; left: 8px; background: color-mix(in srgb, var(--k) 20%, #15161a); border-color: color-mix(in srgb, var(--k) 60%, transparent); }
.ltile .sq .clock { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 999px; background: color-mix(in srgb, #15161a 82%, transparent); color: var(--text); white-space: nowrap; }
.ltile .sq .mock { position: absolute; top: 11px; right: 8px; background: #15161a; }
.ltile .name { font-weight: 700; color: inherit; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.4em; line-height: 1.2; }
.ltile .name.up { color: var(--scrolled); }
/* The whole tile opens the listing... */
.ltile .name::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
/* ...and the things on it that go elsewhere sit above that. */
.ltile .card-act, .ltile .card-now, .ltile .by a { position: relative; z-index: 2; }
.ltile .tile-from { gap: 6px; }
.ltile .tile-from .lab { color: var(--muted); }
.ltile .tile-from .badge { font-size: 11px; padding: 1px 6px; }
.ltile .by { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ltile .by a { color: inherit; text-decoration: none; }
.ltile .by a:hover { color: var(--text); text-decoration: underline; }
.ltile .card-act { margin-top: 6px; }
.ltile .card-now { display: block; text-align: center; font-size: 12px; color: var(--muted); text-decoration: none; }
.ltile .card-now b { color: #ffc857; }
.ltile.buy .tile-price { color: #7db4ff; text-shadow: 0 0 18px rgba(125, 180, 255, .35); }
/* In the browse grid a tile fills its column. */
.cards .ltile { width: auto; }
.cards .ltile .sq { width: 100%; height: auto; aspect-ratio: 1; }
.cards.lots { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 14px; }
.row > .ltile { scroll-snap-align: start; }

/* ---- The listing tile, second pass: the button lives inside the picture, so the tile is one
   unit like the price tiles, and the whole of it is the way in to the listing. */
.ltile { cursor: pointer; }
.ltile .name::after { content: none; }
.ltile:hover .sq { transform: none; }
.ltile .sq { place-items: center; padding-bottom: 34px; }
.ltile .sq .card-act { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 8px 6px; border-radius: 10px; font-size: 14px; z-index: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.ltile .sq .clock { left: auto; right: 8px; top: 11px; bottom: auto; padding: 2px 8px; }
.ltile .sq .clock::before { content: "⏱ "; opacity: .8; }
.ltile:hover .name { text-decoration: underline; }
.ltile .card-now { text-align: left; }

/* ---- A turning row can be held and dragged. It waits while held, like it does while pointed at. */
.merry { cursor: grab; touch-action: pan-y; }
.merry.held .belt { animation-play-state: paused; }
.merry.dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.merry.dragging * { cursor: grabbing !important; }
.merry img { -webkit-user-drag: none; user-select: none; }

/* ---- The sign-in code from an email: large, spaced, easy to check against the inbox. */
.acct-code { font-size: 26px; font-weight: 700; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.acct .link-quiet { display: block; margin-top: 8px; }

/* ---- The NX coin on the corner of a Cash Shop item's picture, as the game marks them. */
.nx-pic { position: relative; display: inline-grid; place-items: center; line-height: 0; }
.nx { position: absolute; right: -4px; bottom: -4px; font: 800 9px/1 system-ui, sans-serif; font-style: normal; letter-spacing: .03em; color: #5a2a00;
  background: linear-gradient(#ffe98a, #ffbe2e 50%, #f08a00); border: 1px solid #7a3d00; border-radius: 999px; padding: 2px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 1px 3px rgba(0, 0, 0, .55); pointer-events: none; }
.ico .nx { font-size: 7px; padding: 1px 3px; }
/* The small picture boxes clip their picture; they leave a little room past the edge for the coin. */
.pic:has(.nx-pic) { overflow: clip; overflow-clip-margin: 6px; }
