/* ValoLineups Pro web — HUD theme mirroring theme/colors.ts */
:root {
  --bg: #0A141E;
  --bg-elevated: #111E2B;
  --surface: #1B2733;
  --surface-alt: #22323F;
  --border: #2B3A47;
  --border-strong: #3A4C5A;
  --primary: #FF4655;
  --primary-dim: #BD3944;
  --primary-glow: rgba(255, 70, 85, 0.18);
  --text: #ECE8E1;
  --text-muted: #8B978F;
  --text-faint: #5A6872;
  --teal: #63F7FF;
  --teal-dim: rgba(99, 247, 255, 0.14);
  --amber: #FFBA20;
  --duelist: #FF4655;
  --initiator: #F4C95D;
  --controller: #7B86F0;
  --sentinel: #4FC1A6;
  --display: "Chakra Petch", sans-serif;
  --mono: "Share Tech Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.mono { font-family: var(--mono); letter-spacing: 1px; }
.faint { color: var(--text-faint); }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: rgba(17, 30, 43, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  object-fit: cover; display: block;
}
.brand-text { font-family: var(--display); font-weight: 700; letter-spacing: 1px; font-size: 15px; }
.brand-text em { color: var(--primary); font-style: normal; }
.nav { display: flex; gap: 6px; }
.nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--primary); background: var(--primary-glow); }

/* ── Mobile nav: hamburger + left drawer ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 34px; height: 34px; border-radius: 8px; flex: none; margin-right: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-toggle:hover { background: var(--surface); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(6, 11, 16, 0.6); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  width: 82vw; max-width: 300px; background: var(--bg-elevated);
  border-right: 1px solid var(--border); box-shadow: 20px 0 40px rgba(0,0,0,0.4);
  transform: translateX(-100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 14px 30px; overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.nav-drawer-close { width: 32px; height: 32px; border-radius: 8px; font-size: 16px; color: var(--text-muted); }
.nav-drawer-close:hover { background: var(--surface); color: var(--text); }
.nav-drawer.nav a {
  display: block; width: 100%; padding: 14px 12px; font-size: 13px; border-radius: 10px;
}
body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .topbar .nav { display: none; }
}

/* ── Layout ── */
#app { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px 22px 60px; }
.loading { display: grid; place-items: center; gap: 18px; padding: 120px 0; color: var(--text-muted); }
.loading-spin {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hud-title { font-family: var(--display); font-weight: 700; letter-spacing: 1px; }
.hud-title em { color: var(--primary); font-style: normal; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head .sub { font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: 1px; }

/* ── Breadcrumb ── */
.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  padding: 10px 0 18px; color: var(--text-muted);
}
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--text-faint); }
.crumbs .here { color: var(--primary); }

/* ── Chips ── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.active.teal { background: var(--teal); border-color: var(--teal); color: #06202a; }
.chip.active.amber { background: var(--amber); border-color: var(--amber); color: #2a1d00; }

/* ── Search input ── */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0 14px; height: 46px; margin-bottom: 18px;
}
.searchbar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 15px;
}
.searchbar input::placeholder { color: var(--text-faint); }
.searchbar .icon { color: var(--text-muted); }

/* ── Stats row ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; text-align: center;
}
.stat b { font-family: var(--display); font-size: 26px; display: block; }
.stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); }

/* ── Agent grid ── */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.agent-card {
  position: relative; height: 128px; border-radius: 14px; overflow: hidden;
  background: var(--surface); border-left: 3px solid var(--border-strong);
  display: flex; align-items: center; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.agent-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.agent-card.disabled { opacity: 0.45; pointer-events: none; }
.agent-card img {
  position: absolute; right: 0; top: 0; height: 100%; width: 45%;
  object-fit: cover; object-position: top;
}
.agent-card .info { position: relative; z-index: 1; padding: 0 45% 0 16px; }
.agent-card .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 7px; }
.agent-card .rank { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--teal); }
.agent-card .rank.top { color: var(--amber); }
.agent-card .role {
  font-family: var(--mono); font-size: 8px; letter-spacing: 1px;
  padding: 2px 7px; border: 1px solid; border-radius: 6px;
  background: rgba(8, 14, 20, 0.5);
}
.agent-card .name {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: 1px; color: #fff; white-space: nowrap;
}
.agent-card .count { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; margin-top: 5px; }

/* ── Map banners ── */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.map-card {
  position: relative; height: 140px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); display: grid; place-items: center; cursor: pointer;
  transition: transform 0.15s;
}
.map-card:hover { transform: translateY(-2px); }
.map-card.disabled { opacity: 0.45; pointer-events: none; }
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-card::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 30, 0.42); }
.map-card .name {
  position: relative; z-index: 1; font-family: var(--display); font-weight: 700;
  font-size: 26px; letter-spacing: 3px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}
.map-card .badge {
  position: absolute; z-index: 1; bottom: 10px; right: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  background: rgba(8, 14, 20, 0.74); padding: 4px 8px; border-radius: 8px;
}
.section-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--text-muted); margin: 26px 0 12px;
}

/* ── Side / site tiles ── */
.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.big-tile {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--border); padding: 30px 22px; cursor: pointer;
  background: var(--surface); text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}
.big-tile:hover { transform: translateY(-2px); }
.big-tile.disabled { opacity: 0.4; pointer-events: none; }
.big-tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text-muted); }
.big-tile .v { font-family: var(--display); font-weight: 700; font-size: 38px; margin: 6px 0; }
.big-tile .c { font-family: var(--mono); font-size: 11px; color: var(--text); }

/* ── Lineup rows ── */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: 10px; border-left: 3px solid var(--primary);
  padding: 12px 16px; cursor: pointer; transition: background 0.15s;
}
.row:hover { background: var(--surface-alt); }
.row .thumbwrap { position: relative; flex: none; }
.row .thumb {
  width: 74px; height: 74px; border-radius: 8px; object-fit: cover;
  background: var(--surface-alt); display: block;
}
.row .ability-badge {
  position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong);
  display: grid; place-items: center;
}
.row .ability-badge img { width: 16px; height: 16px; }
.row .body { flex: 1; min-width: 0; }
.row .title { font-weight: 700; font-size: 15px; }
.row .sub { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.row .heart { font-size: 20px; color: var(--text-muted); padding: 6px; }
.row .heart.on { color: var(--primary); }
.row .chev { color: var(--primary); font-size: 24px; font-weight: 300; }
.empty { text-align: center; color: var(--text-muted); padding: 60px 20px; line-height: 1.6; }
.empty .glyph { font-size: 44px; color: var(--text-faint); display: block; margin-bottom: 10px; }

/* ── Viewer ── */
.viewer { max-width: 900px; margin: 0 auto; }
.viewer-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.viewer-head .title { font-family: var(--display); font-weight: 700; font-size: 20px; flex: 1; min-width: 200px; }
.viewer-head .ability { font-family: var(--mono); color: var(--primary); font-size: 13px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center; font-size: 16px;
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn.on { color: var(--primary); border-color: var(--primary); }
.route {
  font-family: var(--mono); color: var(--teal); font-size: 13px;
  background: var(--teal-dim); border-radius: 10px; padding: 8px 14px;
  margin-bottom: 14px; display: inline-block;
}
/* Fixed 16:9 stage — Valorant's native aspect. Sources captured on stretched
   4:3 resolutions get object-fit:fill via JS, which un-stretches them. */
.stage {
  position: relative; background: #000; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16 / 9; max-height: 78vh;
}
.stage img { width: 100%; height: 100%; display: block; object-fit: contain; }
.stage .arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(8, 14, 20, 0.65); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size: 26px; font-weight: 700;
  display: grid; place-items: center;
}
.stage .arrow:hover { background: rgba(8, 14, 20, 0.9); }
.stage .arrow.l { left: 12px; }
.stage .arrow.r { right: 12px; }
.stage-foot { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 0 4px; flex-wrap: wrap; }
.role-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--teal); background: var(--teal-dim); border-radius: 8px; padding: 5px 12px;
}
.dots { display: flex; gap: 6px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: var(--text-faint); transition: all 0.2s; cursor: pointer; }
.dot.on { width: 20px; background: var(--primary); }
.counter { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
.viewer-cta {
  margin-top: 26px; padding: 22px; border-radius: 14px; text-align: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.viewer-cta h3 { font-family: var(--display); letter-spacing: 1px; margin-bottom: 6px; }
.viewer-cta p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

/* ── Store badges ── */
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 18px; color: var(--text-muted); background: var(--surface);
  transition: all 0.15s;
}
.badge b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: 1px; color: var(--text); margin-top: 2px; }
.badge:hover { border-color: var(--primary); }

/* ── Home hero ── */
.hero {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); padding: 60px 34px; margin-bottom: 8px;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 30, 0.8); }
.hero > div { position: relative; z-index: 1; max-width: 560px; }
.hero .tag { font-family: var(--mono); color: var(--primary); font-size: 12px; letter-spacing: 1.5px; }
.hero h1 { font-family: var(--display); font-size: 40px; letter-spacing: 0.5px; line-height: 1.1; margin: 12px 0; color: #fff; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { color: var(--text-muted); line-height: 1.6; margin-bottom: 22px; }
.cta {
  display: inline-block; background: var(--primary); color: #fff;
  font-family: var(--display); font-weight: 700; letter-spacing: 1.5px;
  padding: 15px 30px; border-radius: 12px; font-size: 15px;
  transition: filter 0.15s;
}
.cta:hover { filter: brightness(1.1); }

/* ── LOTD card ── */
.lotd {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); height: 170px; display: flex; align-items: flex-end;
  margin-top: 22px;
}
.lotd img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lotd::after { content: ""; position: absolute; inset: 0; background: rgba(10, 20, 30, 0.45); }
.lotd .body { position: relative; z-index: 1; width: 100%; padding: 14px 16px; background: rgba(10, 20, 30, 0.62); }
.lotd .k { font-family: var(--mono); color: var(--amber); font-size: 11px; letter-spacing: 1px; }
.lotd .t { font-family: var(--display); font-weight: 700; font-size: 18px; color: #fff; margin-top: 4px; }
.lotd .s { font-family: var(--mono); color: rgba(217, 227, 242, 0.75); font-size: 11px; margin-top: 3px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border); background: var(--bg-elevated);
  padding: 30px 22px 40px; text-align: center; display: grid; gap: 16px;
}
.footer .disclaimer { color: var(--text-faint); font-size: 11px; max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ── Pagination ── */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 22px 0 6px; flex-wrap: wrap;
}
.pg-btn {
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 1px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 18px; transition: all 0.15s;
}
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-btn:disabled { opacity: 0.35; cursor: default; }
.pg-info { font-size: 11px; color: var(--text-muted); }

/* ── Select filters ── */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; max-width: 240px; }
.field > span { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); }
.field select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B978F'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; padding: 12px 38px 12px 14px;
  cursor: pointer; outline: none; width: 100%;
}
.field select:focus { border-color: var(--primary); }
.clear-btn {
  align-self: flex-end;
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 1px;
  color: var(--primary); background: var(--primary-glow);
  border: 1px solid var(--primary-dim); border-radius: 10px;
  padding: 12px 16px; transition: all 0.15s;
}
.clear-btn:hover { background: var(--primary); color: #fff; }

/* ── Contact page ── */
.contact { max-width: 640px; margin: 0 auto; }
.contact-intro { color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.flabel {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 1.5px; color: var(--text-muted); margin: 0 0 10px;
}
.contact textarea, .contact input[type="text"] {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; color: var(--text); font-size: 15px; font-family: inherit;
  padding: 14px; outline: none; resize: vertical;
}
.contact textarea:focus, .contact input[type="text"]:focus { border-color: var(--primary); }
.contact input[type="text"] { height: 50px; }
.contact .cta:disabled { opacity: 0.6; }

/* ── Profile ── */
.profile-id {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; margin-bottom: 22px;
}
.profile-id .pfp {
  width: 84px; height: 84px; border-radius: 20px; object-fit: cover;
  border: 2px solid var(--teal);
}
.callsign { display: flex; align-items: center; gap: 10px; }
.callsign span { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 1px; color: #fff; }
.row.pref { border-left-color: var(--border-strong); }
.row.pref .glyph { width: 24px; text-align: center; font-size: 18px; flex: none; }

/* ── Pre-rendered SEO pages (build-seo.js) ── */
.seo-article { max-width: 900px; margin: 0 auto; }
.seo-article h1 {
  font-family: var(--display); font-weight: 700; font-size: 30px;
  letter-spacing: 0.5px; color: #fff; margin-bottom: 12px; line-height: 1.2;
}
.seo-article h2 {
  font-family: var(--display); font-size: 19px; letter-spacing: 0.5px;
  margin: 30px 0 14px; color: var(--text);
}
.seo-article h2 .count { color: var(--text-faint); font-size: 14px; }
.seo-lede { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.seo-lede strong { color: var(--text); }
.seo-article > .route { margin-bottom: 22px; }

.seo-steps { list-style: none; counter-reset: step; }
.seo-steps li { counter-increment: step; margin-bottom: 28px; }
.seo-steps li h2 {
  font-size: 15px; margin: 0 0 10px; color: var(--teal);
  font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase;
}
.seo-steps li h2::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px; margin-right: 10px;
  background: var(--primary); color: #fff; font-family: var(--display); font-size: 12px;
  vertical-align: middle;
}
.seo-steps img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  border: 1px solid var(--border); background: #000;
}

.seo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 8px;
}
.seo-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.seo-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.seo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-alt); }
.seo-card .t { padding: 10px 12px 2px; font-weight: 700; font-size: 14px; color: var(--text); }
.seo-card .s { padding: 0 12px 12px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

.seo-meta dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; }
.seo-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; color: var(--text-muted); padding-top: 2px; }
.seo-meta dd { color: var(--text); font-size: 15px; }
.seo-meta a, .seo-related a, .seo-article p a { color: var(--teal); }
.seo-meta a:hover, .seo-related a:hover { text-decoration: underline; }

.seo-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.seo-tab {
  font-family: var(--display); font-size: 13px; letter-spacing: 0.5px;
  padding: 9px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.seo-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.seo-links { list-style: none; columns: 2; column-gap: 30px; }
.seo-links li { padding: 7px 0; break-inside: avoid; }
.seo-links a { color: var(--text); font-size: 15px; }
.seo-links a:hover { color: var(--primary); }
.seo-links .count { color: var(--text-faint); font-family: var(--mono); font-size: 12px; }

.seo-cta-line { margin: 26px 0; }
.seo-related { margin-top: 34px; }

@media (max-width: 640px) {
  .seo-links { columns: 1; }
  .seo-meta dl { grid-template-columns: 100px 1fr; }
  .seo-article h1 { font-size: 24px; }
}

/* ── Legal pages ── */
.legal { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.legal h1 { font-size: 30px; margin-bottom: 8px; }
.legal h2 {
  font-family: var(--display); font-size: 17px; letter-spacing: 0.5px;
  margin: 28px 0 10px; color: var(--text);
}
.legal p, .legal li { color: var(--text-muted); font-size: 15px; }
.legal b { color: var(--text); }
.legal ul { padding-left: 22px; margin: 10px 0; }

/* ── Desktop scale-up (the site should feel like a website, not a phone) ── */
@media (min-width: 900px) {
  #app { max-width: 1320px; padding: 34px 30px 80px; }
  .topbar { padding: 16px 34px; }
  .brand-text { font-size: 17px; }
  .nav a { font-size: 13px; padding: 9px 16px; }
  .hero { padding: 90px 56px; }
  .hero > div { max-width: 680px; }
  .hero .tag { font-size: 13px; }
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 17px; }
  .cta { font-size: 16px; padding: 17px 36px; }
  .page-head h1 { font-size: 34px; }
  .lotd { height: 230px; }
  .lotd .t { font-size: 24px; }
  .lotd .s { font-size: 13px; }
  .stat { padding: 26px; }
  .stat b { font-size: 38px; }
  .stat span { font-size: 12px; }
  .section-label { font-size: 14px; margin: 34px 0 16px; }
  .agent-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
  .agent-card { height: 168px; }
  .agent-card .name { font-size: 26px; }
  .agent-card .count { font-size: 11px; }
  .agent-card .role { font-size: 10px; }
  .map-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }
  .map-card { height: 190px; }
  .map-card .name { font-size: 34px; }
  .big-tile { padding: 44px 26px; }
  .big-tile .v { font-size: 52px; }
  .searchbar { height: 54px; }
  .searchbar input { font-size: 16px; }
  .chip { padding: 9px 18px; font-size: 13px; }
  .row { padding: 16px 20px; }
  .row .thumb { width: 96px; height: 96px; }
  .row .title { font-size: 17px; }
  .row .sub { font-size: 13px; }
  .viewer { max-width: 1060px; }
  .viewer-head .title { font-size: 26px; }
  .stage img { max-height: 78vh; }
  .footer { padding: 40px 30px 50px; }
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .hero { padding: 40px 22px; }
  .hero h1 { font-size: 30px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat b { font-size: 19px; }
  .row .thumb { width: 60px; height: 60px; }
}

/* ── Player tracker ──────────────────────────────────────────────── */
.tracker { max-width: 900px; margin: 0 auto; }
.tracker-search { margin-bottom: 26px; }
.tk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-row input {
  flex: 1; min-width: 220px; height: 52px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; color: var(--text); font-size: 16px; outline: none;
}
.tk-row input:focus { border-color: var(--primary); }
.tk-row select {
  height: 52px; padding: 0 38px 0 14px; appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B978F'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  font-size: 14px; cursor: pointer; outline: none;
}
.tk-row .cta { height: 52px; padding: 0 28px; border: none; cursor: pointer; display: grid; place-items: center; }
.tk-hint { font-size: 11px; color: var(--text-faint); margin-top: 10px; }
.tk-hint b { color: var(--text-muted); }
.tk-error { color: var(--primary); font-size: 14px; margin-top: 12px; }

.tk-loading { display: grid; place-items: center; gap: 14px; padding: 60px 0; color: var(--text-muted); }
.loading-spin.small { width: 26px; height: 26px; border-width: 2px; }

.tk-profile {
  display: flex; align-items: center; gap: 18px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.tk-avatar {
  width: 68px; height: 68px; border-radius: 18px; flex: none;
  display: grid; place-items: center; font-family: var(--display);
  font-size: 30px; color: #fff; background: var(--primary);
}
.tk-ident { flex: 1; min-width: 0; }
.tk-ident h1 { font-family: var(--display); font-size: 26px; color: #fff; letter-spacing: 0.5px; }
.tk-ident .tag, .tk-lb-row .tag, .chip .tag { color: var(--text-faint); font-weight: 400; }
.tk-ident p { font-size: 11px; margin-top: 4px; }

.tk-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px; margin-bottom: 16px;
}
.tk-skeleton { display: grid; place-items: center; min-height: 90px; }
.tk-muted { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.tk-note { font-size: 11px; margin-top: 10px; line-height: 1.5; }
.tk-rank-row { display: flex; align-items: center; gap: 18px; }
.tk-rank-num { font-family: var(--display); font-size: 38px; color: var(--amber); }
.tk-rank-rr { font-family: var(--display); font-size: 20px; color: var(--text); }
.tk-ok { color: var(--sentinel); font-size: 12px; }
.tk-warn { color: var(--amber); font-size: 12px; line-height: 1.6; }
.tk-status { margin-top: 30px; }
.tk-recent { margin-top: 26px; }
.tk-recent .chip { text-decoration: none; }

.tk-matches { display: flex; flex-direction: column; gap: 8px; }
.tk-match {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 10px; background: var(--bg-elevated); border-left: 3px solid var(--border-strong);
}
.tk-match.win { border-left-color: var(--sentinel); }
.tk-match.loss { border-left-color: var(--primary); }
.tk-match-res { font-family: var(--display); font-size: 12px; letter-spacing: 1px; width: 46px; }
.tk-match.win .tk-match-res { color: var(--sentinel); }
.tk-match.loss .tk-match-res { color: var(--primary); }
.tk-match-body { flex: 1; min-width: 0; }
.tk-match-body .t { font-weight: 700; font-size: 14px; }
.tk-match-body .s { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tk-match-score, .tk-match-kda { font-size: 13px; color: var(--text-muted); }

.tk-lb { display: flex; flex-direction: column; gap: 6px; }
.tk-lb-row {
  display: grid; grid-template-columns: 62px 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; transition: border-color 0.15s;
}
.tk-lb-row:hover { border-color: var(--primary); }
.tk-lb-row .n { font-family: var(--display); color: var(--amber); font-size: 15px; }
.tk-lb-row .who { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-lb-row .rr { font-size: 13px; color: var(--teal); }
.tk-lb-row .w { font-size: 12px; }

@media (max-width: 640px) {
  .tk-row .cta { width: 100%; }
  .tk-lb-row { grid-template-columns: 46px 1fr auto; }
  .tk-lb-row .w { display: none; }
  .tk-profile { flex-wrap: wrap; }
}

/* ── Tracker: RSO sign-in + privacy states ───────────────────────── */
.tk-hero { text-align: center; padding: 30px 0 10px; }
.tk-hero h1 { font-size: 34px; margin-bottom: 12px; }
.tk-hero-sub { color: var(--text-muted); font-size: 16px; line-height: 1.7; max-width: 560px; margin: 0 auto 26px; }
.tk-signin-card {
  max-width: 480px; margin: 0 auto; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.tk-consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-bottom: 16px; cursor: pointer; }
.tk-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: none; cursor: pointer; }
.tk-consent span { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.riot-signin {
  width: 100%; height: 52px; border-radius: 12px; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: 1.5px; display: flex; align-items: center;
  justify-content: center; gap: 10px; transition: filter 0.15s;
}
.riot-signin:hover:not(:disabled) { filter: brightness(1.1); }
.riot-signin:disabled { opacity: 0.4; cursor: not-allowed; }
.riot-mark { font-size: 12px; }
.tk-fineprint { font-size: 11px; color: var(--text-faint); line-height: 1.6; margin-top: 14px; }
.tk-lookup { margin-top: 44px; }
.tk-private { text-align: center; padding: 40px 0; }
.tk-lock { font-size: 46px; margin-bottom: 14px; }
.tk-private h1 { font-family: var(--display); font-size: 24px; letter-spacing: 0.5px; color: #fff; margin-bottom: 14px; }
.tk-private .tk-muted { max-width: 520px; margin: 0 auto 26px; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tk-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.tk-stat b { font-family: var(--display); font-size: 26px; display: block; color: var(--teal); }
.tk-stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); }

/* ── Game database (valorant-api.com) ────────────────────────────── */
.db-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.db-hub-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: transform 0.15s, border-color 0.15s;
}
.db-hub-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.db-hub-icon { display: block; width: 34px; height: 34px; margin-bottom: 10px; color: var(--primary); }
.db-hub-icon svg { width: 100%; height: 100%; }
.db-hub-card .t { font-family: var(--display); font-size: 19px; letter-spacing: 1px; color: #fff; }
.db-hub-card .s { color: var(--text-muted); font-size: 13px; }

.db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 10px; }
.db-grid.weapons { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.db-grid.maps { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.db-grid.ranks { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

.db-agent {
  position: relative; height: 250px; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid var(--border); transition: transform 0.15s;
}
.db-agent:hover { transform: translateY(-3px); }
.db-agent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.db-agent .role, .db-agent .name { position: relative; z-index: 1; }
.db-agent .role {
  display: flex; align-items: center; gap: 5px; align-self: flex-start;
  margin: 0 0 4px 12px; padding: 3px 8px; border-radius: 6px;
  background: rgba(8,14,20,0.72); font-family: var(--mono); font-size: 9px; letter-spacing: 1px;
  color: var(--text-muted);
}
.db-agent .role img { position: static; width: 12px; height: 12px; filter: invert(1); opacity: 0.7; }
.db-agent .name {
  font-family: var(--display); font-size: 20px; letter-spacing: 1px; color: #fff;
  padding: 0 12px 14px; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.db-weapon {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: transform 0.15s, border-color 0.15s;
}
.db-weapon:hover { transform: translateY(-2px); border-color: var(--primary); }
.db-weapon img { width: 100%; height: 62px; object-fit: contain; }
.db-weapon .name { font-weight: 700; font-size: 14px; }
.db-weapon .cost { font-size: 11px; color: var(--amber); }

.db-map { position: relative; height: 170px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; transition: transform 0.15s; }
.db-map:hover { transform: translateY(-2px); }
.db-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-map::after { content: ""; position: absolute; inset: 0; background: rgba(10,20,30,0.45); }
.db-map .name { position: relative; z-index: 1; font-family: var(--display); font-size: 26px; letter-spacing: 3px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }
.db-map .callouts { position: absolute; z-index: 1; bottom: 10px; right: 10px; font-size: 10px; background: rgba(8,14,20,0.74); padding: 4px 8px; border-radius: 8px; color: var(--text-muted); }

.db-rank { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.db-rank img { width: 62px; height: 62px; object-fit: contain; }
.db-rank span { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--text-muted); text-align: center; }

.db-detail { max-width: 960px; margin: 0 auto; }
.db-hero { position: relative; display: flex; gap: 24px; align-items: center; border-radius: 18px; overflow: hidden; padding: 30px; min-height: 300px; margin-bottom: 10px; }
.db-hero-art { width: 260px; flex: none; object-fit: contain; align-self: flex-end; max-height: 320px; }
.db-hero-text { position: relative; z-index: 1; }
.db-hero-text .mono { font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,0.7); }
.db-hero-text h1 { font-family: var(--display); font-size: 42px; letter-spacing: 1px; color: #fff; margin: 6px 0 12px; }
.db-hero-text .desc { color: rgba(255,255,255,0.85); line-height: 1.65; font-size: 15px; margin-bottom: 18px; max-width: 520px; }

.db-abilities { display: grid; gap: 12px; }
.db-ability { display: flex; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.db-ability img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.db-ability-ph { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--surface-alt); border-radius: 8px; font-family: var(--display); color: var(--text-muted); }
.db-ability .t { font-family: var(--display); font-size: 16px; color: #fff; margin-bottom: 5px; }
.db-ability .slot { font-size: 10px; color: var(--text-faint); letter-spacing: 1px; }
.db-ability p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.db-weapon-hero { display: flex; align-items: center; gap: 26px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; flex-wrap: wrap; }
.db-weapon-hero img { width: 280px; max-width: 100%; object-fit: contain; }
.db-weapon-hero h1 { font-family: var(--display); font-size: 34px; color: #fff; letter-spacing: 1px; }

.db-dmg { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.db-dmg-head, .db-dmg-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 12px 16px; }
.db-dmg-head { background: var(--bg-elevated); font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); }
.db-dmg-row { border-top: 1px solid var(--border); font-size: 15px; }
.db-dmg-row .head { color: var(--primary); font-weight: 700; }

.db-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.db-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.db-stat b { font-family: var(--display); font-size: 22px; color: var(--teal); display: block; }
.db-stat span { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; color: var(--text-muted); }

.db-skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.db-skin { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.db-skin img { width: 100%; height: 52px; object-fit: contain; margin-bottom: 8px; }
.db-skin span { font-size: 11px; color: var(--text-muted); display: block; line-height: 1.4; }

.db-map-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; }
.db-map-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db-map-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(10,20,30,0.9)); }
.db-map-hero-text { position: relative; z-index: 1; padding: 26px; }
.db-map-hero-text h1 { font-family: var(--display); font-size: 40px; letter-spacing: 2px; color: #fff; }
.db-map-hero-text .mono { color: var(--text-muted); font-size: 12px; margin: 8px 0 16px; }
.db-minimap { width: 100%; max-width: 560px; display: block; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }

@media (max-width: 720px) {
  .db-hero { flex-direction: column; text-align: center; }
  .db-hero-art { width: 190px; }
  .db-hero-text h1 { font-size: 30px; }
}

/* ── Player profile (tracker-profile.js) ─────────────────────────── */
.prof { max-width: 1180px; }
.prof-preview {
  background: rgba(255,186,32,0.1); border: 1px solid var(--amber); color: var(--amber);
  border-radius: 10px; padding: 12px 16px; font-size: 12px; line-height: 1.6; margin-bottom: 20px;
}
.prof-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.prof-id { display: flex; align-items: center; gap: 16px; }
.prof-id h1 { font-family: var(--display); font-size: 28px; color: #fff; letter-spacing: 0.5px; }
.prof-id p { font-size: 11px; margin-top: 4px; }
.prof-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.prof-tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--text-muted);
  padding: 10px 14px; border-bottom: 2px solid transparent; background: none; cursor: pointer;
}
.prof-tab:hover { color: var(--text); }
.prof-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.prof-filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

.prof-body { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.prof-rail { display: flex; flex-direction: column; gap: 16px; }
.prof-rank { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.prof-rank-badge {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-alt); border: 1px solid var(--border-strong);
  font-family: var(--display); font-size: 18px; color: var(--text);
}
.prof-rank b { font-family: var(--display); font-size: 20px; color: #fff; display: block; }
.prof-rank span { font-size: 10px; }
.prof-peak { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; border-top: 1px solid var(--border); }
.prof-peak span { font-size: 10px; }
.prof-peak b { font-family: var(--display); font-size: 16px; color: var(--teal); }

.prof-acc { display: flex; flex-direction: column; gap: 12px; }
.prof-acc-row { display: grid; grid-template-columns: 42px 1fr 46px 42px; align-items: center; gap: 8px; font-size: 12px; }
.prof-acc-row .l { color: var(--text-muted); }
.prof-acc-row .bar { height: 6px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; }
.prof-acc-row .bar i { display: block; height: 100%; border-radius: 3px; }
.prof-acc-row .v { text-align: right; font-weight: 700; }
.prof-acc-row .h { font-size: 10px; text-align: right; }

.prof-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prof-hero-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.prof-wl { position: relative; width: 96px; height: 96px; flex: none; }
.prof-donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.prof-wl-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.prof-wl-text b { font-family: var(--display); font-size: 20px; color: var(--sentinel); display: block; }
.prof-wl-text span { font-family: var(--mono); font-size: 11px; color: var(--primary); }
.prof-hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; flex: 1; min-width: 220px; }
.prof-hero-stat { border-left: 2px solid var(--border-strong); padding-left: 12px; }
.prof-hero-stat .k { font-size: 9px; letter-spacing: 1px; color: var(--text-muted); display: block; }
.prof-hero-stat b { font-family: var(--display); font-size: 24px; color: #fff; display: block; margin: 3px 0; }
.prof-hero-stat .p { font-size: 10px; }
.good { color: var(--sentinel); }
.bad { color: var(--text-faint); }

.prof-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.prof-stat b { font-family: var(--display); font-size: 17px; color: var(--text); display: block; }
.prof-stat span { font-size: 9px; letter-spacing: 1px; color: var(--text-muted); }

.prof-table { display: flex; flex-direction: column; }
.prof-tr { display: grid; grid-template-columns: 1.4fr 40px 66px 56px 66px 66px 56px 1fr; gap: 8px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--border); font-size: 13px; }
.prof-tr.head { border-top: none; font-size: 9px; letter-spacing: 1px; color: var(--text-muted); }
.prof-tr .ag { font-weight: 700; color: #fff; }

.prof-recent { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.prof-recent-col { padding: 12px 8px; border-radius: 8px; text-align: center; background: var(--bg-elevated); border-bottom: 3px solid var(--border-strong); }
.prof-recent-col.win { border-bottom-color: var(--sentinel); }
.prof-recent-col.loss { border-bottom-color: var(--primary); }
.prof-recent-col .s { font-family: var(--display); font-size: 15px; color: #fff; display: block; }
.prof-recent-col .kd { font-size: 10px; color: var(--text-muted); }

@media (max-width: 900px) {
  .prof-body { grid-template-columns: 1fr; }
  .prof-tr { grid-template-columns: 1.2fr 34px 58px 48px 56px; font-size: 12px; }
  .prof-tr > :nth-child(n+6) { display: none; }
}

/* ── Homepage — hero CTA row ──────────────────────────────────────── */
.home-ctas {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px;
}
.home-cta-ghost {
  display: inline-block;
  background: transparent;
  border: 1.5px solid rgba(236, 232, 225, 0.28);
  color: var(--text);
  font-family: var(--display); font-weight: 700;
  letter-spacing: 1.5px; font-size: 15px;
  padding: 15px 30px; border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}
.home-cta-ghost:hover {
  background: rgba(236, 232, 225, 0.08);
  border-color: rgba(236, 232, 225, 0.55);
}

/* ── Homepage — live stat band ────────────────────────────────────── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 0;
}
.home-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
}
.home-stat b {
  font-family: var(--display);
  font-size: 28px;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.home-stat span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* ── Homepage — four branch cards ────────────────────────────────── */
.home-branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.home-bc {
  --bc-color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.home-bc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--bc-color);
  border-radius: 14px 14px 0 0;
}
.home-bc:hover {
  transform: translateY(-3px);
  border-color: var(--bc-color);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42);
}
.home-bc--teal  { --bc-color: var(--teal); }
.home-bc--amber { --bc-color: var(--amber); }
.home-bc--sentinel { --bc-color: var(--sentinel); }

.home-bc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.home-bc-num {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-faint);
}
.home-bc-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--bc-color);
  background: color-mix(in srgb, var(--bc-color) 12%, transparent);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--bc-color) 30%, transparent);
}
.home-bc-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}
.home-bc-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.home-bc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.home-bc-cta {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--bc-color);
}
.home-bc-meta {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
}

/* ── Homepage — browse-all link ───────────────────────────────────── */
.home-browse-all {
  margin-top: 20px;
  text-align: center;
}
.home-browse-link {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 28px;
  transition: border-color 0.15s, color 0.15s;
}
.home-browse-link:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* ── Homepage — app store band ────────────────────────────────────── */
.home-app-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 28px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.home-app-copy {
  flex: 1;
  min-width: 220px;
}
.home-app-sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
}

/* ── Homepage responsive overrides ───────────────────────────────── */
@media (min-width: 900px) {
  .home-stats { gap: 14px; }
  .home-stat { padding: 24px 18px; }
  .home-stat b { font-size: 38px; }
  .home-stat span { font-size: 11px; }
  .home-branches { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .home-bc { padding: 26px 22px 22px; gap: 12px; }
  .home-bc-title { font-size: 20px; }
  .home-bc-desc { font-size: 14px; }
  .home-cta-ghost { font-size: 16px; padding: 17px 36px; }
}
@media (max-width: 600px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); }
  .home-branches { grid-template-columns: 1fr; }
  .home-app-band { text-align: center; justify-content: center; }
  .home-app-copy { min-width: 0; }
}

/* ── Tracker sub-views (tracker-views.js) ────────────────────────── */
.tv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tv-sub { font-size: 11px; margin-top: 4px; }
.tv-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tv-filters .chip { padding: 5px 12px; font-size: 11px; }

.tv-table { display: flex; flex-direction: column; overflow-x: auto; }
.tv-tr {
  display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center;
  padding: 12px 4px; border-top: 1px solid var(--border); font-size: 13px; min-width: 640px;
}
.tv-tr.head { border-top: none; font-size: 9px; letter-spacing: 1px; color: var(--text-muted); padding-bottom: 8px; }
.tv-tr b { color: #fff; font-weight: 700; }
.tv-tr .r { text-align: right; }
.tv-tr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ═══════════════════════════════════════════════════════════════════
   LANDING PAGE  (.lp- prefix — homepage only)
   All classes below are used exclusively by renderHome().
   ═══════════════════════════════════════════════════════════════════ */

/* Root wrapper — clips full-bleed children so no horizontal scrollbar */
.lp-root { overflow-x: clip; }

/* ── Shared section scaffolding ─────────────────────────────────── */
.lp-section { margin: 72px 0; }

.lp-section-head { margin-bottom: 44px; }
.lp-section-head--center { text-align: center; }

.lp-section-h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #fff;
  margin: 10px 0 0;
}
.lp-section-h2 em { color: var(--primary); font-style: normal; }

.lp-section-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 540px;
  margin-top: 12px;
}
.lp-section-head--center .lp-section-sub { margin-left: auto; margin-right: auto; }

/* ── 1. Hero ────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 56px 30px;
  margin-bottom: 14px;
}
.lp-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.lp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,20,30,0.93) 45%, rgba(10,20,30,0.50) 100%);
}
.lp-hero-inner { position: relative; z-index: 1; max-width: 600px; }
.lp-hero-label {
  font-family: var(--mono);
  color: var(--primary);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.lp-hero-h1 {
  font-size: 38px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 18px;
}
.lp-hero-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}
.lp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-ghost-cta {
  display: inline-block;
  background: transparent;
  border: 1.5px solid rgba(236,232,225,0.28);
  color: var(--text);
  font-family: var(--display); font-weight: 700;
  letter-spacing: 1.5px; font-size: 15px;
  padding: 15px 28px; border-radius: 12px;
  transition: background 0.15s, border-color 0.15s;
}
.lp-ghost-cta:hover {
  background: rgba(236,232,225,0.09);
  border-color: rgba(236,232,225,0.55);
}

/* ── 2. Stat band ───────────────────────────────────────────────── */
.lp-stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.lp-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
}
.lp-stat b {
  font-family: var(--display);
  font-size: 26px;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.lp-stat span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* ── 3. How it works ────────────────────────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.lp-step-arrow { display: none; }
.lp-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  transition: border-color 0.15s, transform 0.15s;
}
.lp-step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.lp-step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.lp-step-icon {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1;
}
.lp-step-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 8px;
}
.lp-step-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 4. Feature sections ────────────────────────────────────────── */
.lp-feature {
  --feat-accent: var(--primary);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 56px -22px;
  padding: 44px 22px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-feature--teal  { --feat-accent: var(--teal); }
.lp-feature--amber { --feat-accent: var(--amber); }

.lp-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.lp-feature-copy .section-label { margin: 0; color: var(--feat-accent); }
.lp-feature-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.72;
}
.lp-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lp-feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.lp-feature-list li::before {
  content: "//";
  position: absolute; left: 0;
  color: var(--feat-accent);
  font-family: var(--mono);
  font-size: 11px;
  top: 1px;
}

.lp-cta-teal  { background: var(--teal);  color: #062028; align-self: flex-start; }
.lp-cta-amber { background: var(--amber); color: #1c0e00; align-self: flex-start; }
.lp-cta-teal:hover, .lp-cta-amber:hover { filter: brightness(1.08); }

/* Mock visual panels */
.lp-feature-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.lp-mock-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  flex: none;
}
.lp-mock-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.lp-mock-portrait {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover; object-position: top;
  flex: none;
  background: var(--surface-alt);
}
.lp-mock-title { font-weight: 700; font-size: 13px; }
.lp-mock-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 2px;
}
.lp-mock-chev { font-size: 20px; margin-left: auto; flex: none; }
.lp-mock-map-strip {
  display: flex;
  gap: 7px;
  padding: 10px 16px;
  overflow-x: auto;
  flex: 1;
  align-items: center;
  scrollbar-width: none;
}
.lp-mock-map-strip::-webkit-scrollbar { display: none; }
.lp-mock-map-chip {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
  width: 76px;
  height: 48px;
  border: 1px solid var(--border);
}
.lp-mock-map-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-mock-map-chip span {
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
  white-space: nowrap;
}

/* Tracker mock */
.lp-tracker-stats {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.lp-tracker-stat {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.lp-tracker-stat:last-child { border-right: none; }
.lp-tracker-stat b {
  font-family: var(--display);
  font-size: 20px;
  display: block;
  margin-bottom: 3px;
}
.lp-tracker-stat span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.lp-tracker-matches { flex: 1; overflow: hidden; }
.lp-tracker-match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.lp-tracker-match:last-child { border-bottom: none; }
.lp-tracker-match-result {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  flex: none;
  width: 34px;
}
.lp-tracker-match-info { flex: 1; color: var(--text-muted); }
.lp-tracker-match-kda { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }

/* Database mock */
.lp-mock-agent-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.lp-mock-agent-img {
  width: 52px; height: 52px;
  object-fit: cover; object-position: top;
  border-radius: 10px; flex: none;
  background: var(--surface-alt);
}
.lp-mock-agent-role {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--initiator);
  margin: 3px 0 7px;
}
.lp-mock-abilities { display: flex; flex-wrap: wrap; gap: 4px; }
.lp-mock-ability {
  font-family: var(--mono);
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.lp-mock-weapon-section { flex: 1; overflow: hidden; }
.lp-mock-weapon-row { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.lp-mock-weapon-row:last-child { border-bottom: none; }
.lp-mock-dmg-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.lp-mock-dmg-bar {
  height: 12px;
  background: var(--surface-alt);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.lp-mock-dmg-fill { height: 100%; border-radius: 3px; }
.lp-mock-dmg-val {
  position: absolute;
  right: 7px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}

/* ── 7. Why us ──────────────────────────────────────────────────── */
.lp-why {
  margin: 56px -22px;
  padding: 56px 22px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.lp-why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  transition: transform 0.15s, border-color 0.15s;
}
.lp-why-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.lp-why-icon { font-size: 22px; margin-bottom: 12px; line-height: 1; }
.lp-why-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 9px;
}
.lp-why-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── 8. FAQ ─────────────────────────────────────────────────────── */
.lp-faq { margin: 72px 0; }
.lp-faq-list {
  max-width: 780px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.lp-faq-item[open] { border-color: var(--border-strong); }
.lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.25px;
  color: var(--text);
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}
.lp-faq-q::-webkit-details-marker { display: none; }
.lp-faq-q::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  flex: none;
  transition: transform 0.2s;
}
.lp-faq-item[open] .lp-faq-q::after { transform: rotate(45deg); }
.lp-faq-a {
  padding: 14px 20px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ── 9. Contact section ─────────────────────────────────────────── */
.lp-contact-section { margin: 72px 0; }
.lp-contact-form-wrap {
  max-width: 620px;
  margin: 36px auto 0;
}
.lp-contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.lp-form-row { margin-bottom: 20px; }
.lp-optional { color: var(--text-faint); font-size: 9px; }
.lp-input {
  display: block; width: 100%; margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 11px 14px; height: 46px; outline: none;
  transition: border-color 0.15s;
}
.lp-input:focus { border-color: var(--primary); }
.lp-textarea {
  display: block; width: 100%; margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 11px 14px; outline: none; resize: vertical;
  transition: border-color 0.15s;
}
.lp-textarea:focus { border-color: var(--primary); }
.lp-form-actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px;
}
.lp-form-actions .cta { border: none; cursor: pointer; }
.lp-form-actions .cta:disabled { opacity: 0.6; cursor: default; }

/* ── 10. Final CTA band ─────────────────────────────────────────── */
.lp-final-cta {
  margin: 56px -22px 0;
  padding: 56px 22px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.lp-final-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.lp-final-sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 500px;
  margin-top: 10px;
}
.lp-final-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Landing page desktop ───────────────────────────────────────── */
@media (min-width: 900px) {
  .lp-hero { min-height: 520px; padding: 90px 68px; }
  .lp-hero-h1 { font-size: 60px; }
  .lp-hero-sub { font-size: 17px; }
  .lp-ghost-cta { font-size: 16px; padding: 17px 34px; }

  .lp-stat-band { gap: 16px; }
  .lp-stat b { font-size: 38px; }
  .lp-stat span { font-size: 10px; }

  .lp-section-h2 { font-size: 40px; }

  /* Steps: 4-column flex row with visible arrows */
  .lp-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .lp-step { flex: 1; padding: 28px 24px; }
  .lp-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--text-faint);
    font-family: var(--mono);
    font-size: 22px;
    flex: none;
  }

  /* Feature sections: 2-column grid, full-bleed from container edges */
  .lp-feature {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 64px 56px;
    margin-left: -30px;
    margin-right: -30px;
  }
  .lp-feature-visual { min-height: 380px; }

  .lp-why {
    margin-left: -30px; margin-right: -30px;
    padding-left: 56px; padding-right: 56px;
  }
  .lp-why-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .lp-why-card { padding: 26px 22px; }

  .lp-final-cta {
    margin-left: -30px; margin-right: -30px;
    padding-left: 56px; padding-right: 56px;
  }
  .lp-final-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }
  .lp-final-badges { flex-wrap: nowrap; }
}

@media (max-width: 600px) {
  .lp-stat-band { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lp-stat b { font-size: 22px; }
  .lp-hero-h1 { font-size: 30px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-section-h2 { font-size: 24px; }
  .lp-contact-form { padding: 20px 16px; }
}

.tv-bar { display: inline-block; width: 54px; height: 5px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.tv-bar.wide { width: 110px; }
.tv-bar i { display: block; height: 100%; border-radius: 3px; }

.tv-acc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.tv-acc-body { display: flex; flex-direction: column; gap: 16px; }
.tv-acc-row { display: grid; grid-template-columns: 52px 1fr 62px 78px; align-items: center; gap: 10px; font-size: 13px; }
.tv-acc-row .l { font-size: 10px; letter-spacing: 1px; color: var(--text-muted); }
.tv-acc-row b { color: #fff; }
.tv-spark { width: 100%; height: 76px; display: block; }
.tv-trend-axis { display: flex; justify-content: space-between; font-size: 10px; margin-top: 4px; }

@media (max-width: 900px) {
  .tv-acc { grid-template-columns: 1fr; gap: 20px; }
  .tv-acc-row { grid-template-columns: 44px 1fr 54px; }
  .tv-acc-row .mono.faint { display: none; }
}

/* ── Profile banner + rich rail ──────────────────────────────────── */
.prof-banner {
  position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(120deg, var(--g1, #1B2733), var(--g2, #0A141E));
  min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end;
}
.prof-banner-art { position: absolute; right: 0; top: 0; height: 100%; opacity: 0.9; object-fit: contain; object-position: right top; }
.prof-banner-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 18px; padding: 26px 26px 14px; }
.prof-avatar {
  width: 88px; height: 88px; border-radius: 50%; flex: none; overflow: hidden;
  border: 3px solid rgba(255,255,255,0.25); background: var(--surface);
  display: grid; place-items: center; font-family: var(--display); font-size: 32px; color: #fff;
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-banner-text h1 { font-family: var(--display); font-size: 32px; color: #fff; letter-spacing: 0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.prof-banner-text p { font-size: 11px; }
.prof-views { color: rgba(255,255,255,0.7); font-size: 10px; margin-bottom: 4px; }
.prof-banner .prof-tabs { position: relative; z-index: 1; padding: 0 26px; background: rgba(8,14,20,0.55); backdrop-filter: blur(6px); }

.prof-rank-icon { width: 48px; height: 48px; object-fit: contain; flex: none; }
.prof-rank.small { margin: 6px 0 0; }
.prof-rank.small .prof-rank-icon { width: 34px; height: 34px; }
.prof-rank.small b { font-size: 15px; }

.prof-roles, .prof-weapons { display: flex; flex-direction: column; gap: 12px; }
.prof-role, .prof-weapon { display: flex; align-items: center; gap: 12px; }
.prof-role img { width: 26px; height: 26px; object-fit: contain; filter: invert(1); opacity: 0.75; flex: none; }
.prof-role .ph { width: 26px; flex: none; }
.prof-weapon img { width: 62px; height: 26px; object-fit: contain; flex: none; }
.prof-role > div:nth-child(2), .prof-weapon > div:nth-child(2) { flex: 1; min-width: 0; }
.prof-role .t, .prof-weapon .t { font-size: 13px; font-weight: 700; color: var(--text); }
.prof-role .mono, .prof-weapon .mono { font-size: 10px; }
.prof-role .r, .prof-weapon .r { text-align: right; }
.prof-role .r b, .prof-weapon .r b { display: block; font-family: var(--display); font-size: 15px; }
.prof-role .r span, .prof-weapon .r span { font-size: 9px; }

.prof-score { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.prof-score-badge { text-align: center; flex: none; }
.prof-score-badge b { font-family: var(--display); font-size: 38px; color: var(--amber); display: block; line-height: 1; }
.prof-score-badge span { font-size: 11px; color: var(--text-muted); }
.prof-score-bar { flex: 1; min-width: 200px; }
.prof-score-bar .bar { height: 8px; border-radius: 4px; background: var(--surface-alt); overflow: hidden; }
.prof-score-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--amber)); border-radius: 4px; }
.prof-score-bar p { font-size: 10px; margin-top: 8px; }

.prof-tr .ag { display: flex; align-items: center; gap: 9px; }
.prof-ag-icon { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-alt); }
.tv-ag { display: inline-flex; align-items: center; gap: 8px; }
.tv-ag img { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; flex: none; background: var(--surface-alt); }
.tv-wp { display: inline-flex; align-items: center; gap: 9px; }
.tv-wp img { width: 52px; height: 22px; object-fit: contain; flex: none; }

/* ── Matches: activity chart ─────────────────────────────────────── */
.tv-activity { margin-bottom: 22px; }
.tv-act-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tv-act-tabs .chip { padding: 5px 12px; font-size: 11px; }
.tv-actbars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.tv-actbar {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; position: relative;
}
.tv-actbar i {
  display: block; width: 100%; max-width: 34px; border-radius: 4px 4px 0 0;
  background: var(--primary); transition: height 0.15s;
}
.tv-actbar-v { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.tv-actbar-d { font-size: 9px; margin-top: 6px; white-space: nowrap; }

/* ── Matches: filter rows ────────────────────────────────────────── */
.tv-filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tv-filter-label { font-size: 10px; letter-spacing: 1px; width: 52px; flex: none; }
.tv-filter-row .tv-filters { flex: 1; }

/* ── Matches: day-grouped list ────────────────────────────────────── */
.tv-matches-list { margin-top: 20px; }
.tv-day-group { margin-bottom: 18px; }
.tv-day-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.tv-day-head .d { font-family: var(--display); font-size: 13px; letter-spacing: 0.5px; color: var(--text); }
.tv-day-head .rec { font-size: 11px; }
.tv-day-head .rec b { margin: 0 2px; }

.tv-match {
  display: flex; align-items: center; gap: 14px; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  margin-bottom: 8px;
}
.tv-match-ag { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-alt); flex: none; overflow: hidden; }
.tv-match-ag img { width: 100%; height: 100%; object-fit: cover; }
.tv-match-mid { flex: 1; min-width: 0; }
.tv-match-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tv-match-top .mono.faint { font-size: 11px; }
.tv-match-ago { font-size: 10px; margin-top: 3px; }
.tv-badge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.5px; padding: 2px 6px;
  border-radius: 4px; background: var(--amber); color: #2a1d00; font-weight: 700;
}
.tv-match-stats { display: flex; gap: 18px; flex: none; }
.tv-match-stats div { display: flex; flex-direction: column; align-items: flex-end; min-width: 40px; }
.tv-match-stats b { font-size: 13px; color: #fff; }
.tv-match-stats .mono.faint { font-size: 9px; margin-top: 2px; }

/* ── Performance ──────────────────────────────────────────────────── */
.tv-lifetime { display: flex; flex-wrap: wrap; gap: 20px; }
.tv-lifetime-stat { display: flex; flex-direction: column; gap: 4px; min-width: 64px; }
.tv-lifetime-stat b { font-size: 20px; color: #fff; font-family: var(--display); }
.tv-lifetime-stat span { font-size: 10px; letter-spacing: 1px; color: var(--text-muted); }

/* ── Encounters ───────────────────────────────────────────────────── */
.tv-table .tag { font-weight: 400; }

/* ── Matches: teammates ──────────────────────────────────────────── */
.tv-teammates { margin-top: 26px; }
.tv-teammate {
  display: flex; align-items: center; gap: 12px; padding: 9px 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.tv-teammate:last-child { border-bottom: none; }
.tv-teammate .av {
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-alt);
  display: grid; place-items: center; font-family: var(--display); font-size: 12px; flex: none;
}
.tv-teammate .n { flex: 1 1 auto; min-width: 110px; }
.tv-teammate .n span { display: block; font-size: 11px; }
.tv-teammate-stats { display: flex; align-items: center; gap: 16px; flex: none; }

@media (max-width: 420px) {
  .tv-teammate-stats { flex: 1 0 100%; justify-content: space-between; margin-left: 42px; gap: 8px; }
}

@media (max-width: 720px) {
  .tv-match { flex-wrap: wrap; }
  .tv-match-stats { width: 100%; justify-content: space-between; gap: 8px; margin-top: 8px; }
  .tv-match-stats div { min-width: 0; }
  .tv-filter-label { width: auto; }
}

@media (max-width: 720px) {
  .prof-banner-art { opacity: 0.35; }
  .prof-banner-inner { padding: 20px 16px 10px; }
  .prof-banner .prof-tabs { padding: 0 10px; flex-wrap: wrap; }
  .prof-avatar { width: 64px; height: 64px; }
  .prof-banner-text h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .prof-banner-art { display: none; }
  .prof-banner-inner { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .prof-banner-text p { white-space: normal; }
}

/* ── Interactive map callouts ─────────────────────────────────────── */
.db-callout-filters { margin-bottom: 14px; }
.db-minimap-wrap { position: relative; max-width: 640px; margin: 0 auto; }
.db-minimap { width: 100%; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.db-callout-pin {
  position: absolute; transform: translate(-50%, -50%); width: 14px; height: 14px;
  background: none; border: none; cursor: pointer; padding: 0; z-index: 1;
}
.db-callout-pin .dot {
  display: block; width: 10px; height: 10px; margin: 2px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
  transition: transform 0.15s;
}
.db-callout-pin:hover .dot, .db-callout-pin:focus .dot { transform: scale(1.4); }
.db-callout-pin.dimmed { opacity: 0.15; pointer-events: none; }
.db-callout-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 4px 8px; font-size: 11px; white-space: nowrap; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.db-callout-pin:hover .db-callout-tip, .db-callout-pin:focus .db-callout-tip { opacity: 1; }

@media (max-width: 640px) {
  .db-callout-pin .dot { width: 8px; height: 8px; }
}

/* ── Standalone contact page ── */
.contact-page { max-width: 640px; margin: 0 auto; padding: 30px 0; }
