/* maketag.app/levels/ — the leaderboard and the card settings, on top of customtag.css (the /pr/ look). The tier colours (--lv-a / --lv-b by [data-tier]) are customtag.css's. */
.lv-crest { display: flex; justify-content: center; margin: 4px 0 18px; color: #f2f2f4; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .18)); }
.lv-app { display: grid; gap: 18px; margin-bottom: 34px; }
.lv-app > .ct-card { margin: 0; }

/* the tabs: a pill switch */
.lv-tabs { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.lv-tab { appearance: none; border: 0; background: none; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.lv-tab:hover { color: #f2f2f4; }
.lv-tab.on { background: #f2f2f4; color: #0a0a0c; }

/* the leaderboard */
.lv-board-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.lv-board-h h2 { margin: 0 !important; }
.lv-count { font-size: 13px; color: var(--ink-soft, #a3a3ad); }
.lv-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0 0; font-size: 13.5px; color: var(--ink-soft, #a3a3ad); font-variant-numeric: tabular-nums; }
.lv-pager .btn { min-width: 44px; padding: 8px 14px; font-size: 18px; line-height: 1; }
.lv-pager > span { min-width: 112px; text-align: center; }
.lv-err { margin: 12px 0 0; color: #fca5a5; font-size: 14px; }
.lv-ok { margin: 12px 0 0; color: #7ee2a8; font-size: 14px; }

/* the card settings */
.lv-ed { display: grid; gap: 20px; }
.lv-prev { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 1; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2, rgba(255, 255, 255, .17)); display: grid; place-items: center; }
.lv-prev img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lv-prev:has(img) { border: 0; background: none; }
.lv-prev .lv-prev-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(10px) brightness(.55); transform: scale(1.1); }
.lv-prev .lv-prev-deco { position: absolute; left: 3.75%; top: 18.75%; width: 20.8333%; height: 62.5%; object-fit: contain; pointer-events: none; }
.lv-prev-empty { position: relative; padding: 20px; text-align: center; font-size: 14px; color: var(--ink-soft, #a3a3ad); }
.lv-spin { position: absolute; right: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #f2f2f4; opacity: 0; transition: opacity .15s; animation: lv-spin .8s linear infinite; pointer-events: none; }
.lv-prev.busy .lv-spin { opacity: 1; }
.lv-prev.busy img { opacity: .8; }
@keyframes lv-spin { to { transform: rotate(360deg); } }
.lv-pick { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.lv-pick .ct-hint { margin: 0; }
.lv-crop { display: grid; gap: 10px; }
.lv-crop canvas { width: 100%; aspect-ratio: 3 / 1; height: auto; border-radius: 14px; background: #000; cursor: grab; touch-action: none; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); }
.lv-crop canvas:active { cursor: grabbing; }
.lv-crop .ct-hint { margin: 0; }
.lv-zoom { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; color: var(--ink-soft, #a3a3ad); }
.lv-zoom .lv-range { flex: 1; min-width: 0; }
.lv-set { display: grid; gap: 18px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.lv-slw { display: grid; gap: 6px; min-width: 0; }
.lv-sl-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 500; color: #f2f2f4; }
.lv-sl-h b { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-soft, #a3a3ad); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-auto { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft, #a3a3ad); cursor: pointer; user-select: none; }
/* the «Авто» switch: a small pill toggle, not the browser's check box */
.lv-auto input { -webkit-appearance: none; appearance: none; flex: none; margin: 0; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .16); position: relative; cursor: pointer; transition: background .18s; }
.lv-auto input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #f2f2f4; transition: transform .18s, background .18s; }
.lv-auto input:checked { background: #f2f2f4; }
.lv-auto input:checked::after { transform: translateX(14px); background: #0a0a0c; }
.lv-auto input:focus-visible { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 2px; }
/* the ranges: a slim track filled up to the thumb (--p, set by levels.js), a round thumb — the same everywhere */
.lv-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.lv-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #f2f2f4 var(--p), rgba(255, 255, 255, .14) var(--p)); }
.lv-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #f2f2f4; border: 3px solid #0e0e11; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 8px rgba(0, 0, 0, .5); transition: transform .12s; }
.lv-range:hover::-webkit-slider-thumb, .lv-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.lv-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.lv-range::-moz-range-progress { height: 6px; border-radius: 999px; background: #f2f2f4; }
.lv-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #f2f2f4; border: 3px solid #0e0e11; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 8px rgba(0, 0, 0, .5); }
.lv-range:disabled { opacity: .45; cursor: default; }
.lv-range:focus-visible { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 4px; border-radius: 999px; }
.lv-acc { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; font-size: 14px; color: #f2f2f4; }
.lv-acc em { font-style: normal; font-size: 12.5px; color: var(--ink-soft, #a3a3ad); flex-basis: 100%; }
.lv-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.lv-seg button { appearance: none; border: 0; background: none; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.lv-seg button.on { background: #f2f2f4; color: #0a0a0c; }
.lv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lv-ed > .ct-hint { margin: 0; }

/* no premium */
.lv-lock { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 34px 24px; }
.lv-lock h2 { margin: 0 !important; }
.lv-lock-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #c9a7ff; background: radial-gradient(circle, rgba(176, 124, 255, .25), transparent 70%); }
.lv-pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft, #a3a3ad); }
.lv-pros li::before { content: '✓'; margin-right: 8px; color: #7ee2a8; }

@media (max-width: 640px) {
  .lv-tabs { width: 100%; }
  .lv-tab { flex: 1; padding: 10px 12px; }
  .lv-mine .btn { margin-left: 0; width: 100%; }
  .lv-actions .btn, .lv-pick .btn { flex: 1; }
  .lv-set { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .lv-spin { animation: none; } }

/* Discord's avatar decoration over a row's avatar (2026-10-25): 1.2× the avatar, centred; our tier ring gives way to it */
.lv-avw { --sz: 44px; position: relative; display: block; flex: none; width: var(--sz); height: var(--sz); }
.lv-avw > .lv-av { width: 100%; height: 100%; }
.lv-deco { position: absolute; left: 50%; top: 50%; width: 120%; height: 120%; transform: translate(-50%, -50%); pointer-events: none; }
.lv-avw.has-deco > .lv-av { box-shadow: none; }
@media (max-width: 640px) { .lv-avw { --sz: 38px; } }

/* the leaderboard (2026-10-25): the giveaway page's server ranking — hairline rows, a light number of the place, the avatar, the name, a thin bar = the share of the leader's experience, a figure on the right */
.lv-board.busy .lv-slist, .lv-board.busy .lv-podium { opacity: .55; transition: opacity .15s; }
.lv-mine { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: var(--ink-soft, #a3a3ad);
  background: linear-gradient(90deg, color-mix(in srgb, var(--lv-b, #5865f2) 20%, transparent), transparent 80%), rgba(255, 255, 255, .03); border: 1px solid color-mix(in srgb, var(--lv-b, #5865f2) 40%, transparent); }
.lv-mine b { font-size: 20px; color: #f2f2f4; letter-spacing: -.01em; }
.lv-mine .btn { margin-left: auto; padding: 8px 16px; font-size: 12.5px; }
.lv-slist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.lv-srow { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 13px 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); position: relative; }
.lv-srow.me { background: linear-gradient(90deg, color-mix(in srgb, var(--lv-b, #5865f2) 14%, transparent), transparent 70%); box-shadow: inset 3px 0 0 var(--lv-b, #5865f2); padding-left: 10px; margin-left: -10px; padding-right: 10px; margin-right: -10px; border-radius: 4px; }
.lv-pn { width: 44px; flex: none; text-align: center; font-weight: 300; font-size: 22px; letter-spacing: -.03em; color: rgba(255, 255, 255, .38); font-variant-numeric: tabular-nums; transition: color .2s; }
.lv-srow.top .lv-pn, .lv-srow:hover .lv-pn { color: #f2f2f4; }
.lv-srow[data-medal="1"] .lv-pn { color: #ffd36b; }
.lv-srow[data-medal="2"] .lv-pn { color: #d9dde8; }
.lv-srow[data-medal="3"] .lv-pn { color: #e0a070; }
.lv-av { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lv-b, #5865f2) 70%, transparent); display: block; }
.lv-av-f { display: grid; place-items: center; font-weight: 700; color: #07080a; background: linear-gradient(135deg, var(--lv-a, #8ea2ff), var(--lv-b, #5865f2)); }
.lv-sname { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lv-sline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lv-stitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 500; color: #f2f2f4; }
.lv-sline em, .lv-pod-me { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #f2f2f4; color: #0a0a0c; flex: none; }
.lv-crown { display: inline-flex; color: #c9a7ff; flex: none; }
.lv-smeta { font-size: 12.5px; color: var(--ink-soft, #a3a3ad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-sbar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lv-sbar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lv-a, #8ea2ff), var(--lv-b, #5865f2)); }
.lv-snum { flex: none; text-align: right; display: grid; gap: 3px; justify-items: end; font-variant-numeric: tabular-nums; }
.lv-lvn { display: flex; align-items: baseline; gap: 6px; font-size: 26px; font-weight: 300; letter-spacing: -.03em; line-height: 1; color: #f2f2f4; }
.lv-lvn small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lv-a, #8ea2ff); }
.lv-sxp { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft, #a3a3ad); }

/* the podium of the first page: 2nd · 1st · 3rd */
.lv-podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); align-items: end; gap: 12px; margin: 0 0 22px; }

@media (max-width: 640px) {
  .lv-srow { gap: 10px; }
  .lv-pn { width: 32px; font-size: 18px; }
  .lv-lvn { font-size: 22px; }
  .lv-full { display: none; }
  .lv-srow.me { margin-left: -6px; margin-right: -6px; padding-left: 6px; padding-right: 6px; }
  .lv-podium { gap: 6px; }
}

/* the sections of the tag page (2026-10-26): the editor is the page's own — the other two replace it and the blocks under it */
html[data-sec="card"] main.ct-main > :is(#ctDash, .ct-sec), html[data-sec="top"] main.ct-main > :is(#ctDash, .ct-sec) { display: none !important; }
html:not([data-sec="card"]):not([data-sec="top"]):not([data-sec="shop"]) #lvApp { display: none; }
#ctSections { margin-top: 4px; }
.lv-ts { display: none; }
@media (max-width: 520px) { .lv-tl { display: none; } .lv-ts { display: inline; } #ctSections .lv-tab { padding: 10px 6px; font-size: 13.5px; } }
.lv-app, .lv-app > .ct-card { min-width: 0; max-width: 100%; }
.lv-board-h { flex-wrap: wrap; }
/* the server tag beside a name (2026-10-26): a soft pill with the tag's badge and letters, as in Discord */
.lv-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .1); font-size: 12px; line-height: 1.35; color: #eef1fa; }
.lv-tag:has(> img:only-child) { padding: 2px 5px; }
.lv-tag img { width: 14px; height: 14px; display: block; }
.lv-tag b { font-weight: 700; letter-spacing: .02em; }

/* THE PODIUM (2026-10-26, v7 — after «Daily UI #019» by Elena Tsoneva, fitted to the site): three blocks against each other, big numerals, the person over each block, a crown over the winner, a soft light behind */
.lv-podium { --h1: 156px; --h2: 116px; --h3: 86px; --lip: 17px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr); align-items: end; gap: 0; width: min(100%, 580px); margin: 12px auto 0; padding-top: 22px; isolation: isolate; }
.lv-podium::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: -10px; width: 118%; height: 120%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(46% 52% at 50% 62%, rgba(255, 211, 107, .13), rgba(125, 110, 255, .10) 52%, transparent 74%); }
.lv-pod { --medal: #b9bfce; position: relative; display: grid; justify-items: center; min-width: 0; text-align: center; }
.lv-pod.p1 { --medal: #ffd36b; z-index: 2; }
.lv-pod.p2 { --medal: #dfe4f2; }
.lv-pod.p3 { --medal: #e8a877; }
.lv-pod-who { display: grid; justify-items: center; gap: 3px; width: 100%; min-width: 0; padding: 0 4px 24px; position: relative; }
.lv-pod-av { position: relative; display: block; margin-bottom: 4px; }
.lv-pod .lv-pod-av { --pz: 62px; }
.lv-pod.p1 .lv-pod-av { --pz: 78px; }
.lv-pod .lv-avw { --sz: var(--pz); }
.lv-pod .lv-av { box-shadow: 0 0 0 2px color-mix(in srgb, var(--medal) 85%, transparent), 0 0 20px color-mix(in srgb, var(--medal) 26%, transparent), 0 6px 16px rgba(0, 0, 0, .5); }
.lv-pod .lv-avw.has-deco > .lv-av { box-shadow: none; }
.lv-pod-name { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 6px; width: 100%; min-width: 0; max-width: 100%; font-size: 14px; font-weight: 650; letter-spacing: -.01em; color: #f4f4f7; }
.lv-pod.p1 .lv-pod-name { font-size: 15.5px; }
.lv-pod-name > span:first-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-pod-name > :not(:first-child) { flex: none; }
.lv-pod-name .lv-tag { font-size: 10.5px; padding: 1px 6px; }
.lv-pod-me { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: #f2f2f4; color: #0a0a0c; }
.lv-pod-st { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 1px 8px; font-variant-numeric: tabular-nums; }
.lv-pod-lv { display: inline-flex; align-items: baseline; gap: 4px; line-height: 1; }
.lv-pod-lv small { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--ink-soft, #a3a3ad); }
.lv-pod-lv b { font-size: 16px; font-weight: 700; color: var(--lv-a, #8ea2ff); }
.lv-pod.p1 .lv-pod-lv b { font-size: 18px; }
.lv-pod-xp { font-size: 11.5px; font-weight: 500; color: var(--ink-soft, #a3a3ad); }
.lv-pod.me .lv-pod-who::before { content: ''; position: absolute; inset: -6px 2px 6px; border-radius: 18px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--lv-b, #5865f2) 60%, transparent); pointer-events: none; }
/* the block: a plain face, a lighter top edge seen from above, the numeral big on it */
.lv-pod-blk { position: relative; width: 100%; height: var(--h2); display: grid; place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 9%, #2e3166) 0, #1c1e42 55%, #121330 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(255, 255, 255, .04), inset -1px 0 0 rgba(0, 0, 0, .28); }
.lv-pod-blk::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--lip) * -1); height: var(--lip); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 34%, #4b4f94), color-mix(in srgb, var(--medal) 14%, #353872)); }
.lv-pod-blk::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, .05), transparent 40%, rgba(0, 0, 0, .16)); }
.lv-pod.p1 .lv-pod-blk { height: var(--h1); }
.lv-pod.p2 .lv-pod-blk::before { clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); }
.lv-pod.p3 .lv-pod-blk::before { clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%); }
.lv-pod.p3 .lv-pod-blk { height: var(--h3); }
.lv-pod-rank { position: relative; z-index: 1; font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(8, 8, 30, .35), 0 0 22px color-mix(in srgb, var(--medal) 45%, transparent); }
.lv-pod.p1 .lv-pod-rank { font-size: 76px; }
@media (max-width: 640px) {
  .lv-podium { --h1: 108px; --h2: 80px; --h3: 58px; --lip: 12px; margin-bottom: 0; padding-top: 24px; }
  .lv-pod-who { gap: 2px; padding-bottom: 17px; }
  .lv-pod .lv-pod-av { --pz: 46px; }
  .lv-pod.p1 .lv-pod-av { --pz: 60px; }
  .lv-pod-name { font-size: 12px; gap: 4px; }
  .lv-pod.p1 .lv-pod-name { font-size: 13px; }
  .lv-pod-name .lv-tag { font-size: 9.5px; padding: 1px 4px; }
  .lv-pod-name .lv-tag img { width: 11px; height: 11px; }
  .lv-pod-st { gap: 0 5px; }
  .lv-pod-lv b, .lv-pod.p1 .lv-pod-lv b { font-size: 13.5px; }
  .lv-pod-lv small { font-size: 8.5px; letter-spacing: .1em; }
  .lv-pod-xp { font-size: 10px; }
  .lv-pod-rank { font-size: 36px; }
  .lv-pod.p1 .lv-pod-rank { font-size: 50px; }
}

/* a GIF background (2026-10-26): the note of what the system made of the file */
.lv-gifnote { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: var(--ink-soft, #a3a3ad); background: rgba(255, 255, 255, .04); border: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.lv-gifnote b { padding: 1px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #0a0a0c; background: #f2f2f4; }
.lv-gifnote span { flex-basis: 100%; font-size: 12.5px; }
.lv-gifnote .lv-spin { position: static; opacity: 1; flex: none; }

/* a link to a picture / a GIF (2026-10-26) */
.lv-url { display: flex; gap: 8px; }
.lv-url input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); background: rgba(255, 255, 255, .04); color: #f2f2f4; font: inherit; font-size: 14px; outline: none; transition: border-color .15s, background .15s; }
.lv-url input::placeholder { color: rgba(255, 255, 255, .38); }
.lv-url input:focus { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }
.lv-url input:disabled { opacity: .55; }
.lv-url .btn { flex: none; padding: 0 20px; }
@media (max-width: 640px) { .lv-url { flex-direction: column; } .lv-url input { flex: none; } .lv-url .btn { height: 44px; } }

/* the history of the backgrounds (2026-10-26): a press puts one back on the card with its own settings, ✕ deletes it */
.lv-hist { display: grid; gap: 12px; }
.lv-hist-h { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.lv-hist-h h3 { margin: 0; font-size: 15px; font-weight: 700; color: #f2f2f4; }
.lv-hist-h .ct-hint { margin: 0; }
.lv-hist-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.lv-hi { position: relative; display: grid; gap: 6px; min-width: 0; }
.lv-hi-pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 1; padding: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); background: rgba(255, 255, 255, .04); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.lv-hi-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lv-hi-pic:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-1px); }
.lv-hi-pic:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lv-hi.on .lv-hi-pic { border-color: #f2f2f4; box-shadow: 0 0 0 1px #f2f2f4; }
.lv-hi-on, .lv-hi-gif { position: absolute; top: 6px; padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.lv-hi-on { left: 6px; color: #0a0a0c; background: #f2f2f4; }
.lv-hi-gif { right: 36px; color: #f2f2f4; background: rgba(10, 10, 12, .72); }
.lv-hi-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 0; font-size: 12px; line-height: 1; color: #f2f2f4; background: rgba(10, 10, 12, .72); cursor: pointer; opacity: .85; transition: background .15s, opacity .15s; }
.lv-hi-x:hover, .lv-hi-x:focus-visible { background: #c0392b; opacity: 1; }
.lv-hi-meta { font-size: 11.5px; line-height: 1.4; color: var(--ink-soft, #a3a3ad); }
.lv-hi .lv-spin { top: 50%; left: 50%; right: auto; bottom: auto; margin: -10px 0 0 -10px; }
.lv-hi.busy .lv-spin { opacity: 1; }
.lv-hi.busy img { opacity: .5; }

/* the avatar decoration picker (2026-10-26) */
.lv-dsec { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.lv-dcur { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lv-dcur .lv-avw { --sz: 56px; flex: none; }
.lv-dcur-t { display: grid; gap: 2px; flex: 1; min-width: 140px; }
.lv-dcur-t h3 { margin: 0; font-size: 15px; font-weight: 700; color: #f2f2f4; }
.lv-dcur-t span { font-size: 13px; color: var(--ink-soft, #a3a3ad); }
.lv-dpanel { display: grid; gap: 12px; }
.lv-dtools { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-dtools input { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); background: rgba(255, 255, 255, .04); color: #f2f2f4; font: inherit; font-size: 14px; outline: none; }
.lv-dtools input { flex: 1; min-width: 160px; }
.lv-dtools input:focus { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }
.lv-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding: 4px; margin: -4px; overscroll-behavior: contain; }
.lv-dt { display: grid; justify-items: center; gap: 8px; padding: 12px 6px 10px; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, .03); color: var(--ink-soft, #a3a3ad); cursor: pointer; min-width: 0; transition: background .15s, border-color .15s, color .15s; }
.lv-dt:hover { background: rgba(255, 255, 255, .07); color: #f2f2f4; }
.lv-dt:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lv-dt.on { border-color: #f2f2f4; background: rgba(255, 255, 255, .09); color: #f2f2f4; }
.lv-dt .lv-avw { --sz: 56px; }
.lv-dt .lv-av { box-shadow: none; }
.lv-dt-n { max-width: 100%; font-size: 11.5px; line-height: 1.3; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.lv-dgrid > .lv-dmore, .lv-dgrid > .lv-dmsg, .lv-dgrid > .lv-err { grid-column: 1 / -1; }
.lv-dmore { justify-self: center; }
.lv-dmsg { display: flex; align-items: center; gap: 8px; margin: 0; }
.lv-dmsg .lv-spin { position: static; opacity: 1; }
.lv-dpanel > .ct-hint { margin: 0; }
@media (max-width: 640px) {
  .lv-hist-l { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lv-hi-gif { right: 6px; top: auto; bottom: 6px; }
  .lv-dsec { padding: 14px; }
  .lv-dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 380px; }
  .lv-dd { flex: 1 1 100%; }
}

/* the collection list (2026-10-26): the site's own dropdown, not the system's */
.lv-dd { position: relative; flex: 0 1 230px; min-width: 0; }
.lv-dd-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); background: rgba(255, 255, 255, .04); color: #f2f2f4; font: inherit; font-size: 14px; text-align: left; cursor: pointer; outline: none; transition: border-color .15s, background .15s; }
.lv-dd-b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-dd-b svg { flex: none; color: rgba(255, 255, 255, .55); transition: transform .18s ease, color .15s; }
.lv-dd-b:hover, .lv-dd-b.open, .lv-dd-b:focus-visible { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }
.lv-dd-b.open svg { transform: rotate(180deg); color: #f2f2f4; }
.lv-dd-l { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(320px, 86vw); max-height: min(340px, 52vh); margin: 0; padding: 6px; list-style: none; overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); background: #121216; box-shadow: 0 18px 44px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; animation: lv-dd-in .14s ease-out; }
.lv-dd-o { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink-soft, #a3a3ad); font: inherit; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; transition: background .12s, color .12s; }
.lv-dd-o:hover, .lv-dd-o:focus-visible { background: rgba(255, 255, 255, .08); color: #f2f2f4; }
.lv-dd-o.on { color: #0a0a0c; background: #f2f2f4; font-weight: 600; }
@keyframes lv-dd-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lv-dd-l { animation: none; } .lv-dd-b svg { transition: none; } }
@media (max-width: 640px) { .lv-dd { flex: 1 1 100%; } }

/* a press on a person in the leaderboard opens their card (2026-10-26) */
.lv-srow[data-lvu] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.lv-srow[data-lvu]:hover { background: rgba(255, 255, 255, .035); }
.lv-srow[data-lvu]:focus-visible, .lv-pod-av[data-lvu]:focus-visible { outline: 2px solid #f2f2f4; outline-offset: 2px; }
.lv-pod-av[data-lvu] { cursor: pointer; border-radius: 50%; transition: transform .18s ease; -webkit-tap-highlight-color: transparent; }
.lv-pod-av[data-lvu]:hover { transform: scale(1.05); }
.lv-pm { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 9, .78); overscroll-behavior: contain; animation: lv-pm-bg .16s ease-out backwards; }
.lv-pm-box:focus { outline: none; }
.lv-pm-box { position: relative; width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 14px 14px 18px; border-radius: 24px; background: #0d0d12; border: 1px solid var(--line-2, rgba(255, 255, 255, .17)); box-shadow: 0 30px 80px rgba(0, 0, 0, .65); animation: lv-pm-in .2s cubic-bezier(.2, .8, .2, 1) backwards; }
.lv-pm-card { position: relative; aspect-ratio: 3 / 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .04); }
.lv-pm-card > img:not(.lv-pm-deco) { display: block; width: 100%; height: 100%; object-fit: contain; }
.lv-pm-deco { position: absolute; left: 3.75%; top: 18.75%; width: 20.8333%; height: 62.5%; object-fit: contain; pointer-events: none; }
.lv-pm-msg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 16px; text-align: center; font-size: 14px; color: var(--ink-soft, #a3a3ad); }
.lv-pm-msg .lv-spin { position: static; opacity: 1; }
.lv-pm-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 12px 6px 0; }
.lv-pm-head h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font-size: 17px; font-weight: 700; color: #f4f4f7; }
.lv-pm-head span { font-size: 13px; color: var(--ink-soft, #a3a3ad); font-variant-numeric: tabular-nums; }
@keyframes lv-pm-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lv-pm-bg { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) { .lv-pm { place-items: end center; padding: 0; } .lv-pm-box { width: 100%; border-radius: 24px 24px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); max-height: 92dvh; } }
@media (prefers-reduced-motion: reduce) { .lv-pm, .lv-pm-box { animation: none; } .lv-pod-av[data-lvu] { transition: none; } }
