/* SlurpDB Leaderboards & Profiles - Modern Fortnite / Epic / SlurpDB aesthetic */

/* Full-page fixed backdrop with uniform dark scrim (no fade-to-black gradient) */
.page-backdrop.page-backdrop--full {
  position: fixed;
  inset: 0;
  height: 100vh;
}

.page-backdrop.page-backdrop--full::after {
  background: rgba(7, 10, 16, 0.44);
}

.lb-page,
.lb-profile {
  --lb-glass: rgba(10, 13, 21, 0.64);
  --lb-glass-soft: rgba(10, 13, 21, 0.44);
  --lb-glass-strong: rgba(10, 13, 21, 0.82);
  --lb-glass-hover: rgba(255, 255, 255, 0.06);
  --lb-edge: rgba(255, 255, 255, 0.075);
  --lb-edge-strong: rgba(255, 255, 255, 0.16);
  --lb-r: 10px;
  --lb-r-sm: 6px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

:root[data-theme="light"] .lb-page,
:root[data-theme="light"] .lb-profile {
  --lb-glass: var(--surface);
  --lb-glass-soft: var(--surface-2);
  --lb-glass-strong: var(--header);
  --lb-glass-hover: var(--line);
  --lb-edge: var(--line);
  --lb-edge-strong: var(--line-strong);
}

.lb-muted {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

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

/* ── Unboxed Power Level (lightning bolt + display number) ── */
.lb-pl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.lb-pl img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
}

.lb-pl--lg,
.lb-pl--head {
  font-size: 32px;
  gap: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.lb-pl--lg img,
.lb-pl--head img {
  width: 24px;
  height: 24px;
}

/* ── Unboxed Header & Search (preserved selectors) ── */
.lb-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.lb-top__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: 0.03em;
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.lb-top__sub {
  margin: 6px 0 22px;
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-slurp);
}

.lb-search {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-search__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lb-search__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.lb-search__mag {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.lb-search__input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lb-edge-strong);
  background: var(--lb-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: inherit;
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}

.lb-search__input::placeholder {
  color: var(--text-3);
}

.lb-search__input:focus {
  border-color: var(--accent);
  background: var(--lb-glass-strong);
}

.lb-search__plats {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lb-plat-icon {
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lb-plat-icon:hover {
  color: var(--text);
  background: var(--lb-glass-soft);
}

.lb-plat-icon.is-active {
  color: #f7df3a;
  background: rgba(247, 223, 58, 0.16);
  box-shadow: inset 0 0 0 2px #f7df3a;
  border-color: transparent;
}

.lb-search__results {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(11, 15, 25, 0.96);
  border: 1px solid var(--lb-edge-strong);
  border-radius: var(--lb-r-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  text-align: left;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.lb-search__hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.lb-search__hit:hover,
.lb-search__hit.is-focused {
  background: var(--lb-glass-hover);
  color: var(--accent);
  outline: none;
  text-decoration: none;
}

.lb-search__hit-plat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.lb-search__error {
  margin: 0;
  color: var(--down);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* ── Unboxed Access Notice (clean inline text, zero pill) ── */
.lb-access-note {
  margin-top: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.lb-access-note--left {
  margin-top: -14px;
  align-self: flex-start;
  justify-content: flex-start;
}

.lb-access-note__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lb-access-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lb-access-note__item--pub .lb-access-dot {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.lb-access-note__item--stw .lb-access-dot {
  background: #f7df3a;
  box-shadow: 0 0 8px rgba(247, 223, 58, 0.5);
}

.lb-access-note__sep {
  color: var(--text-3);
  opacity: 0.55;
}

.lb-access-note__btn {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: rgba(247, 223, 58, 0.16);
  color: #f7df3a;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.lb-access-note__btn:hover {
  background: #f7df3a;
  color: #090b10;
}

/* ── Clean underline world tabs (preserved selector) ── */
.lb-domain-nav {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid var(--lb-edge);
  width: 100%;
}

.lb-domain-nav--left {
  margin-top: 0;
  justify-content: flex-start;
}

.lb-domain-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 140ms ease;
}

.lb-domain-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.75));
  transition: opacity 140ms ease;
}

.lb-domain-link:hover .lb-domain-icon,
.lb-domain-link.is-active .lb-domain-icon {
  opacity: 1;
}

.lb-domain-link:hover {
  color: #fff;
  text-decoration: none;
}

.lb-domain-link.is-active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.lb-domain-link.is-disabled,
.lb-domain-link:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Soft Mode Filters & Scope Toggle ── */
.lb-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.lb-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.lb-chip-row--sub {
  margin-bottom: 16px;
}

.lb-chip-row--left {
  justify-content: flex-start;
}

.lb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--lb-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.lb-chip--logo {
  padding: 4px 12px;
}

.lb-chip__logo {
  height: 28px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  display: block;
}

.lb-chip__img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.lb-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.lb-chip.is-active {
  background: rgba(247, 223, 58, 0.18);
  box-shadow: inset 0 0 0 2px #f7df3a;
  color: #fff;
}

.lb-scope-row {
  display: inline-flex;
  background: var(--lb-glass);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lb-scope-btn {
  padding: 5px 12px;
  border-radius: 4px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.lb-scope-btn:hover {
  color: #fff;
  text-decoration: none;
}

.lb-scope-btn.is-active {
  background: rgba(247, 223, 58, 0.18);
  box-shadow: inset 0 0 0 2px #f7df3a;
  color: #fff;
}

.lb-caption {
  margin: 0 0 20px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* ── Modern Borderless Translucent Leaderboard Boards (Fortnite.gg / Epic feel) ── */
.lb-br-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lb-board {
  --lb-board-accent: #f7df3a;
  background: var(--lb-glass);
  border-radius: var(--lb-r);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-board--gold { --lb-board-accent: #2dd4bf; }
.lb-board--cyan { --lb-board-accent: #fbbf24; }
.lb-board--purple { --lb-board-accent: #f97316; }
.lb-board--coral { --lb-board-accent: #60a5fa; }
.lb-board--stw { --lb-board-accent: #2dd4bf; }

.lb-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 10px 8px;
}

.lb-board__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lb-board-accent);
}

.lb-board__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lb-board__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.lb-board__all {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 140ms ease, color 140ms ease;
}

.lb-board__all:hover {
  color: #090b10;
  background: var(--lb-board-accent);
  text-decoration: none;
}

/* ── Breathable Borderless Tables with Top-3 Podium Badges ── */
.lb-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 3px;
  font-size: var(--fs-sm);
}

.lb-table th {
  text-align: left;
  padding: 4px 12px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.lb-table td {
  padding: 10px 12px;
  vertical-align: middle;
  transition: background 120ms ease;
}

.lb-table tbody tr td:first-child {
  border-radius: 9px 0 0 9px;
}

.lb-table tbody tr td:last-child {
  border-radius: 0 9px 9px 0;
}

.lb-table tbody tr:hover td {
  background: var(--lb-glass-hover);
}

.lb-table tbody tr.is-top-1 td {
  background: rgba(247, 223, 58, 0.06);
}

.lb-table tbody tr.is-top-2 td {
  background: rgba(226, 232, 240, 0.045);
}

.lb-table tbody tr.is-top-3 td {
  background: rgba(229, 147, 82, 0.05);
}

.lb-table tbody tr.is-highlight td {
  background: rgba(247, 223, 58, 0.07);
  font-weight: 700;
}

.lb-table .is-rank {
  width: 52px;
  text-align: center;
}

.lb-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lb-rank-crown {
  display: inline-block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.lb-player-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.lb-player-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
}

.lb-player-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.lb-top3-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lb-top3-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}

.lb-top3-badge:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.16);
}

.lb-top3-badge--1 { box-shadow: inset 0 0 0 1px rgba(247, 223, 58, 0.65); }
.lb-top3-badge--2 { box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.5); }
.lb-top3-badge--3 { box-shadow: inset 0 0 0 1px rgba(229, 147, 82, 0.55); }

.lb-top3-badge img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.lb-top3-more {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  padding-left: 2px;
}

.lb-val {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

.lb-row-plats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lb-row-plat {
  display: inline-flex;
  color: var(--text-3);
}

.lb-row-plat--psn { color: #60a5fa; }
.lb-row-plat--xbl { color: #4ade80; }

.lb-rank-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.lb-empty-row {
  text-align: center;
  padding: 28px 16px !important;
  color: var(--text-3);
}

/* ── Save the World Compact Icon Category Cards (FortniteDB-style) ── */
.lb-stw-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.lb-stw-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-stw-cat {
  background: var(--lb-glass);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.lb-stw-cat__head {
  margin: 0;
  padding: 8px 12px;
  background: var(--lb-glass-strong);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.lb-stw-cat__icons {
  padding: 12px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lb-stw-cat--progression .lb-stw-cat__icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 14px 10px;
  padding: 14px 12px;
}

.lb-mono-mask,
.lb-stw-icon-btn img.lb-mono-mask {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}

:root[data-theme="light"] .lb-mono-mask,
:root[data-theme="light"] .lb-stw-icon-btn img.lb-mono-mask {
  filter: brightness(0);
}

.lb-stw-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  opacity: 0.52;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.lb-stw-icon-btn img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}

.lb-stw-icon-btn:hover {
  opacity: 0.92;
  transform: scale(1.12);
}

.lb-stw-icon-btn.is-active {
  opacity: 1;
  transform: scale(1.14);
}

.lb-stw-icon-btn.is-active img {
  filter: drop-shadow(0 0 8px rgba(247, 223, 58, 0.7));
}

.lb-stw-icon-btn.is-active img.lb-mono-mask {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(247, 223, 58, 0.7));
}

:root[data-theme="light"] .lb-stw-icon-btn.is-active img.lb-mono-mask {
  filter: brightness(0) drop-shadow(0 0 6px rgba(217, 119, 6, 0.6));
}

.lb-stw-title-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: none;
  flex-shrink: 0;
}

.lb-stw-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb-stw-card--sm { width: 52px; }
.lb-stw-card--md { width: 56px; }
.lb-stw-card--lg { width: 84px; }

.lb-stw-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lb-stw-titlebar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Headings, Modern Buttons & Pager ── */
.lb-section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lb-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.lb-subhead {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lb-section-bar .lb-subhead,
.lb-block-section .lb-subhead {
  margin-bottom: 0;
}

.lb-count-muted {
  color: var(--text-3);
  font-size: 0.72em;
}

.lb-back-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lb-back-link:hover {
  color: #fff;
  text-decoration: none;
}

/* Modern Epic / Fortnite primary CTA button */
.lb-fn-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--lb-r-sm);
  background: #f7df3a;
  color: #090b10;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(247, 223, 58, 0.22);
  transition: filter 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.lb-fn-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(247, 223, 58, 0.34);
  color: #090b10;
  text-decoration: none;
}

.lb-fn-btn:active {
  transform: translateY(1px);
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 0;
  background: var(--lb-glass);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.lb-btn--gold {
  background: #f7df3a;
  color: #090b10;
}

.lb-btn--gold:hover {
  filter: brightness(1.06);
  color: #090b10;
}

.lb-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.lb-pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lb-pager__info {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-2);
}

/* ── Player Profile Header (Hero Portrait + Identity + Clean Actions) ── */
.lb-profile-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 8px;
}

.lb-profile-top__hero {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.lb-profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--lb-glass-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.lb-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
  transform: scale(1.12);
}

.lb-profile-avatar--mono {
  display: grid;
  place-items: center;
  background: var(--lb-glass-strong);
  font-family: var(--font-display);
  font-size: 36px;
  color: #fff;
}

.lb-profile-top__id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lb-profile-top__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.lb-profile-top__row h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 50px);
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
}

.lb-founder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7dd3fc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.lb-founder img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
}

.lb-rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--lb-glass);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.lb-profile-top__subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.lb-homebase-tag {
  font-size: 13px;
  color: var(--text-3);
}

.lb-homebase-tag strong {
  color: var(--text-2);
}

.lb-profile-top__plats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lb-plat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.lb-plat-tag--psn { color: #93c5fd; }
.lb-plat-tag--xbl { color: #86efac; }
.lb-plat-tag--nsw { color: #fca5a5; }
.lb-plat-tag--steam { color: #cbd5e1; }

.lb-profile-top__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.lb-profile-top__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lb-profile-top__updated {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

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

.lb-action-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--lb-r-sm);
  border: 0;
  background: var(--lb-glass);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}

.lb-action-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  text-decoration: none;
}

.lb-action-btn--primary {
  background: rgba(247, 223, 58, 0.16);
  color: #f7df3a;
  box-shadow: inset 0 0 0 1px rgba(247, 223, 58, 0.32);
}

.lb-action-btn--primary:hover {
  background: #f7df3a;
  color: #090b10;
  box-shadow: none;
}

.lb-action-btn.is-busy svg {
  animation: lb-spin 0.8s linear infinite;
}

.lb-action-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.lb-panel {
  display: none;
  flex-direction: column;
  gap: 28px;
}

.lb-panel.is-active {
  display: flex;
}

/* ── Airy Borderless Stat Band (zero internal grid lines) ── */
.lb-stat-strip,
.lb-ssd-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 24px;
  border-radius: var(--lb-r);
  background: var(--lb-glass);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lb-stat-item,
.lb-ssd-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-stat-item__label,
.lb-ssd-item__zone {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lb-stat-item__val {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
}

.lb-ssd-item__val {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}

.lb-stat-item__sub,
.lb-ssd-item__sub {
  font-size: 12.5px;
  color: var(--text-3);
}

.lb-ssd-item__endur {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Clean Horizontal Rankings Strip ── */
.lb-highlights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lb-highlight-tile {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--lb-r-sm);
  background: var(--lb-glass);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  color: var(--text);
  flex: 1 1 210px;
  transition: background 140ms ease, transform 120ms ease;
}

.lb-highlight-tile:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  text-decoration: none;
}

.lb-highlight-tile__rank {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: #f7df3a;
  min-width: 44px;
}

.lb-highlight-tile__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lb-highlight-tile__info span {
  font-size: var(--fs-sm);
  color: var(--text-3);
}

/* ── Ranked Modes Grid ── */
.lb-ranked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lb-ranked-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--lb-r);
  background: var(--lb-glass);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lb-ranked-tile__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lb-ranked-tile__mode {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lb-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.lb-bar__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.lb-bar__fill--gold { background: #f7df3a; }
.lb-bar__fill--fort { background: #3fb950; }
.lb-bar__fill--off { background: #f85149; }
.lb-bar__fill--res { background: #38bdf8; }
.lb-bar__fill--tech { background: #c084fc; }

/* ── STW Sub-Navigation (clean underline selector matching main tabs) ── */
.lb-stw-profile {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.lb-stw-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--lb-edge);
}

.lb-stw-subtab {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.lb-stw-subtab span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
}

.lb-stw-subtab:hover {
  color: var(--text);
}

.lb-stw-subtab.is-active {
  color: #fff;
  border-bottom-color: #f7df3a;
}

.lb-stw-subtab.is-active span {
  color: #f7df3a;
}

.lb-stw-subpanel {
  display: none;
  flex-direction: column;
  gap: 28px;
}

.lb-stw-subpanel.is-active {
  display: flex;
}

/* ── STW F.O.R.T. & Armory (2 airy frosted glass panels, zero nested boxes) ── */
.lb-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lb-panel-block {
  padding: 20px 24px;
  border-radius: var(--lb-r);
  background: var(--lb-glass);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lb-fort-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lb-fort-row__head {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  margin-bottom: 5px;
}

.lb-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.lb-kv-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lb-kv-grid span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lb-kv-grid strong {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 800;
}

/* ── Unboxed Grids directly over STW backdrop (Banners, Resources, Heroes, Schematics) ── */
.lb-ach-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.lb-ach {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  opacity: 0.3;
  filter: grayscale(1);
}

.lb-ach.is-done {
  opacity: 1;
  filter: none;
}

.lb-ach span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.lb-res-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lb-stw-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lb-stw-card-grid--unified {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 20px 14px;
  justify-items: center;
}

.lb-stw-card-grid--catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 20px 14px;
  justify-items: center;
}

.lb-stw-card-grid--unified .stw-card-tile,
.lb-stw-card-grid--catalog .stw-card-tile,
.lb-stw-cards-row .stw-card-tile,
.lb-loadout__slot .stw-card-tile {
  width: 92px;
}

.lb-stw-card-grid--unified .stw-card-tile__name,
.lb-stw-card-grid--catalog .stw-card-tile__name,
.lb-stw-res-item__name {
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.lb-stw-res-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  text-decoration: none;
  color: var(--text-2);
  text-align: center;
  transition: transform 120ms ease, color 120ms ease;
}

.lb-stw-res-item:hover {
  color: var(--text);
  transform: translateY(-2px);
  text-decoration: none;
}

.lb-stw-res-item__name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Hero Loadouts & Survivor Squads (modern frosted strips) ── */
.lb-loadouts-list,
.lb-squads-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb-loadout,
.lb-squad {
  background: var(--lb-glass);
  border-radius: var(--lb-r);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb-loadout.is-active {
  box-shadow: inset 3px 0 0 #f7df3a, inset 0 1px 0 var(--lb-edge);
}

.lb-loadout__head,
.lb-squad__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lb-loadout__title,
.lb-squad__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lb-loadout__badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(247, 223, 58, 0.18);
  color: #f7df3a;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lb-loadout__gadgets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lb-gadget-chip {
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}

.lb-loadout__slots {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.lb-loadout__slot,
.lb-loadout__support {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-loadout__slot-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}

.lb-stw-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.lb-squad__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lb-squad__stat {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.lb-squad__fort {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Empty State ── */
.lb-empty-state {
  background: var(--lb-glass);
  border-radius: var(--lb-r);
  box-shadow: inset 0 1px 0 var(--lb-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lb-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ── Modern Epic-style Sync Modal ── */
.lb-modal[hidden] {
  display: none;
}

.lb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lb-modal__panel {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: rgba(12, 16, 26, 0.96);
  border-radius: 16px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 24px 26px 22px;
  text-align: left;
}

.lb-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.lb-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.lb-modal__close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, color 140ms ease;
}

.lb-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lb-modal__desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
}

.lb-sync-stage {
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.lb-sync-code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 10px 18px;
  border-radius: var(--lb-r-sm);
  background: rgba(247, 223, 58, 0.1);
  color: #f7df3a;
}

.lb-sync-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
}

.lb-sync-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--lb-edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-3);
}

.lb-sync-footer a {
  font-weight: 800;
  color: #f7df3a;
  text-decoration: none;
}

.lb-sync-footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .lb-br-grid,
  .lb-stw-layout,
  .lb-two-col {
    grid-template-columns: 1fr;
  }
  .lb-stat-strip,
  .lb-ssd-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
  .lb-ranked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lb-ach-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lb-profile-top__actions {
    align-items: flex-start;
  }
  .lb-profile-avatar {
    width: 62px;
    height: 62px;
  }
  .lb-search__row {
    flex-direction: column;
  }
  .lb-search__field {
    width: 100%;
  }
  .lb-ranked-grid,
  .lb-kv-grid {
    grid-template-columns: 1fr;
  }
  .lb-ach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .is-hide-sm {
    display: none;
  }
}
