/* Kizuna! stylesheet.
   Type: the Japanese system-font stack measured on the reference portal (Hiragino / Meiryo / MS PGothic), with Thai fallbacks.
   Layout: fixed 990px portal grid (170 / 450 / 330), square corners, hairline borders, 14px base. */

:root {
  --font: "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "Leelawadee UI", Tahoma, Thonburi, "Noto Sans Thai", sans-serif;
  --num: Arial, "Helvetica Neue", Helvetica, var(--font);
  --bg: #fff; --panel: #e7edfd; --panel2: #f2f5fe; --line: #a3b6dd; --soft: #d3dcf0; --hover: #eef2fd;
  --ink: #000; --ink2: #444; --ink3: #6a6f78; --link: #1a3a96; --brand: #1a3a96; --on-brand: #fff;
  --accent: #3b6cf4; --on-accent: #fff; --price: #d0121b; --ok: #1a7f37; --warn: #8a5a00; --bad: #c8161d; --field: #fff;
  --pat: color-mix(in srgb, var(--brand) 9%, transparent);
}
.theme-washi { --bg: #fffdf3; --panel: #f3e6d8; --panel2: #faf2e6; --line: #d4b8a2; --soft: #eadccb; --hover: #f8eee0; --ink: #4b0f0f; --ink2: #6d3a30; --ink3: #8a5f55; --link: #0d3aa8; --brand: #7a1414; --price: #a80f0f; --field: #fffaf0; }
.theme-sumi { --bg: #17181b; --panel: #22242a; --panel2: #1d1f24; --line: #3b3f49; --soft: #2c2f37; --hover: #262930; --ink: #e8e8ea; --ink2: #b4b7be; --ink3: #8d919a; --link: #9bb8ff; --brand: #2a2d35; --price: #ff7b72; --ok: #56d364; --warn: #e3b341; --bad: #ff7b72; --field: #101114; --pat: rgba(255,255,255,.045); }
.theme-yoru { --bg: #0f1626; --panel: #18223b; --panel2: #131c31; --line: #2f3f66; --soft: #223052; --hover: #1b2743; --ink: #e4e9f6; --ink2: #b3bedb; --ink3: #8794b8; --link: #9fc3ff; --brand: #1a2b55; --price: #ff8a80; --ok: #6fdc8c; --warn: #f0c060; --bad: #ff8a80; --field: #0b1120; --pat: rgba(160,190,255,.06); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); min-height: 100vh; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
[hidden] { display: none !important; }
.noscript { padding: 20px; text-align: center; }
.offscreen, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* site backgrounds (settings > website backgrounds); the same classes draw the preview thumbnails */
.bg-shippo { background-image: radial-gradient(circle at 0 0, transparent 18.5px, var(--pat) 19px, var(--pat) 20px, transparent 20.5px), radial-gradient(circle at 100% 0, transparent 18.5px, var(--pat) 19px, var(--pat) 20px, transparent 20.5px), radial-gradient(circle at 0 100%, transparent 18.5px, var(--pat) 19px, var(--pat) 20px, transparent 20.5px), radial-gradient(circle at 100% 100%, transparent 18.5px, var(--pat) 19px, var(--pat) 20px, transparent 20.5px), radial-gradient(circle at 50% 50%, transparent 18.5px, var(--pat) 19px, var(--pat) 20px, transparent 20.5px); background-size: 40px 40px; }
.bg-ichimatsu { background-image: linear-gradient(45deg, var(--pat) 25%, transparent 25%, transparent 75%, var(--pat) 75%), linear-gradient(45deg, var(--pat) 25%, transparent 25%, transparent 75%, var(--pat) 75%); background-size: 32px 32px; background-position: 0 0, 16px 16px; }
.bg-uroko { background-image: linear-gradient(135deg, var(--pat) 25%, transparent 25%), linear-gradient(225deg, var(--pat) 25%, transparent 25%); background-size: 26px 26px; }
.bg-kanoko { background-image: radial-gradient(var(--pat) 24%, transparent 26%), radial-gradient(var(--pat) 24%, transparent 26%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.bg-koshi { background-image: linear-gradient(var(--pat) 2px, transparent 2px), linear-gradient(90deg, var(--pat) 2px, transparent 2px); background-size: 22px 22px; }
.bg-shima { background-image: repeating-linear-gradient(90deg, var(--pat) 0 6px, transparent 6px 20px); }
.bg-naname { background-image: repeating-linear-gradient(45deg, var(--pat) 0 3px, transparent 3px 15px); }

/* ---------------------------------------------------------------- frame (Japanese portal header: thin top strip, centered logo between shortcut tiles, search block, text menu) */
.wrap { width: 990px; max-width: 100%; margin: 0 auto; padding: 0 10px; }
#top { border-bottom: 1px solid var(--soft); font-size: 12px; background: var(--bg); }
#top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 10px; padding-top: 2px; padding-bottom: 3px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.who-id { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.who .n { margin-left: 3px; }
.presence { color: var(--price); font-weight: bold; text-align: center; font-size: 13px; grid-column: 1 / -1; grid-row: 1; }
#top .langs { justify-self: end; }
.langs { display: inline-flex; border: 1px solid var(--line); background: var(--bg); }
.langs button { border: 0; background: none; padding: 1px 8px; font-size: 12px; color: var(--link); }
.langs button + button { border-left: 1px solid var(--soft); }
.langs button.on { background: var(--panel); color: var(--ink); font-weight: bold; }
#head { background: var(--bg); padding-top: 8px; }
.head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 4px 30px 8px; }
.tiles { display: flex; gap: 22px; justify-content: flex-start; }
.tiles:last-child { justify-content: flex-end; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink); font-size: 11px; font-weight: bold; min-width: 54px; text-align: center; line-height: 1.25; }
.tile-i { position: relative; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--tc, #888); }
.tile-i .n { position: absolute; top: -5px; right: -9px; background: #e60012; color: #fff; }
.t1 { --tc: #f08a1c; } .t2 { --tc: #26a65b; } .t3 { --tc: #e8433f; } .t4 { --tc: #2f7fd6; } .t5 { --tc: #17a2a8; } .t6 { --tc: #8457c9; }
.brand { display: block; line-height: 0; justify-self: center; }
.logo .ring { fill: none; stroke-width: 4.2; }
.logo .ring.a { stroke: var(--brand); }
.logo .word { fill: var(--brand); }
.logo .ring.b { stroke: #e60012; }
.logo .kana { fill: var(--ink3); }
.theme-washi .logo .ring.b { stroke: #c9480f; }
.theme-sumi .logo .ring.a, .theme-yoru .logo .ring.a { stroke: var(--ink); }
.theme-sumi .logo .word, .theme-yoru .logo .word { fill: var(--ink); }
.findbox { background: var(--panel); border: 1px solid var(--line); padding: 7px 10px 10px; }
.search { width: 560px; max-width: 100%; margin: 0 auto; }
.scopes { display: flex; gap: 2px; margin-bottom: 5px; }
.scopes button { border: 0; background: none; padding: 0 9px; font-size: 12px; font-weight: bold; color: var(--link); }
.scopes button.on { color: var(--ink); }
.search-row { display: flex; gap: 8px; }
.search-row .in { flex: 1; min-width: 0; height: 32px; border: 1px solid #7f8fb3; font: 15px var(--num); padding: 0 8px; border-radius: 0; }
.btn.go { height: 32px; min-width: 132px; border-radius: 3px; background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: bold; font-size: 14px; }
.n { background: #e60012; color: #fff; font: bold 11px var(--num); border-radius: 8px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; display: inline-block; }
.me-id { display: flex; align-items: center; gap: 8px; color: var(--ink); line-height: 1.25; }
.uname { font-weight: bold; }
.coins { display: inline-flex; align-items: center; gap: 3px; font: 12px var(--num); color: var(--ink2); }
#svc { border-bottom: 1px solid var(--line); background: var(--bg); margin-top: 6px; }
#svc .wrap { display: flex; flex-wrap: wrap; gap: 0 2px; }
#svc a { padding: 5px 9px 4px; font-size: 13px; border-bottom: 3px solid transparent; }
#svc a:hover { text-decoration: none; background: var(--hover); }
#svc a.on { color: var(--ink); font-weight: bold; border-bottom-color: var(--accent); }
#view { padding-top: 10px; padding-bottom: 30px; min-height: 60vh; }
#view.busy { opacity: .6; }
#foot { border-top: 1px solid var(--line); background: var(--panel2); font-size: 12px; }
#foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
#foot .langs { margin-left: auto; }
.banned-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bad); color: #fff; text-align: center; padding: 6px 10px; z-index: 30; }

/* ---------------------------------------------------------------- common pieces */
.box { border: 1px solid var(--line); background: var(--bg); margin-bottom: 10px; }
.box.tint { background: var(--panel); }
.box-h { font-size: 13px; font-weight: bold; padding: 8px 10px 7px; background: var(--panel2); border-bottom: 1px solid var(--soft); display: flex; align-items: center; gap: 5px; }
.box.tint .box-h { background: none; border-bottom: 0; padding-bottom: 2px; }
.pad { padding: 10px; }
.pad-h { padding: 10px 10px 4px; }
.h1 { font-size: 18px; font-weight: bold; line-height: 1.35; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.h1.big { font-size: 30px; margin: 6px 0 10px; }
.h3 { font-size: 14px; margin: 16px 0 6px; }
.muted { color: var(--ink3); }
.small { font-size: 12px; }
.center { text-align: center; }
.err, .neg { color: var(--bad); }
.pos { color: var(--ok); }
.empty { padding: 22px 10px; color: var(--ink3); text-align: center; }
.empty.small { padding: 8px 0; }
.loading { padding: 30px; text-align: center; color: var(--ink3); }
.note { padding: 6px 8px; background: var(--panel2); border-left: 3px solid var(--line); margin: 8px 0; font-size: 13px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.note.ok { border-color: var(--ok); color: var(--ok); }
.note.warn { border-color: var(--warn); color: var(--warn); }
.hint, .set-note { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.lbl { display: block; font-weight: bold; font-size: 13px; margin: 8px 0 3px; }
.ico { flex: none; vertical-align: -3px; }
.ico path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); border-radius: 3px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn.primary, .btn.buy { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: bold; }
.btn.primary:hover, .btn.buy:hover { filter: brightness(1.08); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.primary.danger { background: var(--bad); color: #fff; }
.btn.big { padding: 9px 22px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.btn.small { padding: 2px 8px; font-size: 12px; }
.btn.on { border-color: var(--accent); color: var(--accent); font-weight: bold; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.go:hover { filter: brightness(1.08); }
.btn.rainbow { background: linear-gradient(90deg, #e8a0d8, #a9a4f0, #8fd0f2, #a6e3a1, #f5e08a, #f3a683); border-color: var(--bad); color: #5a0d0d; font-weight: bold; padding: 8px 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.linklike { border: 0; background: none; padding: 0; color: var(--link); display: inline-flex; align-items: center; gap: 3px; }
.linklike:hover { text-decoration: underline; }
.tool { border: 1px solid var(--line); background: var(--panel2); width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 3px; color: var(--ink2); padding: 0; }
.tool:hover { background: var(--hover); }
.tool:disabled { opacity: .35; }
.in { border: 1px solid var(--line); background: var(--field); color: var(--ink); padding: 6px 8px; border-radius: 2px; width: 100%; font-size: 14px; }
textarea.in { resize: vertical; min-height: 60px; line-height: 1.5; display: block; }
select.in { width: auto; max-width: 100%; }
.in.short, .in.num { width: 160px; }
.in.dark { background: #3d2a17; color: #f4e9dc; border-color: #3d2a17; }
.in.hex { width: 110px; font-family: var(--num); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); background: var(--panel); }
.tabs li { border-right: 1px solid var(--line); }
.tabs a { display: block; padding: 8px 13px 7px; color: var(--link); font-size: 12px; font-weight: bold; margin-bottom: -1px; border-bottom: 1px solid transparent; }
.tabs a:hover { text-decoration: none; background: var(--hover); }
.tabs li.on a { color: var(--ink); background: var(--bg); border-bottom-color: var(--bg); }
.tabs .count { font-family: var(--num); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: bold; background: var(--panel2); border-bottom: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--soft); vertical-align: middle; }
.tbl .r { text-align: right; font-family: var(--num); }
.tbl tr.mine td { background: var(--hover); }
.tbl.small td, .tbl.small th { padding: 3px 8px; font-size: 12px; }
.scroll-x { overflow-x: auto; }
.tagx { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 5px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink2); margin-left: 4px; white-space: nowrap; vertical-align: 1px; }
.tagx.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tagx.bad { border-color: var(--bad); color: var(--bad); }
.status { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 2px; background: var(--panel); color: var(--ink2); white-space: nowrap; }
.status.s-awaiting_payment, .status.s-paid { background: color-mix(in srgb, var(--warn) 16%, var(--bg)); color: var(--warn); }
.status.s-shipped, .status.s-active { background: color-mix(in srgb, var(--link) 14%, var(--bg)); color: var(--link); }
.status.s-received, .status.s-sold { background: color-mix(in srgb, var(--ok) 15%, var(--bg)); color: var(--ok); }
.status.s-cancelled, .status.s-removed { background: color-mix(in srgb, var(--bad) 13%, var(--bg)); color: var(--bad); }
.type { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 2px; color: #fff; background: var(--brand); white-space: nowrap; }
.type.fixed { background: var(--ok); }
.theme-sumi .type.fixed, .theme-yoru .type.fixed { color: #0b1a10; }
.price { color: var(--price); font-family: var(--num); font-weight: bold; }
.price.big { font-size: 28px; line-height: 1.2; }
.free { color: var(--ok); font-size: 12px; }
.time { color: var(--ink2); font-size: 12px; display: inline-flex; align-items: center; gap: 3px; font-family: var(--num); }
.cd.soon { color: var(--bad); font-weight: bold; }
.sep { color: var(--ink3); margin: 0 6px; }
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; background: var(--panel); }
.av-none { display: inline-grid; place-items: center; background: hsl(var(--hue) 42% 46%); color: #fff; font-weight: bold; font-family: var(--num); }
.flag { border: 1px solid rgba(0,0,0,.18); vertical-align: -2px; object-fit: cover; }
.user { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); max-width: 100%; }
.user .uname { color: var(--link); }
/* a member's chosen name color is blended toward the text color so it stays readable on any theme */
.uname.tinted, .flair.tinted { color: color-mix(in srgb, var(--uc) 52%, var(--ink)); }
.hero .uname.tinted, .hero .flair.tinted { color: var(--uc); }
.flair { font-size: 12px; color: var(--ink2); border: 1px solid var(--soft); padding: 0 5px; border-radius: 2px; overflow-wrap: anywhere; }
.vcheck { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: currentColor; color: var(--link); }
.vcheck .ico path { stroke: #fff; stroke-width: 3.2; }
.badge { display: inline-grid; place-items: center; flex: none; color: #fff; background: var(--bc, #8a93a6); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); vertical-align: middle; }
.b-newcomer { --bc: #3f8f5a; } .b-first_listing { --bc: #c9480f; } .b-first_sale { --bc: #1d3b84; } .b-first_win { --bc: #8a5a00; }
.b-trusted { --bc: #7a3fc4; } .b-recruiter { --bc: #b07a2a; } .b-verified { --bc: #1c7fd0; } .b-contact { --bc: #c79a5a; }
.house { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 11px; line-height: 1; color: #fff; border-radius: 2px; background: var(--hc, #777); }
.h-sakura { --hc: #d4638f; } .h-tsubaki { --hc: #b3202a; } .h-matsu { --hc: #2f6b3c; } .h-take { --hc: #5c8a1e; } .h-ume { --hc: #8d3a7a; }
.mention { font-weight: bold; }
.quote { display: block; border-left: 3px solid var(--line); padding-left: 8px; color: var(--ink2); }
code { font: 12px ui-monospace, Consolas, monospace; background: var(--panel); padding: 0 4px; }
.link { color: var(--link); }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 10px; border-bottom: 1px solid var(--soft); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: 13px; margin: 8px 0; }
.kv dt { color: var(--ink3); }
.facts { display: grid; grid-template-columns: 1fr max-content; gap: 4px 10px; padding: 10px; font-size: 13px; }
.facts dd { font: bold 14px var(--num); text-align: right; }
.bul { list-style: disc; padding-left: 28px; font-size: 13px; }
.inline, form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
form.inline .in { width: 240px; }
details { margin-top: 10px; font-size: 13px; }
summary { cursor: pointer; color: var(--link); }

/* ---------------------------------------------------------------- layouts */
.home { display: grid; grid-template-columns: 170px minmax(0, 1fr) 330px; gap: 10px; align-items: start; }
.two { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; align-items: start; }
.two.rev { grid-template-columns: minmax(0, 1fr) 340px; }
.two.rev > .col-main { order: 0; } .two.rev > aside { order: 1; }
.links li { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; font-size: 13px; line-height: 1.3; }
.links a { display: inline-flex; align-items: center; gap: 7px; }
.cat-i { width: 20px; height: 20px; border-radius: 4px; display: inline-grid; place-items: center; color: #fff; background: var(--cc, #7a8aa8); flex: none; }
.c-fashion { --cc: #e8433f; } .c-electronics { --cc: #f08a1c; } .c-computers { --cc: #2f7fd6; } .c-cameras { --cc: #333a4a; } .c-home { --cc: #26a65b; } .c-hobby { --cc: #e2a400; }
.c-books { --cc: #8a5a2b; } .c-music { --cc: #c0398c; } .c-games { --cc: #5b5bd6; } .c-sports { --cc: #0e9aa0; } .c-auto { --cc: #55606f; } .c-beauty { --cc: #e06aa0; }
.c-antiques { --cc: #9a6b3c; } .c-tickets { --cc: #d65a31; } .c-food { --cc: #7fae2e; } .c-other { --cc: #8a93a6; }
.upd { font-size: 11px; color: var(--ink3); padding: 7px 12px 0; font-family: var(--num); }
.topics { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; padding: 4px 12px 2px; }
.tlist li { position: relative; padding: 4px 0 4px 12px; line-height: 1.45; }
.tlist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #4a79ff; }
.tlist a { color: var(--ink); font-weight: bold; font-size: 14px; margin-right: 6px; overflow-wrap: anywhere; }
.tlist a:hover { color: var(--link); }
.tlist .price { font-size: 13px; margin-right: 6px; white-space: nowrap; }
.meta { font: 11px var(--num); color: var(--ink3); margin-right: 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.new { font: bold 10px var(--num); color: #fff; background: #f5a800; border-radius: 8px; padding: 0 5px; line-height: 14px; display: inline-block; vertical-align: 1px; }
.tphoto { display: block; color: var(--ink2); font-size: 11px; line-height: 1.35; padding-top: 6px; }
.tphoto .thumb { width: 104px; height: 104px; margin-bottom: 4px; }
.acct-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px 6px; font-size: 13px; }
.acct-h .btn { margin-left: auto; }
.acct-h .sep { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 6px 6px; background: var(--bg); border: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 7px; font-size: 11px; text-align: center; color: var(--link); border-right: 1px solid var(--soft); line-height: 1.25; }
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--hover); text-decoration: none; }
.stat-i { position: relative; color: var(--brand); }
.stat-i .n { position: absolute; top: -6px; right: -12px; }
.theme-sumi .stat-i, .theme-yoru .stat-i { color: var(--link); }
.theme-sumi .type.auction, .theme-yoru .type.auction { background: #44527a; }
.results td { vertical-align: top; padding: 9px 8px; }
.results .rt-img { width: 76px; padding-right: 0; line-height: 0; }
.results .thumb { width: 64px; height: 64px; }
.results td.r { white-space: nowrap; }
.results .price { font-size: 15px; }
.more.flat { padding: 6px 0 0; }
.links li:last-child { padding-bottom: 9px; }
.links a.on { font-weight: bold; color: var(--ink); }
.links .n { background: none; color: var(--ink3); font-weight: normal; padding: 0; }
.howto { list-style: decimal; padding: 2px 10px 10px 30px; font-size: 12px; color: var(--ink2); }
.howto li { margin-top: 4px; }
.more { padding: 8px 12px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }
.keywords { padding: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.mybox .me-id { margin-bottom: 10px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; background: var(--bg); border: 1px solid var(--soft); font-size: 12px; text-align: center; color: var(--ink); }
.quick a:hover { background: var(--hover); text-decoration: none; }
.mini-chat { font-size: 12px; }
.mini-chat li { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.range .in { width: 62px; padding: 4px 5px; font-size: 12px; }
.sort { font-size: 12px; }
.sort .in { font-size: 12px; padding: 3px 6px; }

/* ---------------------------------------------------------------- listings */
.irow { display: flex; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--soft); }
.irow:last-child { border-bottom: 0; }
.irow-img { flex: none; line-height: 0; }
.thumb { width: 72px; height: 72px; object-fit: cover; background: var(--panel2); border: 1px solid var(--soft); display: inline-block; vertical-align: middle; }
.thumb.none { display: inline-grid; place-items: center; color: var(--ink3); }
.irow-b { min-width: 0; flex: 1; }
.irow-t { font-weight: bold; display: block; overflow-wrap: anywhere; }
.irow-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; }
.irow-m .price { font-size: 16px; }
.icards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.icard a { display: block; color: var(--ink); }
.icard .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.icard-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; margin-top: 4px; min-height: 2.7em; }
.icard-m { display: flex; flex-direction: column; font-size: 12px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 12px; font-family: var(--num); }
.pager a, .pager b, .pager span { padding: 3px 9px; border: 1px solid var(--soft); display: inline-flex; align-items: center; gap: 3px; }
.pager b.cur { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.crumbs { font-size: 12px; color: var(--ink3); margin-bottom: 6px; }
.item-title { font-size: 20px; margin-bottom: 10px; overflow-wrap: anywhere; }
.item-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 10px; align-items: start; }
.gal-main { border: 1px solid var(--line); background: var(--panel2); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gal-main .thumb { width: 120px; height: 120px; border: 0; }
.gal-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.gal-thumbs button { border: 1px solid var(--line); padding: 0; background: none; width: 64px; height: 64px; line-height: 0; }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
img.full { max-height: 78vh; display: block; margin: 0 auto; }
.buybox { padding: 12px; }
.bb-price { display: flex; flex-direction: column; margin-bottom: 6px; }
.bb-price .lbl { margin: 0; color: var(--ink2); font-weight: normal; }
.bid-row { display: flex; gap: 6px; }
.in.bid { font: bold 18px var(--num); width: 100%; }
.bn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.sellerbox { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.sellerbox .btn-row { grid-column: 1 / -1; }
.desc { overflow-wrap: anywhere; line-height: 1.7; }
.comment { padding: 8px 0; border-bottom: 1px solid var(--soft); }
.comment.reply { margin-left: 28px; background: var(--panel2); padding: 8px 10px; }
.c-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.c-b { margin-top: 3px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- forms */
.frow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px; border-top: 1px solid var(--soft); }
.flbl { font-weight: bold; font-size: 13px; padding-top: 6px; }
.frow.actions { background: var(--panel2); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); }
.seg button { border: 0; background: var(--bg); padding: 7px 14px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px; border-right: 1px solid var(--line); max-width: 240px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--brand); color: var(--on-brand); }
.seg button .small { opacity: .85; }
.seg.three button.on.r1 { background: var(--ok); } .seg.three button.on.r-1 { background: var(--bad); } .seg.three button.on.r0 { background: var(--ink3); }
.upl { display: flex; flex-wrap: wrap; gap: 8px; }
.upl-i { position: relative; width: 96px; height: 96px; border: 1px solid var(--line); }
.upl-i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upl-i .tool { position: absolute; left: 2px; bottom: 2px; width: 24px; height: 24px; }
.upl-i .tool.del { left: auto; right: 2px; top: 2px; bottom: auto; }
.upl-i .tagx { position: absolute; left: 2px; bottom: 2px; margin: 0; background: var(--bg); }
.upl-add { width: 96px; height: 96px; border: 1px dashed var(--line); background: var(--panel2); color: var(--link); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; }
.fld { display: block; margin-bottom: 10px; }
.fld > span:first-child { display: block; font-weight: bold; font-size: 13px; margin-bottom: 3px; }
.stack { max-width: 380px; }
.authpage { display: grid; place-items: start center; padding: 20px 0; }
.authbox { width: 400px; max-width: 100%; padding: 20px; }
.authbox .h1 { margin-bottom: 14px; }
.authbox .btn.big { margin: 6px 0 12px; }

/* ---------------------------------------------------------------- orders */
.o-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: bold; overflow-wrap: anywhere; }
.steps { display: flex; counter-reset: s; margin: 10px 0; border: 1px solid var(--line); }
.steps li { flex: 1; counter-increment: s; padding: 7px 8px; font-size: 13px; background: var(--panel2); color: var(--ink3); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s); font: bold 12px var(--num); width: 20px; height: 20px; border-radius: 50%; background: var(--soft); color: var(--ink2); display: grid; place-items: center; flex: none; }
.steps li.done { color: var(--ink); } .steps li.done::before { background: var(--ok); color: #fff; }
.steps li.now { background: var(--bg); color: var(--ink); font-weight: bold; } .steps li.now::before { background: var(--accent); color: var(--on-accent); }
.next { border-color: var(--accent); }
.next .box-h { background: var(--accent); color: var(--on-accent); border-bottom: 0; }
.trackno { font: bold 17px var(--num); letter-spacing: .04em; }
.addr { white-space: pre-wrap; overflow-wrap: anywhere; }
.trackform, .rateform { max-width: 380px; }
.trackform .btn, .rateform .btn { margin-top: 10px; }
.rateform textarea { margin-top: 8px; }
.rate { font-weight: bold; font-size: 12px; padding: 0 6px; border-radius: 2px; color: #fff; display: inline-block; }
.rate.r1 { background: var(--ok); } .rate.r0 { background: var(--ink3); } .rate.r-1 { background: var(--bad); }

/* ---------------------------------------------------------------- chat */
.chat-log { height: 340px; overflow-y: auto; padding: 8px 10px; background: var(--bg); }
.chat-log.tall { height: min(62vh, 620px); }
.msg { display: flex; gap: 8px; padding: 5px 0; }
.m-b { min-width: 0; flex: 1; }
.m-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.m-h time { font-family: var(--num); }
.m-act { opacity: 0; }
.msg:hover .m-act, .m-act:focus-visible { opacity: 1; }
.m-c { overflow-wrap: anywhere; }
.msg.mine .m-c { background: var(--panel); padding: 4px 8px; display: inline-block; max-width: 100%; }
.m-img { max-width: 240px; max-height: 240px; display: block; margin-top: 4px; border: 1px solid var(--soft); }
.msg.sys { justify-content: center; align-items: baseline; gap: 6px; font-size: 12px; color: var(--ink2); background: var(--panel2); padding: 4px 8px; margin: 5px 0; text-align: center; flex-wrap: wrap; }
.day { text-align: center; font-size: 11px; color: var(--ink3); margin: 8px 0 2px; }
.older { display: block; margin: 0 auto 6px; }
.msg.track { display: block; }
.msg.track > time { display: block; font: 11px var(--num); margin-top: 2px; }
.trk { max-width: 300px; border: 1px dashed var(--line); border-radius: 6px; background: var(--panel2); padding: 10px 12px; }
.trk-h { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.trk-item { font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.trk-l { font-size: 11px; color: var(--ink3); margin-top: 8px; }
.trk-no { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trk-no .trackno { font-size: 18px; overflow-wrap: anywhere; }
.trk-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; font-weight: bold; }
.chat-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; border-top: 1px solid var(--soft); }
.chat-bar:empty { display: none; }
.chat-bar + .composer { border-top: 0; }
.chat-bar:empty + .composer { border-top: 1px solid var(--soft); }
.composer { border-top: 1px solid var(--soft); padding: 8px 10px; position: relative; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.tools { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.attach { display: flex; align-items: center; gap: 6px; }
.attach img { max-height: 70px; margin-top: 6px; border: 1px solid var(--soft); }
.emoji-pop { position: absolute; bottom: 36px; left: 0; z-index: 20; background: var(--bg); border: 1px solid var(--line); padding: 6px; width: 262px; display: grid; grid-template-columns: repeat(8, 1fr); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.emoji-pop button { border: 0; background: none; font-size: 18px; padding: 3px 0; }
.emoji-pop button:hover { background: var(--hover); }
.msgs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px; align-items: start; }
.convs li { border-bottom: 1px solid var(--soft); }
.convs a { display: flex; gap: 8px; padding: 8px 10px; color: var(--ink); align-items: center; }
.convs a:hover { background: var(--hover); text-decoration: none; }
.convs li.on a { background: var(--panel); }
.convs .thumb { width: 36px; height: 36px; }
.cv-b { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cv-t { display: flex; align-items: center; gap: 4px; }
.cv-p { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- profile */
.hero { position: relative; background-color: #2a2d33; background-size: cover; background-position: center top; color: #f2f2f2; margin-bottom: 10px; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(12, 14, 18, .62); }
.hero > * { position: relative; }
.hero:not(.has-bg) { background-color: var(--brand); }
.hero:not(.has-bg)::before { background: rgba(0,0,0,.18); }
.banner { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.hero-in { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; padding: 18px; }
.hero-av .av { border: 3px solid rgba(255,255,255,.85); }
.hero-b > p, .hero-b > div { margin-top: 8px; }
.hero a, .hero .plink, .hero .linklike { color: #a9c6ff; }
.hero .btn { color: var(--ink); }
.hero .btn.on { color: var(--accent); }
.hero .tagx { color: #e9ebf0; border-color: rgba(255,255,255,.45); }
.hero .user .uname { color: #a9c6ff; }
.pname { font-size: 30px; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.pname .house { width: 24px; height: 24px; font-size: 14px; }
.pname .vcheck { width: 22px; height: 22px; }
.pflair { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero .flair { color: #f2f2f2; border-color: rgba(255,255,255,.35); }
.pronouns { font-size: 13px; opacity: .92; }
.anthem-box audio { display: block; margin-top: 6px; width: min(100%, 620px); height: 44px; }
.anthem-yt { display: block; margin-top: 6px; width: min(100%, 340px); aspect-ratio: 16 / 9; border: 0; background: #000; }
.plinks { font-size: 13px; line-height: 1.9; }
.plink { border: 0; background: none; padding: 0; font-weight: bold; }
.plink:hover { text-decoration: underline; }
.plink.off { color: #cfd3da; font-weight: normal; }
.hero .sep { color: rgba(255,255,255,.5); }
.pcoins { font-family: var(--num); }
.bio { overflow-wrap: anywhere; padding: 8px 10px; background: rgba(255,255,255,.08); }
.hero .quote { color: #d8dbe2; border-color: rgba(255,255,255,.4); }
.hero code { background: rgba(255,255,255,.16); }
.pstats { font-size: 14px; line-height: 1.75; }
.pstats b { font-family: var(--num); }
.only { opacity: .75; font-size: 12px; }
.pbadges h2 { font-size: 22px; color: #d9dce3; margin: 8px 0 6px; }
.featured { margin-top: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ptab { padding: 0; }
.ptab > .composer { border-top: 0; border-bottom: 1px solid var(--soft); }
.ptab > .note, .ptab > .small { margin: 10px; }
.ulist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--soft); }
.clist li, .wallposts li { padding: 9px 10px; border-bottom: 1px solid var(--soft); overflow-wrap: anywhere; }
.reorder li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.reorder li span:nth-child(2) { flex: 1; }

/* ---------------------------------------------------------------- settings (follows the reference layout) */
.settings .tabs { background: none; border-bottom: 1px solid var(--soft); margin-bottom: 18px; }
.settings .tabs a { font-size: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 6px; }
.set { margin-bottom: 28px; max-width: 1000px; }
.set > h2 { font-size: 20px; margin-bottom: 10px; }
.set-box { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.set-row { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; padding: 16px 18px; border-top: 1px solid var(--soft); }
.set-row:first-child { border-top: 0; }
.set-l b { font-size: 16px; display: block; }
.set-l .sub { display: block; font-weight: bold; font-size: 15px; }
.under { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 6px; }
.colorpick { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px 21px; max-width: 800px; flex: 1; min-width: 240px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: var(--accent); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink2); }
.swatch .ico path { stroke-width: 3; }
.hexbox { display: grid; grid-template-columns: auto auto; gap: 6px 8px; align-items: center; max-width: 280px; }
.hexbox .small { max-width: 130px; }
.hexbox .btn { grid-column: 2; justify-self: start; }
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.knob { position: absolute; inset: 0; background: #a89c8e; border-radius: 13px; }
.knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #111; }
.switch input:checked + .knob { background: var(--accent); }
.switch input:checked + .knob::after { left: 24px; background: #f6ead9; }
.switch input:focus-visible + .knob { outline: 2px solid var(--ink); outline-offset: 2px; }
.bg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bg-thumb { --pat: color-mix(in srgb, var(--brand) 38%, transparent); width: 190px; height: 110px; border: 1px solid var(--line); background-color: var(--panel2); padding: 0; display: flex; align-items: flex-end; }
.bg-thumb span { background: var(--bg); font-size: 12px; padding: 1px 6px; }
.bg-thumb.on { outline: 3px solid var(--accent); }
.flag-set { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; margin-top: 10px; max-height: 52vh; overflow-y: auto; }
.flag-grid button { display: flex; align-items: center; gap: 6px; border: 1px solid var(--soft); background: var(--bg); padding: 4px 6px; font-size: 12px; text-align: left; }
.flag-grid button:hover { background: var(--hover); }
.badge-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.badge-pick button { border: 2px solid transparent; background: none; padding: 4px; border-radius: 6px; }
.badge-pick button.on { border-color: var(--accent); }
.img-set { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.img-prev { background: var(--panel2); border: 1px solid var(--soft); display: grid; place-items: center; overflow: hidden; font-size: 12px; }
.img-prev.round { border: 0; background: none; }
.img-prev.wide { width: 420px; max-width: 100%; aspect-ratio: 16 / 6; }
.img-prev.tall { width: 260px; max-width: 100%; aspect-ratio: 3 / 4; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.slots { margin: 8px 0; border-top: 1px solid var(--soft); }
.slots li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; background: var(--panel2); border-bottom: 1px solid var(--soft); }
.slots li b { margin-right: auto; }
.ref { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref .in { flex: 1; min-width: 200px; font-family: var(--num); }
.ref-n { background: var(--panel); padding: 5px 10px; font: bold 14px var(--num); }
.inline-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sess li { padding: 5px 0; border-bottom: 1px solid var(--soft); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- notifications */
.notifpage .tabs { background: none; }
.notifpage .tabs a { font-size: 16px; padding: 12px 16px; }
.nt-h { font-size: 15px; padding: 14px 12px 8px; }
.notifs li { border-top: 1px solid var(--soft); border-left: 3px solid transparent; }
.notifs li.unread { background: var(--panel); border-left-color: var(--accent); }
.notifs a { display: flex; gap: 10px; padding: 12px; color: var(--ink); align-items: flex-start; }
.notifs a:hover { text-decoration: none; background: var(--hover); }
.nt-i { color: var(--accent); margin-top: 2px; }
.nt-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nt-from { font-size: 12px; font-weight: bold; color: var(--accent); }
.nt-badge { margin: 6px 0; }

/* ---------------------------------------------------------------- admin */
.barcell { width: 40%; }
.bar { display: block; height: 10px; background: var(--brand); min-width: 1px; }

/* ---------------------------------------------------------------- overlays */
.toasts { position: fixed; right: 14px; bottom: 14px; z-index: 100; display: flex; flex-direction: column; gap: 6px; max-width: min(380px, calc(100vw - 28px)); }
.toast { background: #23262d; color: #fff; padding: 9px 13px; font-size: 13px; border-left: 4px solid var(--ok); box-shadow: 0 3px 12px rgba(0,0,0,.28); overflow-wrap: anywhere; }
.toast.err { border-left-color: #ff6b6b; } .toast.info { border-left-color: #6ea8ff; }
.modal-back { position: fixed; inset: 0; background: rgba(10, 14, 22, .55); z-index: 90; display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.modal { background: var(--bg); color: var(--ink); border: 1px solid var(--line); width: 460px; max-width: 100%; max-height: calc(100vh - 28px); display: flex; flex-direction: column; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.modal.wide { width: 780px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--panel2); border-bottom: 1px solid var(--soft); }
.modal-h .x { border: 0; background: none; color: var(--ink2); width: 28px; height: 28px; display: grid; place-items: center; }
.modal-b { padding: 14px; overflow-y: auto; }
.modal-b .composer { border-top: 0; padding: 0; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* the optional spider */
.spider { position: fixed; top: 0; right: 46px; z-index: 40; pointer-events: none; animation: spider 9s ease-in-out infinite alternate; }
.spider .thread { display: block; width: 1px; height: 120px; background: var(--ink3); margin: 0 auto; }
.spider .body { display: block; position: relative; width: 16px; height: 16px; border-radius: 50%; background: #17181b; margin: 0 auto; }
.spider .body::after { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #17181b; }
.spider .leg { position: absolute; top: 7px; width: 13px; height: 1.5px; background: #17181b; transform-origin: 0 50%; left: 8px; }
.spider .l1 { transform: rotate(-30deg) translateX(6px); } .spider .l2 { transform: rotate(-10deg) translateX(6px); } .spider .l3 { transform: rotate(12deg) translateX(6px); } .spider .l4 { transform: rotate(34deg) translateX(6px); }
.spider .l5 { transform: rotate(210deg) translateX(6px); } .spider .l6 { transform: rotate(190deg) translateX(6px); } .spider .l7 { transform: rotate(168deg) translateX(6px); } .spider .l8 { transform: rotate(146deg) translateX(6px); }
@keyframes spider { from { transform: translateY(-90px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .spider { animation: none; } }

/* ---------------------------------------------------------------- board (threads): small tools on the left, the thread list in the middle, community information on the right */
.board { display: grid; grid-template-columns: 190px minmax(0, 1fr) 212px; gap: 10px; align-items: start; }
.bd-w .box-h { font-size: 12px; padding: 6px 8px 5px; }
.box.tint.bd-w .box-h { padding-bottom: 2px; }
.bd-w .hint { padding: 0 8px 8px; margin: 0; font-size: 11px; }
.bd-w .empty.small { padding: 8px; text-align: left; font-size: 12px; }
.bd-w .pad { padding: 8px; }
.bd-w .facts { font-size: 12px; padding: 8px; }
.bd-w .facts dd { font-size: 13px; }
.bd-w .more.flat { padding: 0 8px 8px; font-size: 12px; }
.bd-title { font-size: 15px; gap: 6px; }
.bd-title .small { font-weight: normal; margin-left: 4px; }
.ticker { overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: bold; color: var(--price); padding: 4px 0; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 26s linear -11s infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker { white-space: normal; padding: 4px 10px; } .ticker span { animation: none; padding-left: 0; } }
.bd-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 7px 10px; font-size: 13px; }
.bd-ev, .bd-gift { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bd-ev { font-weight: bold; }
.bd-me { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 10px; }
.bd-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; min-width: 0; }
.bd-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dd { position: relative; font-size: 13px; }
.dd summary { list-style: none; cursor: pointer; color: var(--link); display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid transparent; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.dd[open] summary { border-color: var(--line); background: var(--panel2); }
.dd-menu { position: absolute; z-index: 20; left: 0; top: 100%; min-width: 170px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.16); padding: 4px 0; }
.dd-menu a { display: block; padding: 6px 12px; white-space: nowrap; }
.dd-menu a:hover { background: var(--hover); text-decoration: none; }
.weekly { margin: 8px 10px; padding: 8px 10px; background: color-mix(in srgb, #f5c842 16%, var(--bg)); border: 1px solid color-mix(in srgb, #c99a00 55%, var(--line)); }
.wk-h { display: flex; align-items: center; gap: 5px; color: var(--price); font-size: 13px; }
.wk-q { font-weight: bold; font-size: 15px; margin: 2px 0; overflow-wrap: anywhere; }
.weekly .btn { margin-top: 6px; }
.bd-list .tabs a { padding: 7px 10px 6px; }
.bd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px 4px; }
.bd-search { display: flex; gap: 6px; flex: 1 1 240px; min-width: 0; }
.bd-search .in { padding: 4px 8px; font-size: 13px; }
.bd-sound { white-space: nowrap; }
.bd-sound.off { color: var(--ink3); }
.chips { display: flex; flex-wrap: wrap; gap: 4px 5px; padding: 6px 10px; }
.chips.side { padding: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--soft); border-radius: 10px; background: var(--panel2); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.chip:hover { text-decoration: none; border-color: var(--line); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .cn { font: 11px var(--num); color: var(--ink3); }
.chip.on .cn { color: inherit; }
.bd-filter { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px; font-size: 12px; background: var(--panel2); border-top: 1px solid var(--soft); }
.trows { border-top: 1px solid var(--soft); }
.trows li { display: flex; align-items: baseline; gap: 6px; padding: 4px 10px; border-bottom: 1px dotted var(--soft); font-size: 13px; line-height: 1.45; }
.trows li:hover { background: var(--hover); }
.trows .no { font-family: var(--num); color: var(--ink3); min-width: 22px; text-align: right; flex: none; }
.trows .tw { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.trows .tw .pin, .trows .tw .lk { margin-right: 4px; vertical-align: -2px; }
.trows .tt { font-weight: bold; }
.trows .te { flex: 0 1 auto; max-width: 46%; display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 6px; }
.lk { color: var(--ink3); display: inline-flex; }
.tg { display: inline-flex; flex-wrap: wrap; gap: 0 6px; font-size: 11px; }
.tg a { color: var(--ink3); }
.trows .tg { justify-content: flex-end; }
.ct { font: 12px var(--num); color: var(--price); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.pin { color: var(--price); display: inline-flex; }

/* left column */
.cl { padding: 4px 8px 10px; text-align: center; }
.clock { width: 104px; height: 104px; display: block; margin: 0 auto 4px; }
.clock .rim { fill: var(--field); stroke: var(--line); stroke-width: 2; }
.clock .tick { stroke: var(--ink2); }
.clock .h-h, .clock .h-m { stroke: var(--ink); }
.clock .h-s { stroke: var(--price); }
.clock .hub { fill: var(--price); }
.cl-time { font: bold 24px/1.1 var(--num); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.cl-date { font: 12px var(--num); }
.cl-tz { font-size: 11px; color: var(--ink3); overflow-wrap: anywhere; }
.cl-diff { font-size: 11px; color: var(--price); }
.world { padding: 2px 8px 4px; font-size: 12px; }
.world li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 14px 16px; align-items: center; gap: 4px; padding: 2px 0; }
.world .flag { display: block; }
.w-n { font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-t { font-family: var(--num); font-variant-numeric: tabular-nums; }
.w-i { display: inline-flex; }
.w-i.sun { color: #c98a00; }
.w-i.moon { color: var(--ink3); }
.w-x { border: 0; background: none; padding: 0; color: var(--ink3); width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; }
.w-x:hover { color: var(--bad); }
.w-add { padding: 0 8px 8px; }
.w-add .in { width: 100%; font-size: 12px; padding: 2px 4px; }
.tm { padding: 2px 8px 10px; text-align: center; }
.tm-time { font: bold 26px/1.2 var(--num); font-variant-numeric: tabular-nums; }
.tm-presets { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 4px 0 6px; font-size: 11px; color: var(--ink3); }
.tm-presets button { border: 1px solid var(--line); background: var(--bg); padding: 0 6px; min-width: 26px; font: 12px/1.6 var(--num); }
.tm-presets button.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.tm-go { display: flex; justify-content: center; gap: 5px; }

/* right column */
.quests { padding: 2px 8px; font-size: 12px; }
.quests li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 0; border-bottom: 1px dotted var(--soft); min-height: 28px; }
.quests li:last-child { border-bottom: 0; }
.quests .btn.small { padding: 1px 6px; font-size: 11px; }
.q-n { font-family: var(--num); color: var(--ink3); white-space: nowrap; }
.q-done { color: var(--ok); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-size: 12px; }
.bd-users { padding: 6px 8px; font-size: 12px; display: grid; gap: 3px; }
.bd-mini { padding: 6px 8px; font-size: 12px; }
.bd-mini li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 2px 0; }
.bd-mini a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo { font-size: 12px; min-height: 70px; }
.bd-tips { padding: 6px 8px 8px; font-size: 11px; color: var(--ink2); }
.bd-tips li { padding: 1px 0; }
.bd-rules { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; }
.bd-r > .btn.block { margin-bottom: 10px; }

/* one thread, and the new-thread form */
.bthread, .bnew { max-width: 820px; margin: 0 auto; }
.crumb { font-size: 13px; margin-bottom: 8px; }
.crumb a { display: inline-flex; align-items: center; gap: 3px; }
.bt-h { padding: 12px 12px 10px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.bt-h .h1 { overflow-wrap: anywhere; }
.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; margin: 6px 0 8px; }
.bt-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bt-act .btn.on { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.bthread .pager { padding: 8px; border-bottom: 1px solid var(--soft); }
.bthread .note { margin: 10px 12px; }
.bthread .composer .in { min-height: 90px; }
.bpost { padding: 8px 12px 10px; border-bottom: 1px solid var(--soft); scroll-margin-top: 80px; transition: background-color .6s; }
.bpost.hl { background: color-mix(in srgb, #f5c842 22%, var(--bg)); }
.bp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.bp-av { display: inline-flex; }
.pno { border: 1px solid var(--line); background: var(--panel); color: var(--link); min-width: 26px; padding: 0 5px; font: bold 12px/18px var(--num); }
.pno:hover { background: var(--hover); }
.bp-act { margin-left: auto; display: inline-flex; gap: 10px; }
.bp-b { margin: 6px 0 0 34px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.anchor { font-family: var(--num); font-weight: bold; }
.bp-img { display: block; width: fit-content; max-width: 100%; margin-top: 6px; }
.bp-img img { display: block; max-width: min(100%, 360px); max-height: 360px; border: 1px solid var(--soft); }
.re { display: inline-flex; align-items: center; gap: 2px; font: 12px var(--num); color: var(--ink3); }
.bp-act .linklike { display: inline-flex; align-items: center; gap: 3px; }
.bkids { margin-left: 22px; border-left: 2px solid var(--soft); }
.bkids.flat { margin-left: 0; border-left: 0; }
.bkids:empty, .breply:empty { display: none; }
.breply { padding: 0 12px 10px 46px; border-bottom: 1px solid var(--soft); }
.breply .composer .in { min-height: 64px; }
.br-x { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .bpost { transition: none; } }
@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .bd-c { order: 1; } .bd-r { order: 2; } .bd-l { order: 3; }
  .bd-l, .bd-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; align-items: start; }
  .bd-r > .btn.block { grid-column: 1 / -1; }
  .trows li { flex-wrap: wrap; }
  .trows .tw { flex-basis: calc(100% - 34px); }
  .trows .te { max-width: none; flex-basis: 100%; justify-content: flex-start; padding-left: 28px; }
  .trows .tg { justify-content: flex-start; }
  .bp-b { margin-left: 0; }
  .bkids { margin-left: 10px; }
  .breply { padding-left: 12px; }
}

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; gap: 8px; padding: 4px 0 8px; }
  .brand { order: -1; }
  .tiles, .tiles:last-child { justify-content: space-around; gap: 6px; }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .tphoto { display: none; }
  .home, .two, .two.rev, .item-top, .msgs { grid-template-columns: minmax(0, 1fr); }
  .home .col-l { order: 3; }
  .msgs.open .convbox { display: none; }
  .icards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frow, .set-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .pname { font-size: 24px; }
  #svc .wrap { flex-wrap: nowrap; overflow-x: auto; }
  #svc a { white-space: nowrap; }
  .steps li { flex-direction: column; text-align: center; font-size: 11px; padding: 6px 2px; }
  .chat-log.tall { height: 56vh; }
}
