/* card page */
.cp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 20px 0 40px; }
.cp-card .cc { font-size: min(20px, calc((100vw - 32px) / 20)); cursor: pointer; }
.cp-info h1 { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: clamp(34px, 5vw, 56px); margin: 8px 0 4px; text-transform: uppercase; line-height: 1; }
.cp-sub { color: var(--muted); margin: 0 0 20px; }
.cp-tags { display: flex; gap: 8px; }
.tag { font: 700 12px "Inter", sans-serif; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); }
.tag.t-gold { background: linear-gradient(135deg, #ffe08a, #c9921f); color: #1a1205; border: 0; }
.tag.t-silver { background: linear-gradient(135deg, #f4f7fa, #9aa6b2); color: #111; border: 0; }
.tag.t-bronze { background: linear-gradient(135deg, #f0a868, #8a4517); color: #fff; border: 0; }
.tag.t-elite { background: linear-gradient(135deg, #ff6ad5, #94d0ff, #7fffd4); color: #111; border: 0; }
.ranks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; max-width: 420px; }
.rank { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; transition: border-color .15s, transform .15s; }
.rank:hover { border-color: rgba(255,212,92,.45); transform: translateX(2px); }
.rank b { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 24px; color: var(--gold); }
.rank span { color: var(--text); font-size: 14px; }
.rank i { font-style: normal; color: var(--muted); }
.cp-link { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.cp-link a { color: var(--text); font-weight: 600; }
.cp-link em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); font-size: 11px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 14px 0 0; font: 500 14px "Inter", sans-serif; }
.linkbtn:hover { color: var(--text); }
.cp-upd { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.pwbox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 10px; }
.pwbox h3 { margin: 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 24px; text-transform: uppercase; }
.pwbox p { margin: 0; color: var(--muted); font-size: 14px; }
.pwbox input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: 600 16px ui-monospace, monospace; outline: none; }
.pwbox input:focus { border-color: var(--gold); }
@media (max-width: 820px) { .cp { grid-template-columns: 1fr; justify-items: center; gap: 20px; } .cp-info { width: 100%; } }

/* leaderboard */
.lb { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 40px; }
.row { display: grid; grid-template-columns: 36px 46px minmax(0, 1fr) 44px 52px 52px 52px 54px; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.row:hover { border-color: rgba(255,255,255,.2); transform: translateY(-1px); }
.pos { font-family: "Anton", Impact, sans-serif; font-weight: 400; font-size: 20px; color: var(--muted); text-align: center; }
.row:nth-child(1) .pos { color: #ffd45c; } .row:nth-child(2) .pos { color: #dfe6ec; } .row:nth-child(3) .pos { color: #f0a868; }
.av { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, var(--a1), var(--a2)); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av span { font-family: "Anton", Impact, sans-serif; font-size: 18px; }
.who { min-width: 0; }
.who strong { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role { font: 800 11px "Inter", sans-serif; letter-spacing: .08em; color: var(--muted); text-align: center; }
.st { text-align: center; line-height: 1.05; }
.st b { display: block; font: 700 18px "Barlow Condensed", sans-serif; }
.st small { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.st.hl b { color: var(--gold); }
.ovr { font-family: "Anton", Impact, sans-serif; font-size: 20px; text-align: center; padding: 6px 0; border-radius: 10px; color: #111;
  background: linear-gradient(135deg, #f0a868, #8a4517); }
.row.t-silver .ovr { background: linear-gradient(135deg, #f4f7fa, #9aa6b2); }
.row.t-gold .ovr { background: linear-gradient(135deg, #ffe08a, #c9921f); }
.row.t-elite .ovr { background: linear-gradient(135deg, #ff6ad5, #94d0ff, #7fffd4); }
@media (max-width: 620px) {
  .row { grid-template-columns: 26px 40px minmax(0, 1fr) 44px 44px 48px; gap: 8px; padding: 8px 10px; }
  .row .role, .row .hide-sm { display: none; }
  .av { width: 40px; height: 40px; }
}
