/* ============================================================
   TopOne.World — PC Gaming Directory
   Layout: top header + hero + horizontal category bar + content
   Style: dark gaming / neon (v6)
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-soft: #10162a;
  --card: #121a30;
  --card-hover: #16203c;
  --border: rgba(148, 163, 216, .14);
  --border-hover: rgba(96, 165, 250, .55);
  --text: #e9edfb;
  --text-dim: #9aa7c7;
  --text-faint: #64719a;
  --brand: #4f8ef7;
  --brand-dark: #2563eb;
  --neon-1: #22d3ee;
  --neon-2: #818cf8;
  --neon-3: #c084fc;
  --hot: #f87171;
  --pick: #c084fc;
  --new: #4ade80;
  --f2p: #38bdf8;
  --radius: 12px;
  --header-h: 64px;
  --catbar-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--catbar-h) + 16px); }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* ambient neon glows fixed to viewport */
  background-image:
    radial-gradient(900px 480px at 18% -8%, rgba(79, 142, 247, .16), transparent 60%),
    radial-gradient(800px 420px at 85% -5%, rgba(129, 140, 248, .13), transparent 60%),
    radial-gradient(700px 500px at 50% 118%, rgba(34, 211, 238, .07), transparent 65%);
  background-attachment: fixed;
}

a { color: inherit; }

h1, h2, h3, h4 { font-family: 'Chakra Petch', 'Space Grotesk', 'Inter', sans-serif; letter-spacing: .2px; }

::selection { background: rgba(79, 142, 247, .35); color: #fff; }

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 14, 26, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: .5px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-1), var(--brand) 55%, var(--neon-2));
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 18px rgba(79, 142, 247, .55), inset 0 0 8px rgba(255, 255, 255, .18);
}

.logo .tld {
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2), var(--neon-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-wrap .s-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: .55;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 9.5px 14px 9.5px 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 48, .8);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.search-wrap input::placeholder { color: var(--text-faint); }

.search-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, .18), 0 0 16px rgba(79, 142, 247, .25);
}

/* ============ Hero ============ */

.hero {
  text-align: center;
  padding: 64px 28px 30px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

/* faint grid pattern behind hero */
.hero::before {
  content: '';
  position: absolute;
  inset: -20px 0 0;
  background-image:
    linear-gradient(rgba(148, 163, 216, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 216, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .eyebrow {
  display: inline-block;
  position: relative;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-1);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .3);
  padding: 6px 16px;
  border-radius: 999px;
  text-shadow: 0 0 14px rgba(34, 211, 238, .6);
}

.hero h1 {
  position: relative;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  margin: 16px 0 12px;
  letter-spacing: .5px;
  line-height: 1.12;
  color: var(--text);
  text-transform: uppercase;
}

.hero h1 .grad {
  background: linear-gradient(92deg, #67e8f9 0%, #60a5fa 45%, #a78bfa 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(96, 165, 250, .35));
}

.hero .sub {
  position: relative;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 640px;
  margin: 0 auto;
}

/* ============ Category bar ============ */

.catbar {
  position: sticky;
  top: var(--header-h);
  z-index: 80;
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
}

.catbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6.5px 15px;
  background: rgba(18, 26, 48, .75);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}

.cat-chip .ci { font-size: 14.5px; }

.cat-chip:hover {
  background: rgba(79, 142, 247, .12);
  border-color: rgba(79, 142, 247, .5);
  color: var(--text);
  transform: translateY(-1px);
}

.cat-chip.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(129, 140, 248, .22));
  border-color: rgba(129, 140, 248, .65);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(99, 102, 241, .35);
}

/* ============ Price filter bar ============ */

.filterbar {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filterbar .flabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.fchip {
  border: 1px solid var(--border);
  background: rgba(18, 26, 48, .75);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .4px;
  padding: 5.5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s;
}

.fchip:hover {
  border-color: rgba(79, 142, 247, .5);
  color: var(--text);
}

.fchip.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(129, 140, 248, .22));
  border-color: rgba(129, 140, 248, .65);
  color: #fff;
  box-shadow: 0 0 14px rgba(99, 102, 241, .3);
}

.fchip .fcount {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 4px;
}

.fchip.active .fcount { color: rgba(255, 255, 255, .75); }

/* ============ Search status bar ============ */

#searchStatus {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 28px;
  display: none;
  align-items: center;
  gap: 12px;
}

#searchStatus.on {
  display: flex;
  background: rgba(79, 142, 247, .1);
  border: 1px solid rgba(79, 142, 247, .35);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-dim);
}

#searchStatus .count b { color: var(--neon-1); }

#searchStatus #clearSearch {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}

#searchStatus #clearSearch:hover { color: var(--hot); border-color: var(--hot); }

/* ============ Main content ============ */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 30px;
}

.category {
  padding: 28px 0 8px;
  scroll-margin-top: calc(var(--header-h) + var(--catbar-h) + 16px);
}

.category + .category { border-top: 1px solid var(--border); margin-top: 8px; }

.cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(79, 142, 247, .16), rgba(129, 140, 248, .1));
  border: 1px solid rgba(99, 102, 241, .35);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(79, 142, 247, .18);
}

.cat-title h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.cat-title h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
  box-shadow: 0 0 8px rgba(129, 140, 248, .6);
}

.cat-title p { color: var(--text-dim); font-size: 13.5px; }

.cat-note {
  margin: -4px 0 16px 52px;
  padding: 3px 0 3px 14px;
  border-left: 2px solid rgba(129, 140, 248, .55);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
}

.cat-note .cat-more {
  color: var(--neon-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.cat-note .cat-more:hover { color: var(--neon-1); }

.sort {
  margin-left: auto;
  display: flex;
  gap: 2px;
  background: rgba(18, 26, 48, .75);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}

.sort-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .2s;
}

.sort-btn:hover { color: var(--neon-1); }

.sort-btn.active {
  background: rgba(79, 142, 247, .18);
  color: #93c5fd;
  font-weight: 600;
}

/* ============ Card grid ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(20, 28, 52, .92), rgba(15, 21, 40, .92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}

/* top accent line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-1), var(--neon-2), var(--neon-3));
  opacity: 0;
  transition: opacity .2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 32px rgba(4, 8, 20, .6), 0 0 20px rgba(79, 142, 247, .16);
  background: linear-gradient(160deg, rgba(24, 33, 62, .95), rgba(17, 24, 46, .95));
}

.card:hover::before { opacity: 1; }

.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: 'Chakra Petch', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .5px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  background: var(--bg-soft);
  flex-shrink: 0;
}

.card-icon.has-favicon {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(148, 163, 216, .18);
}

.card-icon img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: block;
  -webkit-user-drag: none;
}

.card-head h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.badge {
  display: inline-block;
  vertical-align: 1px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 5px;
  margin-left: 2px;
}

.b-hot  { color: #fca5a5; background: rgba(220, 38, 38, .16); border: 1px solid rgba(248, 113, 113, .35); }
.b-pick { color: #d8b4fe; background: rgba(147, 51, 234, .16); border: 1px solid rgba(192, 132, 252, .35); }
.b-new  { color: #86efac; background: rgba(22, 163, 74, .16); border: 1px solid rgba(74, 222, 128, .35); }
.b-f2p  { color: #7dd3fc; background: rgba(2, 132, 199, .16); border: 1px solid rgba(56, 189, 248, .35); }

.card p { font-size: 12.5px; color: var(--text-dim); flex: 1; }

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.price {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1;
}

.p-f2p  { color: #86efac; background: rgba(22, 163, 74, .18); border: 1px solid rgba(74, 222, 128, .4); }
.p-free { color: #7dd3fc; background: rgba(2, 132, 199, .18); border: 1px solid rgba(56, 189, 248, .4); }
.p-paid { color: #aab6d4; background: rgba(148, 163, 216, .1); border: 1px solid rgba(148, 163, 216, .25); }
.p-sub  { color: #d8b4fe; background: rgba(147, 51, 234, .18); border: 1px solid rgba(192, 132, 252, .4); }

.visit {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color .18s;
}

.arrow { color: var(--text-faint); transition: all .18s; }

.card:hover .visit,
.card:hover .arrow { color: var(--neon-1); }

.card:hover .arrow { transform: translateX(3px); }

/* ============ Also consider ============ */

.also {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(148, 163, 216, .18);
  font-size: 11.5px;
  color: var(--text-faint);
}

.also-link {
  background: none;
  border: none;
  padding: 1px 2px;
  margin: 0;
  color: var(--neon-2);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color .15s;
}

.also-link:hover { color: var(--neon-1); }

/* ============ Category pages ============ */

.crumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.crumb a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.crumb a:hover { color: var(--neon-1); }
.crumb .sep { margin: 0 9px; }
.crumb b { color: var(--neon-1); font-weight: 600; }

.hero-cat { padding: 20px 28px 24px; }

.hero-cat h1 { font-size: clamp(26px, 3.6vw, 38px); }

.cat-note-long {
  margin: -4px 0 18px 52px;
  max-width: 860px;
}

.cat-note-long p {
  padding: 3px 0 3px 14px;
  border-left: 2px solid rgba(129, 140, 248, .55);
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 0 9px;
}

.cat-note-long p:last-child { margin-bottom: 0; }

a.also-cat {
  color: var(--neon-2);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color .15s;
}

a.also-cat:hover { color: var(--neon-1); }

/* ============ Explore other categories ============ */

.xcat {
  max-width: 1280px;
  margin: 26px auto 44px;
  padding: 0 28px;
}

.xcat h2 {
  font-family: 'Chakra Petch', Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.xcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}

.xcat-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 26, 48, .5);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.xcat-card:hover {
  border-color: rgba(34, 211, 238, .5);
  box-shadow: 0 0 18px rgba(34, 211, 238, .14);
  transform: translateY(-2px);
}

.xcat-card .ci { font-size: 19px; line-height: 1; }
.xcat-card .xn { color: var(--text); font-weight: 600; font-size: 13px; line-height: 1.3; }
.xcat-card em { color: var(--text-faint); font-size: 11px; font-style: normal; }

@keyframes cardFlash {
  0%, 100% { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
  20%, 60% { box-shadow: 0 0 0 2px rgba(34, 211, 238, .7), 0 0 28px rgba(34, 211, 238, .45); border-color: rgba(34, 211, 238, .8); }
}

.card.flash { animation: cardFlash 1.8s ease; }

/* ============ Footer ============ */

footer {
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 26, .6);
}

.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.foot-col .logo { margin-bottom: 12px; font-size: 19px; }
.foot-col .logo-tag { font-size: 10px; }

.foot-col p { color: var(--text-dim); font-size: 13.5px; margin-bottom: 12px; }

.foot-col .disclaimer { color: var(--text-faint); font-size: 12px; }

.foot-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text);
  margin-bottom: 12px;
}

.foot-col a {
  display: block;
  color: var(--text-dim);
  font-size: 13.5px;
  text-decoration: none;
  padding: 3.5px 0;
  transition: color .15s;
}

.foot-col a:hover { color: var(--neon-1); }

.foot-col h4.foot-contact { margin-top: 20px; }

.foot-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 16px 28px;
}

/* ============ Back to top ============ */

#backTop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 48, .9);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(4, 8, 20, .5);
  transition: opacity .25s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
  z-index: 99;
}

#backTop.show { opacity: 1; pointer-events: auto; }

#backTop:hover {
  border-color: rgba(79, 142, 247, .6);
  color: var(--neon-1);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(79, 142, 247, .3);
}

/* ============ Scrollbar ============ */

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1e2947; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2a3a66; }

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .topbar { padding: 0 20px; }
  main { padding: 0 20px 30px; }
  .hero { padding: 48px 20px 24px; }
  .catbar { padding: 10px 20px; }
  .foot-inner { padding: 36px 20px 18px; }
}

@media (max-width: 760px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar .search-wrap { display: none; }
  main { padding: 0 16px 30px; }
  .hero { padding: 38px 16px 18px; }
  .catbar { padding: 10px 16px; }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 18px; }
  .cat-chip { font-size: 12.5px; padding: 5.5px 12px; }
  .cat-note { margin-left: 0; }
  .cat-note-long { margin-left: 0; }
  .crumb { padding: 14px 16px 0; }
  .hero-cat { padding: 14px 16px 16px; }
  .xcat { padding: 0 16px; margin-bottom: 34px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  #backTop { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 14px; }
}

/* ============ Mobile bottom bar ============ */

.mobilebar { display: none; }

@media (max-width: 760px) {
  .mobilebar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 130;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 14, 26, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }

  .mb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
    transition: color .15s;
  }

  .mb-item:active { color: var(--neon-1); }

  .mb-ico { font-size: 17px; line-height: 1; }

  .mb-lb {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
  }
}

/* mobile search panel */
.mb-search {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 125;
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 14, 26, .98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.mb-search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(79, 142, 247, .5);
  background: rgba(18, 26, 48, .9);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-shadow: 0 0 16px rgba(79, 142, 247, .2);
}

.mb-search input::placeholder { color: var(--text-faint); }

.mb-search-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  padding: 0 14px;
  cursor: pointer;
  font-family: inherit;
}

/* mobile category drawer */
.mb-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 128;
  max-height: 60vh;
  overflow-y: auto;
  background: rgba(13, 18, 34, .98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(129, 140, 248, .35);
  border-radius: 18px 18px 0 0;
  padding: 6px 16px 16px;
  box-shadow: 0 -12px 40px rgba(4, 8, 20, .7);
}

.mb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mb-drawer-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}

.mb-drawer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mb-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(18, 26, 48, .8);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color .15s, color .15s;
}

.mb-cat .ci { font-size: 16px; }

.mb-cat:active, .mb-cat:hover { border-color: rgba(79, 142, 247, .5); color: var(--neon-1); }

@media (min-width: 761px) {
  .mb-search, .mb-drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, #backTop, .cat-chip { transition: none; }
}
