/* ── Remove all underlines everywhere ── */
[title], a, a:link, a:visited, a:hover, a:active,
.lb-item *, #leaderboardRows * {
  text-decoration: none !important;
}

/* ── Hide scrollbars globally ───────────────────────────────── */
html, body { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ── Buttery smooth screen transitions ──────────────────────── */
html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  overflow-x: hidden;
}

/* GPU acceleration for screen content */
/* #app: no permanent will-change or translateZ(0) — those create hundreds of
   GPU layers on every child and cause stutter on mobile. The _nav() engine
   applies will-change only during animation then cleans it up. */
#app {
  contain: layout style; /* isolate layout + style to this container */
  backface-visibility: hidden; /* prevent compositor aliasing during opacity transitions */
  -webkit-backface-visibility: hidden;
  /* will-change set dynamically during nav — no permanent GPU layer needed */
}
.lb-item {
  content-visibility: auto;
  contain-intrinsic-size: 0 64px; /* estimated row height for virtual rendering */
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  #app {
    animation: none !important;
    transition: none !important;
  }
}


:root {
  /* Discipline accent — deadlift gold by default, updated via JS */
  --disc-color:         #FFD700;
  --disc-color-bg:      rgba(255, 215, 0, 0.12);
  --disc-color-border:  rgba(255, 215, 0, 0.30);
  --disc-color-glow:    rgba(255, 215, 0, 0.28);
  --disc-color-subtle:  rgba(255, 215, 0, 0.07);
  --disc-color-muted:   rgba(255, 215, 0, 0.60);

  --bg:           #000;
  --panel:        #0a0a0a;
  --panel-alt:    #050505;
  --text:         #e8eaed;
  --muted:        #a8acb3;
  --accent:       #ffffff;
  --input-bg:     #111;
  --input-border: #222;
  --error:        #ff4444;

  /* extended tokens */
  --surface:       #111;
  --surface2:      #080808;
  --border:        #222;
  --border-faint:  #111;
  --card-bg:       #0a0a0a;
  --topbar-bg:     #000;
  --topbar-border: #111;
  --lb-row-border: transparent;
  --lb-row-alt:    transparent;
  --lb-row-hover:  rgba(255,255,255,0.04);
  --lb-me-bg:      rgba(255,255,255,0.05);
  --modal-bg:      #000;
  --modal-surface: #131320;
  --modal-surface2:#111;
  --overlay-bg:    rgba(0,0,0,0.75);
  --tint:          rgba(255,255,255,0.04);
  --tint2:         rgba(255,255,255,0.08);
  --tint-border:   rgba(255,255,255,0.12);
  --btn-text:      #ffffff;
  --btn-border:    rgba(255,255,255,0.55);
  --btn-hover-bg:  rgba(255,255,255,0.08);
  --btn-hover-bdr: rgba(255,255,255,0.85);
  --btn-muted-col: #666;
  --btn-muted-bdr: #333;
  --quote-bg:      #0a0a12;
  --quote-border:  #1a1a28;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  background: radial-gradient(circle at top right, var(--surface) 0%, var(--bg) 45%);
  color: var(--text);
  font-family: 'Barlow', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  max-width: 100vw;
}

h1,
h2,
h3,
.logo,
.nav-links a,
button,
th {
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.02em;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 22px 4px;
  border-bottom: none;
  background: var(--topbar-bg);
}

#topbarBackBtn {
  position: absolute;
  left: 14px;
  top: max(16px, calc(env(safe-area-inset-top) + 8px));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#topbarBackBtn:active {
  transform: translateY(1px);
  background: rgba(255,255,255,.12);
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 4px;
}

.brand-logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.brand-sub {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: #555;
  text-transform: uppercase;
  text-align: center;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: flex-start;
}

/* Nav links take up the centre; auth group pins to the right */
.topbar-nav .nav-links {
  flex: 1;
  justify-content: center;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-power {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.btn-power:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
}
.btn-admin-cog {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(240,165,0,0.4);
  background: transparent;
  color: #f0a500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.btn-admin-cog:hover {
  color: #ffcc44;
  border-color: rgba(240,165,0,0.8);
  background: rgba(240,165,0,0.08);
}
.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: #888;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── Nav avatar ────────────────────────────────────────────── */
.nav-avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.12);
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none;
}
.nav-avatar-btn:hover {
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.06);
}
.nav-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.nav-avatar-btn span {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  border: none !important;
  font-size: 0.75rem !important;
}

/* ── Burger user row ───────────────────────────────────────── */
.burger-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #1e1e2a;
  margin-bottom: 6px;
}
.burger-user-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
}
.burger-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.burger-user-avatar span {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  border: none !important;
}
.burger-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.burger-user-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e8eaed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.burger-user-link {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}
.burger-user-link:hover { color: #e8eaed; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 20px auto 30px;
  padding: 0 2.5%;
  box-sizing: border-box;
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 14px;
  font-size: 2rem;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  margin-bottom: 12px;
}

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

/* Lift type pill selector */
.lift-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.lift-pill {
  padding: 16px 0;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.4);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}
.lift-pill:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.07);
}
.lift-pill.active {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

/* Big bar weight input */
.input-xl {
  font-size: 2rem !important;
  font-weight: 700 !important;
  padding: 18px 16px !important;
  letter-spacing: 0.02em;
  text-align: center;
}

.btn {
  display: inline-block;
  background: transparent;
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bdr);
}

/* btn-primary and btn-outline are now identical to .btn — kept for markup compat */
.btn-primary,
.btn-outline {
  background: transparent;
  color: var(--btn-text);
  border-color: var(--btn-border);
}

.btn-primary:hover,
.btn-outline:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bdr);
}

.btn-disc {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--disc-color);
  box-shadow: 0 0 12px var(--disc-color-glow);
  font-weight: 700;
}
.btn-disc:hover {
  background: var(--disc-color-bg);
  border-color: var(--disc-color);
  color: #fff;
}
.btn-ai-breakdown {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}



.btn-muted {
  color: var(--btn-muted-col);
  border-color: var(--btn-muted-bdr);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.btn-muted:hover {
  color: var(--muted);
  border-color: var(--border);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

.btn-tab {
  background: transparent;
  color: white;
}

.btn-tab.active {
  background: white;
  color: black;
  border-color: white;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #242431;
}

tbody tr:nth-child(even) {
  background: #14141d;
}

tbody tr.current-user {
  background: rgba(255, 255, 255, 0.1);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.error {
  color: #ff4444;
  font-size: 12px;
  margin-top: 4px;
}

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid;
}

.alert.error {
  color: #ff9c9c;
  border-color: #702727;
  background: #230f12;
}

.alert.success {
  color: #ffffff;
  border-color: #505060;
  background: #111;
}

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

.password-toggle {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.result-pop {
  animation: pop 0.6s ease;
}

@keyframes pop {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    padding: 14px 16px 10px;
  }

  .brand-logo {
    height: 55px;
  }
}

/* ── Autocomplete ── */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #1e1e2e;
  border: 1px solid #3a3a50;
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.autocomplete-item {
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: #2a2a3e;
}

.autocomplete-item .ac-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.autocomplete-item .ac-add {
  color: #aaa;
  font-style: italic;
}

.field-locked input {
  color: var(--muted);
  cursor: default;
}

.field-locked input:focus {
  border-color: #333;
}

.country-select select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── County readonly ── */
input[readonly] {
  color: var(--muted);
  cursor: default;
  border-color: #1a1a1a;
  background: #131320;
}

input[readonly]:focus {
  border-color: #1a1a1a;
  outline: none;
}

/* ── Quote strip ── */
#quote-strip {
  width: 100%;
  background: transparent;
  border: none;
  text-align: center;
  padding: 3px 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--disc-color);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

#quote-cursor {
  animation: blink 0.8s step-end infinite;
  color: #555;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Big number treatment ── */
.num-big {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rank-cell {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  width: 72px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rank-cell.rank-1 { color: var(--disc-color); }
.rank-cell.rank-2 { color: #c0c0c0; }
.rank-cell.rank-3 { color: #cd7f32; }

.lift-cell {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

.dots-cell {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #aaa;
}

/* ── Stats grid (profile / leaderboard) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: #0f0f19;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.stat-card .stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── DOTS result popup ── */
.dots-result {
  margin-top: 20px;
  background: #0f0f1a;
  border: 1px solid #2a2a3e;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  animation: pop 0.5s cubic-bezier(.22,1.2,.5,1);
}

.dots-result .dots-number {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  color: #fff;
  line-height: 1;
}

.dots-result .dots-label {
  font-family: 'Barlow', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #888;
  text-transform: uppercase;
  margin-top: 4px;
}

.dots-result .weight-logged {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Leaderboard filters ── */
.lb-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lb-filter-select {
  background: #111;
  color: var(--muted);
  border: 1px solid #222;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: .85rem;
  width: auto;
  cursor: pointer;
}

.lb-filter-select:focus {
  border-color: #555;
  outline: none;
}

/* ── Clickable leaderboard rows ── */
.lb-row {
  transition: background 0.12s;
}

.lb-row:hover {
  background: #1c1c2c !important;
}

.lb-row:hover .num-big {
  color: #fff;
}

/* ── Tier badges ── */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-0 { background: #111; color: #555; border: 1px solid #222; }
.tier-1 { background: #153122; color: #b8f3cb; border: 1px solid #2e7d4f; }
.tier-2 { background: #12263f; color: #acd2ff; border: 1px solid #2f62a5; }
.tier-3 { background: #3a2a06; color: #ffe19a; border: 1px solid #c79a31; }
.tier-processing { background: #3b2a0e; color: #ffdca0; border: 1px solid #d18b1f; }
.tier-rejected { background: #3a1616; color: #ffb9b9; border: 1px solid #c84545; }

.ai-feedback-line {
  margin-top: 4px;
  font-size: .76rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ── Validate / flag buttons ── */
.vote-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.btn-validate {
  background: transparent;
  border: 1px solid #2a4a2a;
  color: #6a9a6a;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: .78rem;
  cursor: pointer;
}

.btn-validate:hover, .btn-validate.voted {
  background: #1a2a1a;
  border-color: #4a7a4a;
  color: #8fbb8f;
}

.btn-flag {
  background: transparent;
  border: 1px solid #4a2a2a;
  color: #9a5a5a;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: .78rem;
  cursor: pointer;
}

.btn-flag:hover, .btn-flag.voted {
  background: #2a1a1a;
  border-color: #7a3a3a;
  color: #bb7f7f;
}

.vote-count {
  font-size: .78rem;
  color: var(--muted);
}

/* ── World Record rows ── */
.wr-row {
  background: rgba(255, 215, 0, 0.03);
  opacity: 0.75;
}

.wr-row:hover {
  background: rgba(255, 215, 0, 0.06);
  opacity: 1;
  cursor: default;
}

.wr-badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
}

.wr-divider td {
  padding: 6px 0 2px;
  border: none;
}

.wr-divider-label {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #444;
  border-top: 1px solid #0a0a0a;
  padding-top: 10px;
  margin: 0 8px;
}

.wr-claimed-mine {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #4caf50;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 4px;
  padding: 2px 7px;
}

.wr-claimed-other {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #aaa;
  background: rgba(255,255,255,0.05);
  border: 1px solid #333;
  border-radius: 4px;
  padding: 2px 7px;
}

.wr-claimed-other:hover {
  color: #fff;
  border-color: #555;
}

.wr-claim-btn {
  font-size: .72rem !important;
  padding: 2px 8px !important;
  border-color: rgba(255,215,0,0.35) !important;
  color: #FFD700 !important;
}

.wr-claim-btn:hover {
  background: rgba(255,215,0,0.08) !important;
  border-color: rgba(255,215,0,0.7) !important;
}

.lb-share-btn {
  font-size: .85rem !important;
  padding: 4px 9px !important;
  color: #888 !important;
  border-color: #222 !important;
  letter-spacing: 0 !important;
  transition: color 0.15s, border-color 0.15s !important;
}
.lb-share-btn:hover {
  color: #e8eaed !important;
  border-color: #555 !important;
}

.wr-claim-pending {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5a623;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 4px;
  padding: 2px 7px;
}

.wr-badge-top {
  background: rgba(255,255,255,0.04) !important;
  color: #555 !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* ── Silverback Athlete badge ── */
.sb-athlete-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 3px 8px;
}

.sb-athlete-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.wr-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  padding: 10px 0 6px;
}

.wr-header-row td {
  border: none;
  padding: 0;
}

/* ── Video play button on leaderboard ── */
.video-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: #fff;
  font-size: .75rem;
  padding: 2px 7px;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s;
}

.video-play-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}

/* ── Video modal ── */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: min(860px, 100%);
  overflow: hidden;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-faint);
}

.video-modal-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-modal-close {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.video-modal-close:hover { color: #fff; }

.video-modal-body {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════
   STRAVA-STYLE LEADERBOARD
══════════════════════════════════════════ */

.lb-sticky-header {
  position: sticky;
  z-index: 90;
  background: #000;
}

/* Leaderboard-specific styles */

.lb-wrap {
  padding: 0;
  contain: layout;
  background: #000;
}

/* ── Pill tabs ── */
.lb-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
}
.lb-pills::-webkit-scrollbar { display: none; }

.lb-pill {
  flex-shrink: 0;
  background: transparent;
  color: #888;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 6px 18px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lb-pill.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.lb-pill:hover:not(.active) {
  border-color: #666;
  color: #ccc;
}
.lb-pill-clear {
  border-color: #333;
  color: #555;
}

/* ── Filter bar ── */
/* ── Filter bar: 2-slide carousel + sort row ── */
.lb-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 4px;
  margin-top: 2px;
}
.lb-filter-carousel-wrap { overflow: visible; position: relative; }
.lb-fc-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lb-fc-track::-webkit-scrollbar { display: none; }
.lb-fc-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.lb-fc-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--disc-color-border);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
  min-width: 0;
}
.lb-fc-cell.panel-open {
  border-color: var(--disc-color);
  background: var(--disc-color-bg);
  box-shadow: 0 0 8px var(--disc-color-glow);
}
.lb-fc-cell.active {
  border-color: var(--disc-color);
  background: var(--disc-color-bg);
}
.lb-fc-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.lb-fc-val {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-fc-chevron {
  font-size: .7rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .15s;
}
.lb-fc-cell.panel-open .lb-fc-chevron { transform: rotate(180deg); }
/* Dots */
.lb-fc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 8px;
}
.lb-fc-dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s;
  padding: 0;
  border: none;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: content-box;
}
.lb-fc-dot.active { background: rgba(255,255,255,.9); }
/* Dropdown options panel — vertical scrollable list */
.lb-fc-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0;
  background: rgba(26,26,36,.99);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.65);
  /* GPU-composited animation only — no max-height/layout thrash */
  opacity: 0;
  transform: translateY(-6px) scale(0.98) translateZ(0);
  pointer-events: none;
  transition: opacity 0.17s cubic-bezier(0.16,1,0.3,1),
              transform 0.17s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
}
.lb-fc-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(0);
  pointer-events: auto;
}
/* Option rows */
.lb-fc-pill {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: transparent;
  color: var(--muted);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.lb-fc-pill:last-child { border-bottom: none; }
.lb-fc-divider {
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: 2px 0;
}
.lb-fc-pill.active {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.lb-fc-pill:hover:not(.active) { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.lb-sort-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.lb-sort-row-post-hero {
  margin-top: 8px;
  padding: 0 16px 8px;
  justify-content: center;
}

/* ── Hero spotlight ── */
/* ── Hero pair wrapper ── */
.lb-hero-pair {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  transition: opacity 0.2s ease;
  background: #000;
}
.lb-hero-pair.hero-exit {
  opacity: 0;
  pointer-events: none;
}
.lb-hero-pair.lb-hero-no-anim .lb-hero-slot {
  transition: none !important;
}

/* ── Discipline switch slide animations ── */
.lb-hero-clip {
  overflow: hidden;
  position: relative;
  height: auto;
  flex-shrink: 0;
  margin-top: 0;
  background: #000;
}
.lb-hero-pair {
  will-change: opacity;
}
@keyframes heroSlideOut {
  from { transform: translateX(0)    translateZ(0); opacity: 1; }
  to   { transform: translateX(-28%) translateZ(0); opacity: 0; }
}
@keyframes heroSlideIn {
  from { transform: translateX(28%)  translateZ(0); opacity: 0; }
  to   { transform: translateX(0)    translateZ(0); opacity: 1; }
}
.lb-hero-pair.disc-slide-out {
  animation: heroSlideOut 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}
.lb-hero-pair.disc-slide-in {
  animation: heroSlideIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Discipline pill bar ── */
/* .lb-disc-bar display is controlled by the render — no blanket hide here */
.lb-disc-pills { display: flex; gap: 10px; }

/* Topbar disc pills slot */
#lbDiscPillsSlot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 16px 14px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#lbDiscPillsSlot::-webkit-scrollbar {
  display: none;
}
#lbDiscPillsSlot .lb-disc-btn {
  flex-shrink: 0;
}
#lbDiscPillsSlot.pills-scrollable {
  justify-content: flex-start;
}
.lb-sort-pills {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lb-sort-btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.lb-sort-btn.active {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.lb-disc-btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  width: 100px;
  height: 38px;
  padding: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.lb-disc-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.lb-disc-btn.active {
  background: var(--disc-color-bg);
  border-color: var(--disc-color);
  color: #fff;
  box-shadow: 0 0 16px var(--disc-color-glow), inset 0 0 8px var(--disc-color-subtle);
}
.lb-disc-btn[data-disc="other"].active {
  background: rgba(170,176,255,.15);
  border-color: #aab0ff;
  color: #aab0ff;
  box-shadow: 0 0 16px rgba(170,176,255,.25);
}

/* ── My Lifts sort buttons ───────────────────────────────────── */
.ml-sort-btn {
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.15s ease !important;
}
.ml-sort-btn:active {
  transform: scale(0.96);
}

/* ── My Lifts content container (for smooth disc transitions) ── */
#myLiftsContent {
  will-change: transform, opacity;
}
#ml-stats-dashboard {
  will-change: transform, opacity;
}

.lb-hero-pair .lb-hero {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  border: none;
  background: transparent !important;
  padding: 22px 12px 18px;
}
/* gender borders removed — cards are transparent */

/* ── Hero slots: flex-grow + max-height collapse + fade ── */
.lb-hero-slot {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: transparent;
  max-height: 600px; /* enough for any card height */
  display: flex;
  flex-direction: column;
  transition: flex-grow 0.36s cubic-bezier(0.4,0,0.2,1),
              max-height 0.36s cubic-bezier(0.4,0,0.2,1),
              opacity 0.28s ease,
              transform 0.28s ease;
}
.lb-hero-slot .lb-hero { flex: 1; }

/* ── FEMALE selected: collapse male slot to nothing ── */
.lb-hero-pair.filter-female .lb-hero-slot-male {
  flex-grow: 0;
  max-height: 0;
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}
/* ── MALE selected: collapse female slot to nothing ── */
.lb-hero-pair.filter-male .lb-hero-slot-female {
  flex-grow: 0;
  max-height: 0;
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}

/* ── Card fills its slot ── */
.lb-hero { width: 100%; }

/* ── List rows: staggered entrance, GPU composited ── */
@keyframes lb-row-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
#leaderboardRows.lb-animating .lb-item {
  animation: lb-row-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#leaderboardRows.lb-animating .lb-item:nth-child(1)  { animation-delay:  0ms }
#leaderboardRows.lb-animating .lb-item:nth-child(2)  { animation-delay: 28ms }
#leaderboardRows.lb-animating .lb-item:nth-child(3)  { animation-delay: 56ms }
#leaderboardRows.lb-animating .lb-item:nth-child(4)  { animation-delay: 84ms }
#leaderboardRows.lb-animating .lb-item:nth-child(5)  { animation-delay:112ms }
#leaderboardRows.lb-animating .lb-item:nth-child(6)  { animation-delay:140ms }
#leaderboardRows.lb-animating .lb-item:nth-child(7)  { animation-delay:168ms }
#leaderboardRows.lb-animating .lb-item:nth-child(8)  { animation-delay:196ms }
#leaderboardRows.lb-animating .lb-item:nth-child(9)  { animation-delay:224ms }
#leaderboardRows.lb-animating .lb-item:nth-child(n+10){ animation-delay:252ms }
.lb-hero-pair .lb-hero-rays { width: 460px; height: 460px; }
.lb-hero-pair .lb-hero-avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.lb-hero-pair .lb-hero-kg { font-size: 2.2rem; margin-top: 8px; }
.lb-hero-pair .lb-hero-name { font-size: 1rem; }
/* hero pair side-by-side handled in 768px block above */

.lb-hero-gender-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.lb-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 20px 16px 28px;
  background: #000;
  overflow: hidden;
  background: transparent;
}

/* Plate element and animation removed as requested */

.lb-hero-bg-video,
.lb-hero-bg-glow,
.lb-hero-bg-overlay,
.lb-hero-rank-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lb-hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  background: #000;
  animation: lbVideoFadeIn 3s ease-out 0.2s forwards;
}
@keyframes lbVideoFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.45; }
}

.lb-hero-bg-overlay {
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 60%, rgba(13,13,18,1) 100%);
}

.lb-hero-bg-glow {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 22%, var(--disc-color-glow) 0%, rgba(0,0,0,0) 42%),
    radial-gradient(circle at 50% 38%, var(--disc-color-subtle) 0%, rgba(0,0,0,0) 64%);
}

.lb-hero-rank-watermark {
  inset: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  z-index: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 18rem;
  line-height: 0.82;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
}

.lb-hero-orbit-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lb-hero-orbit-ring-1,
.lb-hero-orbit-ring-2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 0;
}

.lb-hero-orbit-ring-1 {
  background: conic-gradient(from 0deg, transparent 0%, var(--disc-color) 16%, transparent 34%, transparent 100%);
  opacity: 0.95;
  animation: lb-orbit 3.5s linear infinite;
}

.lb-hero-orbit-ring-2 {
  inset: 16px;
  background: conic-gradient(from 200deg, transparent 0%, var(--disc-color-muted) 14%, transparent 28%, transparent 100%);
  opacity: 0.4;
  animation: lb-orbit 5s linear infinite reverse;
}

.lb-hero-crown {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 1.6rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
}

.lb-hero-avatar-wrap {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.lb-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: transparent;
  color: var(--muted);
  color: #fff;
  border: 2px solid var(--disc-color-border);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 32px var(--disc-color-glow);
}

.lb-hero-kg {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin-top: 12px;
  text-align: center;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.lb-hero-gender-foot {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--disc-color);
  margin-top: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lb-hero-unit {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lb-hero-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--disc-color);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.lb-hero-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.lb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.lb-hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.lb-hero-stat-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.lb-hero-stat-chip-beat {
  color: var(--disc-color);
  border-color: var(--disc-color-border);
  background: var(--disc-color-bg);
}

.lb-hero-play {
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.lb-hero-sub {
  font-size: .75rem;
  color: #888;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  min-height: 1.1em; /* always holds space even when empty */
}
@keyframes lb-orbit {
  to { transform: rotate(360deg); }
}
/* ── Section headers & dividers ── */
.lb-section-header {
  padding: 14px 0 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
}

.lb-divider-row {
  text-align: center;
  padding: 14px 0 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #333;
  border-top: 1px solid #0a0a0a;
  margin-top: 4px;
}

/* ── List items ── */
.lb-list {
  display: flex;
  flex-direction: column;
  overflow: clip; /* prevent stagger translateY from causing iOS viewport shift */
}

/* GPU-composited fade for smooth list transitions */
#leaderboardRows {
  will-change: opacity;
  transform: translateZ(0);
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--lb-row-border);
  cursor: pointer;
  transition: background 0.12s;
  border-radius: 6px;
}
.lb-item:nth-child(even) { background: var(--lb-row-alt); }
.lb-item:hover { background: var(--lb-row-hover) !important; }
.lb-me { background: var(--lb-me-bg) !important; }

/* Rank */
.lb-rank-col {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Avatar wrapper — positions the video dot */
.lb-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.lb-avatar-circle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
}

/* Tier rings on avatar */
.lb-avatar-circle.ring-gold      { border-color: var(--disc-color); }
.lb-avatar-circle.ring-silver    { border-color: #C0C0C0; }
.lb-avatar-circle.ring-bronze    { border-color: #CD7F32; }
.lb-avatar-circle.ring-processing { border-color: #555; animation: ring-pulse 1.4s ease-in-out infinite; }
@keyframes ring-pulse { 0%,100%{border-color:#555} 50%{border-color:#aaa} }

/* Video dot on avatar — YouTube-style badge */
.lb-vid-dot {
  position: absolute;
  bottom: -3px;
  right: -4px;
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: opacity 0.15s, transform 0.15s;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.lb-vid-dot:hover { opacity: 1; transform: scale(1.15); }

/* YouTube badge on hero avatar */
.lb-hero-vid-badge {
  position: absolute;
  bottom: -5px;
  right: -8px;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: opacity 0.15s, transform 0.15s;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7));
}
.lb-hero-vid-badge:hover { opacity: 1; transform: scale(1.12); }

/* Info column */
.lb-info {
  flex: 1;
  min-width: 0;
}
.lb-name-row {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: #e8eaed;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  flex-wrap: nowrap;
}
.lb-profile-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
}
.lb-name-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.lb-sb-icon { font-size: .7rem; opacity: .7; flex-shrink: 0; }

.lb-sub {
  font-size: .74rem;
  color: #555;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right column */
.lb-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  text-align: right;
}
.lb-weight {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.1;
}
.lb-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}
.lb-dots-val {
  font-size: .72rem;
  color: #555;
}

/* Inline action buttons */
.lb-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lb-act-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: .7rem;
  color: #555;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: Barlow, sans-serif;
  transition: color .15s;
  white-space: nowrap;
}
.lb-act-btn:hover { color: #ccc; }
.lb-respect-active { color: #fff !important; }

.lb-dots { font-size: .75rem; color: #555; margin-top: 1px; }
.lb-dots-muted { color: #333; }
.lb-unit { font-size: .7rem; font-weight: 400; color: #555; }

.lb-chevron {
  color: #333;
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.wr-item { opacity: 0.8; }
.wr-item:hover { opacity: 1; }

.lb-loading, .lb-empty {
  padding: 40px;
  text-align: center;
  color: #444;
  font-size: .9rem;
}

/* ── Avatar picker ── */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Carousel layout — replaces grid in avatar picker */
.avatar-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.avatar-carousel::-webkit-scrollbar { display: none; }

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

/* Carousel card sizing */
.avatar-carousel .avatar-option {
  flex: 0 0 auto;
  width: 110px;
  scroll-snap-align: start;
  padding: 10px 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.07);
}
.avatar-carousel .avatar-option.avatar-option--selected {
  border-color: var(--disc-color);
  background: rgba(255,215,0,0.07);
}
.avatar-carousel .avatar-option:active {
  border-color: var(--disc-color);
  background: rgba(255,215,0,0.06);
}

.avatar-option:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

.avatar-option img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #111;
}

/* Bigger images in carousel */
.avatar-carousel .avatar-option img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-option-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  text-align: center;
}

.avatar-carousel .avatar-option-label {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
}

/* ══════════════════════════════
   BURGER MENU
══════════════════════════════ */

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  margin-left: auto;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* X state */
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(10,10,16,0.98);
  border-bottom: 1px solid #0a0a0a;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 4;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.burger-menu.open {
  max-height: 400px;
}

.burger-links {
  display: flex;
  flex-direction: column;
}

.burger-link {
  display: block;
  padding: 16px 24px;
  color: #aaa;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
  transition: color 0.15s, background 0.15s;
}

.burger-link:hover, .burger-link:active {
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.burger-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 24px 20px;
}

/* ── Notification bell — always visible top-right ── */
#notifBellBtn {
  position: absolute;
  right: 4px;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--disc-color, #FFD700);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
}
#notifBellBtn:active {
  opacity: 0.7;
}

/* ── Mobile breakpoint ── */
@media (max-width: 600px) {
  .topbar-nav { display: none !important; }
  .burger-btn { display: flex; }
  .burger-menu { display: flex; }
  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
  }
  /* on mobile, bell sits left of the burger (36px wide + 8px gap) */
  #notifBellBtn {
    position: absolute;
    right: 58px;
    top: max(12px, calc(env(safe-area-inset-top) + 10px));
  }
}

/* ── Community ─────────────────────────────────────────────── */

.comm-composer { margin-bottom: 16px; }

.comm-post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color .15s;
}
.comm-post:hover { border-color: #444; }

.comm-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comm-avatar-wrap { flex-shrink: 0; display: flex; }

.comm-avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  flex-shrink: 0;
}

.comm-avatar-initials {
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  border-radius: 50%;
  display: inline-flex;
}

.comm-post-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.comm-display-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comm-username {
  font-size: .78rem;
  color: var(--muted);
}

.comm-post-body {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 10px;
  word-break: break-word;
}

.comm-lift-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.comm-post-actions {
  display: flex;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Comments section */
.comm-comments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.comm-comments-inner { display: flex; flex-direction: column; gap: 10px; }

.comm-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comm-comment-body {
  flex: 1;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .88rem;
  min-width: 0;
}

.comm-comment-text {
  margin-top: 4px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

/* Reply input */
.comm-reply-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.comm-reply-input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: Barlow, sans-serif;
  font-size: .9rem;
  resize: none;
  min-height: 40px;
  box-sizing: border-box;
  transition: border-color .15s;
}
.comm-reply-input:focus { outline: none; border-color: #888; }

/* ── Kudos ──────────────────────────────────────────────────── */
.kudos-active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #fff !important;
  color: #fff !important;
  font-weight: 600;
}

.comm-kudos-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@keyframes kudosPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.kudos-pulse {
  animation: kudosPulse 0.4s ease;
}

/* ── Learn ──────────────────────────────────────────────────── */

.learn-wrap { max-width: 860px; margin: 0 auto; }

/* ── AI Feature Card ─────────────────────────── */
.learn-ai-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #111 0%, #0a0a0a 60%, #0d1a0e 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s, transform .2s;
}
.learn-ai-card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.lai-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}
/* subtle scanline texture */
.learn-ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0px, rgba(255,255,255,.012) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.lai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}
.lai-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: lai-blink 2s ease-in-out infinite;
}
@keyframes lai-blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.lai-left { flex: 1; min-width: 0; position: relative; z-index: 1; }
.lai-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.lai-sub {
  font-size: .8rem;
  color: #666;
  margin-bottom: 12px;
}
.lai-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lai-stat {
  font-size: .78rem;
  color: #888;
}
.lai-stat strong {
  color: #ddd;
  font-weight: 700;
}
.lai-div { color: #333; font-size: .85rem; }

.lai-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.lai-brain {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
  animation: lai-float 3s ease-in-out infinite;
}
@keyframes lai-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.lai-arrow {
  font-size: .9rem;
  color: #444;
  transition: color .2s, transform .2s;
}
.learn-ai-card:hover .lai-arrow { color: #fff; transform: translateX(3px); }

/* ── Learn hero ──────────────────────────────── */
.learn-hero {
  text-align: center;
  padding: 32px 0 24px;
}
.learn-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: .5px;
  margin: 0 0 12px;
}
.learn-subtitle {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 10px;
}
.learn-meta {
  font-size: .75rem;
  color: #555;
  margin: 0;
}

/* Tabs */
.learn-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  justify-content: center;
}
.learn-tabs::-webkit-scrollbar { display: none; }
.learn-tab {
  flex-shrink: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .5px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid #333;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: all .15s;
  text-transform: uppercase;
  white-space: nowrap;
}
.learn-tab:hover { border-color: #666; color: var(--text); }
.learn-tab.active {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* Panels */
.learn-panel { display: none; }
.learn-panel.active { display: block; }

/* Overview card */
.learn-overview { margin-bottom: 16px; }
.learn-pattern-badge {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.learn-intro { font-size: .95rem; line-height: 1.65; color: var(--text); margin: 0; }

/* 2-col grid */
.learn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 620px) { .learn-grid-2 { grid-template-columns: 1fr; } }

/* Card title */
.learn-card-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 14px;
}

/* Definition */
.learn-def-body { font-size: .9rem; line-height: 1.65; color: var(--text); margin: 0 0 14px; }
.learn-commands { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.learn-commands-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.learn-command {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  letter-spacing: .5px;
}
.learn-command-arrow { color: var(--muted); font-size: .85rem; }

/* Cues */
.learn-cues-card { display: flex; flex-direction: column; }
.learn-cues { display: flex; flex-direction: column; gap: 10px; }
.learn-cue {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  border-left: 3px solid #fff;
  padding: 6px 0 6px 14px;
  letter-spacing: .3px;
}

/* Steps */
.learn-steps { display: flex; flex-direction: column; gap: 0; }
.learn-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.learn-step:last-child { border-bottom: none; }
.learn-step-label {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 2px;
}
.learn-step-text { font-size: .9rem; line-height: 1.6; color: var(--text); }

/* Faults */
.learn-faults { display: flex; flex-direction: column; gap: 12px; }
.learn-fault {
  border-left: 3px solid #e44;
  padding: 6px 0 6px 12px;
}
.learn-fault-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: #ff7070;
  margin-bottom: 3px;
}
.learn-fault-rule { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Drills */
.learn-drills { display: flex; flex-direction: column; gap: 12px; }
.learn-drill {
  border-left: 3px solid #4a8;
  padding: 6px 0 6px 12px;
}
.learn-drill-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: #7dffb5;
  margin-bottom: 3px;
}
.learn-drill-why { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Rules callout */
.learn-rules-callout {
  background: rgba(255,255,255,.04);
  border: 1px solid #444;
  border-left: 4px solid #fff;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .87rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Section title */
.learn-section-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  margin: 0 0 4px;
}

/* Timeline */
.learn-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.learn-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.learn-timeline-item {
  position: relative;
  padding: 4px 0 18px 20px;
}
.learn-timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d0d12;
  outline: 1px solid #fff;
}
.learn-timeline-year {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 2px;
}
.learn-timeline-text { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* Federation table */
.learn-fed-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.learn-fed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.learn-fed-table th {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.learn-fed-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: top;
  line-height: 1.45;
}
.learn-fed-table tr:last-child td { border-bottom: none; }
.learn-fed-table tr:hover td { background: rgba(255,255,255,.02); }
.fed-full {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 1px;
}
.learn-disclaimer {
  font-size: .78rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ── Lift social (leaderboard rows) ────────────────────────── */
/* lb-social / lb-social-btn kept for modal usage */
.lb-social { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.lb-social-btn { font-size:.72rem; padding:3px 8px; border-radius:999px; border:1px solid #333; background:transparent; color:#888; cursor:pointer; white-space:nowrap; transition:all .15s; font-family:Barlow,sans-serif; }
.lb-social-btn:hover { border-color:#666; color:#ccc; }

/* ── Lift modal (bottom sheet) ──────────────────────────────── */
.lift-modal-sheet {
  background: #111;
  border-top: 1px solid #333;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetSlideUp .38s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes sheetSlideUp {
  from { transform: translateY(100%); opacity: 0.6; }
  to   { transform: translateY(0);    opacity: 1; }
}
.lift-modal-drag-bar {
  width: 40px; height: 4px;
  background: #444; border-radius: 2px;
  margin: 12px auto 4px;
  flex-shrink: 0;
}
.lift-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lift-modal-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.lift-modal-meta { font-size: .85rem; color: var(--muted); }
.lift-modal-close {
  background: rgba(255,255,255,.1); border: none; color: rgba(255,255,255,.7);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; padding: 0; -webkit-tap-highlight-color: transparent;
}
.lift-modal-close::after { content: ''; }

.lift-modal-actions {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.lift-modal-respect { font-size: .9rem; padding: 8px 18px; }
.lift-modal-comments-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.lift-modal-comments-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}
.lift-modal-comments-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lift-modal-reply-box { margin-top: auto; padding-top: 12px; padding-bottom: 80px; border-top: 1px solid var(--border); }

/* ── Instagram-style sticky comment bar ── */
.lift-modal-input-bar {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: #111;
}
@media (max-width: 767px) {
  .lift-modal-input-bar {
    padding-bottom: calc(72px + max(0px, env(safe-area-inset-bottom)));
  }
}
.lift-modal-login-prompt {
  flex-shrink: 0;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
  background: #111;
}
#liftReviewSlides {
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.lift-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 2px;
}
.lift-wizard-dots { display: flex; align-items: center; }
.lift-insta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.lift-insta-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: .88rem;
  line-height: 1.4;
  padding: 9px 14px;
  resize: none;
  overflow: hidden;
  min-height: 38px;
  max-height: 96px;
  outline: none;
  transition: border-color .15s;
}
.lift-insta-input:focus { border-color: rgba(255,255,255,.3); }
.lift-insta-input::placeholder { color: rgba(255,255,255,.3); }
.lift-insta-post {
  background: none;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0 2px;
  white-space: nowrap;
  transition: color .15s;
  flex-shrink: 0;
}
.lift-insta-post:disabled { cursor: default; }

/* Consistent comment-bar action buttons (GIF + Post/Send) */
.comm-gif-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  cursor: pointer;
  padding: 6px 12px;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 800;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.comm-post-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  padding: 6px 12px;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 800;
  color: rgba(255,255,255,.25);
  font-family: inherit;
  transition: color .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.comm-post-btn:disabled { cursor: default; }
.lift-community-score-panel {
  border: 1px solid #303039;
  border-radius: 12px;
  background: #0a0a0a;
  padding: 12px;
  margin-bottom: 14px;
}
.lift-community-title {
  font-family: 'Barlow', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b9b9c1;
}
.lift-community-overall {
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: 8px 0 10px;
}
.lift-community-empty {
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
  padding-bottom: 4px;
}
.lift-community-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lift-community-bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  gap: 8px;
  align-items: center;
}
.lift-community-bar-label {
  font-size: .74rem;
  color: #ceced4;
  font-weight: 700;
}
.lift-community-bar-track {
  height: 7px;
  background: #33333d;
  border-radius: 999px;
  overflow: hidden;
}
.lift-community-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 999px;
}
.lift-community-bar-value {
  font-size: .72rem;
  color: #a8a8b2;
  text-align: right;
}
.lift-community-count {
  margin-top: 9px;
  font-size: .72rem;
  color: #8d8d97;
}
.lift-review-wizard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lift-review-steps-wrap {
  overflow: hidden;
  width: 100%;
}
.lift-review-steps-track {
  display: flex;
  width: 400%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.lift-review-step {
  flex: 0 0 25%;
  width: 25%;
  box-sizing: border-box;
}
.lift-review-step-label {
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 4px;
  color: #fff;
}
.lift-review-step-sublabel {
  font-size: .76rem;
  color: #9f9fa8;
  margin-bottom: 12px;
}
.lift-review-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #3f3f45;
  border: none;
  outline: none;
  cursor: pointer;
  touch-action: none;
  margin: 12px 0;
}
.lift-review-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.lift-review-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}
.lift-review-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.lift-review-score {
  margin-top: 8px;
  font-size: .78rem;
  color: #b6b6c0;
}
.lift-review-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.lift-review-comment-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: .68rem;
  line-height: 1;
  padding: 4px 7px;
  border: 1px solid #3b3b45;
  border-radius: 999px;
  color: #fff;
  background: #1f1f28;
}

/* ── Collapsible leaderboard ────────────────────────────────── */

.lb-top10-wrap {
  position: relative;
}

.lb-fade-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 96px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.lb-rest-wrap {
  transition: height 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: height;
}

.lb-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 12px;
  color: #888;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.lb-toggle-btn:hover {
  border-color: #666;
  color: #fff;
  background: rgba(255,255,255,.04);
}

.lb-toggle-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-arrow-up {
  transform: rotate(180deg);
}

/* ── About / How It Works ───────────────────────────────────── */

.about-wrap { max-width: 860px; margin: 0 auto; }

/* Hero */
.about-hero {
  text-align: center;
  padding: 48px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-hero-icon {
  width: 72px; height: 72px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.18));
}
.about-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0 0 12px;
  letter-spacing: .5px;
}
.about-tagline {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}
.about-sub {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}
.about-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Section */
.about-section { margin: 40px 0; }
.about-section-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0 0 24px;
  letter-spacing: .3px;
}

/* Steps */
.about-steps { display: flex; flex-direction: column; gap: 0; }
.about-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.about-step:last-child { border-bottom: none; }
.about-step-number {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: rgba(255,255,255,.06);
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
}
.about-step-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-step-content { flex: 1; }
.about-step-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.about-step-body { font-size: .9rem; line-height: 1.65; color: var(--muted); }

/* DOTS explainer */
.about-dots-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin: 0 0 40px;
}
@media (max-width: 600px) { .about-dots-card { grid-template-columns: 1fr; } }
.about-dots-badge {
  display: inline-block;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: 2px;
  background: #fff;
  color: #000;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.about-dots-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 12px;
}
.about-dots-body { font-size: .88rem; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.about-dots-example {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.about-dots-ex-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
}
.about-dots-ex-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.about-dots-ex-lift  { font-size: 1.1rem; font-weight: 600; }
.about-dots-ex-dots  { font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--muted); }
.about-dots-winner   { color: #FFD700 !important; }
.about-dots-divider  { height: 1px; background: var(--border); margin: 4px 0; }
.about-dots-caption  { font-size: .78rem; color: #555; margin: 10px 0 0; text-align: center; }

/* Feature cards */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.about-feature-card { display: flex; flex-direction: column; gap: 10px; }
.about-feature-soon { opacity: .6; }
.about-feature-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.about-feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.about-feature-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}
.about-soon-badge {
  font-size: .7rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(255,255,255,.08);
  border: 1px solid #444;
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--muted);
}
.about-feature-desc { font-size: .85rem; line-height: 1.6; color: var(--muted); flex: 1; margin: 0; }
.about-feature-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  margin-top: auto;
  transition: opacity .15s;
}
.about-feature-link:hover { opacity: .7; }

/* Final CTA card */
.about-final-cta {
  text-align: center;
  padding: 48px 32px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Record Lift accordions ─────────────────────────────────── */

/* ── Video upload row ────────────────────────────────────────── */
.video-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.video-pick-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 14px;
  font-size: .85rem;
}
@media (max-width: 500px) {
  .video-upload-row { flex-direction: column; align-items: stretch; }
  .video-upload-row input { width: 100%; }
}

.log-accordion { padding: 0; margin-top: 16px; overflow: hidden; }

.log-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .3px;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}
.log-accordion-toggle:hover { color: #fff; }

.log-accordion-arrow {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.log-accordion-body {
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.log-accordion-inner { padding: 0 22px 22px; }

.log-accordion-intro {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Lift rule blocks */
.log-lift-rules { display: flex; flex-direction: column; gap: 24px; }

.log-lift-block {}

.log-lift-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: .3px;
}

.log-rules-list { display: flex; flex-direction: column; gap: 6px; }

.log-rule {
  font-size: .85rem;
  line-height: 1.5;
  padding: 7px 12px;
  border-radius: 7px;
  border-left: 3px solid transparent;
}
.log-rule-pass {
  background: rgba(100, 220, 130, .06);
  border-left-color: #4a8;
  color: #ccc;
}
.log-rule-fail {
  background: rgba(220, 80, 80, .06);
  border-left-color: #e44;
  color: #ccc;
}

/* Recording best practice */
.log-practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.log-practice-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.log-practice-icon { font-size: 1.4rem; margin-bottom: 6px; }

.log-practice-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 6px;
}

.log-practice-body {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
}

.log-practice-summary {
  background: rgba(255,255,255,.06);
  border: 1px solid #444;
  border-left: 4px solid #fff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Active nav state ───────────────────────────────────────── */
.nav-links a.nav-active,
.burger-links a.nav-active {
  color: #fff !important;
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ── Site footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  margin-top: 40px;
}
.site-footer-inner {
  width: min(1080px, 95vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #555;
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #888; }
.footer-copy {
  font-size: .75rem;
  color: #444;
}

/* ── Theme toggle pill ───────────────────────────────────── */

/* ── PWA / iOS safe area ─────────────────────────────────────── */
@supports (padding: max(0px)) {
  .topbar {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}

/* ── Admin Panel ─────────────────────────────────────────────── */
.admin-wrap { max-width: 860px; margin: 0 auto; }

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin: 0;
}
.admin-stat { color: var(--muted); font-size: .85rem; }

.admin-member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-member-row:last-child { border-bottom: none; }
.admin-member-info { flex: 1; min-width: 0; }
.admin-member-name {
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-member-sub {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-member-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .admin-member-row { flex-direction: column; align-items: flex-start; }
  .admin-member-actions { width: 100%; }
}

/* ── Bottom Navigation Bar ────────────────────────────────────────────────── */
.bottom-nav {
  display: none; /* desktop: hidden */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: #0a0a0f;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  transform: translateZ(0); /* force GPU layer for stable fixed positioning */
  will-change: transform; /* hint for compositor */
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s, transform 0.1s ease;
  width: 100%;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item:active {
  transform: scale(0.92);
}
.bottom-nav-item svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  transition: stroke 0.15s;
}
.bottom-nav-item:hover {
  color: rgba(255,255,255,0.7);
}
.bottom-nav-item.active {
  color: var(--disc-color);
}
.bottom-nav-item.active svg {
  stroke: var(--disc-color);
}
/* Record lift tab — raised red circle button */
.bottom-nav-record {
  position: relative;
  margin-top: -22px;
  color: #FF0000 !important;
}
.bottom-nav-record:hover,
.bottom-nav-record.active {
  color: #ff6b6b !important;
}
.record-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid transparent;
  background:
    linear-gradient(#e53935, #c62828) padding-box,
    conic-gradient(from var(--rec-orbit-a), transparent 0%, rgba(255,255,255,1) 20%, rgba(255,200,200,0.6) 35%, transparent 50%) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(229,57,53,0.4);
  transition: transform 0.15s;
  animation: recOrbit 1.8s linear infinite;
}
@keyframes recOrbit {
  to { --rec-orbit-a: 360deg; }
}


.bottom-nav-record:hover .record-btn,
.bottom-nav-record.active .record-btn {
  transform: scale(1.07);
}
.record-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  transform: translate(-2px, 1px); /* optical centre correction for PNG offset */
}

/* Random attention ping */
.record-btn.record-ping {
  animation: recordPingBounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}
@keyframes recordPingBounce {
  0%   { transform: scale(1)    rotate(0deg);   }
  15%  { transform: scale(1.18) rotate(-4deg);  }
  30%  { transform: scale(1.22) rotate(4deg);   }
  45%  { transform: scale(1.18) rotate(-2deg);  }
  60%  { transform: scale(1.12) rotate(2deg);   }
  75%  { transform: scale(1.06) rotate(-1deg);  }
  90%  { transform: scale(1.02) rotate(0deg);   }
  100% { transform: scale(1)    rotate(0deg);   }
}
/* Button is greyed out while already on the log wizard */
.bottom-nav-record.record-btn-on-log {
  color: rgba(255,255,255,0.3) !important;
  pointer-events: none;
}
.bottom-nav-record.record-btn-on-log .record-btn {
  background: #444 !important;
  border-color: transparent !important;
  box-shadow: none;
  animation: none !important;
}
.bottom-nav-record.record-btn-on-log .record-logo {
  animation: none !important;
  opacity: 0.45;
}

.bottom-nav-record.record-btn-pulsing .record-btn {
  animation: recordBtnRing 1.4s ease-out infinite;
  position: relative;
}
.bottom-nav-record.record-btn-pulsing .record-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: recordBtnRing2 1.4s ease-out 0.5s infinite;
  pointer-events: none;
}
@keyframes recordBtnRing {
  0%   { box-shadow: 0 0 0 0px  rgba(255,0,0,0.9); }
  70%  { box-shadow: 0 0 0 22px rgba(255,0,0,0); }
  100% { box-shadow: 0 0 0 0px  rgba(255,0,0,0); }
}
@keyframes recordBtnRing2 {
  0%   { box-shadow: 0 0 0 0px  rgba(255,0,0,0.6); }
  70%  { box-shadow: 0 0 0 16px rgba(255,0,0,0); }
  100% { box-shadow: 0 0 0 0px  rgba(255,0,0,0); }
}

@media (max-width: 768px) {
  .bottom-nav { display: grid; }
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  /* Quote strip: fixed just above tab bar on mobile */
  body { /* quote strip now lives inside the fixed topbar — no extra bottom offset needed */ }
  .burger-btn { display: none; }
  .burger-menu { display: none !important; }
  /* Topbar: centered, respects Dynamic Island / notch */
  .topbar {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(14px, calc(env(safe-area-inset-top) + 4px)) 16px 0;
    text-align: center;
    background: var(--bg);
    border-bottom: none;
    gap: 4px;
  }
  .topbar-nav { display: none; }
  .nav-auth { display: none; }
  .topbar-brand .brand-sub { font-size: 0.65rem; }
  .brand-logo { height: 52px; }
  #quote-strip {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  /* Hero cards: always side by side on mobile */
  .lb-hero-pair { flex-direction: row !important; gap: 0; }
  .lb-hero-pair .lb-hero { padding: 10px 8px 14px; min-height: 0; }
  .lb-hero-pair .lb-hero-kg { font-size: 1.35rem; margin-top: 4px; }
  .lb-hero-pair .lb-hero-rays { width: 400px; height: 400px; }
  .lb-hero-pair .lb-hero-avatar { width: 42px; height: 42px; }
  .lb-hero-pair .lb-hero-name { font-size: .82rem; }
  .lb-hero-pair .lb-hero-label { font-size: .65rem; }
  .lb-hero-pair .lb-hero-sub { display: none; }
  .lb-hero-gender-label { font-size: .6rem; letter-spacing: .18em; }
}

/* ═══════════════════════════════════════════════
   SPLASH SCREEN — PRIMAL ARRIVAL
═══════════════════════════════════════════════ */
#splashScreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05050a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Cinematic diagonal scan sweep */
.sp-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 0%,
    transparent 36%,
    rgba(255,255,255,0.05) 50%,
    transparent 64%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: sp-scan-sweep 0.85s cubic-bezier(0.4,0,0.2,1) 0.05s both;
  pointer-events: none;
  z-index: 0;
}
@keyframes sp-scan-sweep {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}

/* Massive radial core glow — squat gold */
.sp-core-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255,215,0,0.22) 0%,
    rgba(255,215,0,0.08) 35%,
    rgba(255,215,0,0.02) 60%,
    transparent 75%
  );
  animation: sp-glow-enter 0.9s cubic-bezier(0.2,0,0,1) 0.18s both,
             sp-glow-pulse 3.2s ease-in-out 1.1s infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes sp-glow-enter {
  from { opacity: 0; transform: translate(-50%, -58%) scale(0.4); }
  to   { opacity: 1; transform: translate(-50%, -58%) scale(1); }
}
@keyframes sp-glow-pulse {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1; }
}

/* Full-screen rotating conic ray burst — squat gold */
.sp-rays {
  position: absolute;
  width: 200vmax;
  height: 200vmax;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255,215,0,0.04)  7deg,   transparent 14deg,
    transparent 32deg,
    rgba(255,215,0,0.028) 39deg,  transparent 46deg,
    transparent 64deg,
    rgba(255,215,0,0.05)  71deg,  transparent 78deg,
    transparent 96deg,
    rgba(255,215,0,0.032) 103deg, transparent 110deg,
    transparent 128deg,
    rgba(255,215,0,0.04)  135deg, transparent 142deg,
    transparent 160deg,
    rgba(255,215,0,0.028) 167deg, transparent 174deg,
    transparent 192deg,
    rgba(255,215,0,0.05)  199deg, transparent 206deg,
    transparent 224deg,
    rgba(255,215,0,0.032) 231deg, transparent 238deg,
    transparent 256deg,
    rgba(255,215,0,0.04)  263deg, transparent 270deg,
    transparent 288deg,
    rgba(255,215,0,0.028) 295deg, transparent 302deg,
    transparent 320deg,
    rgba(255,215,0,0.05)  327deg, transparent 334deg,
    transparent 360deg
  );
  animation: sp-rays-enter 1.0s ease 0.3s forwards,
             sp-rays-spin 26s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes sp-rays-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sp-rays-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Shockwave rings — expand outward on icon impact */
.sp-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(255,215,0,0.55);
  pointer-events: none;
  z-index: 1;
}
.sp-ring-1 {
  width: 80px; height: 80px;
  animation: sp-ring-out 0.85s cubic-bezier(0,0,0.15,1) 0.28s both;
}
.sp-ring-2 {
  width: 80px; height: 80px;
  animation: sp-ring-out 0.95s cubic-bezier(0,0,0.15,1) 0.44s both;
}
.sp-ring-3 {
  width: 80px; height: 80px;
  animation: sp-ring-out 1.1s cubic-bezier(0,0,0.15,1) 0.60s both;
}
@keyframes sp-ring-out {
  0%   { transform: translate(-50%, -65%) scale(0.8); opacity: 0.85; }
  100% { transform: translate(-50%, -65%) scale(3.6); opacity: 0; }
}

/* Content wrapper — dims upward when CTA appears */
.sp-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sp-content.sp-content-dimmed {
  transform: translateY(-16px) scale(0.92);
}
.sp-content.sp-content-dimmed .sp-brand,
.sp-content.sp-content-dimmed .sp-typewriter {
  opacity: 1;
}
.sp-content.sp-content-dimmed .sp-stats {
  opacity: 0;
}

/* Gorilla icon — slams in with spring bounce */
.sp-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 32px rgba(255,255,255,0.55))
    drop-shadow(0 0 80px rgba(255,255,255,0.2));
  animation: sp-icon-in 0.62s cubic-bezier(0.34,1.56,0.64,1) 0.22s both;
  margin-bottom: 20px;
}
@keyframes sp-icon-in {
  from { opacity: 0; transform: scale(0.42) translateY(-30px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Brand block */
.sp-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sp-wordmark {
  width: 300px;
  max-width: 88vw;
  height: auto;
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.2));
  animation: sp-slide-up 0.5s cubic-bezier(0.2,0,0,1) 0.58s both;
  margin-bottom: 4px;
}

/* Gold rule — extends from centre */
.sp-rule {
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,215,0,0.5) 25%,
    rgba(255,215,0,0.9) 50%,
    rgba(255,215,0,0.5) 75%,
    transparent
  );
  width: 0;
  margin: 10px 0 8px;
  animation: sp-rule-grow 0.55s cubic-bezier(0.2,0,0,1) 0.82s both;
}
@keyframes sp-rule-grow {
  from { width: 0; opacity: 0; }
  to   { width: 220px; opacity: 1; }
}

/* "STRENGTH CLUB" tracks in */
.sp-club {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
  animation: sp-club-track 0.55s cubic-bezier(0.2,0,0,1) 0.88s both;
}
@keyframes sp-club-track {
  from { opacity: 0; letter-spacing: 0.16em; transform: translateY(4px); }
  to   { opacity: 1; letter-spacing: 0.48em; transform: translateY(0); }
}

/* Tagline */
.sp-tagline {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  margin-top: 24px;
  animation: sp-slide-up 0.5s ease 1.1s both;
}

/* Typewriter inspirational text */
.sp-typewriter {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,215,0,0.9);
  text-align: center;
  min-height: 1.4em;
  margin-top: 28px;
  padding: 0 20px;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.sp-typewriter::after {
  content: '|';
  animation: sp-cursor-blink 0.75s step-end infinite;
  color: rgba(255,215,0,0.7);
}
@keyframes sp-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Live stats */
.sp-stats {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.82);
  margin-top: 18px;
  min-height: 1.3em;
  animation: sp-slide-up 0.5s ease 0.9s both;
}

@keyframes sp-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA Buttons — slide up from below after splash holds */
.sp-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.sp-cta.sp-cta-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}
.sp-cta.sp-cta-visible .sp-btn-primary {
  animation: sp-btn-enter 0.65s cubic-bezier(0.16,1,0.3,1) 0.05s both;
}
.sp-cta.sp-cta-visible .sp-btn-ghost {
  animation: sp-btn-enter 0.65s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}
@keyframes sp-btn-enter {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sp-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}
.sp-btn-primary {
  background: #FFD700;
  color: #080810;
  box-shadow: 0 0 28px rgba(255,215,0,0.3), 0 4px 16px rgba(0,0,0,0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sp-btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 12px rgba(255,215,0,0.2), 0 2px 8px rgba(0,0,0,0.3);
}
.sp-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.sp-btn-ghost:active {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.sp-btn-secondary {
  font-size: 0.88rem;
  padding: 13px 10px;
}
.sp-cta.sp-cta-visible .sp-btn-secondary {
  animation: sp-btn-enter 0.65s cubic-bezier(0.16,1,0.3,1) 0.22s both;
}

/* Discipline selection grid */
.sp-disc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
}
.sp-disc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 10px 12px;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .15s;
  animation: sp-btn-enter 0.65s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
.sp-disc-active {
  border-color: rgba(255,215,0,0.55);
  background: rgba(255,215,0,0.07);
  color: #FFD700;
}
.sp-disc-active:active { background: rgba(255,215,0,0.14); }
.sp-disc-soon:active   { background: rgba(255,255,255,0.07); }
.sp-disc-pill {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2px 8px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}
.sp-soon {
  font-size: 0.57rem;
  font-weight: 700;
  background: rgba(255,215,0,0.1);
  color: rgba(255,215,0,0.38);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bottom progress bar — gold glow */
.sp-bar-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.04);
  transition: opacity 0.35s ease;
}
.sp-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    rgba(255,215,0,0.15),
    rgba(255,215,0,0.85) 55%,
    rgba(255,240,120,1)
  );
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

/* Fade-out */
#splashScreen.splash-exit {
  opacity: 0;
  transition: opacity 0.58s ease;
}

/* ── Camera Recorder Overlay ──────────────────────────────────────────────── */
#cameraRecorderOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  font-family: 'Barlow', sans-serif;
}
.cam-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}
.cam-btn-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.cam-btn-icon:hover { background: rgba(255,255,255,0.2); }
.cam-lift-pills { display: flex; gap: 5px; flex: 1; justify-content: center; padding: 0 8px; }
.cam-lift-pill {
  flex: 0 0 auto;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 5px 10px; border-radius: 7px;
  font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.07em;
  cursor: pointer; transition: all 0.15s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.cam-lift-pill.active { background: rgba(255,255,255,0.95); border-color: #fff; color: #000; }
.cam-viewport { flex: 1; position: relative; overflow: hidden; }
#camPreview {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#camRecTimer {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  border-radius: 99px; padding: 4px 14px;
  display: flex; align-items: center; gap: 7px;
  color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0.05em;
}
.cam-rec-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF0000; animation: cam-blink 1s infinite;
}
@keyframes cam-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cam-footer {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 20px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
}
.cam-inputs {
  display: flex; gap: 10px; margin-bottom: 16px;
}
.cam-inputs > * {
  flex: 1;
}
.cam-input-group label {
  display: block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px;
}
.cam-input-group input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 8px;
  padding: 8px 8px; font-size: 1rem;
  font-family: 'Barlow', sans-serif; font-weight: 600;
  text-align: center; outline: none;
}
.cam-input-group input:focus { border-color: rgba(255,255,255,0.6); }
.cam-controls {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cam-record-btn {
  width: 68px; height: 68px; border-radius: 50%;
  background: #FF0000;
  border: 4px solid rgba(255,255,255,0.35);
  cursor: pointer; position: relative; transition: all 0.2s;
  flex-shrink: 0;
  color: transparent; font-size: 0;
}
.cam-record-btn::after {
  content: ''; position: absolute;
  inset: 8px; border-radius: 50%; background: #FF0000;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.cam-record-btn.recording {
  animation: cam-pulse-rec 1.5s infinite;
}
.cam-record-btn.recording::after {
  border-radius: 5px; inset: 18px; background: #fff;
}
.cam-record-btn.recording {
  animation: cam-pulse-rec 1.5s infinite;
}
.cam-record-btn.recording::after {
  border-radius: 5px; inset: 18px; background: #fff;
}
@keyframes cam-pulse-rec {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.6); }
  100% { box-shadow: 0 0 0 18px rgba(255,0,0,0); }
}
.cam-use-btn {
  position: absolute; right: 0;
  background: #fff; color: #000; border: none;
  padding: 10px 22px; border-radius: 99px;
  font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em;
  cursor: pointer; transition: opacity 0.15s;
}
.cam-use-btn:hover { opacity: 0.85; }

/* ── Record Prep Screen ────────────────────────────────────────────────────── */
.rp-screen {
  display: block;
  padding-bottom: 140px;
}
.rp-inner {
  padding: 24px 16px 0;
}

/* Lift selector pills */
.rp-lift-selector {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 24px;
}
.rp-pill {
  padding: 12px 8px; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.18s; text-align: center;
}
.rp-pill:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.rp-pill.rp-pill-active {
  background: #fff; border-color: #fff; color: #000;
}

/* Collapsible cards */
.rp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.rp-card-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 18px; background: none; border: none;
  cursor: pointer; color: inherit;
}
.rp-card-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em;
  color: #e8eaed;
}
.rp-card-icon { font-size: 1.1rem; }
.rp-chevron {
  width: 16px; height: 16px; flex-shrink: 0;
  color: rgba(255,255,255,0.3);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.rp-card-open .rp-chevron { transform: rotate(180deg); }
.rp-card-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
}
.rp-card-inner { padding: 0 18px 18px; }

/* Judging rules */
.rp-intro {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  margin: 0 0 14px; line-height: 1.5;
}
.rp-rules { display: flex; flex-direction: column; gap: 8px; }
.rp-rule {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; line-height: 1.45;
}
.rp-rule-icon {
  font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 0.9rem;
  flex-shrink: 0; margin-top: 1px; width: 14px;
}
.rp-pass { color: rgba(255,255,255,0.85); }
.rp-pass .rp-rule-icon { color: #4caf8a; }
.rp-fail { color: rgba(255,255,255,0.5); }
.rp-fail .rp-rule-icon { color: #e66; }
.rp-criteria { display: flex; flex-direction: column; gap: 0; }
.rp-criteria .rp-rules { margin-bottom: 0; }
.rp-pass + .rp-fail, .rp-fail:first-of-type {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; margin-top: 4px;
}

/* Tips (how to record + AI) */
.rp-tips { display: flex; flex-direction: column; gap: 12px; }
.rp-tip { display: flex; flex-direction: column; gap: 3px; }
.rp-tip-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.rp-tip-body { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* AI stats row */
.rp-ai-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; margin-bottom: 16px;
}
.rp-ai-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 8px; text-align: center;
}
.rp-ai-stat-num {
  font-family: 'Barlow', sans-serif;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  line-height: 1;
}
.rp-ai-stat-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-top: 4px;
}

/* Sticky CTA */
.rp-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 199;
  padding: 16px 16px 16px;
  background: linear-gradient(to top, #0e0e12 70%, transparent);
  pointer-events: none;
}
@media (max-width: 768px) {
  .rp-cta {
    bottom: 64px;
    padding-bottom: 8px;
  }
}
.rp-start-btn {
  width: 100%; pointer-events: all;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border-radius: 14px;
  background: #FF0000; border: none; color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 800; font-size: 1.2rem; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.18s;
  box-shadow: 0 4px 24px rgba(255,0,0,0.35);
}
.rp-start-btn:hover { background: #CC0000; transform: translateY(-1px); box-shadow: 0 6px 32px rgba(255,0,0,0.45); }
.rp-start-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; opacity: 0.9;
  animation: cam-blink 1.2s infinite;
}

/* ── Hero Reel ────────────────────────────────────────────────────────────── */
.lb-hero-reel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-bottom: 0;
}

.lb-hero-reel-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px 8px;
  position: relative;
  background: #000;
  transition: opacity .22s, transform .22s;
  min-height: 0;
}
.lb-hero-reel-card .lb-hero-avatar { width: 96px; height: 96px; font-size: 1.2rem; }
.lb-hero-reel-card .lb-hero-kg { font-size: 4rem; margin-top: 12px; }
.lb-hero-reel-card .lb-hero-unit { font-size: 0.85rem; letter-spacing: 0.18em; }

/* Swipe elements hidden — single hero card now */
.lb-reel-indicators,
.lb-reel-dot,
.lb-reel-hint { display: none !important; }

/* Hero swipe chevrons */
.lb-hero-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.28);
  z-index: 10;
  line-height: 0;
  transition: color 0.18s;
}
.lb-hero-chevron:hover,
.lb-hero-chevron:active { color: rgba(255,255,255,0.7); }
.lb-hero-chevron svg { width: 22px; height: 22px; display: block; }
.lb-hero-chevron-prev { left: 6px; }
.lb-hero-chevron-next { right: 6px; }
/* Hero skeleton shimmer while leaderboard data loads */
.lb-hero-loading {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.07) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: lbHeroShimmer 1.4s ease-in-out infinite;
  border-radius: 12px;
}
@keyframes lbHeroShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Lift detail — flush content against topbar, no container gaps, no scrollable gap below dials */
body.in-lift-detail {
  /* padding-top inherited from syncTopbarPad() — lets content start below fixed topbar */
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: hidden !important;
}
body.in-lift-detail main.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.in-lift-detail #alert {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Lift detail: pills are an indicator only — neutral highlight (not disc color), not clickable */
body.in-lift-detail #lbDiscPillsSlot .lb-disc-btn {
  cursor: default !important;
}
body.in-lift-detail #lbDiscPillsSlot .lb-disc-btn:hover {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
body.in-lift-detail #lbDiscPillsSlot .lb-disc-btn.active {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.35) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ── View Transitions API — directional slides ───────────────── */
/* Spring easing: fast out, elastic settle */
:root { --spring: cubic-bezier(0.22, 1, 0.36, 1); }

/* (old duplicate transition block removed — see consolidated block below) */

/* ── Lift detail: no own animation — VT API handles the slide ── */
#liftDetailOverlay { animation: none; }

/* ── Skeleton loader ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400% 0; }
  100% { background-position:  400% 0; }
}
.lb-skel-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.skel {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04) 25%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.04) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
.lb-skel-rank  { width: 20px; height: 14px; flex-shrink: 0; }
.lb-skel-av    { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.lb-skel-info  { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.lb-skel-name  { height: 13px; width: 55%; }
.lb-skel-sub   { height: 10px; width: 38%; }
.lb-skel-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.lb-skel-score { height: 16px; width: 52px; }
.lb-skel-meta  { height: 10px; width: 36px; }

/* ── View Transitions — single authoritative block ─────────────── */
#app { view-transition-name: none; } /* let root handle it */

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  animation-fill-mode: both;
}

/* Default: crossfade with subtle upward reveal */
::view-transition-old(root) { animation-name: vtFadeOut; }
::view-transition-new(root) { animation-name: vtFadeInUp; }

/* Forward (feed→lift detail, wizard steps, etc): slide */
[data-nav-dir="forward"] ::view-transition-old(root) {
  animation: vtSlideOutLeft 200ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
[data-nav-dir="forward"] ::view-transition-new(root) {
  animation: vtSlideInRight 200ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* Back: slide back */
[data-nav-dir="back"] ::view-transition-old(root) {
  animation: vtSlideOutRight 200ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
[data-nav-dir="back"] ::view-transition-new(root) {
  animation: vtSlideInLeft 200ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* Tab-to-tab: fast crossfade + rise */
[data-nav-dir="none"] ::view-transition-old(root) {
  animation: vtFadeOut 150ms ease both;
}
[data-nav-dir="none"] ::view-transition-new(root) {
  animation: vtFadeInUp 180ms ease both;
}

@keyframes vtFadeOut    { from { opacity: 1; } to { opacity: 0; } }
@keyframes vtFadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes vtFadeInUp   {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vtSlideOutLeft {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(-22%); opacity: 0; }
}
@keyframes vtSlideInRight {
  from { transform: translateX(22%);  opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes vtSlideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(22%);  opacity: 0; }
}
@keyframes vtSlideInLeft {
  from { transform: translateX(-22%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Fallback for browsers without View Transitions API */
@keyframes screenEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen-enter {
  animation: screenEnter 280ms var(--spring) both;
}

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

/* ── Help Section ──────────────────────────────────────────── */
.help-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.help-page-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -.03em;
  margin: 0 0 4px;
}
.help-page-sub {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 28px;
}
.help-card {
  background: var(--panel);
  border: 1px solid var(--border-faint);
  border-radius: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s;
}
.help-card.open {
  border-color: rgba(255,255,255,0.12);
}
.help-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.help-card-header:active {
  background: var(--tint);
}
.help-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border-faint);
  transition: background .2s, border-color .2s;
}
.help-card.open .help-icon-wrap {
  background: rgba(255,215,0,0.10);
  border-color: rgba(255,215,0,0.25);
}
.help-card-title {
  flex: 1;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
}
.help-chevron {
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), color .2s;
  flex-shrink: 0;
}
.help-card.open .help-chevron {
  transform: rotate(90deg);
  color: var(--text);
}
.help-body-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(0.4,0,0.2,1);
}
.help-body-inner {
  padding: 4px 18px 20px;
  border-top: 1px solid var(--border-faint);
}
.help-body-text {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  margin: 0 0 16px;
}
.help-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.help-item {
  padding: 13px 15px;
  background: rgba(255,255,255,0.035);
  border-radius: 12px;
  border: 1px solid var(--border-faint);
  transition: background .15s;
}
.help-item:active { background: rgba(255,255,255,0.06); }
.help-item-title {
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 4px;
}
.help-item-body {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}
.help-step-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 15px;
  background: rgba(255,255,255,0.035);
  border-radius: 12px;
  border: 1px solid var(--border-faint);
}
.help-step-num {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.help-step-content {}
.help-step-title {
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 3px;
}
.help-step-body {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}
/* Avatar ladder */
.help-ladder {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}
.help-ladder::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,215,0,0.4), rgba(255,215,0,0.05));
  pointer-events: none;
}
.help-rung {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--border-faint);
  position: relative;
  transition: background .15s, border-color .15s;
}
.help-rung.top-rung {
  background: rgba(255,215,0,0.06);
  border-color: rgba(255,215,0,0.2);
}
.help-rung-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  z-index: 1;
}
.help-rung.top-rung .help-rung-dot {
  background: rgba(255,215,0,0.2);
  border-color: #FFD700;
}
.help-rung-species {
  font-weight: 700;
  font-size: .88rem;
  text-transform: capitalize;
  line-height: 1.1;
}
.help-rung-name {
  font-size: .75rem;
  color: rgba(255,215,0,0.75);
  margin-top: 1px;
}
.help-rung-label {
  margin-left: auto;
  font-size: .76rem;
  color: var(--muted);
  text-align: right;
  max-width: 160px;
  line-height: 1.35;
}
/* Animate cards in */
@keyframes helpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.help-card {
  animation: helpFadeUp .35s cubic-bezier(0.22,1,0.36,1) both;
}
.help-card:nth-child(1) { animation-delay: .04s; }
.help-card:nth-child(2) { animation-delay: .08s; }
.help-card:nth-child(3) { animation-delay: .12s; }
.help-card:nth-child(4) { animation-delay: .16s; }
.help-card:nth-child(5) { animation-delay: .20s; }
.help-card:nth-child(6) { animation-delay: .24s; }
.help-card:nth-child(7) { animation-delay: .28s; }
.help-card:nth-child(8) { animation-delay: .32s; }
.help-card:nth-child(9) { animation-delay: .36s; }

/* ── Shop ──────────────────────────────────────────────────────── */
.shop-wrap { max-width: 680px; margin: 0 auto; padding-bottom: 60px; }
.shop-hero {
  border-radius: 18px;
  background: linear-gradient(135deg, #0d0d12 0%, #1a1a0a 50%, #0d0d12 100%);
  border: 1px solid var(--disc-color-bg);
  padding: 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, var(--disc-color-subtle) 0%, transparent 65%);
  pointer-events: none;
}
.shop-hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--disc-color);
  margin-bottom: 6px;
}
.shop-hero-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.shop-hero-sub {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 18px;
}
.shop-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
@media (max-width: 400px) {
  .shop-collections-grid { grid-template-columns: repeat(2, 1fr); }
}
.shop-col-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border-faint);
  cursor: pointer;
  transition: transform .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.shop-col-card:active { transform: scale(.96); }
.shop-col-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
}
.shop-col-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.shop-col-label {
  position: relative;
  z-index: 1;
  padding: 10px 10px 10px;
  width: 100%;
}
.shop-col-emoji { font-size: 1.1rem; display: block; margin-bottom: 2px; }
.shop-col-name { font-size: .8rem; font-weight: 700; line-height: 1.2; }
.shop-col-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: var(--surface);
}
/* Product Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.shop-prod-card {
  background: var(--panel);
  border: 1px solid var(--border-faint);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.shop-prod-card:active { transform: scale(.97); }
.shop-prod-img-wrap {
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.shop-prod-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.shop-prod-info { padding: 10px 12px 12px; }
.shop-prod-title { font-weight: 700; font-size: .85rem; line-height: 1.3; margin-bottom: 5px; }
.shop-prod-price { font-size: .88rem; color: var(--disc-color); font-weight: 700; }
.shop-prod-compare { font-size: .78rem; color: var(--muted); text-decoration: line-through; margin-left: 5px; }
.shop-col-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--muted); cursor: pointer;
  padding: 4px 0 16px; -webkit-tap-highlight-color: transparent;
}
.shop-col-back:active { color: var(--text); }
/* Product Detail Sheet */
.shop-detail-sheet {
  position: fixed; inset: 0; z-index: 900;
  display: flex; flex-direction: column;
  background: var(--bg);
  animation: shopSheetIn .32s cubic-bezier(0.32,0.72,0,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes shopSheetIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.shop-detail-img-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shop-detail-img-track::-webkit-scrollbar { display: none; }
.shop-detail-img-slide {
  flex-shrink: 0;
  width: 100vw;
  aspect-ratio: 1;
  scroll-snap-align: start;
  background: var(--surface);
  overflow: hidden;
}
.shop-detail-img-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.shop-detail-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.shop-detail-body { padding: 20px 18px 40px; flex: 1; }
.shop-detail-title { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 6px; }
.shop-detail-price { font-size: 1.1rem; font-weight: 700; color: var(--disc-color); margin-bottom: 20px; }
.shop-detail-compare { font-size: .9rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.shop-option-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.shop-option-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shop-option-pill {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: .83rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  color: var(--text);
}
.shop-option-pill.selected {
  background: var(--disc-color-bg);
  border-color: var(--disc-color);
  color: var(--disc-color);
}
.shop-option-pill.sold-out {
  opacity: .35; text-decoration: line-through; cursor: default;
}
.shop-buy-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px;
  background: var(--disc-color); color: #000;
  font-weight: 800; font-size: 1rem; letter-spacing: .02em;
  border: none; border-radius: 14px; cursor: pointer;
  margin-top: 24px;
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.shop-buy-btn:active { opacity: .85; transform: scale(.98); }
.shop-buy-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.shop-dot-nav {
  display: flex; justify-content: center; gap: 6px; padding: 10px 0;
}
.shop-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25); transition: background .2s, transform .2s;
}
.shop-dot.active { background: var(--disc-color); transform: scale(1.3); }
/* ── End Shop ─────────────────────────────────────────────────── */
@keyframes shopSheetOut {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

/* Shop search */
.shop-search-wrap {
  margin-bottom: 22px;
}
.shop-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 14px;
  transition: border-color .2s;
}
.shop-search-inner:focus-within {
  border-color: var(--disc-color);
}
.shop-search-icon { font-size: 1rem; flex-shrink: 0; opacity: .6; }
.shop-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: .95rem;
  padding: 13px 0;
  -webkit-appearance: none;
}
.shop-search-input::placeholder { color: var(--muted); }
.shop-search-input::-webkit-search-cancel-button { display: none; }
.shop-search-clear {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
/* 7-col grid: 3 cols default, last row centred */
.shop-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

/* Shop product back bar */
.shop-detail-back-bar {
  position: sticky;
  top: 0;
  z-index: 11;
  padding: max(env(safe-area-inset-top, 44px), 44px) 14px 10px;
  background: rgba(13,13,18,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shop-detail-back-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  padding: 6px 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
}
.shop-detail-back-btn:active { opacity: .6; }
/* Remove old floating close button */
.shop-detail-close { display: none; }

/* ── App Tour ─────────────────────────────────────────────────── */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  transition: opacity .35s;
}
.tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.78);
  z-index: 9001;
  pointer-events: none;
  transition: top .4s cubic-bezier(0.4,0,0.2,1),
              left .4s cubic-bezier(0.4,0,0.2,1),
              width .4s cubic-bezier(0.4,0,0.2,1),
              height .4s cubic-bezier(0.4,0,0.2,1),
              border-radius .4s;
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: 3px;
}
.tour-card {
  position: fixed;
  z-index: 9002;
  background: #111;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  padding: 20px 18px 16px;
  width: min(320px, calc(100vw - 32px));
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  pointer-events: all;
  transition: opacity .3s, transform .3s;
}
.tour-card-arrow {
  position: absolute;
  width: 14px; height: 14px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.13);
  transform: rotate(45deg);
}
.tour-step-dots {
  display: flex; gap: 5px; margin-bottom: 12px;
}
.tour-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background .2s, transform .2s;
}
.tour-dot.active {
  background: var(--disc-color);
  transform: scale(1.35);
}
.tour-dot.done {
  background: rgba(255,255,255,0.45);
}
.tour-card-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  color: #fff;
}
.tour-card-body {
  font-size: .85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tour-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tour-btn-skip {
  background: none; border: none;
  font-size: .82rem; color: rgba(255,255,255,0.35);
  cursor: pointer; padding: 4px;
  -webkit-tap-highlight-color: transparent;
}
.tour-btn-skip:active { color: rgba(255,255,255,0.6); }
.tour-btn-next {
  background: var(--disc-color);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: .88rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s, transform .15s;
}
.tour-btn-next:active { opacity: .8; transform: scale(.97); }
/* ── End App Tour ─────────────────────────────────────────────── */

/* Rep-selection scrubbers — large touch targets for mobile */
#startScrubber, #endScrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  padding: 12px 0; /* vertical hit-area padding */
  box-sizing: content-box;
  background: transparent;
}
#startScrubber::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(0,230,118,0.25); }
#startScrubber::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; border-radius:50%; background:#00e676; border:3px solid #fff; cursor:pointer; margin-top:-11px; box-shadow:0 2px 8px rgba(0,230,118,0.5); }
#endScrubber::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255,82,82,0.25); }
#endScrubber::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; border-radius:50%; background:#ff5252; border:3px solid #fff; cursor:pointer; margin-top:-11px; box-shadow:0 2px 8px rgba(255,82,82,0.5); }
#startScrubber::-moz-range-thumb { width:28px; height:28px; border-radius:50%; background:#00e676; border:3px solid #fff; cursor:pointer; }
#endScrubber::-moz-range-thumb { width:28px; height:28px; border-radius:50%; background:#ff5252; border:3px solid #fff; cursor:pointer; }

/* ── Feed video thumbnail loader ──────────────────────────────────────── */
@keyframes feedThumbSpin {
  to { transform: rotate(360deg); }
}
@keyframes feedThumbShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.feed-thumb-shimmer {
  background: linear-gradient(
    90deg,
    rgba(20, 40, 80, 0) 0%,
    rgba(60, 120, 200, 0.12) 40%,
    rgba(80, 150, 255, 0.18) 50%,
    rgba(60, 120, 200, 0.12) 60%,
    rgba(20, 40, 80, 0) 100%
  );
  background-size: 800px 100%;
  animation: feedThumbShimmer 1.8s ease-in-out infinite;
}


/* Typing dots */
#convTyping .tdot { display:inline-block; animation: tdot 1.1s ease-in-out infinite; }
#convTyping .tdot:nth-child(1) { animation-delay: 0ms; }
#convTyping .tdot:nth-child(2) { animation-delay: 180ms; }
#convTyping .tdot:nth-child(3) { animation-delay: 360ms; }
@keyframes tdot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30%            { transform: translateY(-4px); opacity: 1; }
}

/* Message bubble animation */
@keyframes messageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
#convMsgs { scroll-behavior: smooth; }

/* DM swipe-to-delete */
.dm-swipe-wrap { position: relative; }
.dm-del-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 86px;
  border: none;
  background: #ff3b30;
  color: #fff;
  font-weight: 800;
  border-radius: 16px;
  cursor: pointer;
}

/* ── Leaderboard Disc Bar + Bottom Sheet ─────────────────────── */
@property --rec-orbit-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --disc-orbit-a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.lb-disc-bar {
  display: flex; align-items: center; justify-content: center; border-radius: 14px;
  position: relative;
  border: 1.5px solid transparent;
  overflow: hidden; margin: 0 0 12px;
  background:
    linear-gradient(var(--topbar-bg, #0d0d12), var(--topbar-bg, #0d0d12)) padding-box,
    conic-gradient(from var(--disc-orbit-a), transparent 0%, var(--disc-color, #00e676) 18%, transparent 38%) border-box;
  box-shadow: 0 0 14px var(--disc-color-glow, rgba(255,255,255,.12));
  transition: opacity .1s;
  cursor: pointer; padding: 13px 16px;
  -webkit-tap-highlight-color: transparent;
  animation: discOrbit 2s linear infinite;
}
.lb-disc-bar:active { opacity: .65; animation: none; }
@keyframes discOrbit {
  to { --disc-orbit-a: 360deg; }
}
.lb-disc-bar-active {
  display: flex; align-items: center; gap: 12px; flex: 1;
  padding: 12px 16px; border: none; background: none;
  color: #fff; cursor: default; text-align: left; font-family: inherit;
}
.lb-disc-bar-icon {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--disc-color); flex-shrink: 0;
  box-shadow: 0 0 8px var(--disc-color-glow, rgba(255,255,255,.2));
  transition: background .2s ease, box-shadow .2s ease;
}
.lb-disc-bar-label {
  font-size: 1rem; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; color: var(--disc-color);
  transition: color .2s ease, transform .35s cubic-bezier(.4,0,.2,1), opacity .28s;
  text-align: center;
}
.lb-disc-swap-label {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 1rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  transform: scale(.55); opacity: 0; pointer-events: none;
  transition: transform .42s cubic-bezier(.34,1.56,.64,1), opacity .28s;
}
.lb-disc-bar.swapping .lb-disc-bar-label  { transform: scale(1.45); opacity: 0; }
.lb-disc-bar.swapping .lb-disc-swap-label { transform: scale(1);    opacity: 1; }
.lb-disc-bar-sub {
  font-size: .65rem; color: rgba(255,255,255,.35); margin-top: 1px;
}
.lb-disc-bar-divider {
  width: 1px; background: rgba(255,255,255,.08); flex-shrink: 0; margin: 8px 0;
}
.lb-disc-bar-change {
  padding: 12px 18px; border: none; background: none;
  color: rgba(255,255,255,.45); font-size: .75rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.lb-disc-bar-change:active { color: rgba(255,255,255,.8); }

/* Bottom Sheet */
.lb-disc-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #111; border-radius: 20px 20px 0 0;
  padding: 12px 0 52px; z-index: 1200;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.6);
  max-width: 480px; margin: 0 auto;
}
.lb-disc-sheet.open { transform: translateY(0); }
.lb-disc-sheet-handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.15); margin: 0 auto 16px;
}
.lb-disc-sheet-title {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  padding: 0 20px 10px;
}
.lb-disc-sheet-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 20px; border: none; background: none;
  color: #fff; width: 100%; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background .1s;
}
.lb-disc-sheet-opt:active { background: rgba(255,255,255,.05); }
.lb-disc-sheet-opt-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.lb-disc-sheet-opt-label {
  font-size: 1rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; flex: 1; text-align: left;
}
.lb-disc-sheet-opt-check {
  font-size: 1rem; font-weight: 900; opacity: 0; transition: opacity .15s;
}
.lb-disc-sheet-opt.selected .lb-disc-sheet-opt-check { opacity: 1; }
.lb-disc-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1199; display: none;
}
.lb-disc-backdrop.open { display: block; }
