:root {
  --bg: #0f1115;
  --ink: #f6f7f9;
  --muted: #939db2;
  --line: rgba(147, 157, 178, .22);
  --card: #181b22;
  --gold: #f4b942;
  --gold-deep: #e0a020;
  --bid: #3ddc97;
  --ask: #f4b942;
  --down: #f0a0a0;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(820px 420px at 12% -12%, rgba(224, 160, 32, .2), transparent 62%),
    radial-gradient(640px 480px at 110% 8%, rgba(61, 220, 151, .1), transparent 58%),
    radial-gradient(520px 420px at 70% 110%, rgba(224, 160, 32, .08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(246, 247, 249, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 78%);
}
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene img { position: absolute; width: 220px; opacity: .1; }
.scene img:nth-of-type(1) { top: 16%; left: -36px; transform: rotate(-18deg); }
.scene img:nth-of-type(2) { top: 48%; right: -12px; width: 96px; opacity: .14; }
.scene img:nth-of-type(3) { bottom: 8%; left: 18%; width: 150px; opacity: .07; transform: rotate(10deg); }
.orb { position: absolute; border-radius: 50%; }
.orb-gold { width: 460px; height: 460px; top: -120px; left: -80px; background: radial-gradient(circle, rgba(244, 185, 66, .2), transparent 68%); }
.orb-mint { width: 380px; height: 380px; right: -90px; bottom: 6%; background: radial-gradient(circle, rgba(61, 220, 151, .12), transparent 70%); }
.top-stack, .page, .admin-shell, .promo, .site-foot, .support { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.top-stack {
  position: sticky;
  top: 0;
  z-index: 20;
}
.top {
  background: rgba(15, 17, 21, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top-inner,
.page,
.admin-shell,
.promo,
.site-foot-panel {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.top-inner {
  min-height: 68px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.02em;
  font-size: 18px;
  white-space: nowrap;
}
.brand em { color: var(--gold); font-style: normal; }
.brand-logo { height: 34px; width: auto; flex: none; }
.brand-mark { display: none; }
.foot-logo { height: 56px; width: auto; }
.top-links { display: flex; gap: 4px; flex: 1; }
.top-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
.top-links a:hover { color: var(--ink); }
.top-links a.is-active { color: #1a1408; background: var(--gold); }
.top-side { display: flex; align-items: center; gap: 8px; }
.nav-bals { margin-left: auto; }
.top-inner:not(:has(.nav-bals)) .top-side { margin-left: auto; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #232833;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::marker { content: ""; }
.lang-menu[open] summary { border-color: var(--gold); }
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.lang-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  background: #181b22;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  z-index: 30;
}
.lang-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
.lang-pop a:hover, .lang-pop a.is-active { background: rgba(244, 185, 66, .14); }
.nav-login, .btn-green, .btn-take, .btn-grey, .ghost, .promo-btn, .danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  white-space: nowrap;
}
.nav-login {
  background: #232833;
  color: var(--ink);
  border-color: var(--line);
}
.nav-login:hover { background: #2c3340; }
.btn-green, .btn-take, .promo-btn {
  background: var(--gold);
  color: #1a1408;
  border-color: var(--gold);
}
.btn-green:hover, .btn-take:hover, .promo-btn:hover { background: #ffd36a; color: #1a1408; }
.btn-take:disabled, .btn-green:disabled { opacity: .45; cursor: not-allowed; }
.btn-grey, .ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-grey:hover, .ghost:hover { border-color: var(--muted); }
.danger-btn { background: transparent; color: var(--down); border-color: rgba(240, 160, 160, .35); }
.danger-btn.solid { background: #8c2f2a; color: #fff; border-color: #8c2f2a; }
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  max-width: 190px;
  padding: 0 12px 0 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.nav-user:hover { background: rgba(255, 255, 255, .09); }
.nav-avatar { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.nav-user strong {
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
#auth-slot { display: flex; align-items: center; gap: 8px; }
.nav-bals { display: inline-flex; align-items: center; gap: 6px; }
.nav-bal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.nav-bal img { width: 18px; height: 18px; object-fit: contain; }
.nav-bal img.gem { width: 16px; height: 16px; }
.nav-bal strong { font-size: 13px; font-weight: 700; }
.nav-admin { color: var(--gold); font-size: 14px; font-weight: 700; padding: 0 6px; white-space: nowrap; }
.nav-admin:hover { color: var(--ink); }
.logout {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.logout svg { width: 18px; height: 18px; }
.logout:hover { color: var(--ink); border-color: var(--muted); }

.notice {
  margin: 0;
  padding: 8px 16px;
  background: #f4b942;
  color: #1a1408;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.maint-banner {
  margin: 0;
  padding: 8px 16px;
  background: #c4522a;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
.steam-chat { display: grid; grid-template-rows: 1fr auto; min-height: 460px; padding: 0; overflow: hidden; background: #1b2838; border: 1px solid #2a3f5a; scroll-margin-top: 84px; }
.steam-log { display: grid; align-content: start; gap: 14px; max-height: 560px; overflow: auto; padding: 16px 18px; background: #1b2838; }
.steam-msg { display: grid; gap: 3px; max-width: 100%; }
.steam-msg span { color: #57cbde; font-size: 13px; font-weight: 700; }
.steam-msg p, .steam-pre { margin: 0; color: #c6d4df; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.steam-pre { display: block; margin-top: 2px; padding: 8px 10px; background: #16202d; border: 1px solid #2a3f5a; color: #d6d7d8; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.35; overflow-x: auto; }
.steam-msg.is-you span { color: #a4d007; }
.steam-form { display: flex; gap: 8px; padding: 12px; background: #16202d; border-top: 1px solid #2a3f5a; }
.dyn-listed { grid-column: 1 / -1; margin: 0; }
.steam-form input { flex: 1; }
.dyn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dyn-side { display: grid; gap: 8px; }
.dyn-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.dyn-sum.is-bad { color: #e07060; }
.book-block + .book-block { margin-top: 28px; }
.book-block .item-bar { margin-bottom: 16px; }

.page, .admin-shell { padding: 22px 0 36px; }
.admin-shell { display: block; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(24, 27, 34, .72);
}
.admin-tabs a[aria-current="page"], .admin-tabs a:hover { color: #1a1408; background: var(--gold); border-color: var(--gold); }

h1 { margin: 0 0 8px; color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
h2 { margin: 0 0 8px; color: var(--ink); font-size: 16px; font-weight: 650; }
.lede, .help { color: var(--muted); }

.facts, .quote, .sheet, .step, .identity, .stat, .split-vol div, .login-box, .promo-card, .book-card {
  background: rgba(24, 27, 34, .72);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  overflow: hidden;
}
.facts > div { padding: 16px 18px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts span, .quote span, .kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.facts strong { display: block; margin-top: 4px; font-size: 32px; letter-spacing: -.03em; font-weight: 700; }
.facts em, .quote em { color: var(--muted); font-style: normal; font-size: 13px; }

.market { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.item-bar { margin-bottom: 16px; }
.book-card > h2 { margin: 0 0 12px; font-size: 18px; }
.book-card { padding: 16px; }
.book-head { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.slot {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 40% 35%, rgba(244, 185, 66, .22), transparent 70%),
    #12141a;
  border: 1px solid var(--line);
}
.bids .slot {
  background:
    radial-gradient(circle at 40% 35%, rgba(61, 220, 151, .18), transparent 70%),
    #12141a;
}
.slot img { width: 56px; height: 56px; object-fit: contain; }
.book-head h1 { font-size: 22px; margin: 2px 0; overflow-wrap: anywhere; }
.sub, .fee-note, .median, .spread { color: var(--muted); font-size: 13px; margin: 0; }
.kicker { margin: 0; }
.live { color: var(--bid); font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 600; }
.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 99px; background: var(--bid); }

.quote {
  margin: 14px 0 8px;
  padding: 12px 14px;
  background: rgba(15, 17, 21, .45);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.quote strong { color: var(--ink); font-weight: 700; }
.ask { color: var(--ask); }
.bid { color: var(--bid); }

.book-card { display: flex; flex-direction: column; }
.ladder { margin-top: 8px; flex: 1; min-height: 248px; }
.ladder-empty {
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.ladder p, .ladder a, .ladder .rung {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  position: relative;
}
.rung-ico { width: 22px; height: 22px; object-fit: contain; position: relative; z-index: 1; }
.ladder-more summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
  padding: 10px 10px 4px;
  list-style: none;
}
.ladder-more summary::-webkit-details-marker { display: none; }
.ladder p { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ladder a, .ladder .rung { border-top: 1px solid var(--line); color: var(--muted); }
.ladder a::before, .ladder .rung::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: var(--depth);
  border-radius: 6px;
  background: rgba(224, 160, 32, .22);
}
.bids .ladder a::before, .bids .ladder .rung::before { background: rgba(61, 220, 151, .16); }
.ladder a span, .ladder .rung span { position: relative; font-variant-numeric: tabular-nums; }
.ladder a:hover { color: var(--ink); }
.fee-note { margin-top: 10px; }
.history-block { margin: 14px 0; }
.history { width: 100%; height: 92px; display: block; }
.history-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.history-fill { fill: rgba(244, 185, 66, .12); }
.history-line { fill: none; stroke: #f0a0a0; stroke-width: 2; }
.bids .history-fill { fill: rgba(61, 220, 151, .1); }
.bids .history-line { stroke: var(--bid); }
.book-card .btn-green { width: 100%; margin-top: 4px; }
.take { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.take input[type="number"] { width: 84px; min-height: 38px; padding: 8px 10px; }
.book-card .take .btn-take { flex: 1; width: auto; margin-top: 0; }
.take-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.book-card.bids .btn-green,
.book-card.bids .btn-take {
  background: var(--bid);
  border-color: var(--bid);
  color: #06281c;
}
.book-card.bids .btn-green:hover,
.book-card.bids .btn-take:hover { background: #62e8b0; color: #06281c; }
.spread {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(24, 27, 34, .45);
}

.sheet, .step, .identity { padding: 16px; }
.grid-2, .example, .steps, .profile, .login-grid, .report-grid { display: grid; gap: 16px; }
.grid-2, .example, .login-grid, .report-grid { grid-template-columns: 1.1fr .9fr; }
.steps { grid-template-columns: repeat(3, 1fr); }
.profile { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: stretch; margin-bottom: 16px; }
.profile-solo { grid-template-columns: 1fr; }
.profile .identity, .profile .profile-url { margin: 0; }
.profile-url { display: flex; }
.url-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.url-form .field { margin: 0; }
.url-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.url-bar .help { margin: 0; }
.nav-burger {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-burger svg { width: 18px; height: 18px; }
.nav-burger .burger-close { display: none; }
body.nav-open .nav-burger .burger-open { display: none; }
body.nav-open .nav-burger .burger-close { display: block; }
.nav-scrim, .nav-drawer { display: none; }
.admin-items { max-width: 640px; }
.order-sheet { width: min(640px, 100%); margin: 0 auto; padding: 14px; }
.order-sheet .page-head, .order-sheet .help { margin: 8px 0 0; }
.item-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.item-pick label, .item-pick a, .item-pick .is-locked {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 17, 21, .35);
  cursor: pointer;
}
.item-pick img { width: 40px; height: 40px; object-fit: contain; }
.item-pick span { font-weight: 700; font-size: 13px; line-height: 1.25; }
.item-pick label:has(input:checked), .item-pick a.is-current { border-color: var(--gold-deep); background: rgba(224, 160, 32, .1); color: inherit; }
.item-pick label:focus-within { outline: none; }
.item-pick .is-locked { opacity: .38; cursor: not-allowed; pointer-events: none; user-select: none; }
.key-stack { display: grid; margin: 0; }
.key-stack .field { width: 100%; margin-bottom: 8px; gap: 4px; }
.key-stack input { padding: 8px 12px; font-size: 16px; font-weight: 700; }
.key-stack .help { margin: 0; }
.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 17, 21, .55);
}
.choice label {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.choice label:focus-within { outline: none; }
.choice-sell:has(input:checked) { background: var(--gold); color: #1a1408; }
.choice-buy:has(input:checked) { background: var(--bid); color: #06281c; }
.field { display: grid; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.field input, .field select { width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #12141a; }
input[type="number"], input[type="text"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: #12141a;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  outline: none;
}
input:focus, input:focus-visible,
select:focus, select:focus-visible,
textarea:focus, textarea:focus-visible {
  outline: none;
  box-shadow: none;
}
textarea { min-height: 80px; }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.receipt .total { color: var(--ink); font-size: 26px; font-weight: 700; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.order-sheet .form-actions { justify-content: flex-end; }
.order-sheet .sell-math { margin: 8px 0 0; }
.order-sheet .sell-math div { padding: 8px 10px; }
.order-sheet .sell-math strong { margin: 2px 0; font-size: 18px; }
.sell-math { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 4px; }
.sell-math div { padding: 12px; border-radius: 14px; background: rgba(15, 17, 21, .45); border: 1px solid var(--line); }
.sell-math span, .sell-math em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.sell-math .line-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sell-math .line-total b { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.sell-math div:nth-child(1) .line-total b { color: var(--ask); }
.sell-math div:nth-child(2) .line-total b { color: var(--bid); }
.sell-math strong { display: block; margin: 4px 0; font-size: 22px; letter-spacing: -.03em; }
.sell-math div:nth-child(1) strong { color: var(--ask); }
.sell-math div:nth-child(2) strong { color: var(--bid); }
.banner-off { display: none; margin-top: 12px; padding: 12px; border-radius: 12px; background: #232833; color: var(--muted); }
.banner-off.show { display: block; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 14px; }

.tab-input { position: fixed; left: -40px; width: 1px; height: 1px; opacity: 0; }
.tabs { display: flex; gap: 4px; }
.tabs label { padding: 8px 14px; color: var(--muted); cursor: pointer; border-radius: 999px; }
#tab-open:checked ~ .tabs label[for="tab-open"],
#tab-done:checked ~ .tabs label[for="tab-done"],
#tab-cancel:checked ~ .tabs label[for="tab-cancel"] { color: #1a1408; background: var(--gold); }
.tab-panel { display: none; }
#tab-open:checked ~ .panel-open,
#tab-done:checked ~ .panel-done,
#tab-cancel:checked ~ .panel-cancel { display: block; }

.login-grid { min-height: 320px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); }
.login-copy, .login-box { padding: 28px; }
.steam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  background: var(--gold);
  color: #1a1408;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.steam-btn svg { width: 22px; height: 22px; }
.account-avatar { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 12px; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { padding: 12px 14px; }
.stat span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.stat strong { display: block; margin-top: 4px; color: var(--ink); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.stat em { color: var(--muted); font-style: normal; font-size: 12px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin: 8px 0 0; padding: 0; list-style: none; }
.bars li { flex: 1; height: var(--v); background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 8px 8px 2px 2px; position: relative; }
.bars li span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font-size: 10px; color: var(--muted); }
.chart { padding-bottom: 22px; }
.split-vol { display: grid; gap: 8px; }
.split-vol div { padding: 12px; }

.filters { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.filters button[aria-pressed="true"] { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.search { max-width: 280px; margin-bottom: 10px; }
.pill { display: inline-block; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; }
.pill.on { color: var(--bid); }
.pill.off { color: var(--down); }
tr.is-banned td { color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
.sheet table, .tab-panel table { min-width: 680px; }
.sheet, .tab-panel { overflow-x: auto; }
th { text-align: left; color: var(--muted); font-weight: 650; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px; white-space: nowrap; }
td { padding: 10px 8px; border-top: 1px solid var(--line); }
.row-link { background: none; border: 0; color: var(--gold); cursor: pointer; padding: 0; }
.num { font-variant-numeric: tabular-nums; }

.order-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
dialog { border: 1px solid var(--line); background: var(--card); color: var(--ink); width: min(460px, calc(100vw - 24px)); border-radius: 16px; }
dialog::backdrop { background: rgba(0,0,0,.65); }
.dialog-body { padding: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.toast {
  position: fixed; right: 16px; bottom: 16px; background: #232833; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: none; z-index: 30;
}
.toast.show { display: block; }
.empty { color: var(--muted); padding: 16px; }

.promo { padding: 0; }
.promo-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}
.promo-logo { width: 42px; height: 42px; }
.promo-card p { margin: 0 0 2px; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.promo-card strong { display: block; font-size: 16px; }
.promo-card span { color: var(--muted); font-size: 13px; }

.site-foot { padding: 8px 0 28px; color: var(--muted); font-size: 13px; }
.site-foot-panel {
  padding: 22px 22px 14px;
  border-radius: 18px;
  background: rgba(24, 27, 34, .72);
  border: 1px solid var(--line);
}
.site-foot-top { display: grid; grid-template-columns: minmax(220px, .8fr) 1.4fr; gap: 28px; }
.site-foot-brand p { margin: 12px 0 0; max-width: 360px; line-height: 1.55; }
.site-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-foot-cols h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-foot-cols a { display: block; width: fit-content; padding: 4px 0; color: rgba(246, 247, 249, .72); }
.site-foot-cols a:hover { color: var(--gold); }
.site-foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.site-foot-bottom a:hover { color: var(--gold); }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.legal { width: min(720px, 100%); }
.legal p { color: var(--muted); }
.how-top { display: grid; grid-template-columns: 1.4fr auto; gap: 18px; align-items: center; margin-bottom: 16px; }
.how-art, .how-card { display: flex; gap: 10px; align-items: center; }
.how-art img, .how-card img { width: 84px; height: 84px; object-fit: contain; }
.how-flow, .how-examples { display: grid; gap: 12px; }
.how-flow { grid-template-columns: repeat(3, 1fr); }
.how-examples { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.how-card { display: grid; grid-template-columns: 84px 1fr; }
.how-card h2, .how-partial h2 { margin: 0 0 6px; }
.how-card p, .how-partial p { margin: 0; color: var(--muted); }
.how-partial { margin-top: 12px; }

@media (max-width: 900px) {
  .market, .facts, .grid-2, .steps, .example, .profile, .login-grid, .report-grid, .stats, .order-hero, .admin-shell, .promo-card, .hero, .how-steps, .how-flow, .how-examples, .how-top, .wallet-grid {
    grid-template-columns: 1fr;
  }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .book-head, .book-head > div, .kicker, .sub { min-width: 0; }
  .promo-card, .site-foot-top, .site-foot-cols { grid-template-columns: 1fr; }
  .site-foot-cols { gap: 18px; }
  .promo-card { justify-items: start; }
}
@media (max-width: 640px) {
  h1, .book-head h1 { font-size: 22px; }
  .facts strong { font-size: 26px; }
  .lang-menu summary span { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
  .sell-math { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.hero h1 { margin: 8px 0 10px; font-size: 44px; letter-spacing: -.04em; line-height: 1.05; }
.hero .lede { max-width: 460px; color: var(--muted); font-size: 16px; }
.float-stage { position: relative; height: 240px; }
.float-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 185, 66, .35), transparent 68%);
  filter: blur(2px);
}
.float-key, .float-gems, .float-tod {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .45));
}
.float-key { left: 2%; top: 36px; width: 112px; height: 112px; animation: float-key 5.4s ease-in-out infinite; }
.float-gems { left: 38%; top: 102px; width: 76px; height: 76px; animation: float-gems 6.2s ease-in-out infinite; }
.float-tod { right: 4%; top: 22px; width: 112px; height: 112px; animation: float-tod 5.8s ease-in-out infinite; }
@keyframes float-key {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
@keyframes float-gems {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes float-tod {
  0%, 100% { transform: translateY(0) rotate(7deg); }
  50% { transform: translateY(-14px) rotate(-4deg); }
}
.how-strip { margin-top: 28px; }
.how-strip h2 { margin: 0 0 14px; font-size: 22px; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.wallet-grid .form-actions { justify-content: flex-end; }
.wallet-url { margin: 16px 0; }
.wallet-url .form-actions { justify-content: flex-end; }
.wallet-sheet { margin-bottom: 22px; }
.qty-wrap { position: relative; display: block; }
.qty-wrap input { padding-right: 148px; -moz-appearance: textfield; appearance: textfield; }
.qty-wrap input::-webkit-outer-spin-button,
.qty-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-meta {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  pointer-events: none;
}
.qty-meta strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.inv-refresh {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--gold);
  pointer-events: auto;
}
.inv-refresh svg { width: 16px; height: 16px; }
.inv-refresh.is-wait { color: var(--muted); cursor: default; }
.inv-refresh:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px 8px;
  border-radius: 8px;
  background: #0f1115;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  z-index: 3;
}
.wallet-sheet.is-withdraw .inv-refresh { display: none; }
.wallet-sheet.is-withdraw .qty-wrap input { padding-right: 108px; }
.identity { margin-bottom: 16px; }
.bal-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.alert { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(240, 160, 160, .12); color: var(--down); }
.alert-ok { background: rgba(61, 220, 151, .12); color: var(--bid); }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-wait { background: rgba(244, 185, 66, .12); color: var(--gold); }
.how-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(244, 185, 66, .12);
  color: var(--gold);
}
.how-ico svg { width: 20px; height: 20px; }
.error-page { min-height: 46vh; display: grid; align-content: center; gap: 8px; }
.error-page strong { font-size: 72px; line-height: 1; letter-spacing: -.04em; color: var(--gold); }
.help a { color: var(--gold); }
.how-steps article {
  padding: 16px;
  border-radius: 16px;
  background: rgba(24, 27, 34, .72);
  border: 1px solid var(--line);
}
.how-steps h3 { margin: 0 0 6px; font-size: 15px; }
.how-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.check { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink); }
.logic { margin-bottom: 18px; }
.logic h2, .logic h3 { margin: 0 0 8px; }
.logic h3 { margin-top: 14px; color: var(--gold); }
.logic p, .logic li { color: var(--muted); line-height: 1.55; }
.logic ol { margin: 0; padding-left: 18px; }
.logic li + li { margin-top: 6px; }
.support { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.support-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1408;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.support-fab svg { width: 18px; height: 18px; }
.support-panel {
  width: min(320px, calc(100vw - 36px));
  padding: 14px;
  border-radius: 16px;
  background: #181b22;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.support-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.support-head button { border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
#support-log { display: grid; gap: 8px; max-height: 180px; overflow: auto; margin-bottom: 10px; }
#support-log p { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.support-panel textarea {
  width: 100%;
  min-height: 72px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #12141a;
  color: var(--ink);
  resize: vertical;
}
ul.support-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.support-log li { padding-top: 12px; border-top: 1px solid var(--line); }
ul.support-log span { display: block; color: var(--muted); font-size: 12px; }
ul.support-log p { margin: 6px 0 0; }
.active-trade { width: min(1120px, calc(100% - 40px)); margin: 14px auto 0; }
.active-trade-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #181b22;
  border: 1px solid var(--line);
}
.at-status { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.active-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 185, 66, .16); }
.at-item { display: flex; align-items: center; gap: 10px; }
.at-item img { width: 36px; height: 36px; object-fit: contain; }
.at-progress { margin-left: auto; width: 120px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.at-progress::after { content: ""; display: block; width: 40%; height: 100%; background: var(--gold); animation: at-bar 1.2s ease-in-out infinite; }
@keyframes at-bar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
.active-trade .btn-green { margin-left: auto; }
.login-gate { max-width: 460px; margin: 36px auto; text-align: center; padding: 32px 24px; }
.login-gate h1 { margin: 0 0 8px; }
.steam-login, .login-gate .btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 18px;
  border-radius: 12px;
  background: #171a21;
  color: #fff;
  border: 1px solid #3d4450;
  font-weight: 700;
}
.steam-login:hover { border-color: var(--gold); color: var(--gold); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; }
.pager a, .pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #181b22;
  color: var(--ink);
  cursor: pointer;
}
.pager a.is-active, .pager button.is-active { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.bal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.item-card { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 16px; }
.item-card img { width: 72px; height: 72px; object-fit: contain; }
.item-card h2 { margin: 0; font-size: 16px; }
.item-card dl { width: 100%; margin: 4px 0 0; display: grid; gap: 8px; }
.item-card dl div { display: grid; gap: 2px; }
.item-card dt { color: var(--muted); font-size: 12px; }
.item-card dd { margin: 0; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.steam-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bal-card { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; }
.bal-card img { grid-row: 1 / span 3; width: 42px; height: 42px; object-fit: contain; }
.bal-card span, .bal-card em { color: var(--muted); font-style: normal; font-size: 12px; }
.bal-card strong { font-size: 22px; }
.steam-have { margin: 0 0 10px; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { width: 42px; height: 24px; border-radius: 999px; background: #2a2e38; position: relative; flex: none; }
.toggle-ui::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
}
.toggle input:checked + .toggle-ui { background: #3ddc97; }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.sup-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sup-filters button {
  border: 1px solid var(--line);
  background: #181b22;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.sup-filters button[aria-pressed="true"] { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.sup-admin { display: grid; grid-template-columns: 280px 1fr; gap: 12px; min-height: 420px; }
.sup-list { display: grid; align-content: start; gap: 6px; max-height: 520px; overflow: auto; }
.sup-thread { display: grid; gap: 2px; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 8px; border-radius: 10px; cursor: pointer; }
.sup-thread span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-thread.is-active, .sup-thread:hover { background: rgba(244, 185, 66, .12); }
.sup-chat { display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; }
.sup-chat-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sup-msgs { overflow: auto; display: grid; align-content: start; gap: 8px; margin: 12px 0; }
.sup-msgs p { margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.sup-msgs .is-staff { background: rgba(61, 220, 151, .12); }
#sup-reply { display: flex; gap: 8px; }
#sup-reply input { flex: 1; }
td.empty { color: var(--muted); text-align: center; padding: 22px 12px; }
@media (max-width: 900px) {
  .bal-grid, .sup-admin { grid-template-columns: 1fr; }
  .active-trade-card { flex-wrap: wrap; }
}

.page-head { flex-wrap: wrap; }
.page-head > * { min-width: 0; }
.float-stage { overflow: hidden; }
.sheet, .tab-panel { max-width: 100%; -webkit-overflow-scrolling: touch; }
.market, .book-card, .hero, .promo-card, .admin-main, .wallet-sheet, .order-sheet { min-width: 0; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 36px; }
  .float-stage { height: 200px; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .bal-grid { grid-template-columns: 1fr 1fr; }
  .site-foot-top { grid-template-columns: 1fr; gap: 22px; }
  .site-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 32px; }
  .hero .lede { max-width: none; }
  .float-stage { height: 168px; }
  .float-key { left: 6%; top: 10px; width: 86px; height: 86px; }
  .float-gems { left: 40%; top: 40px; width: 60px; height: 60px; }
  .float-tod { right: 22%; top: 8px; width: 86px; height: 86px; }
  .top-stack { position: static; }
  .top { position: sticky; top: 0; z-index: 20; background: rgba(15, 17, 21, .94); }
  .scene img { display: none; }
  .market, .facts, .grid-2, .steps, .example, .profile, .login-grid, .report-grid, .order-hero, .how-flow, .how-examples, .how-top, .wallet-grid, .promo-card, .sup-admin, .dyn-grid, .bal-grid {
    grid-template-columns: 1fr;
  }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .sell-math { grid-template-columns: 1fr; }
  .promo-card { justify-items: start; }
  .promo-btn { justify-self: stretch; }
  .site-foot-cols { grid-template-columns: 1fr 1fr; gap: 18px; }
  .site-foot-brand p { max-width: none; }
  .at-status { min-width: 0; }
  .at-progress { width: 100%; margin-left: 0; }
  .active-trade .btn-green { margin-left: 0; }
  .login-copy, .login-box { padding: 20px; }
  .sup-chat, .sup-admin { min-height: 0; }
  #sup-reply { flex-wrap: wrap; }
  #sup-reply input { min-width: 0; }
}

@media (max-width: 640px) {
  .top-inner, .page, .admin-shell, .promo, .site-foot-panel, .active-trade {
    width: min(1120px, calc(100% - 24px));
  }
  .brand-logo { height: 24px; }
  h1, .book-head h1 { font-size: 22px; }
  .hero h1 { font-size: 28px; }
  .facts strong, .stat strong, .bal-card strong { font-size: 22px; }
  .how-steps, .site-foot-cols, .steps { grid-template-columns: 1fr; }
  .notice { padding: 8px 12px; font-size: 12px; line-height: 1.35; }
  .lang-menu summary span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .nav-user { max-width: 44px; padding: 0 4px; }
  .nav-user strong { display: none; }
  .sheet, .step, .identity, .book-card { padding: 12px; }
  .ladder { min-height: 180px; }
  .ladder-empty { min-height: 140px; }
  .error-page strong { font-size: 56px; }
  .support { right: 12px; bottom: 12px; }
  .support-fab span, .support-fab { font-size: 13px; }
}

@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  .top-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 8px 0;
  }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-logo { height: 22px; max-width: 100%; }
  .nav-bals { margin-left: auto; flex: none; gap: 4px; }
  .nav-bal { height: 34px; padding: 0 8px; gap: 4px; }
  .nav-bal strong { font-size: 12px; }
  .top-side { margin: 0; gap: 6px; flex: none; }
  #auth-slot { display: none; }
  .lang-menu summary, .nav-burger {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }
  .lang-menu summary span { display: none; }
  .nav-burger { display: grid; }
  .top-links { display: none; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, .55);
  }
  .nav-scrim[hidden] { display: none; }
  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    right: 12px;
    z-index: 45;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 18px;
    background: rgba(18, 20, 26, .98);
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    overflow: auto;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
  }
  body.nav-open .nav-drawer {
    transform: none;
    visibility: visible;
  }
  .nav-drawer-links { display: grid; gap: 4px; }
  .nav-drawer-links a {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
  }
  .nav-drawer-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
  .nav-drawer-links a.is-active,
  .nav-drawer-links a.is-active:hover { color: #1a1408; background: var(--gold); }
  .nav-drawer-foot {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .nav-drawer .nav-login { width: 100%; min-height: 42px; }
  .nav-drawer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
  }
  .nav-drawer-user img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
  .nav-drawer-user strong {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
  }
  .url-bar { align-items: flex-start; flex-direction: column; }
  .url-bar .btn-green { margin-left: auto; }
}
@media (max-width: 420px) {
  .item-pick, .choice, .bal-grid, .stats { grid-template-columns: 1fr; }
  .brand-logo { height: 22px; }
  .qty-wrap input, .wallet-sheet.is-withdraw .qty-wrap input { padding-right: 112px; }
  .qty-meta { font-size: 12px; }
  .float-stage { height: 140px; }
  .float-key { width: 72px; height: 72px; left: 4%; top: 8px; }
  .float-gems { width: 48px; height: 48px; left: 40%; top: 36px; }
  .float-tod { width: 72px; height: 72px; right: 20%; top: 6px; }
  .site-foot-panel { padding: 16px 14px 12px; }
  .foot-logo { height: 48px; }
}
@media (max-width: 760px) {
  .top .brand-word { display: none; }
  .top .brand-mark { display: block; height: 32px; width: 32px; }
}
