/* Leaderboard and Review pages. Loaded last, uses its own class names (lb-, rv-) so older layers cannot interfere. */
.lb-av { --hu: 30; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 16px var(--display); color: #fff;
  background: linear-gradient(145deg, hsl(var(--hu) 70% 52%), hsl(calc(var(--hu) + 25) 70% 40%)); border: 2px solid #fff; box-shadow: 0 0 0 2px hsl(var(--hu) 60% 78%); }
.lb-av.big { width: 56px; height: 56px; font-size: 24px; } .lb-av.xl { width: 64px; height: 64px; font-size: 28px; }
.lb-eyebrow { font: 800 12px var(--font); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.lb-prog { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.lb-prog > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FFD36B, #FFB703); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* your standing */
.lb-me { display: grid; gap: 14px; padding: 22px; border-radius: 28px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #4A3622 0%, #2A1E12 60%); border-bottom: 6px solid #130D06; }
.lb-me .small { color: #E8DCC4; } .lb-me-top { display: flex; gap: 14px; align-items: center; }
.lb-title { font: 800 clamp(30px, 5vw, 42px)/1.05 var(--display); letter-spacing: -.02em; }
.lb-spot { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.lb-spot.off { font-weight: 700; color: #F1E6CE; }
.lb-num { font: 800 clamp(34px, 6vw, 46px)/1 var(--display); color: #FFD36B; min-width: 2.2ch; }

/* filters: two different looks so they never read as one highlighted group */
.lb-filters { display: grid; gap: 10px; }
.lb-seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lb-seg::-webkit-scrollbar { display: none; }
.lb-seg button { flex: none; font: 800 14px var(--font); cursor: pointer; }
.lb-seg.scope { border-bottom: 2px solid var(--line); gap: 18px; }
.lb-seg.scope button { background: none; border: 0; padding: 10px 2px; color: var(--mute); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.lb-seg.scope button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.lb-seg.metric button { padding: 9px 16px; border-radius: 99px; border: 2px solid var(--line); border-bottom-width: 4px; background: #fff; color: var(--ink2); }
.lb-seg.metric button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* podium */
.lb-pod { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.lb-step { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; position: relative; }
.lb-pn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.lb-crown { color: #E8A100; position: absolute; top: -22px; animation: lbfloat 2.4s ease-in-out infinite; }
.lb-block { width: 100%; margin-top: 6px; border-radius: 18px 18px 0 0; display: grid; justify-items: center; align-content: start; padding: 10px 4px 14px; color: #fff; }
.lb-block em { font: 800 26px var(--display); font-style: normal; } .lb-block b { font: 800 20px var(--display); } .lb-block span { font-size: 12px; opacity: .9; }
.p1 .lb-block { min-height: 150px; background: linear-gradient(180deg, #FFC531, #C98600); }
.p2 .lb-block { min-height: 116px; background: linear-gradient(180deg, #B9C2CE, #7C8794); }
.p3 .lb-block { min-height: 92px; background: linear-gradient(180deg, #D79A63, #9A5F2E); }
.lb-step.is-me .lb-av { box-shadow: 0 0 0 3px var(--gold); }
@keyframes lbfloat { 50% { transform: translateY(-5px); } }

/* list */
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 18px; background: #fff; }
.lb-row.is-me { background: var(--gold-tint); border-color: var(--gold-d); }
.lb-rk { width: 28px; text-align: center; font: 800 17px var(--display); color: var(--mute); }
.lb-name { font-weight: 800; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-bar { height: 6px; border-radius: 99px; background: var(--soft); margin-top: 6px; overflow: hidden; } .lb-bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.lb-val { text-align: right; } .lb-val b { display: block; font: 800 20px var(--display); } .lb-val span { font-size: 12px; color: var(--mute); }
.lb-empty { text-align: center; padding: 36px 16px; border: 2px dashed var(--line2); border-radius: 22px; }

/* review page */
.rv-meter { display: grid; gap: 12px; padding: 20px; border-radius: 26px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #5B3E8C 0%, #2A1E4A 70%); border-bottom: 6px solid #150F28; }
.rv-lvn { font: 800 clamp(28px, 5vw, 38px)/1.05 var(--display); } .rv-meter .small { color: #E4DAF5; }
.rv-badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.rv-badges li { display: flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; font: 700 13px var(--font); background: rgba(255, 255, 255, .1); color: #CFC3E8; }
.rv-badges li.on { background: #FFD36B; color: #2A1E12; animation: rvpop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rvpop { from { transform: scale(.7); } }
.rv-hero { text-align: center; justify-items: center; display: grid; gap: 10px; padding: 26px 16px; }
.rv-stars { display: flex; gap: 6px; justify-content: center; }
.rv-stars button { background: none; border: 0; padding: 4px; color: #D8CFBE; cursor: pointer; transition: transform .15s, color .15s; line-height: 0; }
.rv-stars button svg { fill: currentColor; } .rv-stars button.on { color: #FFB703; } .rv-stars button:hover { transform: scale(1.18) rotate(-6deg); }
.rv-stars button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
.rv-mood { font: 800 22px var(--display); min-height: 1.4em; }
.rv-area { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.rv-rec { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-card { display: flex; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.rv-card p { margin: 4px 0 0; overflow-wrap: anywhere; } .rv-mini { color: #E8A100; letter-spacing: 2px; }
.rv-done { padding: 16px; border-radius: 18px; background: var(--gold-tint); text-align: center; }
textarea[aria-label="Your note"] { width: 100%; font: 500 16px var(--font); padding: 12px 14px; border: 2px solid var(--line2); border-radius: 16px; resize: vertical; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { .lb-crown, .rv-badges li.on { animation: none; } .lb-prog > i { transition: none; } }
@media (min-width: 900px) { .lb-me { grid-template-columns: 1.2fr 1fr; align-items: center; } .lb-me .lb-prog, .lb-me > .small { grid-column: 1 / -1; } .lb-pod { max-width: 640px; margin-inline: auto; } }
@media (max-width: 420px) { .lb-av.xl { width: 52px; height: 52px; font-size: 22px; } .lb-block b { font-size: 17px; } }
@media (max-width: 560px) { .rv-area { display: grid; justify-items: start; gap: 2px; } .rv-area .rv-stars { justify-content: flex-start; } }
