/* HubCW - modern-retro theme
   Modern layout & type (Inter), retro game accents (Pixelify Sans, pixel hard-shadows, sprites). */

/* ---------- tokens ---------- */
:root {
  --bg: #f6f2e9;
  --bg-2: #efe8d9;
  --card: #ffffff;
  --card-2: #fbf8f2;
  --ink: #1c2240;
  --ink-2: #4b5373;
  --ink-3: #8a90a8;
  --line: #e6dfcf;
  --line-2: #d6ccb6;
  --hard: #1c2240;
  --accent: #ff7a1a;
  --accent-2: #ff9a45;
  --accent-ink: #b24600;
  --accent-soft: #fff0e1;
  --blue: #3d7bfd;
  --blue-ink: #1f4fc4;
  --blue-soft: #e7efff;
  --green: #18a76c;
  --green-ink: #0d7a4d;
  --green-soft: #e1f6ec;
  --red: #e5484d;
  --red-ink: #b42328;
  --red-soft: #fdecec;
  --gold: #e8b021;
  --gold-ink: #8f6500;
  --violet: #8b5cf6;
  --tip: #141a30;
  --sky-1: #7cc6ff;
  --sky-2: #cfeeff;
  --grass-1: #6cc34a;
  --grass-2: #4a9a2c;
  --dirt: #a8743f;
  --shadow: 0 1px 2px rgba(28, 34, 64, .05), 0 6px 20px rgba(28, 34, 64, .06);
  --shadow-lg: 0 2px 4px rgba(28, 34, 64, .06), 0 18px 40px rgba(28, 34, 64, .10);
  --dots: rgba(28, 34, 64, .055);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Pixelify Sans", "Press Start 2P", ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1121; --bg-2: #151b31; --card: #161d35; --card-2: #1a223d;
  --ink: #eceff9; --ink-2: #aab1cd; --ink-3: #737c9e;
  --line: #262f4f; --line-2: #34406a; --hard: #05070f;
  --accent: #ff8a33; --accent-2: #ffa55e; --accent-ink: #ffb27a; --accent-soft: #34200f;
  --blue: #5b8fff; --blue-ink: #9dbbff; --blue-soft: #172447;
  --green: #2bc282; --green-ink: #6fe0ae; --green-soft: #0f2e22;
  --red: #f0646a; --red-ink: #ff9ca0; --red-soft: #3a1619;
  --gold-ink: #f2c94c; --tip: #0a0e1d;
  --sky-1: #1d2d63; --sky-2: #3a4f8f; --grass-1: #3f8a2c; --grass-2: #2c6a1c; --dirt: #6e4a26;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 44px rgba(0, 0, 0, .35);
  --dots: rgba(255, 255, 255, .04);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1121; --bg-2: #151b31; --card: #161d35; --card-2: #1a223d;
    --ink: #eceff9; --ink-2: #aab1cd; --ink-3: #737c9e;
    --line: #262f4f; --line-2: #34406a; --hard: #05070f;
    --accent: #ff8a33; --accent-2: #ffa55e; --accent-ink: #ffb27a; --accent-soft: #34200f;
    --blue: #5b8fff; --blue-ink: #9dbbff; --blue-soft: #172447;
    --green: #2bc282; --green-ink: #6fe0ae; --green-soft: #0f2e22;
    --red: #f0646a; --red-ink: #ff9ca0; --red-soft: #3a1619;
    --gold-ink: #f2c94c; --tip: #0a0e1d;
    --sky-1: #1d2d63; --sky-2: #3a4f8f; --grass-1: #3f8a2c; --grass-2: #2c6a1c; --dirt: #6e4a26;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 20px 44px rgba(0, 0, 0, .35);
    --dots: rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14.5px/1.6 var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; color: var(--ink); margin: 0 0 10px; line-height: 1.2; letter-spacing: .2px; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
small, .muted { color: var(--ink-3); }
small { font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.center { text-align: center; }
.ta-r { text-align: right; }
.nowrap { white-space: nowrap; }
img.ico { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; vertical-align: middle; }
img.ico.sm { width: 22px; height: 22px; }
img.ico.lg { width: 52px; height: 52px; }
img.mobimg { image-rendering: pixelated; max-width: 100%; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; filter: drop-shadow(2px 2px 0 var(--hard)); }
.brand .name { font-family: var(--pixel); font-weight: 700; font-size: 25px; letter-spacing: .5px; }
.brand .name b { color: var(--accent); font-weight: 700; }
.mainnav { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 10px; white-space: nowrap;
}
.mainnav a:hover { background: var(--bg-2); color: var(--ink); }
.mainnav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.topbar .spacer { flex: 1; }
.searchbox { position: relative; }
.searchbox input {
  width: 220px; padding: 8px 12px 8px 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg);
  font: inherit; font-size: 13.5px; color: var(--ink);
}
.searchbox input:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.searchbox svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); }
.iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; flex: none;
}
.iconbtn:hover { background: var(--bg-2); color: var(--ink); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn .dot {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--card);
}
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon { display: block; }
  :root:not([data-theme="light"]) .theme-light-icon { display: none; }
}
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 12px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--bg-2); }
.usermenu .av {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(var(--sky-2), var(--card)); border: 1.5px solid var(--line-2);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.usermenu .av img { max-width: 30px; max-height: 30px; image-rendering: pixelated; }
.usermenu .un { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 230px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.usermenu .menu .hd { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.usermenu .menu a, .usermenu .menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; color: var(--ink); font: inherit; font-size: 14px;
  background: none; border: 0; cursor: pointer;
}
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--bg-2); color: var(--ink); }
.usermenu .menu .sep { height: 1px; background: var(--line); margin: 6px 0; }

.subnav { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 60%, transparent); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.subnav a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.subnav a:hover { background: var(--bg-2); color: var(--ink); }
.subnav a.on { background: var(--ink); color: var(--card); }
.subnav .sp { flex: 1; }

/* ---------- layout ---------- */
#body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 26px; padding-bottom: 40px; }
#body.three, #body.rail { grid-template-columns: minmax(0, 1fr) 320px; }
.main > .box, .side > .box, .main > .cols2, .main > .statbox { margin-bottom: 20px; }
.side { min-width: 0; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; border: 2px solid var(--hard); box-shadow: 6px 6px 0 var(--hard);
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 85%);
  padding: 46px 44px 92px; margin-bottom: 26px; color: #0f1733;
}
:root[data-theme="dark"] .hero { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { color: #fff; } }
.hero .cloud { position: absolute; background: #fff; opacity: .9; border-radius: 4px; box-shadow: 16px -10px 0 -2px #fff, 34px 0 0 0 #fff, -14px 2px 0 -3px #fff; height: 16px; width: 54px; }
:root[data-theme="dark"] .hero .cloud { opacity: .14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .cloud { opacity: .14; } }
.hero .c1 { top: 34px; right: 22%; animation: drift 60s linear infinite; }
.hero .c2 { top: 78px; right: 6%; transform: scale(1.4); animation: drift 90s linear infinite reverse; }
.hero .c3 { top: 20px; left: 58%; transform: scale(.8); }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: -60px 0; } }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 13px; letter-spacing: .5px;
  background: rgba(255,255,255,.75); color: #0f1733; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--hard);
}
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: #18a76c; box-shadow: 0 0 0 3px rgba(24,167,108,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(24,167,108,0); } }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); margin: 18px 0 10px; color: inherit; text-shadow: 3px 3px 0 rgba(255,255,255,.55); max-width: 760px; }
:root[data-theme="dark"] .hero h1 { text-shadow: 3px 3px 0 rgba(0,0,0,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 { text-shadow: 3px 3px 0 rgba(0,0,0,.35); } }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
:root[data-theme="dark"] .hero h1 em { color: var(--accent-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--accent-2); } }
.hero .lead { font-size: 17px; max-width: 600px; opacity: .85; margin-bottom: 22px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; }
.hero-search input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--hard);
  background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--hard);
}
.hero-search input:focus { outline: none; box-shadow: 3px 3px 0 var(--hard), 0 0 0 5px var(--accent-soft); }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero .chips a { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.7); color: #0f1733; border: 1.5px solid rgba(15,23,51,.2); padding: 4px 11px; border-radius: 999px; }
.hero .chips a:hover { background: #fff; border-color: var(--hard); }
.hero .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: var(--dirt);
  background-image: linear-gradient(var(--grass-1) 0 12px, var(--grass-2) 12px 18px, transparent 18px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 8px, transparent 8px 16px);
  border-top: 3px solid var(--hard); }
.hero .ground::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px;
  background: repeating-linear-gradient(90deg, var(--grass-1) 0 6px, transparent 6px 12px, var(--grass-1) 12px 15px, transparent 15px 22px); }
.hero .walker { position: absolute; bottom: 44px; left: -90px; image-rendering: pixelated; animation: walk 34s linear infinite; z-index: 1; }
.hero .walker img { transform: scaleX(-1); max-height: 64px; display: block; }
.hero .walker.w2 { animation-duration: 51s; animation-delay: -18s; }
.hero .walker.w3 { animation-duration: 44s; animation-delay: -33s; }
@keyframes walk { from { left: -90px; } to { left: 105%; } }
.hero .stats { position: absolute; right: 30px; bottom: 64px; display: flex; gap: 10px; z-index: 2; }
.hero .stat { background: var(--card); color: var(--ink); border: 2px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 96px; }
.hero .stat b { display: block; font-family: var(--pixel); font-size: 22px; line-height: 1.1; }
.hero .stat span { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- cards ("box") ---------- */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.box-h {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-family: var(--pixel); font-weight: 600; font-size: 16.5px; color: var(--ink); border-bottom: 1px solid var(--line);
}
.box-h::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); box-shadow: 2px 2px 0 var(--hard); flex: none; margin-right: -2px; }
.box-h > :last-child:not(:first-child) { margin-left: auto; }
.box-h.orange::before { background: var(--accent); }
.box-h.green::before { background: var(--green); }
.box-h.gray::before { background: var(--ink-3); }
.box-h.red::before { background: var(--red); }
.box-h a { font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink-3); }
.box-h a:hover { color: var(--accent-ink); }
.box-h span[style] { font-family: var(--font); color: var(--ink-3); }
.box-h .btn { color: #fff; }
.box-b { padding: 16px 18px; }
.box-b.flush { padding: 0; }
.box-f { padding: 10px 18px; border-top: 1px solid var(--line); background: var(--card-2); border-radius: 0 0 var(--radius) var(--radius); font-size: 12.5px; color: var(--ink-3); }

/* ---------- tables ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th {
  text-align: left; padding: 10px 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card-2);
}
table.grid tr:first-child th:first-child { border-top-left-radius: var(--radius); }
table.grid tr:first-child th:last-child { border-top-right-radius: var(--radius); }
.box-h + .box-b.flush table.grid tr:first-child th, .filters + .box-b.flush table.grid tr:first-child th { border-radius: 0; }
table.grid th a { color: var(--ink-3); }
table.grid td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: var(--card-2); }
table.grid td.ic { width: 52px; text-align: center; padding-right: 0; }
table.grid td.num, table.grid th.num { text-align: right; white-space: nowrap; }
table.grid td b a, table.grid td a b { font-weight: 650; }
table.grid td > a > b { color: var(--ink); }
table.grid td > a:hover > b { color: var(--accent-ink); }
table.kv { border-collapse: collapse; width: 100%; }
table.kv th { text-align: left; color: var(--ink-3); font-weight: 500; padding: 5px 12px 5px 0; width: 42%; white-space: nowrap; font-size: 13.5px; }
table.kv td { padding: 5px 0; font-weight: 600; }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 14px; padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); max-width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { width: 100%; min-height: 130px; resize: vertical; line-height: 1.5; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -2px; }
label { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 4px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .field { flex: 1 1 170px; }

/* ---------- buttons: modern shape, retro pixel shadow ---------- */
.btn {
  --b: var(--accent); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 650 14px/1 var(--font); color: var(--t);
  background: var(--b); border: 2px solid var(--hard); border-radius: 10px; padding: 9px 16px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--hard); transition: transform .08s, box-shadow .08s, filter .15s; white-space: nowrap;
}
.btn:hover { color: var(--t); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); filter: brightness(1.04); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.btn.blue { --b: var(--blue); }
.btn.green { --b: var(--green); }
.btn.red { --b: var(--red); }
.btn.gray { --b: var(--card); --t: var(--ink); }
.btn.ghost { --b: transparent; --t: var(--ink); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--bg-2); box-shadow: none; transform: none; }
.btn.sm { font-size: 12.5px; padding: 6px 11px; border-radius: 8px; box-shadow: 2px 2px 0 var(--hard); }
.btn.sm:hover { box-shadow: 3px 3px 0 var(--hard); }
.btn.big { font-size: 16px; padding: 13px 22px; border-radius: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue-ink); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--accent-ink); }
form.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- flash ---------- */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; font-weight: 600; border: 2px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); }
.flash::before { content: ""; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.flash.ok { background: var(--green-soft); color: var(--green-ink); }
.flash.ok::before { background: var(--green); }
.flash.error { background: var(--red-soft); color: var(--red-ink); }
.flash.error::before { background: var(--red); }

/* ---------- small bits ---------- */
.kind { display: inline-block; font-family: var(--pixel); font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; letter-spacing: .3px; vertical-align: 1px; text-transform: lowercase; }
.kind.sell { background: var(--green-soft); color: var(--green-ink); }
.kind.buy { background: var(--blue-soft); color: var(--blue-ink); }
.kind.sold { background: var(--bg-2); color: var(--ink-2); }
.kind.closed { background: var(--red-soft); color: var(--red-ink); }
.kind.exp { background: #fff4d6; color: #8f6500; }
.meso { white-space: nowrap; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.meso::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 5px; vertical-align: -1px; border-radius: 3px;
  background: linear-gradient(135deg, #fff2a8, var(--gold) 55%, #a87900); box-shadow: 1px 1px 0 #6b4f00;
}
.rep { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 0 6px; border-radius: 6px; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.rep.pos { color: var(--green-ink); background: var(--green-soft); }
.rep.neg { color: var(--red-ink); background: var(--red-soft); }
.rep.zero { color: var(--ink-3); background: var(--bg-2); }
.ulink { font-weight: 650; color: var(--ink); }
.ulink:hover { color: var(--accent-ink); }
.ulink.admin { color: var(--violet); }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); vertical-align: 1px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; background: var(--bg-2); border-radius: 6px; color: var(--ink-2); }
.statdiff { font-size: 12px; font-weight: 700; color: var(--green-ink); }
.pager { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin: 4px 0 20px; font-size: 13.5px; }
.pager b { margin-right: 6px; color: var(--ink-2); font-weight: 600; }
.pager a, .pager span { min-width: 34px; text-align: center; padding: 5px 10px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.pager span.cur { background: var(--ink); color: var(--card); border-color: var(--ink); }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.tabs a:not(.btn) { padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--ink-2); background: var(--card); border: 1.5px solid var(--line); }
.tabs a:not(.btn):hover { border-color: var(--ink-3); color: var(--ink); }
.tabs a.on:not(.btn) { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.chips a:hover { border-color: var(--ink-3); color: var(--ink); }
.chips a.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chips a small { color: inherit; opacity: .7; font-size: 12px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.filters .f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.filters .f label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.filters input[type=text], .filters select { padding: 7px 10px; font-size: 13.5px; }
.filters input[type=text] { width: 96px; }
.filters input.q { width: 210px; }
.empty { padding: 34px 18px; text-align: center; color: var(--ink-3); }
.notice { background: var(--accent-soft); border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); padding: 11px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink); }
blockquote { margin: 8px 0; padding: 8px 12px; background: var(--bg-2); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; }
blockquote cite { display: block; font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--ink-3); margin-bottom: 3px; }
details.spoiler { background: var(--bg-2); border: 1.5px dashed var(--line-2); padding: 6px 10px; border-radius: 10px; }
a.ilink { font-weight: 600; }
a.ilink img { width: 20px; height: 20px; vertical-align: -5px; image-rendering: pixelated; margin-right: 3px; }
.bar { height: 8px; background: var(--bg-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, var(--accent-2) 6px 8px); }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); font-weight: 600; }

/* ---------- MapleStory-style item tooltip ---------- */
.mstip {
  background: var(--tip); color: #fff; border: 2px solid #3b4a72; border-radius: 12px; padding: 14px 16px; min-width: 240px; max-width: 300px;
  font: 12.5px/1.55 var(--font); box-shadow: 4px 4px 0 var(--hard), var(--shadow-lg); flex: none;
}
.mstip .nm { text-align: center; font-family: var(--pixel); font-weight: 600; font-size: 16px; color: #fff; margin-bottom: 10px; }
.mstip .nm.scrolled { color: #ffb341; }
.mstip .top { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px dashed #4a5a82; padding-bottom: 10px; margin-bottom: 10px; }
.mstip .top .ic { background: #fff; border-radius: 9px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 2px #d8deea; }
.mstip .top .ic img { image-rendering: pixelated; max-width: 44px; max-height: 44px; }
.mstip .req { color: #c4cbe0; font-variant-numeric: tabular-nums; }
.mstip .jobs { margin-bottom: 4px; }
.mstip .jobs span { margin-right: 7px; color: #5f6b8d; }
.mstip .jobs span.ok { color: #fff; }
.mstip .line { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mstip .line .plus { color: #8ff07a; font-weight: 700; }
.mstip .line .minus { color: #ff8585; font-weight: 700; }
.mstip .desc { margin-top: 8px; color: #c9d0e4; white-space: pre-line; }
.mstip .meta { color: #ffc56b; }

/* ---------- home rail ---------- */
.news-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.news-item h3 { margin-bottom: 3px; font-size: 17px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--accent-ink); }
.shouts { max-height: 320px; overflow-y: auto; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.shouts > div { padding: 7px 10px; border-radius: 10px; word-wrap: break-word; }
.shouts > div:nth-child(odd) { background: var(--card-2); }
.shouts form { display: inline; }
.live { display: inline-block; color: #fff; background: var(--green); padding: 1px 7px; border-radius: 5px; font-family: var(--pixel); font-size: 12px; letter-spacing: .4px; }
.daily { display: flex; gap: 14px; align-items: center; }
.daily .ic { width: 64px; height: 64px; border-radius: 14px; background: var(--card-2); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- forum ---------- */
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.post .who { background: var(--card-2); border-right: 1px solid var(--line); padding: 16px 12px; text-align: center; font-size: 12.5px; }
.post .who img { max-height: 72px; image-rendering: pixelated; margin-bottom: 6px; }
.post .body { padding: 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.post .body .meta { font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.post .body .text { flex: 1; overflow-wrap: anywhere; }
.post .sig { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); max-height: 90px; overflow: hidden; }
.bbbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.bbbar button { font: 600 12.5px var(--font); padding: 4px 9px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 7px; cursor: pointer; }
.bbbar button:hover { border-color: var(--ink); }

/* ---------- autocomplete / listing form ---------- */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% - 14px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: 340px; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 4px; }
.ac-list div { padding: 7px 9px; cursor: pointer; display: flex; gap: 9px; align-items: center; border-radius: 8px; }
.ac-list div.on, .ac-list div:hover { background: var(--accent-soft); }
.ac-list img { width: 26px; height: 26px; image-rendering: pixelated; object-fit: contain; }
.picked { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; margin-top: 4px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.statgrid .field { margin: 0; }
.statgrid input { width: 100%; }
.statgrid label { font-size: 12px; }
#listing-form > .box-h:not(:first-of-type) { border-top: 1px solid var(--line); }

/* ---------- database ---------- */
.mobcard { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.mobcard .pic {
  min-width: 150px; min-height: 120px; display: flex; align-items: flex-end; justify-content: center; padding: 12px 12px 22px; position: relative;
  background: linear-gradient(var(--sky-1), var(--sky-2)); border: 2px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); border-radius: 14px; overflow: hidden;
}
.mobcard .pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(var(--grass-1) 0 6px, var(--dirt) 6px); border-top: 2px solid var(--hard); }
.mobcard .pic img { position: relative; z-index: 1; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cats a { display: block; padding: 14px 16px; border: 1.5px solid var(--line); background: var(--card-2); border-radius: 12px; font-weight: 700; color: var(--ink); font-family: var(--pixel); font-size: 15.5px; transition: transform .1s, box-shadow .1s, border-color .1s; }
.cats a:hover { border-color: var(--hard); box-shadow: 3px 3px 0 var(--hard); transform: translate(-1px, -1px); color: var(--ink); }
.cats a small { display: block; font-family: var(--font); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.skill { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skill:last-child { border-bottom: 0; }
.skill img { width: 36px; height: 36px; image-rendering: pixelated; flex: none; border-radius: 8px; background: var(--card-2); padding: 2px; border: 1px solid var(--line); }
.skill details { font-size: 13px; margin-top: 6px; }
.skill summary { cursor: pointer; color: var(--blue-ink); font-weight: 600; }
.skill ol { margin: 6px 0; padding-left: 24px; max-height: 280px; overflow-y: auto; color: var(--ink-2); }
.chart { width: 100%; height: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .pt { fill: var(--card); stroke: var(--accent-ink); stroke-width: 2; }
.chart .ax { stroke: var(--line-2); stroke-width: 1; }
.chart text { font: 11px var(--font); fill: var(--ink-3); }
.bignum { font-family: var(--pixel); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.bignum .meso { font-family: var(--font); font-size: 19px; }
.statbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.statbox > div { border: 1px solid var(--line); background: var(--card-2); border-radius: 12px; padding: 10px 14px; }
.statbox small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; }
.sim-log { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; background: var(--tip); color: #cfe3ff; padding: 10px 12px; height: 170px; overflow-y: auto; border-radius: 12px; border: 2px solid var(--hard); }
.sim-log .s { color: #8ff07a; }
.sim-log .f { color: #ff8585; }

/* ---------- footer ---------- */
.footer { position: relative; margin-top: 30px; background: var(--card); border-top: 3px solid var(--hard); }
.footer .grass { position: absolute; left: 0; right: 0; top: -15px; height: 12px;
  background: repeating-linear-gradient(90deg, var(--grass-1) 0 6px, transparent 6px 12px, var(--grass-1) 12px 16px, transparent 16px 24px); }
.footer .walker { position: absolute; top: -52px; left: -80px; animation: walk 70s linear infinite; image-rendering: pixelated; }
.footer .walker img { transform: scaleX(-1); max-height: 40px; display: block; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 30px; padding-bottom: 30px; font-size: 13.5px; color: var(--ink-2); }
.footer h4 { font-family: var(--pixel); font-weight: 600; font-size: 15px; margin: 0 0 8px; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 4px 0; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--accent-ink); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  #body.three, #body.rail { grid-template-columns: minmax(0, 1fr); }
  .searchbox { display: none; }
  .hero .stats { position: static; margin-top: 22px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; gap: 6px 10px; }
  .mainnav { order: 3; width: 100%; margin: 0 -6px; }
  .usermenu .un { display: none; }
  .hero { padding: 30px 22px 84px; border-radius: 18px; box-shadow: 4px 4px 0 var(--hard); }
  .hero .lead { font-size: 15.5px; }
  .hero .stats { flex-wrap: wrap; }
  .hero .stat { min-width: 0; flex: 1; }
  .cols2 { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post .who { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 14px; }
  .post .who img { max-height: 40px; margin: 0; }
  table.grid .hide-m { display: none; }
  table.grid td, table.grid th { padding-left: 10px; padding-right: 10px; }
  .filters input.q { width: 100%; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .wrap > :first-child { grid-column: 1 / -1; }
  .mstip { max-width: 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .walker, .footer .walker, .hero .cloud, .hero .eyebrow i { animation: none; }
  .hero .walker { left: 12%; } .hero .walker.w2 { left: 45%; } .hero .walker.w3 { display: none; }
  .footer .walker { left: 8%; }
}

/* ---------- fixes: readable numbers, layering, filter widths ---------- */
/* Pixel font for labels only; numbers & user-written titles use Inter so 5/S and 8/B never get confused */
.hero .stat b, .bignum, .mstip .nm, .t-user { font-family: var(--font); font-weight: 800; letter-spacing: -.2px; }
.hero .stat b { font-size: 22px; }
.mstip .nm { font-size: 15px; font-weight: 700; }
h1.t-user { font-size: 26px; }
.searchbox input[type=search] { padding-left: 34px; }
.hero .cloud { z-index: 0; }
.hero .eyebrow, .hero h1, .hero .lead, .hero-search, .hero .chips { position: relative; z-index: 2; }
.filters span input[type=text] { width: 72px !important; }

/* ---------- listing screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.shot { position: relative; height: 136px; border-radius: 12px; overflow: hidden; border: 2px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); background: var(--tip); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:first-child::after { content: "cover"; position: absolute; left: 8px; bottom: 8px; font-family: var(--pixel); font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--accent); color: #fff; }
.shot-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--hard); background: var(--card); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 2px 2px 0 var(--hard); }
.shot-x:hover { background: var(--red); color: #fff; }
.shot.loading img { opacity: .45; filter: blur(1px); }
.shot.loading::before { content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.dropzone { height: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 12px;
  border: 2px dashed var(--line-2); border-radius: 12px; background: var(--card-2); color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; font-weight: 500; }
.dropzone svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 2px; }
.dropzone b { font-family: var(--pixel); font-weight: 600; font-size: 15px; color: var(--ink); }
.dropzone small { font-size: 12px; line-height: 1.5; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.full { display: none; }
kbd { font: 600 11px var(--font); padding: 1px 5px; border: 1.5px solid var(--line-2); border-bottom-width: 3px; border-radius: 5px; background: var(--card); color: var(--ink); }
#shot-msg.err { color: var(--red-ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.gal { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); background: var(--tip); transition: transform .1s, box-shadow .1s; }
.gal:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--hard); }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-tag { display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; }
.shot-tag svg { width: 13px; height: 13px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(8, 11, 24, .86); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 86vh; border-radius: 12px; border: 2px solid var(--hard); box-shadow: 6px 6px 0 rgba(0,0,0,.5); image-rendering: auto; background: var(--tip); }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; color: #fff; font-weight: 600; }
dialog.lightbox .lb-bar .btn { --b: var(--card); --t: var(--ink); }

/* ---------- screenshot auto-detect ---------- */
.detect { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--hard); box-shadow: 3px 3px 0 var(--hard); background: var(--green-soft); color: var(--ink); font-size: 13.5px; }
.detect.warn { background: #fff4d6; }
:root[data-theme="dark"] .detect.warn { background: #3a2c0c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .detect.warn { background: #3a2c0c; } }
.detect .hd { font-family: var(--pixel); font-weight: 600; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.detect .hd::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--green); box-shadow: 1px 1px 0 var(--hard); }
.detect.warn .hd::before { background: var(--gold); }
.detect .chips { margin: 6px 0 4px; gap: 6px; }
.detect .chips span { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 7px; background: var(--card); border: 1.5px solid var(--line-2); font-variant-numeric: tabular-nums; }
.detect .btn { margin-top: 6px; }
.statgrid input.autofilled { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); transition: box-shadow 1.5s; }
.shot.reading::after { content: "reading stats…"; position: absolute; left: 8px; bottom: 8px; font-family: var(--pixel); font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--blue); color: #fff; z-index: 2; }

/* ---------- learned Classic stats ---------- */
.mstip .src { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #4a5a82; font-size: 11px; color: #8f9bbd; }
.mstip .src .plus { color: #8ff07a; font-weight: 700; }
.tag.cw { background: var(--green-soft); color: var(--green-ink); font-family: var(--pixel); font-size: 11px; }
/* counts in card headers must stay readable (pixel digits 2/8, 5/S look alike) */
.box-h small { font-family: var(--font); font-weight: 600; font-size: 12.5px; color: var(--ink-3); }

/* ---------- easier listing form ---------- */
.sell-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sell-head h1 { margin: 0; }
.sellform .when-buy { display: none; }
.sellform.is-buy .when-sell { display: none; }
.sellform.is-buy .when-buy { display: inline; }
.sellform .step { margin-bottom: 20px; }
.stepno { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 9px; border-radius: 7px; background: var(--ink); color: var(--card); font-style: normal; font-family: var(--font); font-weight: 800; font-size: 13px; }
.sellform .box-h::before { display: none; }
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--ink-2); transition: background .12s, color .12s; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--hard); outline: 1.5px solid var(--hard); }
.seg input:focus-visible + span { outline: 3px solid var(--accent-2); }
.seg-sm span { padding: 6px 12px; font-size: 13px; }
/* screenshot drop zone: big call-to-action until something is added */
.shots .dz-big { display: none; }
.shots.empty { grid-template-columns: 1fr; }
.shots.empty .dropzone { height: 200px; gap: 8px; border-width: 2.5px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.shots.empty .dropzone svg { width: 42px; height: 42px; }
.shots.empty .dropzone b.dz-big { display: block; font-size: 20px; }
.shots.empty .dropzone small.dz-big { display: block; font-size: 13.5px; }
.shots.empty .dz-small { display: none; }
.or-search { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.or-search #item-search { width: 100%; }
.or-search .field { margin-bottom: 0; }
#cat-field { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
#cat-field select { max-width: 260px; }
.statgrid .extra { display: none; }
.statgrid.all .extra { display: block; }
input.bigin { width: 100%; font-size: 21px; font-weight: 700; padding: 10px 14px; font-variant-numeric: tabular-nums; }
.pricetips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.pricetips > small { width: 100%; }
.pricetips .tip { display: grid; text-align: left; gap: 0; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .1s, transform .1s, box-shadow .1s; }
.pricetips .tip:hover { border-color: var(--hard); box-shadow: 2px 2px 0 var(--hard); transform: translate(-1px, -1px); }
.pricetips .tip span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
.pricetips .tip b { font-size: 16px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.pricetips .tip small { font-size: 11.5px; }
details.more { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 650; color: var(--ink); margin-bottom: 4px; list-style-position: inside; }
details.more summary small { font-weight: 500; margin-left: 6px; }
details.more[open] summary { margin-bottom: 14px; }
details.more .row .field input { width: 100%; }
.sell-submit { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 10px;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.sell-submit small { color: var(--ink-3); }
/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 160%); opacity: 0; transition: transform .25s, opacity .25s;
  background: var(--ink); color: var(--card); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 4px 4px 0 var(--hard), var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--red); color: #fff; }
/* paste-anywhere hint */
.paste-hint { margin: 14px 0 0; font-size: 14px; opacity: .9; position: relative; z-index: 2; }
.paste-hint kbd { color: #0f1733; }
.contact { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.contact .who { font-size: 13px; color: var(--ink-2); margin-right: auto; }
.contact .who b { color: var(--ink); font-size: 15px; }
.detect + .hint, .shots + .detect[hidden] + .hint { margin-top: 10px; }

/* touch devices have no Ctrl+V / snipping tool: show tap wording instead */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .kb-only { display: none !important; }
  .touch-only { display: inline; }
}
@media (max-width: 760px) {
  .sell-submit { bottom: 8px; padding: 10px; gap: 8px; }
  .sell-submit .btn { flex: 1; }
  .sell-submit small { display: none; }
  .shots.empty .dropzone { height: 170px; }
  .sell-head h1 { font-size: 24px; }
}

/* "Where to find you": CC (channel) + RM (FM room) */
.ccrm { display: flex; align-items: center; gap: 8px; }
.ccrm span { font-family: var(--pixel); font-weight: 600; color: var(--ink-2); }
.ccrm input { width: 76px; text-align: center; font-weight: 700; }
