/* vibe-leaderboard v9 — volume tiers + platinum progress */
.board-page {
  width: min(880px, calc(100% - 40px));
  margin: 18px auto 72px;
  display: grid;
  gap: 16px;
}
.cat-strip {
  position: relative;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--purple, #9945ff) 32%, transparent);
  background: var(--bg);
}
.cat-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cat-strip-title {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  color: #f4f4f5;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.board-note {
  margin: 0;
  color: var(--muted, #9aa0a6);
  font-size: 0.92rem;
}
.you-card {
  display: grid;
  gap: 16px;
  padding: 18px 20px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.you-who {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.you-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--purple) 40%, transparent);
}
.you-copy { min-width: 0; flex: 1; }
.you-name {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.you-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: normal;
}
.you-rank-wrap {
  display: grid;
  justify-items: end;
  gap: 2px;
  flex-shrink: 0;
}
.you-rank-wrap span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.you-rank-wrap b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--mint, #14f195);
}
.you-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.you-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.you-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.you-stat b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.you-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.you-hint[hidden] { display: none !important; }
.you-progress { display: grid; gap: 10px; }
.you-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
.you-bar-head span:last-child { color: var(--muted); font-weight: 600; }
.you-tier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #c47a3a;
  color: #1a0e06;
}
.you-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.you-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #b86a2c, #e8b07a);
  transition: width 0.45s ease;
}
.you-bar-plat {
  height: 16px;
}
.you-bar-plat i {
  background: linear-gradient(90deg, #22d3ee, #14f195);
}
.you-plat-head span:first-child { color: #7ee7ff; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; font-weight: 800; }
.you-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.you-step {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  min-width: 0;
  overflow: hidden;
}
.you-step b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.you-step span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.you-step-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  max-width: 100%;
  background: currentColor;
}
.you-step[data-tier="bronze"].hit,
.you-step[data-tier="bronze"].on { border-color: #c47a3a; color: #e0a06a; }
.you-step[data-tier="silver"].hit,
.you-step[data-tier="silver"].on { border-color: #c5d0e0; color: #dbe4f0; }
.you-step[data-tier="gold"].hit,
.you-step[data-tier="gold"].on { border-color: #ffd94d; color: #ffd94d; }
.you-step[data-tier="platinum"].hit,
.you-step[data-tier="platinum"].on { border-color: #14f195; color: #7ee7ff; }
.you-step.on { box-shadow: inset 0 0 0 1px currentColor; background: color-mix(in srgb, currentColor 12%, var(--surface)); }
.you-card[data-tier="bronze"] { border-color: color-mix(in srgb, #c47a3a 45%, var(--line)); }
.you-card[data-tier="silver"] { border-color: color-mix(in srgb, #c5d0e0 40%, var(--line)); }
.you-card[data-tier="gold"] { border-color: color-mix(in srgb, #ffd94d 50%, var(--line)); }
.you-card[data-tier="platinum"] {
  border-color: color-mix(in srgb, #14f195 50%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, #22d3ee 16%, transparent);
}
.you-card[data-tier="bronze"] .you-avatar { border-color: #c47a3a; }
.you-card[data-tier="silver"] .you-avatar { border-color: #c5d0e0; }
.you-card[data-tier="gold"] .you-avatar { border-color: #ffd94d; }
.you-card[data-tier="platinum"] .you-avatar { border-color: #14f195; }
.you-card[data-tier="bronze"] .you-tier-badge { background: #c47a3a; color: #1a0e06; }
.you-card[data-tier="silver"] .you-tier-badge { background: #c5d0e0; color: #111318; }
.you-card[data-tier="gold"] .you-tier-badge { background: #ffd94d; color: #1a1400; }
.you-card[data-tier="platinum"] .you-tier-badge { background: linear-gradient(100deg, #22d3ee, #14f195); color: #04140e; }
.you-card[data-tier="bronze"] .you-bar:not(.you-bar-plat) i { background: linear-gradient(90deg, #b86a2c, #e8b07a); }
.you-card[data-tier="silver"] .you-bar:not(.you-bar-plat) i { background: linear-gradient(90deg, #9aa8bc, #e8eef6); }
.you-card[data-tier="gold"] .you-bar:not(.you-bar-plat) i { background: linear-gradient(90deg, #d4a017, #ffe89a); }
.you-card[data-tier="platinum"] .you-bar:not(.you-bar-plat) i { background: linear-gradient(90deg, #22d3ee, #14f195); }
.you-card[data-tier="bronze"] .you-stat-vol b,
.you-card[data-tier="bronze"] .you-rank-wrap b { color: #e0a06a; }
.you-card[data-tier="silver"] .you-stat-vol b,
.you-card[data-tier="silver"] .you-rank-wrap b { color: #dbe4f0; }
.you-card[data-tier="gold"] .you-stat-vol b,
.you-card[data-tier="gold"] .you-rank-wrap b { color: #ffd94d; }
.you-card[data-tier="platinum"] .you-stat-vol b,
.you-card[data-tier="platinum"] .you-rank-wrap b { color: #14f195; }
.you-stat-left b { color: #7ee7ff; }
.you-card[data-tier="platinum"] .you-stat-left b { color: #14f195; }
.board-tier {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-style: normal;
}
.board-tier[data-tier="bronze"] { background: rgba(196, 122, 58, 0.22); color: #e0a06a; }
.board-tier[data-tier="silver"] { background: rgba(197, 208, 224, 0.18); color: #dbe4f0; }
.board-tier[data-tier="gold"] { background: rgba(255, 217, 77, 0.18); color: #ffd94d; }
.board-tier[data-tier="platinum"] { background: rgba(20, 241, 149, 0.16); color: #14f195; }
.board-row[data-tier="bronze"] .board-rank { color: #e0a06a; }
.board-row[data-tier="silver"] .board-rank { color: #dbe4f0; }
.board-row[data-tier="gold"] .board-rank { color: #ffd94d; }
.board-row[data-tier="platinum"] .board-rank { color: #14f195; }
.board-row[data-tier="bronze"] .board-vol .board-num { color: #e0a06a; }
.board-row[data-tier="silver"] .board-vol .board-num { color: #dbe4f0; }
.board-row[data-tier="gold"] .board-vol .board-num { color: #ffd94d; }
.board-row[data-tier="platinum"] .board-vol .board-num { color: #14f195; }
.board-rank[data-place="1"] { color: #ffd94d !important; }
.board-rank[data-place="2"] { color: #c5d0e0 !important; }
.board-rank[data-place="3"] { color: #e0a06a !important; }
.board-vol {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 0;
}
.board-vol .board-num { text-align: right; }
.board-vol-bar {
  display: block;
  width: 100%;
  max-width: 96px;
  height: 5px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.board-vol-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
}
.board-vol-bar[data-tier="bronze"] i { background: #c47a3a; }
.board-vol-bar[data-tier="silver"] i { background: #c5d0e0; }
.board-vol-bar[data-tier="gold"] i { background: #ffd94d; }
.board-vol-bar[data-tier="platinum"] i { background: linear-gradient(90deg, #22d3ee, #14f195); }
.board-hero {
  display: grid;
  gap: 8px;
}
.board-hero h1 { margin: 0; }
.board-hero p { margin: 0; color: var(--muted, #a1a1aa); max-width: 52ch; }
.board-updated {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--mint, #14f195) 80%, #a1a1aa);
}
.board-me {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 241, 149, 0.35);
  background: rgba(20, 241, 149, 0.08);
  font-weight: 700;
}
.board-me span { color: var(--muted, #a1a1aa); font-size: 13px; }
.board-me b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.board-card {
  background: var(--surface);
  border: 1px solid var(--line, rgba(255,255,255,0.06));
  border-radius: 20px;
  overflow: hidden;
}
.board-head, .board-row {
  display: grid;
  grid-template-columns: 64px 1fr 88px 72px 96px;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
}
.board-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
  border-bottom: 1px solid var(--line, rgba(255,255,255,0.06));
}
.board-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: inherit;
  font-weight: 600;
}
.board-row:hover { background: var(--surface-2); }
.board-row.you {
  background: rgba(153, 69, 255, 0.16);
  box-shadow: inset 3px 0 0 #14f195;
}
.board-rank {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.board-wallet { display: flex; align-items: center; gap: 8px; min-width: 0; }
.board-wallet b, .board-addr { font-variant-numeric: tabular-nums; }
.board-addr {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.board-addr:hover { color: var(--mint, #14f195); }
.board-you {
  padding: 2px 8px;
  border-radius: 999px;
  background: #14f195;
  color: #050505;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.board-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted, #a1a1aa); }
.board-row .board-num:nth-child(3) { color: var(--text, #f4f4f5); font-weight: 800; }
.board-empty, .board-card > .note {
  padding: 18px 16px 20px;
  color: var(--muted, #a1a1aa);
}
.board-list:not(:empty) + .note { display: none; }
@media (max-width: 720px) {
  .board-page { width: min(880px, calc(100% - 20px)); }
  .you-who { flex-wrap: wrap; }
  .you-rank-wrap { justify-items: start; }
  .you-stats { grid-template-columns: 1fr 1fr; }
  .you-ladder { grid-template-columns: 1fr 1fr; }
  .board-head span:nth-child(3),
  .board-head span:nth-child(4),
  .board-row > :nth-child(3),
  .board-row > :nth-child(4) { display: none; }
  .board-head, .board-row { grid-template-columns: 52px 1fr 88px; }
}
