/* Info pages: leaderboard, compare, status, changelog, legal, contact, recover, redeem, partners */
.pg { width: 1000px; max-width: calc(100% - 32px); margin: 0 auto; padding: 160px 0 200px; min-height: 100vh; }
.pg-head { text-align: center; animation: blurIn 0.6s ease both; }
.pg-head .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(214, 48, 62, 0.14); border: 1.6px solid rgba(214, 48, 62, 0.35); color: #ff8a92; font-size: 14px; }
.pg-head h1 { margin-top: 16px; font-size: 44px; font-weight: 600; color: #fafafa; line-height: 1.15; }
.pg-head p { margin: 12px auto 0; max-width: 640px; font-size: 18px; color: #bdbdbd; line-height: 1.5; }
.pg-body { margin-top: 44px; animation: fadeIn6 0.6s ease 0.1s both; }
.box { background: rgba(17, 17, 17, 0.92); border: 1.6px solid #1d1d1d; border-radius: 22px; padding: 26px 28px; }
.box + .box { margin-top: 18px; }
.box h2 { font-size: 21px; font-weight: 600; color: #fff; }
.box p, .box li { color: #bdbdbd; font-size: 15.5px; line-height: 1.65; }
.box p + p { margin-top: 10px; }

/* forms */
.fl { display: block; margin: 16px 0 8px; font-size: 15px; font-weight: 500; color: #e6e6e6; }
.fl:first-child { margin-top: 0; }
.fi { width: 100%; height: 48px; padding: 0 14px; border-radius: 22px; background: #0c0c0c; border: 1.6px solid #1d1d1d; color: #f0f0f0; font: inherit; font-size: 15.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
textarea.fi { height: 150px; padding: 12px 14px; border-radius: 18px; resize: vertical; line-height: 1.5; }
select.fi { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.fi:focus { border-color: rgba(214, 48, 62, 0.55); box-shadow: 0 0 0 3px rgba(214, 48, 62, 0.12); }
.fi.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
.btn-p { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; border: 1.6px solid var(--plan-btn-border); background: var(--plan-btn); color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: filter 0.2s, transform 0.15s; }
.btn-p:hover { filter: brightness(1.15); }
.btn-p:active { transform: scale(0.98); }
.btn-p[disabled] { opacity: 0.6; cursor: default; }
.btn-p .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-g { height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; border: 1.6px solid #262626; background: #161616; color: #eee; font-size: 15.5px; transition: background 0.2s; }
.btn-g:hover { background: #1f1f1f; }
.form-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.note { margin-top: 14px; font-size: 14px; color: #9a9a9a; }
.note a, .box a.inline { color: #ff7f89; }
.msg { margin-top: 14px; font-size: 14.5px; min-height: 20px; }
.msg.err { color: #ff6b75; }
.msg.ok { color: #4ade80; }
.success { text-align: center; padding: 30px 10px; animation: fadeIn6 0.4s ease both; }
.success > i { font-size: 46px; color: #4ade80; }
.success h2 { margin-top: 14px; }
.success p { margin-top: 8px; }

/* leaderboard */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; align-items: end; }
.pod { position: relative; text-align: center; padding: 26px 16px 22px; border-radius: 22px; background: rgba(17,17,17,.92); border: 1.6px solid #1f1f1f; transition: transform 0.25s cubic-bezier(.16,1,.3,1), border-color 0.2s; animation: fadeIn6 0.5s ease both; }
.pod:hover { transform: translateY(-5px); border-color: #333; }
.pod.r1 { padding-top: 38px; border-color: rgba(245, 197, 24, 0.45); box-shadow: 0 0 40px rgba(245, 197, 24, 0.08); }
.pod.r2 { border-color: rgba(200, 200, 210, 0.35); }
.pod.r3 { border-color: rgba(205, 127, 50, 0.4); }
.pod .medal { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #111; }
.r1 .medal { background: #f5c518; } .r2 .medal { background: #cfd3da; } .r3 .medal { background: #cd7f32; }
.lb-av { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 700; font-size: 24px; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--a, #e23744), #2a0a10); }
.r1 .lb-av { width: 80px; height: 80px; }
.pod b { display: block; margin-top: 12px; font-size: 18px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { display: block; color: #9a9a9a; font-size: 13.5px; }
.pod .views, .lb-row .views { margin-top: 8px; color: #e8e8e8; font-size: 15px; }
.pod .views i, .lb-row .views i { color: #ff6b75; margin-right: 5px; }
.bdg { display: inline-flex; gap: 5px; font-size: 13px; margin-left: 4px; vertical-align: 1px; }
.lb-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.lb-row { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 18px; background: rgba(17,17,17,.92); border: 1.6px solid #1d1d1d; transition: background 0.2s, transform 0.2s; animation: fadeIn6 0.4s ease both; }
.lb-row:hover { background: #161616; transform: translateX(3px); }
.lb-row .rank { width: 34px; text-align: center; color: #888; font-weight: 600; }
.lb-row .lb-av { width: 42px; height: 42px; margin: 0; font-size: 16px; }
.lb-row .who { flex: 1; min-width: 0; }
.lb-row .who b { color: #fff; font-size: 16px; }
.lb-row .who small { display: block; color: #8f8f8f; font-size: 13px; }
.lb-row .views { margin-top: 0; }

/* compare */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 22px; border: 1.6px solid #1d1d1d; background: rgba(17,17,17,.92); }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1.6px solid #1a1a1a; font-size: 15.5px; color: #d6d6d6; }
.cmp th { font-size: 15px; color: #fff; background: #141414; }
.cmp th.us { color: #ff7f89; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td.c { text-align: center; width: 190px; }
.cmp th.c { text-align: center; }
.cmp .y { color: #4ade80; }
.cmp .n { color: #6b6b6b; }
.cmp .m { color: #f5a524; font-size: 13.5px; }
.cmp tbody tr { transition: background 0.2s; }
.cmp tbody tr:hover { background: #151515; }

/* status */
.st-banner { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 22px; border: 1.6px solid rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.07); }
.st-banner.bad { border-color: rgba(255, 107, 117, 0.45); background: rgba(255, 107, 117, 0.08); }
.st-banner i { font-size: 30px; color: #4ade80; }
.st-banner.bad i { color: #ff6b75; }
.st-banner b { display: block; font-size: 20px; color: #fff; }
.st-banner small { color: #a9a9a9; font-size: 14px; }
.st-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.st-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: rgba(17,17,17,.92); border: 1.6px solid #1d1d1d; }
.st-item .dot { width: 12px; height: 12px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; flex-shrink: 0; }
.st-item.bad .dot { background: #ff6b75; animation: none; }
.st-item.wait .dot { background: #777; animation: none; }
.st-item b { flex: 1; color: #f0f0f0; font-size: 16px; font-weight: 500; }
.st-item span { color: #9a9a9a; font-size: 14px; }
.bars { margin-top: 14px; display: flex; gap: 3px; height: 34px; align-items: flex-end; }
.bars i { flex: 1; border-radius: 3px; background: #4ade80; opacity: 0.85; min-height: 4px; transition: height 0.4s ease; }
.bars i.bad { background: #ff6b75; }
.st-meta { margin-top: 10px; display: flex; justify-content: space-between; color: #8a8a8a; font-size: 13px; }

/* changelog / legal */
.cl { position: relative; padding-left: 28px; }
.cl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #222; }
.cl-item { position: relative; animation: fadeIn6 0.4s ease both; }
.cl-item + .cl-item { margin-top: 18px; }
.cl-item::before { content: ""; position: absolute; left: -27px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px #0a0a0a; }
.cl-item .ver { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-item .ver b { font-size: 19px; color: #fff; }
.cl-item .ver span { padding: 3px 10px; border-radius: 99px; font-size: 12.5px; background: #1c1c1c; color: #bbb; }
.cl-item ul, .legal ul { margin: 12px 0 0 18px; }
.cl-item li + li, .legal li + li { margin-top: 5px; }
.legal h2 { margin-top: 26px; font-size: 19px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 8px; }
.legal .tpl-note { padding: 12px 16px; border-radius: 14px; background: rgba(245,165,36,.08); border: 1.6px solid rgba(245,165,36,.3); color: #f5c67a; font-size: 14px; margin-bottom: 22px; }

/* partners */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { padding: 22px; border-radius: 20px; background: rgba(17,17,17,.92); border: 1.6px solid #1d1d1d; transition: transform 0.25s, border-color 0.2s; animation: fadeIn6 0.4s ease both; }
.perk:hover { transform: translateY(-4px); border-color: #2c2c2c; }
.perk i { font-size: 24px; color: var(--accent-strong); }
.perk b { display: block; margin-top: 12px; font-size: 17px; color: #fff; }
.perk p { margin-top: 6px; color: #a9a9a9; font-size: 14.5px; line-height: 1.55; }
.cta-row { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .pg { padding: 120px 0 160px; }
  .pg-head h1 { font-size: 32px; }
  .pg-head p { font-size: 16px; }
  .podium { grid-template-columns: 1fr; }
  .podium .r1 { order: -1; }
  .st-grid, .perks { grid-template-columns: 1fr; }
  .cmp th, .cmp td { padding: 12px 10px; font-size: 13.5px; }
  .cmp td.c { width: auto; }
  .box { padding: 20px; }
}

/* Profiles share one baseline from the first rank to the last. */
.pg.pg-lb { width:850px; padding-top:clamp(108px,13vh,156px); }
body:has(.pg-lb) .page-bg { background:#0c0c0d; }
body:has(.pg-lb) .page-bg::after { display:none; }
.lb-head { display:flex; align-items:baseline; gap:16px; }
.lb-title { font-size:clamp(34px,5vw,52px); font-weight:600; letter-spacing:-.045em; line-height:1.1; color:#f4f2f1; }
.lb-count,.lt-h,.lt-rank,.lt-name small { color:#a19b9b; }
.lb-count { font-size:14px; }
.lb-tools { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 20px; }
.lb-sel,.lb-find { display:flex; align-items:center; position:relative; background:#161617; border:1px solid #333032; border-radius:7px; color:#aaa4a3; height:40px; }
.lb-sel[hidden] { display:none; }
.lb-sel > i:first-child { display:none; }
.lb-sel select,.lb-find input { background:transparent; color:#e5e1df; font:inherit; font-size:14px; border:0; }
.lb-sel select { appearance:none; height:100%; padding-inline:13px 32px; cursor:pointer; }
.lb-sel option { background:#171717; }
.lb-sel > i:last-child { position:absolute; inset-inline-end:12px; pointer-events:none; font-size:10px; }
.lb-find { margin-inline-start:auto; gap:9px; padding-inline:12px; }
.lb-find input { min-width:0; width:170px; height:100%; }
.lb-tools :focus-visible,.lt-r:focus-visible { outline:2px solid #ed9197; outline-offset:2px; }
#lb.busy { opacity:.65; }
.lt-h,.lt-r { display:grid; grid-template-columns:44px minmax(0,1fr) minmax(64px,auto); gap:14px; align-items:center; padding-inline:10px; }
.lt-h { font-size:12px; padding-block:11px; border-block:1px solid #3a3637; }
.lt-h span:last-child,.lt-score { text-align:end; }
.lt-r { min-height:65px; border-bottom:1px solid #252324; color:#ebe7e5; transition:background-color .15s; }
.lt-r:hover,.lt-r:focus-visible { background:#191819; }
.lt-rank,.lt-score { font-variant-numeric:tabular-nums; }
.lt-rank { font-size:14px; }

.lt-user { min-width:0; display:flex; align-items:center; gap:12px; }
.lt-user .lb-av { width:36px; height:36px; margin:0; font-size:14px; flex:none; }
.lt-name { min-width:0; }
.lt-name b,.lt-name small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lt-name b { font-size:15px; font-weight:600; }
.lt-name small { font-size:12px; }
.lt-pills { display:flex; flex-wrap:wrap; gap:8px; color:#a49c9c; font-size:11px; }
.lt-pills i { margin-inline-end:3px; font-size:9px; }
.lt-score { font-size:15px; font-weight:550; }
.lb-empty,.lb-loading { padding:36px 10px; color:#aaa3a3; }
@media (max-width:600px) {
  .lb-find { width:100%; margin:0; }
  .lb-find input { flex:1; }
  .lt-h,.lt-r { grid-template-columns:28px minmax(0,1fr) auto; gap:9px; padding-inline:3px; }
  .lt-pills { display:none; }
  .lt-user { gap:9px; }
}

.lb-winners { display:flex; justify-content:center; align-items:flex-end; gap:8px; list-style:none; margin:0 0 22px; padding:0; }
.lb-winners li { flex:1; min-width:0; max-width:330px; --metal:#c2c6cf; }
.lb-winners .place-1 { order:2; --metal:#ddba70; }
.lb-winners .place-2 { order:1; }
.lb-winners .place-3 { order:3; --metal:#c69171; }
.lb-winners a { display:grid; justify-items:center; gap:8px; padding:16px 6px; text-align:center; background:#151516; border-top:2px solid var(--metal); border-radius:4px; }
.lb-winners .place-1 a { padding-top:28px; background:#1b1916; }
.lb-winners a:hover,.lb-winners a:focus-visible { background:#212021; }
.winner-rank { color:var(--metal); font-size:16px; font-weight:650; }
.lb-winners .lb-av { width:42px; height:42px; font-size:18px; }
.lb-winners .lt-name { max-width:100%; }
.winner-score { color:#eee; font-size:14px; font-variant-numeric:tabular-nums; }
.winner-score span { color:#aaa; font-size:12px; }
@media (max-width:480px) { .lb-winners { gap:4px; } .winner-score span { display:block; } }
