:root {
  --bg: #f6f5f1; --panel: #ffffff; --line: #e3e0d8; --text: #1d1b16; --muted: #6f6a5e;
  --accent: #c2571a; --accent-text: #ffffff; --chip: #efece4; --tile: #ebe8df;
  --hero: #c2571a; --hero-text: #ffffff; --hero-chip: rgba(0, 0, 0, .16);
  --scrolled: #c2571a; --good: #1f8a3b; --good-bg: #e2f4e7; --gold: #b8860b;
  --gold-glow: rgba(214, 160, 20, .55); --orange-glow: rgba(226, 110, 30, .45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a; --panel: #1e2026; --line: #2e313a; --text: #ecebe6; --muted: #9a9ca6;
    --accent: #f08a45; --accent-text: #1a1005; --chip: #282b33; --tile: #2a2d36;
    --hero: #b34f16; --hero-text: #ffffff; --hero-chip: rgba(0, 0, 0, .22);
    --scrolled: #ff9d4d; --good: #6fdc8c; --good-bg: #1c3324; --gold: #ffd257;
    --gold-glow: rgba(255, 205, 80, .5); --orange-glow: rgba(255, 140, 60, .4);
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
img.px { image-rendering: pixelated; }

/* Header: search first, then the categories as plain links. */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.search { display: flex; border: 2px solid var(--text); border-radius: 999px; overflow: hidden; background: var(--bg); min-width: 0; }
.search input { border: 0; background: none; padding: 9px 14px; flex: 1; min-width: 0; outline: none; }
.search select { border: 0; background: none; padding: 0 10px; border-left: 1px solid var(--line); max-width: 160px; }
.search button { border: 0; background: var(--accent); color: var(--accent-text); padding: 0 20px; font-weight: 600; cursor: pointer; }
.nav { display: flex; gap: 8px; align-items: center; }
.btn { border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; white-space: nowrap; display: inline-block; }
.btn.dark { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.links { display: flex; gap: 4px 20px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.links button { border: 0; background: none; padding: 4px 0; cursor: pointer; font-weight: 600; white-space: nowrap; }
.links button:hover { color: var(--accent); }
.links .hot { color: var(--accent); }
@media (max-width: 720px) {
  .bar { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search select { display: none; }
}

/* Hero: no coloured band. The page's own ground, a faint dot grid, and a warm
   glow behind three listings fanned out like cards. */
.hero { border-bottom: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px,
    var(--bg); }
/* The gold glow belongs to the three cards, so it is drawn behind them and moves with them.
   (It used to be placed by the width of the whole window, and drifted off to their right on a wide screen.) */
.fan { position: relative; isolation: isolate; }
/* A wide, soft pool of gold: brightest just right of the middle card, reaching out toward the
   right edge so the space beside the cards is filled, and fading well before the headline. */
.fan::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 1100px; height: 460px; translate: -38% -50%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 42% 52%, color-mix(in srgb, var(--gold) 30%, transparent), color-mix(in srgb, var(--gold) 12%, transparent) 45%, transparent 72%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.seg { display: inline-flex; background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; margin: 18px 0 10px; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0 0 20px; font-size: 17px; max-width: 44ch; color: var(--muted); }
.hero .cta { background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 12px 26px; font-weight: 700; text-decoration: none; display: inline-block; }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 14px; }
.facts li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 6px; }
.facts b { color: var(--text); }

/* The cards, and the glow that goes with them, sit a little right of the column's middle. */
.showcase { display: grid; justify-items: center; gap: 4px; padding-left: clamp(0px, 6vw, 80px); }
.fan { display: flex; justify-content: center; align-items: center; min-height: 300px; }
.deal { position: relative; width: 164px; flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px 12px 16px; display: grid; gap: 4px; justify-items: center; text-align: center; text-decoration: none; box-shadow: 0 14px 34px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.deal:nth-child(1) { transform: rotate(-6deg) translate(4px, 14px); }
.deal:nth-child(2) { transform: translateY(-12px) scale(1.06); z-index: 1; }
.deal:nth-child(3) { transform: rotate(6deg) translate(-4px, 14px); }
.deal:hover, .deal:focus-visible { transform: translateY(-18px) scale(1.09); z-index: 2; }
.deal .pic { height: 124px; display: grid; place-items: center; }
.deal .nm { font-weight: 600; font-size: 14px; }
.deal .nm.up { color: var(--scrolled); }
.deal .nm.godly { color: var(--gold); }
.deal .price { font-size: 20px; }

/* The showcase items are enchanted: aura, glimmer, sparkles, each a beat apart. */
.ench { position: relative; display: inline-grid; }
.ench img { animation: aura 2.6s ease-in-out infinite; }
.ench .shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; -webkit-mask: var(--icon) center / 100% 100% no-repeat; mask: var(--icon) center / 100% 100% no-repeat; }
.ench .shine::before { content: ""; position: absolute; inset: -40%; transform: translateX(-120%) rotate(20deg); background: linear-gradient(90deg, transparent 30%, rgba(255, 250, 225, .95) 50%, transparent 70%); animation: glimmer 5s ease-in-out infinite; }
.ench .spark { position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: 0; background: #ffc83d;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.6s ease-in-out infinite; }
.ench .spark:nth-of-type(1) { top: -14px; right: -12px; }
.ench .spark:nth-of-type(2) { bottom: -8px; left: -16px; animation-delay: .9s; }
.ench .spark:nth-of-type(3) { top: 30%; left: -20px; animation-delay: 1.7s; width: 9px; height: 9px; }
.deal:nth-child(1) .ench img { animation-delay: .8s; }
.deal:nth-child(3) .ench img { animation-delay: 1.6s; }
.deal:nth-child(1) .ench .shine::before { animation-delay: 1.6s; }
.deal:nth-child(3) .ench .shine::before { animation-delay: 3.2s; }
/* The glimmer rests off to the left, then takes half the cycle to cross. */
@keyframes glimmer { 0%, 50% { transform: translateX(-120%) rotate(20deg); } 100% { transform: translateX(120%) rotate(20deg); } }
@keyframes aura {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 176, 40, .55)) drop-shadow(0 0 8px rgba(255, 150, 30, .3)); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 196, 60, 1)) drop-shadow(0 0 20px rgba(255, 150, 30, .75)); }
}
@media (max-width: 820px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 28px; } .showcase { display: none; } .hero { background: var(--bg); } }

main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 28px 0 48px; }
section > .head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
section h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.head a { font-size: 14px; white-space: nowrap; }
.sub { color: var(--muted); margin: -8px 0 12px; }
.sample { font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 8px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }

/* A row that scrolls sideways and snaps to its tiles. */
.row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 8px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
/* No scrollbar: the row fades where there is more, and round arrows move it. */
.scroller { position: relative; }
.scroller.more-right .row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.scroller.more-left .row { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 64px), transparent); }
.scroller.more-left.more-right .row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.nudge { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); cursor: pointer; display: grid; place-items: center; padding: 0; transition: scale .15s; }
.nudge:hover { scale: 1.08; }
.nudge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nudge.prev { left: -10px; }
.nudge.next { right: -10px; }
.nudge[hidden] { display: none; }
@media (hover: none) { .nudge { display: none; } }
.row > * { scroll-snap-align: start; flex: none; }

/* Category tiles: a soft square with the picture, the name under it. */
.cat { width: 148px; display: grid; gap: 8px; text-align: left; background: none; border: 0; cursor: pointer; padding: 0; }
.cat .sq { height: 148px; border-radius: 16px; background: var(--tile); display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.cat:hover .sq, .cat:focus-visible .sq { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .14); }
.cat b { font-weight: 600; }
.cat small { color: var(--muted); display: block; }

.listing { position: relative; width: 204px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; align-content: start; }
.listing:hover { border-color: var(--accent); }
.listing .name { font-weight: 600; overflow-wrap: anywhere; min-height: 2.9em; text-decoration: none; }
/* The whole card is the link; the heart sits above it. */
.listing .name::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.listing .name.up { color: var(--scrolled); }
.listing .name.godly { color: var(--gold); }
.listing .line { font-size: 13px; color: var(--muted); }
.price { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { justify-self: start; font-size: 12px; border-radius: 6px; padding: 2px 7px; background: var(--chip); color: var(--muted); }
.badge.good { background: var(--good-bg); color: var(--good); font-weight: 600; }
.meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.watch { position: absolute; top: 68px; right: 10px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: grid; place-items: center; padding: 0; }
.watch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.watch[aria-pressed="true"] { color: #d12c4a; }
.watch[aria-pressed="true"] svg { fill: currentColor; }

/* Who is selling, at the top of the card: face, name, REP. */
.seller { position: relative; z-index: 1; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: hsl(var(--h) 46% 40%); }
.who { min-width: 0; line-height: 1.25; }
.who a { display: block; font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who a:hover { text-decoration: underline; }
.who .sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; white-space: nowrap; }
.who small { color: var(--muted); font-size: 12px; }
.rep { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--chip); white-space: nowrap; }
.rep.trusted { background: color-mix(in srgb, var(--gold) 24%, var(--panel)); color: var(--gold); }

/* The tenth tile of a row: on to the rest. */
.seemore { place-items: center; align-content: center; justify-items: center; text-align: center; gap: 10px; text-decoration: none; cursor: pointer; color: inherit; }
.seemore .arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--accent); color: var(--accent-text); transition: transform .15s; }
.seemore:hover .arrow, .seemore:focus-visible .arrow { transform: translateX(4px); }
.cat.seemore { height: 148px; border-radius: 16px; border: 1px dashed var(--line); align-self: start; }
.listing.seemore { border-style: dashed; background: none; }

/* The item tile, with the scrolled looks. */
.tile { position: relative; width: 84px; height: 84px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; border: 2px solid transparent; justify-self: center; }
.tile img { image-rendering: pixelated; display: block; position: relative; }
.tile-letter { font-size: 28px; font-weight: 700; color: var(--muted); }
.tile .shine { position: absolute; pointer-events: none; -webkit-mask: var(--icon) center / 100% 100% no-repeat; mask: var(--icon) center / 100% 100% no-repeat; overflow: hidden; }
.tile .shine::before { content: ""; position: absolute; inset: -40%; transform: translateX(-120%) rotate(20deg); }
.tile.scrolled { border-color: var(--scrolled); }
.tile.strong { border-color: var(--scrolled); box-shadow: 0 0 0 1px var(--orange-glow), 0 0 14px 2px var(--orange-glow); }
.tile.strong .shine::before { background: linear-gradient(90deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); animation: sweep 3.6s ease-in-out infinite; }
.tile.godly { border-color: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.tile.godly .shine::before { background: linear-gradient(90deg, transparent 30%, rgba(255, 244, 200, .95) 50%, transparent 70%); animation: sweep 2.2s ease-in-out infinite; }
.tile .spark { position: absolute; width: 9px; height: 9px; pointer-events: none; opacity: 0; background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 2.4s ease-in-out infinite; }
.tile .spark:nth-of-type(1) { top: 8px; right: 10px; }
.tile .spark:nth-of-type(2) { bottom: 12px; left: 8px; animation-delay: .8s; }
.tile .spark:nth-of-type(3) { top: 14px; left: 16px; animation-delay: 1.6s; width: 6px; height: 6px; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%) rotate(20deg); } 100% { transform: translateX(120%) rotate(20deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 1px var(--gold-glow), 0 0 12px 2px var(--gold-glow); } 50% { box-shadow: 0 0 0 1px var(--gold-glow), 0 0 22px 7px var(--gold-glow); } }
@keyframes twinkle { 0%, 60%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Popular this week, popular types, shop by price: fixed grids, not rows. */
.four { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .three { grid-template-columns: minmax(0, 1fr); } }
.pop { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; display: grid; gap: 6px; }
.pop .sq { aspect-ratio: 4 / 3; border-radius: 16px; background: var(--tile); display: grid; place-items: center; }
.pop:nth-child(even) .sq { background: color-mix(in srgb, var(--accent) 14%, var(--tile)); }
.pop b { font-weight: 600; }
.pop small { color: var(--muted); }
.pop small b { color: var(--text); }
.kind .quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border-radius: 14px; overflow: hidden; }
.kind .quad span { aspect-ratio: 1; background: var(--tile); display: grid; place-items: center; }
.kind .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.kind .foot b { font-weight: 600; }
.kind .foot button { border: 0; background: var(--text); color: var(--bg); border-radius: 6px; padding: 4px 12px; font-weight: 600; cursor: pointer; }
.under { border-radius: 16px; padding: 30px 12px; text-align: center; font-size: 20px; text-decoration: none; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel)); border: 1px solid var(--line); }
.under b { font-weight: 700; }

.ad { border: 1px dashed var(--line); border-radius: 12px; min-height: 90px; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.promo { border-radius: 18px; background: var(--text); color: var(--bg); padding: 28px; display: grid; gap: 10px; justify-items: start; }
.promo h2 { font-size: 26px; text-wrap: balance; }
.promo p { margin: 0; opacity: .85; max-width: 52ch; }
.promo .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; margin-top: 4px; }

.foot-cols { border-top: 1px solid var(--line); background: var(--panel); }
.foot-cols .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; padding-top: 24px; padding-bottom: 16px; }
.foot-cols h3 { font-size: 14px; margin: 0 0 8px; }
.foot-cols a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; font-size: 14px; }
.foot-cols a:hover { color: var(--text); text-decoration: underline; }
.foot-cols .small { display: block; color: var(--muted); font-size: 12px; padding-top: 0; padding-bottom: 28px; }

dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); padding: 0; width: min(760px, calc(100vw - 32px)); max-height: min(80vh, 720px); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.sheet { display: grid; grid-template-rows: auto auto minmax(0, 1fr); max-height: inherit; }
.sheet header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet h3 { margin: 0; font-size: 18px; }
.types { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chip { border: 1px solid var(--line); background: var(--chip); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.grid { overflow-y: auto; padding: 12px 16px 16px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-content: start; }
.pick { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 8px; text-decoration: none; }
.pick:hover { background: var(--chip); }
.pick .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; }
.pick .ico img { image-rendering: pixelated; max-width: 100%; max-height: 100%; }
.pick small { color: var(--muted); display: block; }
.more { grid-column: 1 / -1; color: var(--muted); font-size: 13px; padding: 6px; }

/* Search suggestions: each one is an item to price check. */
.bar { position: relative; }
.suggest { position: absolute; z-index: 6; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); padding: 6px; }
.suggest[hidden] { display: none; }
.suggest .opt { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.suggest .opt:hover, .suggest .opt.on { background: var(--chip); }
.suggest .ico { width: 36px; height: 36px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; }
.suggest .ico img { image-rendering: pixelated; max-width: 100%; max-height: 100%; }
.suggest small { display: block; color: var(--muted); font-size: 12px; }
.suggest .hint { font-size: 12px; color: var(--accent); white-space: nowrap; }
.suggest .none { padding: 10px; color: var(--muted); }

/* The search dropdown's two groups: matching items, then one item's listings. */
.suggest { max-height: min(70vh, 560px); overflow-y: auto; }
.suggest .grp { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 8px 4px; }
.suggest .grp + .grp, .suggest .opt + .grp { border-top: 1px solid var(--line); margin-top: 4px; }
.suggest .hint { color: var(--muted); }
.suggest .hint.live { color: var(--good); font-weight: 600; }
.suggest .opt.one { grid-template-columns: 78px minmax(0, 1fr) auto; }
.suggest .opt.one b { font-variant-numeric: tabular-nums; }
.suggest .kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; padding: 3px 6px; text-align: center; background: var(--chip); }
.suggest .kind.sell { background: var(--good-bg); color: var(--good); }
.suggest .opt.more { display: block; color: var(--accent); font-size: 13px; padding: 8px; }

/* The account dialogs and the signed-in button in the header. */
dialog.acct { width: min(420px, calc(100vw - 32px)); }
.acct-in { padding: 18px; display: grid; gap: 12px; }
.acct-in header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct-in h3 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.acct-in p { margin: 0; color: var(--muted); }
.acct-list { display: grid; gap: 8px; }
.acct-list label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.acct-list input { padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; color: var(--text); }
.acct-btn { display: block; width: 100%; text-align: center; border-radius: 12px; padding: 13px 16px; font-size: 16px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--chip); color: var(--text); text-decoration: none; }
.acct-btn:hover { border-color: var(--accent); }
.acct-btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.acct-btn.google { background: #fff; border-color: #dadce0; color: #1f1f1f; }
.acct-small { font-size: 13px; }
.acct-error { color: #d12c4a; font-size: 13px; }
.acct-me { display: inline-flex; align-items: center; gap: 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.acct-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }

/* The footer's closing lines, and the legal pages. */
.foot-cols .small p { margin: 0 0 6px; max-width: 90ch; }
.foot-cols .small b { color: var(--text); font-weight: 600; }
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 48px; font-size: 16px; line-height: 1.6; }
.legal h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 4px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; scroll-margin-top: 80px; }
.legal h3 { font-size: 16px; margin: 16px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal .when { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.legal code { background: var(--chip); border-radius: 5px; padding: 1px 6px; font-size: 14px; }
/* The landing page lays <main> out as a spaced grid; a legal page is ordinary running text. */
main.legal { display: block; padding-left: 16px; padding-right: 16px; }

/* The logo in the header: the adventurer and the mushroom from the shoulders up,
   looking out of a small window, then the name. Drawn at the art's own size so
   every pixel stays square. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
/* The pair stand whole, at their own size, with no box round them. They are a
   little taller than the bar, so they overhang it slightly instead of stretching it. */
.brand-mark { display: block; flex: none; margin: -8px 0 -6px; }
.brand-mark img { display: block; image-rendering: pixelated; }
.brand-word { font-weight: 800; white-space: nowrap; }
/* On a phone the two buttons need the room, so the mark stands for the name. */
@media (max-width: 560px) { .brand-word { display: none; } }
