/* Leaderboard page — ported from src/lb_desktop.css */

/* PAGE */
.lb-page { max-width: 1400px; margin: 0 auto; padding: 40px 48px 100px; }

.lb-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.lb-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 2.5px; color: #8a7a6a;
  text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.lb-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1;
}
.lb-title .accent {
  display: inline-block; background: #e8532b; color: #fff;
  padding: 0 12px; transform: rotate(-1.5deg); box-shadow: 5px 5px 0 #1a1410;
}

/* PERIOD TABS */
.lb-tabs {
  display: flex; gap: 4px; background: #1a1410;
  border-radius: 12px; padding: 4px;
}
.lb-tab {
  padding: 10px 26px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  cursor: pointer; transition: all 0.15s; border: none; background: transparent; font-family: inherit;
}
.lb-tab.active { background: #e8532b; color: #fff; box-shadow: 0 2px 0 #7b1f1f; }
.lb-tab:not(.active):hover { color: rgba(255, 255, 255, 0.8); }

/* SCOPE CHIPS */
.lb-scope-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
}
.lb-scope-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: #8a7a6a; text-transform: uppercase;
}
.lb-chip {
  padding: 6px 14px; border-radius: 20px; background: #fff;
  border: 2px solid rgba(26, 20, 16, 0.18); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.12s;
}
.lb-chip.active { background: #ffd93d; border-color: #1a1410; }
.lb-chip:hover:not(.active) { border-color: #e8532b; }

/* BODY LAYOUT */
.lb-body {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start;
}

/* PODIUM COLUMN */
.lb-podium-col { display: flex; flex-direction: column; gap: 12px; }
.lb-section-label {
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #8a7a6a;
  text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.lb-section-label .pip {
  display: inline-block; width: 6px; height: 6px;
  background: #e8532b; border-radius: 50%;
}
#podiumCol { display: flex; flex-direction: column; gap: 12px; }

.lb-pod-card {
  background: #fff; border: 3px solid #1a1410; border-radius: 16px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 4px 4px 0 #1a1410; transition: transform 0.1s, box-shadow 0.1s;
}
.lb-pod-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1a1410; }
.lb-pod-card.gold   { background: #ffd93d; }
.lb-pod-card.silver { background: #f0e5d4; }
.lb-pod-card.bronze { background: #ffc8a8; }

.lb-pod-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px; font-weight: 800;
  color: #1a1410; min-width: 32px; text-align: center;
}
.lb-pod-avatar {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid #1a1410;
  background: #ffd1c2;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  flex-shrink: 0; overflow: hidden;
}
.lb-pod-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lb-pod-info { flex: 1; min-width: 0; }
.lb-pod-name {
  font-weight: 900; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-pod-hits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 800; color: #e8532b;
  margin-top: 1px;
}
.lb-pod-loc { font-size: 10px; color: #8a7a6a; font-weight: 700; margin-top: 2px; }

.lb-pod-join {
  padding: 8px 12px; background: #1a1410; color: #ffd93d;
  border: 2px solid #1a1410; border-radius: 8px;
  font-family: inherit; font-size: 11px; font-weight: 900;
  letter-spacing: 1px; cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.1s; white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.lb-pod-join:hover {
  background: #e8532b; color: #fff; border-color: #e8532b;
  transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #1a1410;
}

/* TABLE */
.lb-table-wrap {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(26, 20, 16, 0.1);
  border-radius: 18px;
  overflow: hidden;
}
.lb-table-head {
  display: grid; grid-template-columns: 52px 44px 1fr 110px 130px 36px 120px;
  padding: 12px 20px; background: #1a1410;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.8px; text-transform: uppercase;
  align-items: center; gap: 0;
}
.lb-row {
  display: grid; grid-template-columns: 52px 44px 1fr 110px 130px 36px 120px;
  padding: 12px 20px; align-items: center; gap: 0;
  border-bottom: 1.5px solid rgba(26, 20, 16, 0.06);
  transition: background 0.1s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255, 247, 230, 0.9); }
.lb-row.me { background: #fff7e6; box-shadow: inset 4px 0 0 #ffd93d; }

.lb-row-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 800;
  color: #bfae9a; text-align: center;
}
.lb-row-rank.top { color: #e8532b; }

.lb-row-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #1a1410;
  background: #ffd1c2;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; overflow: hidden;
}
.lb-row-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.lb-row-name { font-weight: 800; font-size: 14px; }
.lb-row-name .you-tag {
  font-size: 10px; color: #e8532b; font-weight: 900;
  background: #fff3d0; padding: 1px 6px; border-radius: 4px; margin-left: 6px;
}
.lb-row-sub { font-size: 10px; color: #8a7a6a; font-weight: 600; margin-top: 1px; }

.lb-row-hits  { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 800; color: #e8532b; }
.lb-row-combo { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: #1a1410; }

.lb-join-btn {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: #fff; border: 2px solid #e8532b; border-radius: 20px;
  font-family: inherit; font-size: 11px; font-weight: 900; letter-spacing: 1px;
  color: #e8532b;
  cursor: pointer; box-shadow: 2px 2px 0 #ffd93d;
  transition: all 0.1s; white-space: nowrap;
  text-decoration: none;
}
.lb-join-btn:hover {
  background: #e8532b; color: #fff;
  transform: translate(-1px, -1px); box-shadow: 3px 3px 0 #ffd93d;
}

.lb-empty {
  padding: 40px 20px; text-align: center;
  color: #8a7a6a; font-size: 14px; font-weight: 700;
}

/* ME BAR */
.lb-me-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a1410; color: #fff;
  padding: 14px 48px;
  display: flex; align-items: center; gap: 14px;
  border-top: 3px solid #e8532b;
  z-index: 40;
}
.lb-me-bar .label {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5); text-transform: uppercase;
}
.lb-me-bar .rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 800; color: #ffd93d;
}
.lb-me-bar .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #ffd93d; border: 2px solid #e8532b;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #1a1410;
  overflow: hidden;
  flex-shrink: 0;
}
.lb-me-bar .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lb-me-bar .name { font-size: 14px; font-weight: 800; flex: 1; }
.lb-me-bar .hits { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 800; color: #e8532b; }
.lb-me-bar .me-play-btn {
  padding: 9px 20px; background: #e8532b; color: #fff;
  border: 2.5px solid rgba(255, 217, 61, 0.5); border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 900; letter-spacing: 1px;
  cursor: pointer; text-decoration: none; transition: all 0.1s;
}
.lb-me-bar .me-play-btn:hover { background: #ff6b3d; transform: translate(-1px, -1px); }

/* TOAST */
.join-toast {
  position: fixed; top: 90px; left: 50%;
  transform: translateX(-50%) translateY(-16px);
  background: #1a1410; color: #fff;
  padding: 13px 24px; border-radius: 50px;
  border: 3px solid #e8532b;
  font-size: 14px; font-weight: 800; letter-spacing: 0.5px;
  box-shadow: 6px 6px 0 #e8532b;
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.join-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* REPORT (🚩) */
.lb-report-flag {
  justify-self: center; align-self: center;
  width: 28px; height: 28px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  font-size: 16px; line-height: 1;
  opacity: 0.45; transition: opacity 0.15s, transform 0.1s;
  border-radius: 6px;
}
.lb-report-flag:hover { opacity: 1; background: rgba(232, 83, 43, 0.1); transform: scale(1.15); }
.lb-report-flag:focus-visible { opacity: 1; outline: 2px solid #e8532b; outline-offset: 2px; }

.lb-report-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 20, 16, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
}
.lb-report-overlay[hidden] { display: none; }

.lb-report-modal {
  background: #fff; color: #1a1410;
  width: min(92vw, 420px); padding: 26px 26px 22px;
  border: 3px solid #1a1410; border-radius: 16px;
  box-shadow: 8px 8px 0 #ffd93d;
  font-family: inherit;
}
.lb-report-title {
  margin: 0 0 6px; font-size: 20px; font-weight: 900;
  letter-spacing: 0.5px;
}
.lb-report-sub {
  margin: 0 0 18px; font-size: 13px; color: #6b5a4a; font-weight: 600;
}
.lb-report-reasons {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px;
}
.lb-report-reasons label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 2px solid rgba(26, 20, 16, 0.12);
  border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 700;
  transition: all 0.1s;
}
.lb-report-reasons label:hover {
  border-color: #e8532b; background: #fff7e6;
}
.lb-report-reasons input[type=radio] {
  accent-color: #e8532b; transform: scale(1.15);
}
.lb-report-reasons label:has(input:checked) {
  border-color: #e8532b; background: #fff3d0;
}
.lb-report-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.lb-report-cancel,
.lb-report-submit {
  font-family: inherit; font-size: 12px; font-weight: 900;
  letter-spacing: 1px; padding: 10px 18px;
  border-radius: 10px; cursor: pointer;
  transition: all 0.1s;
}
.lb-report-cancel {
  background: #fff; color: #1a1410;
  border: 2px solid rgba(26, 20, 16, 0.2);
}
.lb-report-cancel:hover { background: #f3ede4; }
.lb-report-submit {
  background: #e8532b; color: #fff;
  border: 2px solid #1a1410;
  box-shadow: 3px 3px 0 #ffd93d;
}
.lb-report-submit:hover:not(:disabled) {
  transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #ffd93d;
}
.lb-report-submit:disabled {
  opacity: 0.4; cursor: not-allowed; box-shadow: none;
}
