/* =============================================
   RESET & BASE
   ============================================= */

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

:root {
  --red:        #D42B1E;
  --red-dark:   #8C1C12;
  --yellow:     #F2C12E;
  --black:      #0E0E14;
  --surface-1:  #14141C;
  --surface-2:  #1C1C28;
  --surface-3:  #242433;
  --surface-4:  #2C2C40;
  --border:     rgba(141, 50, 168, 0.10);
  --border-med: rgba(141, 50, 168, 0.16);
  --text-1:     #F2ECFF;
  --text-2:     #A89BC4;
  --text-3:     #6B6284;

  --font-pixel: 'Press Start 2P', monospace;
  --font-cond:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;

  --t-normal:   #9A9A78;  --t-fire:     #E8722A;  --t-water:    #5A8EE8;
  --t-electric: #D4A81A;  --t-grass:    #5AB840;  --t-ice:      #7ACECE;
  --t-fighting: #B82820;  --t-poison:   #8830A0;  --t-ground:   #C8A840;
  --t-flying:   #8878E0;  --t-psychic:  #E04060;  --t-bug:      #90A010;
  --t-rock:     #A89028;  --t-ghost:    #584880;  --t-dragon:   #5018E0;
  --t-dark:     #504030;  --t-steel:    #9898B8;  --t-fairy:    #D070A8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── View system (matches Pokédex exactly) ─── */
.view            { display: none; }
.view.active-view{ display: block; }
.hidden          { display: none !important; }

/* =============================================
   NAV
   ============================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(14,14,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.wordmark {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.wordmark span { color: var(--red); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links a:hover  { color: var(--text-1); }
.nav-links a.active { color: var(--red); }

.nav-open {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--red);
  color: white;
  padding: 8px 22px;
  border: none;
  border-radius: 3px;
  flex-shrink: 0;
  transition: background 0.15s;
  box-shadow: 0 3px 0 var(--red-dark);
  cursor: pointer;
}
.nav-open:hover { background: #E03020; }

/* =============================================
   LIST VIEW — HEADER
   #listView carries the 60px offset for the fixed
   nav. .list-header has NO padding-top — putting
   padding-top on the sticky element causes its
   background color to render visibly between the
   nav and the title, creating the blank gap.
   ============================================= */

#listView {
  padding-top: 60px;
}

.list-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 100;
}

.list-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.list-title-block { flex-shrink: 0; }

.page-kicker {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.page-title {
  font-family: var(--font-cond);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--text-1);
}

.list-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-3);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 36px 9px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s;
}
.search-input::placeholder { color: var(--text-3); }
.search-input:focus         { border-color: var(--border-med); }

.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  display: none;
}
.search-clear.visible { display: block; }

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.filter-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 32px 9px 14px;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235A5A72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-select:focus { border-color: var(--border-med); color: var(--text-1); }

#genFilter {
  min-width: 148px;
  max-width: 220px;
}

.results-count {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  white-space: nowrap;
  margin-left: auto;
}

/* =============================================
   MOVE TABLE  (same structural patterns as dex-table)
   ============================================= */

.table-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 48px;
  min-height: 60vh;
}

.move-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Column widths */
.col-name   { width: auto; min-width: 180px; }
.col-type   { width: 110px; }
.col-cat    { width: 100px; }
.col-pwr    { width: 70px;  text-align: right; }
.col-acc    { width: 70px;  text-align: right; }
.col-pp     { width: 56px;  text-align: right; }
.col-effect { width: auto;  min-width: 180px; }

.move-table thead tr {
  border-bottom: 2px solid var(--border-med);
}

.move-table th {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
  user-select: none;
}

.move-table th.col-pwr,
.move-table th.col-acc,
.move-table th.col-pp { text-align: right; }

/* Sortable headers */
.th-sort {
  cursor: pointer;
  transition: color 0.15s;
}
.th-sort:hover { color: var(--text-1); }

.sort-icon {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.3;
  font-size: 8px;
}
.sort-icon.active-asc,
.sort-icon.active-desc { opacity: 1; color: var(--yellow); }

/* Table rows */
.move-table tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.move-table tbody tr:hover {
  background: var(--surface-2);
}
.move-table tbody tr:hover .row-move-name {
  color: var(--red);
}

.move-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

/* Move name cell */
.row-move-name {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-1);
  transition: color 0.1s;
}

/* Stat cells */
.row-stat {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-2);
  text-align: right;
}
.row-stat.dash { color: var(--text-3); }

/* Effect preview */
.row-effect {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ── Type tags ── */
.type-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 5.5px;
  letter-spacing: 0.4px;
  padding: 4px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  color: white;
}
.type-tag.normal   { background: var(--t-normal); }
.type-tag.fire     { background: var(--t-fire); }
.type-tag.water    { background: var(--t-water); }
.type-tag.electric { background: var(--t-electric); }
.type-tag.grass    { background: var(--t-grass); }
.type-tag.ice      { background: var(--t-ice); color: #0E0E14; }
.type-tag.fighting { background: var(--t-fighting); }
.type-tag.poison   { background: var(--t-poison); }
.type-tag.ground   { background: var(--t-ground); color: #0E0E14; }
.type-tag.flying   { background: var(--t-flying); }
.type-tag.psychic  { background: var(--t-psychic); }
.type-tag.bug      { background: var(--t-bug); }
.type-tag.rock     { background: var(--t-rock); }
.type-tag.ghost    { background: var(--t-ghost); }
.type-tag.dragon   { background: var(--t-dragon); }
.type-tag.dark     { background: var(--t-dark); }
.type-tag.steel    { background: var(--t-steel); color: #0E0E14; }
.type-tag.fairy    { background: var(--t-fairy); }

/* ── Category badges ── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-pixel);
  font-size: 5px;
  letter-spacing: 0.4px;
  padding: 4px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.cat-badge.physical { background: rgba(196,72,32,0.20); color: #E06040; border: 1px solid rgba(196,72,32,0.25); }
.cat-badge.special  { background: rgba(72,96,184,0.20); color: #8090D8; border: 1px solid rgba(72,96,184,0.25); }
.cat-badge.status   { background: rgba(96,96,128,0.20); color: #9898B0; border: 1px solid rgba(96,96,128,0.25); }

/* =============================================
   LOADERS / EMPTY STATES
   ============================================= */

.table-loader {
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.loader-rows { display: flex; flex-direction: column; gap: 1px; }

.loader-row {
  height: 52px;
  background: var(--surface-2);
  border-radius: 4px;
  animation: shimmer 1.4s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.08s);
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

.bottom-loader {
  display: flex;
  justify-content: center;
  padding: 28px 0;
}

.bottom-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface-3);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.no-results-icon { font-family: var(--font-pixel); font-size: 32px; color: var(--text-3); display: block; }
.no-results-text { font-family: var(--font-cond); font-size: 24px; font-weight: 900; text-transform: uppercase; color: var(--text-2); }
.no-results-sub  { font-size: 14px; color: var(--text-3); }

/* =============================================
   DETAIL VIEW  (identical structure to Pokédex)
   ============================================= */

#detailView { padding-top: 60px; }

.detail-nav {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(14,14,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.15s;
  letter-spacing: 0.3px;
}
.back-btn:hover { color: var(--text-1); }

.detail-nav-arrows { display: flex; gap: 8px; }

.nav-arrow {
  font-family: var(--font-pixel);
  font-size: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.nav-arrow:hover    { background: var(--surface-3); color: var(--text-1); border-color: var(--border-med); }
.nav-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* ── Detail version bar (game text selector) ── */
.detail-version-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.detail-version-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.detail-game-version {
  font-family: var(--font-body);
  font-size: 13px;
  min-width: 180px;
  max-width: min(100%, 320px);
  background: var(--surface-3);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.detail-game-version:focus { border-color: var(--border-med); }

/* ── Detail hero ── */
.detail-hero {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px 40px;
  position: relative;
  overflow: hidden;
  --type-color: var(--t-normal);
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.detail-hero::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--type-color);
  opacity: 0.07;
  filter: blur(40px);
  pointer-events: none;
}

.detail-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-gen-badge {
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 5px 10px;
  background: var(--surface-3);
  border: 1px solid var(--border-med);
  border-radius: 3px;
  color: var(--text-3);
  letter-spacing: 0.5px;
}

.detail-move-name {
  font-family: var(--font-cond);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 0.95;
  color: var(--text-1);
  margin-bottom: 14px;
}

.detail-flavor {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
  max-width: 600px;
}

/* Classified description (Z-Move / Max Move etc.) — not real in-game text */
.detail-flavor-classified {
  font-style: normal;
  color: var(--text-3);
  font-size: 13px;
}

/* ── In-game stat block ── */
.detail-stat-block {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.detail-stat-cell {
  background: var(--surface-1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dsc-label {
  font-family: var(--font-pixel);
  font-size: 5.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.dsc-value {
  font-family: var(--font-cond);
  font-size: 32px;
  font-weight: 900;
  color: var(--text-1);
  line-height: 1;
}
.dsc-value.dash     { color: var(--text-3); font-size: 24px; }
.dsc-value.prio-pos { color: #5AB840; }
.dsc-value.prio-neg { color: #E04060; }

/* ── Detail body ── */
.detail-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.detail-main  { display: flex; flex-direction: column; gap: 36px; }
.detail-aside { display: flex; flex-direction: column; gap: 28px; }

.detail-section { display: flex; flex-direction: column; gap: 12px; }

.detail-section-title {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.detail-effect-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

.detail-target {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Stat changes */
.stat-change-list { display: flex; flex-direction: column; gap: 8px; }

.stat-change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--text-2);
}

.stat-change-val {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 3px;
}
.stat-change-val.pos { background: rgba(90,184,64,0.15); color: #5AB840; }
.stat-change-val.neg { background: rgba(224,64,96,0.15); color: #E04060; }

/* TM/HM */
.machine-list { display: flex; flex-direction: column; gap: 6px; }

.machine-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}

.machine-num {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--yellow);
  letter-spacing: 0.3px;
  flex-shrink: 0;
  min-width: 44px;
}

.machine-games { color: var(--text-3); line-height: 1.5; }

/* Learners */
.learner-method-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.method-tab {
  font-family: var(--font-pixel);
  font-size: 5.5px;
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.method-tab:hover  { color: var(--text-1); border-color: var(--border-med); }
.method-tab.active { background: var(--surface-3); color: var(--text-1); border-color: var(--border-med); }

.learner-count {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  margin-bottom: 10px;
}

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

.learner-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-decoration: none;
}
.learner-cell:hover { background: var(--surface-3); border-color: var(--border); }

.learner-sprite {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.learner-name {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.learner-level {
  font-family: var(--font-pixel);
  font-size: 5px;
  color: var(--text-3);
}

/* Detail loader */
.detail-loader {
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.detail-loader-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--red);
  animation: spin 0.8s linear infinite;
}

.detail-loader-inner p {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-3);
  letter-spacing: 1px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-aside { order: -1; }
}

@media (max-width: 768px) {
  .detail-stat-block { grid-template-columns: repeat(3, 1fr); }
  .col-effect        { display: none; }
}

@media (max-width: 600px) {
  .nav-inner            { padding: 0 20px; gap: 16px; }
  .nav-links            { gap: 16px; }
  .nav-links a          { font-size: 13px; }
  .list-header-inner    { padding: 14px 20px; }
  .table-wrap           { padding: 0 12px 48px; }
  .detail-nav           { padding: 0 20px; }
  .detail-hero          { padding: 32px 20px 28px; }
  .detail-stat-block    { grid-template-columns: repeat(3, 1fr); padding: 0; }
  .detail-body          { padding: 28px 20px 48px; }
  .detail-move-name     { font-size: 40px; }
}

/* === Portal nav additions === */
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-back {
  font-family: var(--font-pixel); font-size: 6px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-3); text-decoration: none;
  display: flex; align-items: center; gap: 6px; flex-shrink: 0; transition: color 0.15s;
}
.nav-back:hover { color: var(--red); }
.nav-divider { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }
.nav-tag {
  font-family: var(--font-pixel); font-size: 6px; letter-spacing: 1px;
  color: var(--red); background: rgba(141, 50, 168, 0.1);
  border: 1px solid rgba(141, 50, 168, 0.2); padding: 4px 9px; border-radius: 2px; flex-shrink: 0;
}
.nav-inner { gap: 28px !important; }
@media (max-width: 640px) {
  .nav-inner { gap: 16px !important; }
  .nav-tag { display: none; }
}