/* The public leaderboard page (A3 «Μπάρες»). Dark, NteNte accents, phone first. */
.pb-body { margin: 0; min-height: 100vh; color: var(--text, #f4f5f8); font-family: var(--body);
  --bg: #07080c; --card: #12151c; --line: rgba(255, 255, 255, .08); --muted: #9aa1b3;
  background: radial-gradient(90% 40% at 50% 0%, rgba(139, 61, 255, .28), transparent 70%), radial-gradient(60% 30% at 100% 30%, rgba(255, 61, 139, .12), transparent 70%), var(--bg); }
.pb-page { position: relative; min-height: 100vh; padding: 0 0 26px; container-type: inline-size; }
.pb-page button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; }
.pb-page a { text-decoration: none; color: inherit; }
.pb-page :focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Top bar, intro, call at the end */
.pb-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: rgba(7, 8, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.pb-logo { display: inline-flex; align-items: center; gap: 8px; }
.pb-logo img { height: 34px; width: auto; filter: drop-shadow(0 3px 10px rgba(139, 61, 255, .55)); }
.pb-logo b { font: 900 15px/1 var(--display); letter-spacing: .22em; color: var(--lime); }
.pb-send { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 999px; background: var(--lime); color: #0d1104 !important; font: 800 14px/1 var(--body); white-space: nowrap; }
.pb-send svg { width: 16px; height: 16px; }
.pb-intro { padding: 22px 18px 8px; }
.pb-k { margin: 0 0 6px; font: 800 12px/1 var(--body); letter-spacing: .2em; color: var(--lime); }
.pb-intro h1 { margin: 0; font: 900 46px/.92 var(--display); letter-spacing: .02em; }
.pb-intro p:last-child { margin: 8px 0 0; font: 600 16px/1.4 var(--body); color: var(--muted); max-width: 520px; }
.pb-g { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 900 11px/1 var(--body); letter-spacing: .12em; }
.pb-g.m { background: rgba(47, 107, 255, .2); color: #8fb0ff; }
.pb-g.f { background: rgba(255, 61, 139, .18); color: #ff8fbf; }
.pb-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 38px; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .08) !important; font: 800 14px/1 var(--body) !important; }
.pb-cta { display: flex; align-items: center; gap: 12px; margin: 26px 16px 0; padding: 14px; border-radius: 20px; background: linear-gradient(120deg, rgba(198, 255, 61, .14), rgba(139, 61, 255, .16)); box-shadow: inset 0 0 0 1px var(--line); }
.pb-cta img { width: 58px; height: 58px; object-fit: cover; object-position: 50% 0; border-radius: 16px; background: rgba(0, 0, 0, .3); flex: none; }
.pb-cta div { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pb-cta b { font: 900 22px/1 var(--display); letter-spacing: .02em; }
.pb-cta span { font: 600 13px/1.3 var(--body); color: var(--muted); }
.pb-cta a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: var(--lime); color: #0d1104 !important; font: 800 14px/1 var(--body); }
.pb-cta a svg { width: 16px; height: 16px; }

/* «Αυτή την εβδομάδα» or «Όλες» */
.pb-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px 0; }
.pb-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pb-seg button { height: 38px; padding: 0 16px; border-radius: 999px; font: 800 14px/1 var(--body) !important; color: var(--muted) !important; transition: background .2s, color .2s; }
.pb-seg button[aria-pressed="true"] { background: var(--text, #f4f5f8); color: #0b0c12 !important; }
.pb-since { font: 700 13px/1 var(--body); color: var(--muted); }
.pb-wait { margin: 22px 16px; font: 700 15px/1.4 var(--body); color: var(--muted); }
.pb-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 16px 12px 0; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pb-empty b { font: 900 24px/1.05 var(--display); letter-spacing: .01em; }
.pb-empty span { font: 600 15px/1.35 var(--body); color: var(--muted); }

/* A3 «Μπάρες»: each story is a bar as long as its score, the first glows lime */
.pr-list { list-style: none; margin: 16px 12px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pr-item { min-width: 0; }
.pr-bar { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 12px; border-radius: 14px; background: var(--card) !important; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate; }
.pr-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); z-index: -1; border-radius: inherit; background: linear-gradient(90deg, rgba(139, 61, 255, .55), rgba(47, 107, 255, .35)); transform-origin: left; }
.is-in .pr-fill { animation: prGrow 1s calc(.2s + var(--i) * .07s) var(--ease) both; }
.is-in .pr-item { animation: pbIn .5s calc(.1s + var(--i) * .05s) var(--ease) both; }
@keyframes prGrow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes pbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pr-item.pr-top .pr-fill { background: linear-gradient(90deg, var(--lime), #8af55b); }
.pr-item.pr-top .pr-bar { color: #0d1104; box-shadow: 0 0 30px -10px rgba(198, 255, 61, .8); }
.pr-item.pr-top .pr-lab small { color: rgba(13, 17, 4, .75); }
.pr-n { width: 26px; flex: none; font: 900 22px/1 var(--display); text-align: center; opacity: .8; }
.pr-lab { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pr-lab b { font: 900 19px/1 var(--display); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-lab small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1.2 var(--body); color: rgba(255, 255, 255, .7); }
.pr-v { flex: none; display: grid; place-items: center; min-width: 54px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(7, 8, 12, .72); color: #fff; font: 900 24px/1 var(--display); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pr-item.pr-top .pr-v { color: var(--lime); }
.pr-chev { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(7, 8, 12, .55); color: #fff; opacity: .85; }
.pr-chev svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pr-item.is-open .pr-chev svg { transform: rotate(180deg); }
.pr-item.is-open .pr-bar { box-shadow: inset 0 0 0 2px var(--lime); }
.pr-body { padding: 10px 12px 4px 48px; }
.pr-item.is-open .pr-body { animation: pbIn .35s var(--ease) both; }
.pr-body p { margin: 0; font: 600 16px/1.5 var(--body); color: #e3e6ee; overflow-wrap: anywhere; }
.pr-body p + p { margin-top: .7em; }
.pr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font: 700 12px/1 var(--body); color: var(--muted); }
.pr-axis { display: flex; justify-content: space-between; margin: 8px 12px 0; padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, .15); font: 800 12px/1 var(--body); color: var(--muted); }

@container (min-width: 700px) {
  .pb-top { padding: 14px 40px; }
  .pb-page main > *, .pb-cta { width: min(860px, calc(100% - 64px)); margin-left: auto !important; margin-right: auto !important; }
  .pb-intro { padding: 40px 0 12px; }
  .pb-intro h1 { font-size: 72px; }
  .pb-tabs { padding: 8px 0 0; }
  .pr-list { margin-top: 22px; gap: 10px; }
  .pb-empty { margin-top: 22px; }
  .pr-bar { min-height: 68px; padding: 10px 18px; }
  .pr-lab b { font-size: 22px; }
  .pr-v { min-width: 64px; height: 42px; font-size: 30px; }
  .pr-body { padding-left: 56px; }
  .pr-body p { font-size: 18px; }
  .pr-axis { margin-top: 10px; }
  .pb-cta { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .pb-page *, .pb-page { animation: none !important; transition: none !important; } }
