/* Mercury public edition — sign-in, onboarding, connections, leaderboard, profiles */

/* ───────── shared bits ───────── */
.auth-link { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s; display: inline-flex; align-items: center; gap: 5px; }
.auth-link:hover { border-color: #fff; }
.code { font-family: var(--mono); font-size: .92em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); word-break: break-all; }
.grow { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.lb-loading { display: grid; place-items: center; min-height: 40vh; }
.shake { animation: shake .4s; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); border-top-color: #000; animation: spin .7s linear infinite; }
.btn.danger { color: #fca5a5; }
input[type=email] { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); outline: none; transition: border-color .2s, background .2s; }
input[type=email]:focus { border-color: rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .35); }
.topbar.guest { grid-template-columns: auto 1fr; }
.shell.guest { grid-template-columns: minmax(0, 1fr); }

/* ───────── sign in / sign up ───────── */
#app:has(.auth), #app:has(.ob) { display: block; overflow-y: auto; }
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.auth-hero { position: relative; padding: 46px 6vw 46px; display: flex; flex-direction: column; justify-content: center; gap: 26px; overflow: hidden; }
.ah-brand { position: absolute; top: 28px; left: 6vw; display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.03em; }
.ah-brand svg { filter: drop-shadow(0 0 14px rgba(255, 255, 255, .35)); }
.ah-title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.2vw, 92px); line-height: .95; letter-spacing: -.02em; margin: 0; }
.ah-title em { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 100% 220%; animation: sheen 6s ease-in-out infinite alternate; }
.ah-sub { max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0; }
.ah-ticker { position: relative; width: calc(100% + 12vw); margin-left: -6vw; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ah-track { display: flex; gap: 12px; width: max-content; animation: ticker 38s linear infinite; padding: 6px 0; }
.ah-chip { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 14px; white-space: nowrap; }
.ah-chip b { font-size: 13px; letter-spacing: .02em; }
.ah-chip span { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.ah-chip i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ah-feats { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 13px; }
.ah-feats div { display: flex; align-items: center; gap: 8px; }
.ah-feats .ic { opacity: .7; }
.auth-side { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); padding: 34px 32px 28px; border-radius: calc(var(--radius) + 10px); background: rgba(10, 10, 12, .55); }
.auth-card.swap > * { animation: viewIn .45s var(--ease) both; }
.auth-card h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; font-weight: 650; }
.auth-lead { margin: 6px 0 22px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .field > span { display: flex; }
.auth-oauth { display: grid; gap: 8px; }
.auth-prov { height: 44px; font-size: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.auth-prov[data-prov=discord]:hover { background: rgba(88, 101, 242, .35); border-color: rgba(88, 101, 242, .6); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; margin: 18px 0 16px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-go { height: 46px; font-size: 14.5px; border-radius: 12px; margin-top: 4px; }
.auth-err { min-height: 18px; font-size: 12.5px; color: #fca5a5; text-align: center; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-2); }
.auth-fine { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--text-3); text-align: center; }
.auth-dev { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: #fde68a; background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .2); margin-bottom: 16px; line-height: 1.5; }
.auth-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.auth-ic.sent { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); }
.pw-eye:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.pw-meter { display: grid !important; grid-template-columns: repeat(4, 1fr) auto; gap: 4px; align-items: center; margin-top: 2px; }
.pw-meter i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); transition: background .3s; }
.pw-meter b { font-weight: 500; font-size: 11.5px; color: var(--text-3); margin-left: 8px; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #f87171; }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: #fbbf24; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #a3e635; }
.pw-meter[data-s="4"] i { background: #34d399; }
.otp { text-align: center; font-size: 26px !important; letter-spacing: .5em; height: 56px !important; font-family: var(--mono); }
.mfa-qr { display: grid; place-items: center; margin: 16px 0 8px; }
.mfa-qr img { width: 180px; height: 180px; border-radius: 14px; background: #fff; padding: 10px; }

/* ───────── onboarding ───────── */
.ob { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.ob-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 18px 26px; position: sticky; top: 0; z-index: 5; }
.ob-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.03em; }
.ob-brand svg { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .3)); }
.ob-prog { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ob-prog li { display: flex; flex-direction: column; gap: 6px; align-items: center; width: 92px; font-size: 11px; color: var(--text-3); letter-spacing: .04em; transition: color .3s; }
.ob-prog li i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative; }
.ob-prog li i::after { content: ''; position: absolute; inset: 0; background: var(--chrome); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ob-prog li.done i::after, .ob-prog li.on i::after { transform: scaleX(1); }
.ob-prog li.on i::after { animation: sheen 2s ease-in-out infinite alternate; background-size: 220% 100%; }
.ob-prog li.on, .ob-prog li.done { color: var(--text); }
.ob-stage { display: grid; place-items: center; padding: 10px 24px 30px; }
.ob-card { width: min(1040px, 100%); }
.ob-card.in-fwd > * { animation: obIn .55s var(--ease) both; }
.ob-card.in-back > * { animation: obBack .55s var(--ease) both; }
@keyframes obIn { from { opacity: 0; transform: translateX(26px); filter: blur(4px); } }
@keyframes obBack { from { opacity: 0; transform: translateX(-26px); filter: blur(4px); } }
.ob-nav { position: sticky; bottom: 0; padding: 14px 26px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .55) 40%); }
.ob-nav-in { width: min(1040px, 100%); margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.ob-nav .btn { height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14px; }
.ob-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.ob-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 26px 0 12px; }
.ob-h1 em { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 650; letter-spacing: -.035em; margin: 0 0 8px; line-height: 1.1; }
.ob-lead { color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 0 0 22px; max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.ob-hero { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ob-hero .ob-lead { margin: 0 auto 26px; }
.ob-drop { position: relative; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); animation: dropIn 1s cubic-bezier(.2, 1.3, .3, 1) both; }
.ob-drop svg { filter: drop-shadow(0 0 28px rgba(255, 255, 255, .45)); animation: float 4s ease-in-out infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes dropIn { from { transform: scale(.4) rotate(-30deg); opacity: 0; } }
.ob-ripple { position: absolute; inset: -2px; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .35); animation: ripple 3.2s ease-out infinite; pointer-events: none; }
.ob-ripple.r2 { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.ob-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(820px, 100%); margin-bottom: 30px; }
.ob-plan > div { padding: 18px; border-radius: 18px; display: grid; gap: 4px; text-align: left; animation: viewIn .6s var(--ease) both; }
.ob-plan > div:nth-child(2) { animation-delay: .08s; }
.ob-plan > div:nth-child(3) { animation-delay: .16s; }
.ob-plan span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); margin-bottom: 8px; }
.ob-plan b { font-size: 14.5px; }
.ob-plan i { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.ob-cta { height: 50px !important; padding: 0 26px !important; font-size: 15px !important; border-radius: 14px !important; }
.ob-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.ob-form { display: grid; gap: 16px; }
.handle-in { display: flex; align-items: center; position: relative; }
.handle-in b { position: absolute; left: 12px; color: var(--text-3); font-weight: 500; pointer-events: none; }
.handle-in input { padding-left: 28px !important; padding-right: 90px !important; }
.handle-in em { position: absolute; right: 12px; font-style: normal; font-size: 11.5px; font-weight: 600; }
.handle-in em.ok { color: #34d399; }
.handle-in em.bad { color: #fca5a5; }
.handle-in em.wait { color: var(--text-3); }
.field small { font-size: 11.5px; line-height: 1.5; }
.av-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.av-opt { width: 46px; height: 46px; border-radius: 50%; padding: 2px; border: 2px solid transparent; transition: transform .2s, border-color .2s; display: grid; place-items: center; background: rgba(255, 255, 255, .04); }
.av-opt img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.av-opt:hover { transform: translateY(-2px) scale(1.05); }
.av-opt.on { border-color: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.av-up { border: 1.5px dashed rgba(255, 255, 255, .25); color: var(--text-2); }
.av-opt.busy { animation: pulse 1s infinite; }
.ob-preview { display: grid; place-items: center; perspective: 900px; }
.id-prev { width: 300px; padding: 30px 26px 22px; border-radius: 26px; text-align: center; overflow: hidden; transform: rotateY(-8deg) rotateX(4deg); animation: idFloat 6s ease-in-out infinite; }
@keyframes idFloat { 50% { transform: rotateY(6deg) rotateX(-2deg) translateY(-6px); } }
.idp-glow { position: absolute; inset: -40% -40% auto; height: 120%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .14), transparent 30%); animation: spinSlow 8s linear infinite; pointer-events: none; }
.idp-av { position: relative; width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; padding: 3px; background: var(--chrome); box-shadow: 0 0 40px rgba(255, 255, 255, .25); }
.idp-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #000; }
.idp-name { position: relative; font-size: 22px; font-weight: 650; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idp-handle { position: relative; color: var(--text-3); font-size: 13px; margin-bottom: 16px; }
.idp-row { position: relative; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-3); padding: 8px 0; border-top: 1px solid var(--line-2); }
.idp-row b { color: var(--text); font-weight: 600; }
.idp-foot { position: relative; margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--text-3); }

.ob-discord { position: relative; max-width: 760px; }
.dc-art { position: relative; height: 170px; margin-bottom: 18px; }
.dc-logo { position: absolute; left: 0; top: 18px; width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, #8b95ff, #5865f2 55%, #3b44b8); box-shadow: 0 20px 60px -10px rgba(88, 101, 242, .7), inset 0 1px 0 rgba(255, 255, 255, .4); animation: dropIn .9s cubic-bezier(.2, 1.3, .3, 1) both; }
.dc-bubble { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 16px; font-size: 13px; white-space: nowrap; animation: bubble 7s ease-in-out infinite both; }
.dc-bubble i { width: 24px; height: 24px; border-radius: 50%; background: var(--chrome); flex: none; }
.dc-bubble.b1 { left: 150px; top: 6px; animation-delay: .2s; }
.dc-bubble.b2 { left: 210px; top: 62px; animation-delay: 1.1s; }
.dc-bubble.b3 { left: 170px; top: 118px; animation-delay: 2s; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(10px) scale(.95); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
.dc-perks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dc-perks li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.dc-perks .ic { color: #a5adff; }
.dc-join { height: 54px; padding: 0 30px; font-size: 15.5px; border-radius: 16px; color: #fff; border: 0; background: linear-gradient(135deg, #6d78ff, #5865f2 50%, #4752c4); box-shadow: 0 14px 40px -12px rgba(88, 101, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.dc-join:hover { filter: brightness(1.1); background: linear-gradient(135deg, #6d78ff, #5865f2 50%, #4752c4); }
.dc-join.joined { background: rgba(52, 211, 153, .15); color: #6ee7b7; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .4); }
.dc-soon { display: inline-flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 14px; color: var(--text-2); font-size: 13px; }

.ob-src { margin-top: 26px; }
.ob-themes { margin: 6px 0 10px; }
.ob-lb { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; margin-top: 18px; }
.ob-lb-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(250, 204, 21, .25), rgba(250, 204, 21, .05)); color: #fde68a; flex: none; }
.ob-lb .dim { font-size: 12.5px; line-height: 1.55; margin-top: 3px; }
.ob-done-av { position: relative; width: 130px; height: 130px; border-radius: 50%; padding: 4px; background: var(--chrome); box-shadow: 0 0 60px rgba(255, 255, 255, .35); animation: dropIn 1s cubic-bezier(.2, 1.3, .3, 1) both; }
.ob-done-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #000; }
.wait .ob-h1 { max-width: 900px; }
.wait-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fde68a; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .3); }
.wait-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: waitPulse 1.6s ease-in-out infinite; }
.wait-pill.no { color: var(--text-2); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.wait-pill.no i { animation: none; box-shadow: none; }
@keyframes waitPulse { 50% { opacity: .35; } }
.wait .ob-h1 { margin-top: 14px; }
.wait-code { width: min(440px, 100%); padding: 16px; border-radius: 18px; display: grid; gap: 10px; text-align: left; }
.wait-code label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.wait-code-row { display: flex; gap: 8px; }
.wait-code-row input { flex: 1; min-width: 0; font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.wait-code-row input::placeholder { text-transform: none; letter-spacing: .04em; }

/* ───────── sync source cards ───────── */
.src-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.src-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; border-radius: 22px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.src-card::after { content: ''; position: absolute; inset: auto -30% -60% -30%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 40%, transparent), transparent); opacity: .35; transition: opacity .4s; pointer-events: none; }
.src-card:hover { transform: translateY(-4px); }
.src-card:hover::after, .src-card.on::after { opacity: .9; }
.src-card.on { box-shadow: 0 0 0 1.5px var(--sc), 0 24px 60px -20px color-mix(in srgb, var(--sc) 70%, transparent); }
.src-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); box-shadow: 0 10px 30px -12px var(--sc); }
.src-tag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sc); }
.src-name { font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
.src-blurb { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.src-best { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.src-best .ic { flex: none; margin-top: 2px; }
.src-pick { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: transparent; transition: all .3s; }
.src-card.on .src-pick { background: var(--sc); border-color: var(--sc); color: #000; transform: scale(1.1); }
.src-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.src-status i { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; }
.src-status i.ok { background: #34d399; box-shadow: 0 0 10px #34d399; }

/* ───────── setup tutorial ───────── */
.tut { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; align-items: start; margin-top: 18px; }
.tut-video { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #050506; border: 1px solid var(--line); }
.tut-video iframe, .tut-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-anim { display: grid; place-items: center; background: radial-gradient(120% 100% at 30% 0%, color-mix(in srgb, var(--sc) 30%, #000), #050506 70%); }
.ta-screen { width: 78%; border-radius: 14px; overflow: hidden; background: rgba(12, 12, 15, .8); }
.ta-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); font-size: 11px; color: var(--text-3); }
.ta-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.ta-bar span { margin-left: 8px; font-family: var(--mono); }
.ta-body { padding: 18px; display: grid; gap: 12px; font-size: 12.5px; }
.ta-file { font-family: var(--mono); color: var(--text-2); animation: taStep 6s infinite; }
.ta-progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ta-progress i { display: block; height: 100%; width: 0; background: var(--sc); animation: taBar 6s infinite; }
.ta-ok { display: flex; align-items: center; gap: 8px; color: #6ee7b7; opacity: 0; animation: taOk 6s infinite; }
.ta-ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
.ta-toggle { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.ta-toggle i { width: 30px; height: 17px; border-radius: 10px; background: rgba(255, 255, 255, .15); position: relative; animation: taTog 6s infinite; }
.ta-toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; animation: taKnob 6s infinite; }
.ta-ph { font-weight: 600; text-align: center; }
.ta-btns { display: flex; gap: 8px; justify-content: center; }
.ta-btns i, .ta-btns b { font-style: normal; padding: 7px 14px; border-radius: 9px; background: rgba(255, 255, 255, .08); font-size: 12px; }
.ta-btns b { background: var(--sc); color: #000; animation: taPress 6s infinite; }
.ta-cap { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; justify-content: center; align-items: center; }
@keyframes taBar { 0%, 15% { width: 0; } 55%, 100% { width: 100%; } }
@keyframes taOk { 0%, 58% { opacity: 0; transform: translateY(4px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes taStep { 0%, 100% { opacity: .5; } 20%, 80% { opacity: 1; } }
@keyframes taTog { 0%, 25% { background: rgba(255, 255, 255, .15); } 35%, 100% { background: var(--sc); } }
@keyframes taKnob { 0%, 25% { transform: none; } 35%, 100% { transform: translateX(13px); } }
@keyframes taPress { 0%, 40% { transform: none; } 45% { transform: scale(.92); } 50%, 100% { transform: none; } }
.tut-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tut-steps > li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 14px; border-radius: 16px; transition: background .3s; }
.tut-steps > li:hover { background: rgba(255, 255, 255, .03); }
.tut-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.tut-steps > li > div > b { font-size: 14px; letter-spacing: -.01em; }
.tut-d { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-top: 3px; }
.tut-acts { margin: 10px 0 6px; gap: 8px; }
.tut-tip { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.tut-tip .ic { margin-top: 2px; }
/* Crypto exchanges: the add-a-key form and the linked list (connect.js). */
.cx-guide { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); font-size: 13px; }
.cx-guide ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; list-style: decimal; }
.cx-guide li { display: list-item; padding: 0; line-height: 1.55; color: var(--text-2); }
.cx-guide li b { color: var(--text); font-weight: 600; }
.cx-guide .lbl { margin: 0; }
.cx-guide-links { gap: 14px; margin-top: 10px; font-size: 12.5px; }
.cx-form textarea { width: 100%; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; resize: vertical; }
.cx-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; margin-top: 8px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); }
.cx-row .big-dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; flex: none; }
.cx-row .big-dot.live { background: #34d399; box-shadow: 0 0 12px #34d399; }
.cx-row .big-dot.wait { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, .6); animation: pulse 2s infinite; }
.cx-row .big-dot.err { background: #f87171; box-shadow: 0 0 12px rgba(248, 113, 113, .6); }
.cx-row b { font-weight: 600; }
.key-box { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.key-box .code { flex: 1; background: none; border: 0; padding: 0; font-size: 12px; }
.tut-live { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px dashed rgba(255, 255, 255, .14); transition: all .5s var(--ease); }
.tut-live .dim { font-size: 12.5px; margin-top: 2px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: #fbbf24; flex: none; box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); animation: beacon 1.8s infinite; }
@keyframes beacon { 70% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }
.tut-live.ok { border-style: solid; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); }
.tut-live.ok .tl-dot { background: #34d399; animation: none; box-shadow: 0 0 16px #34d399; }
.tut.compact .tut-video { aspect-ratio: 16 / 11; }

.connect-page { max-width: 1100px; margin: 0 auto; display: grid; gap: 18px; }
.connect-page > .chip-btn { justify-self: start; }
.cp-lead { margin: -8px 0 6px; font-size: 14px; }
.cp-head { display: flex; gap: 18px; align-items: center; }
.cp-head p { margin: 6px 0 0; max-width: 640px; line-height: 1.55; }
.cp-more .dim, .cp-danger .dim { margin-top: 3px; }
.conn-list { display: grid; gap: 6px; }
.conn-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); transition: background .2s; }
.conn-row:hover { background: rgba(255, 255, 255, .06); }
.conn-row .dim { font-size: 12px; }
.conn-row .big-dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; flex: none; }
.conn-row .big-dot.live { background: #34d399; box-shadow: 0 0 12px #34d399; }
.conn-row .big-dot.wait { background: #fbbf24; }
.conn-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
a.dropzone { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* ───────── look: frames, names, effects ───────── */
.lk-av { --s: 64px; --la: #fff; position: relative; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; }
.lk-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #111; display: grid; place-items: center; }
.lk-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-init { font-weight: 650; font-size: calc(var(--s) * .36); color: var(--text-2); }
.lk-ring { position: absolute; inset: calc(var(--s) * -.06); border-radius: 50%; pointer-events: none; }
.fr-chrome .lk-ring { background: conic-gradient(from 120deg, #fff, #6b6d75, #f4f4f6, #3a3b40, #fff); padding: calc(var(--s) * .04); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .05), #000 0); mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .05), #000 0); }
.fr-gold .lk-ring { background: conic-gradient(from 0deg, #fff3c4, #d4a017, #7a5200, #ffe08a, #b8860b, #fff3c4); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .055), #000 0); mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .055), #000 0); filter: drop-shadow(0 0 10px rgba(250, 204, 21, .55)); animation: spinSlow 9s linear infinite; }
.fr-neon .lk-ring { border: calc(var(--s) * .035) solid var(--la); box-shadow: 0 0 12px var(--la), 0 0 28px var(--la), inset 0 0 10px var(--la); animation: neon 2.4s ease-in-out infinite; }
@keyframes neon { 50% { box-shadow: 0 0 6px var(--la), 0 0 14px var(--la), inset 0 0 4px var(--la); } }
.fr-holo .lk-ring { background: conic-gradient(from 0deg, #ff7ad9, #7af0ff, #b5ff7a, #ffe27a, #a07aff, #ff7ad9); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .05), #000 0); mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .05), #000 0); animation: spinSlow 4s linear infinite; filter: saturate(1.2) drop-shadow(0 0 8px rgba(160, 122, 255, .6)); }
.fr-flame .lk-ring { background: conic-gradient(from 180deg, #ff3d00, #ffb300, #ff6d00, #ffea00, #ff3d00); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .06), #000 0); mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .06), #000 0); filter: drop-shadow(0 -4px 10px rgba(255, 109, 0, .8)); animation: flame 1.2s ease-in-out infinite alternate; }
@keyframes flame { to { filter: drop-shadow(0 -8px 16px rgba(255, 61, 0, .9)); transform: scale(1.03) rotate(8deg); } }
.fr-ice .lk-ring { background: conic-gradient(from 45deg, #e0fbff, #6fd6ff, #ffffff, #3fa9f5, #e0fbff); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .05), #000 0); mask: radial-gradient(closest-side, transparent calc(100% - var(--s) * .05), #000 0); filter: drop-shadow(0 0 10px rgba(111, 214, 255, .7)); }
.fr-glitch .lk-ring { border: calc(var(--s) * .03) solid #fff; box-shadow: 3px 0 0 #ff2d55, -3px 0 0 #00e5ff; animation: glitch 2.2s steps(1) infinite; }
@keyframes glitch { 0%, 100% { transform: none; } 92% { transform: translate(2px, -1px); box-shadow: -3px 0 0 #ff2d55, 3px 0 0 #00e5ff; } 96% { transform: translate(-2px, 1px); } }

.lk-name { font-weight: 650; letter-spacing: -.03em; }
.lk-name.ns-chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 100% 200%; animation: sheen 5s ease-in-out infinite alternate; }
.lk-name.ns-gradient { background: linear-gradient(90deg, var(--la, #fff), var(--la2, #7af0ff), var(--la, #fff)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradSlide 4s linear infinite; }
@keyframes gradSlide { to { background-position: 200% 0; } }
.lk-name.ns-glow { color: #fff; text-shadow: 0 0 12px var(--la, #fff), 0 0 30px var(--la, #fff); }
.lk-name.ns-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lk-name.ns-mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.lk-tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--line); white-space: nowrap; }
.lk-soc { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; text-decoration: none; color: var(--text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: all .2s; }
a.lk-soc:hover { color: var(--text); background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.lk-rank { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--text-2); background: rgba(255, 255, 255, .05); gap: 3px; grid-auto-flow: column; }
.lk-rank.r1 { color: #000; background: linear-gradient(135deg, #fff3c4, #d4a017); }
.lk-rank.r2 { color: #000; background: linear-gradient(135deg, #fff, #a8aab3); }
.lk-rank.r3 { color: #000; background: linear-gradient(135deg, #ffd2a8, #b8733d); }

.lk-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.lk-fx i { position: absolute; left: var(--x); top: var(--y); }
.fx-sparkles i { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); animation: twinkle var(--d) ease-in-out var(--w) infinite; opacity: 0; transform: scale(var(--z)); }
@keyframes twinkle { 50% { opacity: 1; } }
.fx-stars i { width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7; animation: drift calc(var(--d) * 4) linear var(--w) infinite; transform: scale(var(--z)); }
@keyframes drift { from { transform: translateX(0) scale(var(--z)); } to { transform: translateX(-60px) scale(var(--z)); opacity: 0; } }
.fx-embers i { top: 105%; width: 4px; height: 4px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 10px 2px rgba(255, 120, 30, .9); animation: rise var(--d) ease-in var(--w) infinite; }
@keyframes rise { to { transform: translate(calc((var(--z) - 1) * 80px), -320px); opacity: 0; } }
.fx-rain i { top: -10%; width: 1px; height: 26px; background: linear-gradient(transparent, rgba(180, 210, 255, .7)); animation: rain calc(var(--d) * .25) linear var(--w) infinite; }
@keyframes rain { to { transform: translateY(400px); } }
.fx-orbs i { width: calc(60px * var(--z)); height: calc(60px * var(--z)); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), color-mix(in srgb, var(--la, #8ea2ff) 45%, transparent) 60%, transparent 70%); filter: blur(1px); animation: orb calc(var(--d) * 2) ease-in-out var(--w) infinite alternate; }
@keyframes orb { to { transform: translate(40px, -30px); } }
.fx-aurora i { left: -20%; top: 0; width: 140%; height: 100%; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--la, #7ef0c6) 40%, transparent) 40%, color-mix(in srgb, var(--la2, #8ea2ff) 40%, transparent) 60%, transparent 80%); filter: blur(30px); mix-blend-mode: screen; animation: aurora calc(var(--d) * 3) ease-in-out infinite alternate; opacity: .8; }
.fx-aurora i:nth-child(2) { animation-delay: -4s; transform: skewY(8deg); }
@keyframes aurora { to { transform: translateX(15%) skewY(-6deg); } }
.fx-scanlines i { inset: 0; left: 0; top: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 4px); animation: scan 8s linear infinite; }
@keyframes scan { to { background-position: 0 100px; } }
@media (prefers-reduced-motion: reduce) { .lk-fx i, .lk-ring, .lk-name { animation: none !important; } }

/* ───────── public profile ───────── */
.up { --la: #fff; max-width: 980px; margin: 0 auto; position: relative; }
.up-banner { position: relative; height: 260px; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #050506; border: 1px solid var(--line); }
.up-bg { position: absolute; inset: 0; }
.up-bg canvas, .up-bg img, .up-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--bd, .25) * .6)), rgba(0, 0, 0, var(--bd, .25)) 55%, rgba(0, 0, 0, calc(var(--bd, .25) + .35))); }
.up-bg[style*="--bd"] + .lk-fx + .up-shade { --bd: inherit; }
.up-head { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 20px; padding: 0 26px; margin-top: -64px; }
.up-id { flex: 1; min-width: 0; padding-bottom: 6px; }
.up-id h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; overflow-wrap: anywhere; }
.up-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.up-badge { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #000; background: linear-gradient(135deg, var(--la, #fff), color-mix(in srgb, var(--la, #fff) 60%, #888)); }
.up-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.up-acts { display: flex; gap: 8px; padding-bottom: 8px; }
.up-bio { margin: 18px 26px 0; font-size: 15px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; max-width: 680px; }
.up-socials { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 26px 0; }
.up-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 8px; }
.up-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.up-bar i { width: 100%; max-width: 22px; border-radius: 5px 5px 2px 2px; background: var(--pos); opacity: .85; animation: barIn .7s var(--ease) both; }
.up-bar.neg i { background: var(--neg); opacity: .6; }
.up-bar em { font-style: normal; font-size: 10px; color: var(--text-3); }
.up-private { display: flex; gap: 10px; align-items: center; margin-top: 24px; padding: 18px; border-radius: var(--radius); color: var(--text-2); font-size: 13.5px; }
.up.cs-solid .up-private { background: rgba(14, 14, 16, .92); backdrop-filter: none; }
.up.cs-outline .up-private { background: transparent; backdrop-filter: none; border: 1px solid color-mix(in srgb, var(--la) 40%, transparent); }
.up.cs-holo .up-private { background: linear-gradient(135deg, rgba(255, 122, 217, .08), rgba(122, 240, 255, .08), rgba(181, 255, 122, .06)); }
.up.cs-holo .up-banner { box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 30px 80px -30px rgba(160, 122, 255, .6); }

/* ───────── profile panels (profilepanels.js) ───────── */
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.pp { padding: 16px 18px 18px; border-radius: var(--radius); display: grid; gap: 8px; align-content: start; min-width: 0; animation: ppIn .5s var(--ease) both; }
.pp-full { grid-column: 1 / -1; }
@keyframes ppIn { from { opacity: 0; transform: translateY(10px); } }
.pp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.pp-h > span { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pp-h > b { font-size: 15px; letter-spacing: -.02em; }
.pp-big { font-size: 30px; letter-spacing: -.03em; font-weight: 650; line-height: 1.1; }
.pp-big small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 5px; letter-spacing: 0; }
.pp-sub { font-size: 12px; color: var(--text-3); margin-top: -4px; }
.pp-empty { font-size: 13px; color: var(--text-3); padding: 6px 0; }
.pp-note { font-size: 11.5px; color: var(--text-3); }
.pp-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-3); }
.pp-rows { display: grid; gap: 7px; margin-top: 4px; }
.pp-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); }
.pp-rows b { color: var(--text); font-weight: 600; }
.pp-rows b.pos, .pp-tile b.pos { color: var(--pos); }
.pp-rows b.neg, .pp-tile b.neg { color: var(--neg); }
.pp-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.pp-count { font-size: 12px; color: var(--text-3); }
.pp-verified { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }

.pp-cal-nav { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.pp-cal-nav b { min-width: 76px; text-align: center; font-weight: 600; }
.pp-cal-nav .icon-btn { width: 28px; height: 28px; }
.pp-cal-nav .icon-btn:disabled { opacity: .3; pointer-events: none; }
.pp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pp-cal-wd { font-size: 10.5px; color: var(--text-3); text-align: center; padding-bottom: 2px; }
.pp-cal-d { position: relative; aspect-ratio: 1.35; min-height: 40px; border-radius: 9px; padding: 5px 6px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); overflow: hidden; }
.pp-cal-d em { font-style: normal; font-family: inherit; letter-spacing: 0; font-size: 10.5px; color: var(--text-3); }
.pp-cal-d b { font-size: 11.5px; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-cal-d b.dot { width: 7px; height: 7px; border-radius: 50%; align-self: flex-end; background: currentColor; }
.pp-cal-d.pos { background: color-mix(in srgb, var(--pos) calc(var(--a) * 100%), transparent); border-color: color-mix(in srgb, var(--pos) 35%, transparent); }
.pp-cal-d.neg { background: color-mix(in srgb, var(--neg) calc(var(--a) * 70%), transparent); border-color: color-mix(in srgb, var(--neg) 30%, transparent); }
.pp-cal-d.pos em, .pp-cal-d.neg em { color: rgba(255, 255, 255, .75); }
.pp-cal-d.pos b, .pp-cal-d.neg b { color: #fff; }

.pp-wr { display: flex; align-items: center; gap: 20px; }
.pp-ring { --p: 50; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, rgba(10, 10, 12, .92) 76%, transparent 77%), conic-gradient(var(--pos) calc(var(--p) * 1%), color-mix(in srgb, var(--neg) 70%, transparent) 0); }
.pp-ring b { font-size: 24px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.pp-ring i { font-style: normal; font-size: 11px; color: var(--text-3); }
.pp-wr-side { display: grid; gap: 8px; flex: 1; min-width: 0; }
.pp-wl { display: flex; gap: 12px; font-weight: 600; font-size: 14px; }
.pp-wl span:not(.pos):not(.neg) { color: var(--text-3); }
.pp-kv { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-2); }
.pp-kv span { width: 50px; }
.pp-kv b { color: var(--text); }
.pp-kv i { font-style: normal; font-size: 11.5px; color: var(--text-3); }

.pp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pp-tile { padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); display: grid; gap: 2px; min-width: 0; }
.pp-tile span { font-size: 11px; color: var(--text-3); }
.pp-tile b { font-size: 18px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tile i { font-style: normal; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pp-eq { width: 100%; height: 150px; display: block; color: var(--pos); overflow: visible; }
.pp-eq.neg { color: var(--neg); }
.pp-eq-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pp-eq-zero { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

.pp-inst { display: grid; gap: 8px; }
.pp-inst-r { display: grid; grid-template-columns: auto 56px 64px minmax(30px, 1fr) 38px auto; align-items: center; gap: 8px; font-size: 13px; }
.pp-inst-r .dim { font-size: 11.5px; }
.pp-inst-r > span:last-child { text-align: right; font-weight: 600; min-width: 44px; }
.pp-inst-wr { font-size: 12px; color: var(--text-2); text-align: right; }
.pp-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--neg) 45%, transparent); overflow: hidden; }
.pp-bar i { display: block; height: 100%; background: var(--pos); border-radius: 3px; }

.pp-wd { display: flex; gap: 8px; height: 120px; }
.pp-wd-c { flex: 1; display: grid; grid-template-rows: 1fr 1fr auto; gap: 0; min-width: 0; }
.pp-wd-up { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pp-wd-dn { display: flex; align-items: flex-start; justify-content: center; }
.pp-wd-c i { width: 100%; max-width: 26px; background: var(--pos); opacity: .85; border-radius: 5px 5px 2px 2px; animation: barIn .7s var(--ease) both; }
.pp-wd-dn i { background: var(--neg); opacity: .6; border-radius: 2px 2px 5px 5px; }
.pp-wd-c em { font-style: normal; font-family: inherit; letter-spacing: 0; font-size: 10.5px; color: var(--text-3); text-align: center; padding-top: 4px; }

.pp-streak { display: flex; align-items: baseline; gap: 8px; color: #fdba74; }
.pp-streak .ic { align-self: center; }
.pp-streak b { font-size: 30px; font-weight: 650; letter-spacing: -.03em; color: var(--text); }
.pp-streak b.pos { color: var(--pos); }
.pp-streak b.neg { color: var(--neg); }
.pp-streak i { font-style: normal; font-size: 13px; color: var(--text-2); }

.pp-tro { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pp-tro-i { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.pp-tro-ic { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fde68a; background: rgba(250, 204, 21, .12); }
.pp-tro-i.t-duel .pp-tro-ic { color: #a5b4fc; background: rgba(129, 140, 248, .14); }
.pp-tro-i.place-2 .pp-tro-ic { color: #e5e7eb; background: rgba(229, 231, 235, .12); }
.pp-tro-i.place-3 .pp-tro-ic { color: #fdba74; background: rgba(251, 146, 60, .14); }
.pp-tro-i b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tro-i i { font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.up.cs-solid .pp { background: rgba(14, 14, 16, .92); backdrop-filter: none; }
.up.cs-outline .pp { background: transparent; backdrop-filter: none; border: 1px solid color-mix(in srgb, var(--la) 40%, transparent); }
.up.cs-holo .pp { background: linear-gradient(135deg, rgba(255, 122, 217, .08), rgba(122, 240, 255, .08), rgba(181, 255, 122, .06)); }

/* the studio's panel list */
.pn-intro { font-size: 12.5px; }
.pn-list { display: grid; gap: 6px; }
.pn-none { font-size: 12.5px; }
.pn-row { border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); transition: border-color .15s, opacity .15s; }
.pn-row.dragging { opacity: .45; }
.pn-row.drop { border-color: rgba(255, 255, 255, .45); }
.pn-main { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; font-size: 13px; }
.pn-main b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-grip { cursor: grab; color: var(--text-3); display: grid; place-items: center; }
.pn-ic { color: var(--text-2); display: grid; place-items: center; }
.pn-main .icon-btn { width: 28px; height: 28px; flex: none; }
.pn-main .icon-btn:disabled { opacity: .25; pointer-events: none; }
.pn-up .ic { transform: rotate(180deg); }
.pn-size button { padding: 3px 8px; font-size: 11.5px; }
.pn-note { display: grid; gap: 6px; padding: 0 8px 8px; }
.pn-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pn-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); transition: all .2s; }
.pn-tile:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-style: solid; }
.pn-tile:disabled { opacity: .4; pointer-events: none; }
.pn-tile .ic { grid-row: 1 / 3; }
.pn-tile b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.pn-tile i { font-style: normal; font-size: 11px; color: var(--text-3); line-height: 1.35; }

/* ───────── leaderboard ───────── */
.lb { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.lb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lb-sub { margin: 8px 0 0; font-size: 13px; max-width: 520px; }
.lb-ctrl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lb-nav { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.lb-nav span { min-width: 170px; text-align: center; }
.lb-nav .icon-btn:disabled { opacity: .3; pointer-events: none; }
#lb-body { transition: opacity .25s; }
#lb-body.fading { opacity: .4; }
.lb-cta, .lb-you { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; }
.lb-cta .dim, .lb-you .dim { font-size: 12.5px; margin-top: 2px; }
.lb-cta-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fde68a; background: rgba(250, 204, 21, .12); flex: none; }
.lb-you-r { font-size: 22px; font-weight: 700; letter-spacing: -.03em; min-width: 54px; }
.lb-you-p { font-size: 20px; letter-spacing: -.02em; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-top: 8px; }
.pod { --la: #fff; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px 22px; border-radius: 26px; text-decoration: none; text-align: center; transition: transform .4s var(--ease); animation: podIn .7s var(--ease) both; }
.pod:hover { transform: translateY(-5px); }
.pod-1 { padding-top: 46px; padding-bottom: 30px; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--la) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .1); animation-delay: .1s; }
.pod-2 { animation-delay: .2s; }
.pod-3 { animation-delay: .3s; }
@keyframes podIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.pod-crown { position: absolute; top: 12px; color: #fde68a; filter: drop-shadow(0 0 10px rgba(250, 204, 21, .8)); animation: float 3s ease-in-out infinite; }
.pod-rank { margin-top: -14px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #000; background: linear-gradient(135deg, #fff, #a8aab3); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.pod-1 .pod-rank { background: linear-gradient(135deg, #fff3c4, #d4a017); }
.pod-3 .pod-rank { background: linear-gradient(135deg, #ffd2a8, #b8733d); }
.pod .lk-name { margin-top: 8px; font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-1 .lk-name { font-size: 20px; }
.pod-handle { font-size: 12px; color: var(--text-3); }
.pod-pnl { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.pod-1 .pod-pnl { font-size: 32px; }
.pod-meta { font-size: 11.5px; color: var(--text-3); }
.lb-list { padding: 8px; }
.lb-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 70px 80px 100px 120px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; transition: background .2s; }
a.lb-row:hover { background: rgba(255, 255, 255, .05); }
.lb-th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 6px; padding-bottom: 6px; }
.lb-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-nm { display: grid; min-width: 0; }
.lb-nm .lk-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-nm i { font-style: normal; font-size: 12px; color: var(--text-3); }
.lb-tags { display: flex; gap: 4px; overflow: hidden; }
.lb-row .r { text-align: right; font-size: 15px; }
.lb-empty .ic { margin: 0 auto; opacity: .5; }

/* ───────── profile studio ───────── */
.studio-pf { max-width: 1320px; margin: 0 auto; }
.st-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.st-top p { margin: 8px 0 0; font-size: 13px; }
.st-layout { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.st-controls { display: grid; gap: 10px; }
.st-sec { border-radius: var(--radius); }
.st-sec summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 14px; }
.st-sec summary::-webkit-details-marker { display: none; }
.st-sec summary span { flex: 1; }
.st-sec summary .ic:last-child { transition: transform .25s; opacity: .5; }
.st-sec[open] summary .ic:last-child { transform: rotate(180deg); }
.st-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.st-body .lbl { margin: 6px 0 -4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: all .2s; }
.st-chip:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.st-chip.on { color: #000; background: #fff; border-color: #fff; }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; }
.st-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #0b0b0d; transition: border-color .2s, transform .2s; }
.st-tile:hover { transform: translateY(-2px); }
.st-tile.on { border-color: #fff; }
.st-tile video, .st-tile img, .st-tile .thumb-shader { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-tile i { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-style: normal; font-size: 10.5px; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bpick { min-width: 0; }
.st-bpick .gs-grid { max-height: 320px; }
.st-range span { display: flex; justify-content: space-between; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tags .chip button { display: grid; place-items: center; margin-left: 2px; opacity: .6; }
.st-soc { display: grid; gap: 8px; }
.st-soc-row { display: flex; align-items: center; gap: 10px; }
.st-soc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--text-2); flex: none; }
.swatch.custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-preview { position: sticky; top: 0; }
.st-prev-label { display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.st-preview .up-banner { height: 200px; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); }
  .st-preview { position: relative; order: -1; }
  .tut { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { padding: 90px 24px 10px; gap: 18px; }
  .ah-brand { left: 24px; }
  .ah-feats { display: none; }
  .ah-ticker { width: calc(100% + 48px); margin-left: -24px; }
  .auth-side { padding: 10px 16px 40px; }
  .src-grid { grid-template-columns: minmax(0, 1fr); }
  .ob-split { grid-template-columns: minmax(0, 1fr); }
  .ob-preview { order: -1; }
  .id-prev { width: 260px; padding: 22px 20px 16px; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ob-top { grid-template-columns: auto auto; padding: 14px 16px; }
  .ob-prog { grid-column: 1 / -1; grid-row: 2; }
  .ob-prog li { width: auto; flex: 1; }
  .ob-prog li span { display: none; }
  .ob-stage { padding: 6px 16px 20px; place-items: start center; }
  .ob-top { background: linear-gradient(180deg, rgba(0, 0, 0, .92) 55%, rgba(0, 0, 0, 0)); }
  .ob-drop { width: 112px; height: 112px; margin-top: 22px; }
  .ob-drop svg { width: 64px; height: 64px; }
  .ob-nav { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .ob-plan { grid-template-columns: minmax(0, 1fr); }
  .dc-perks { grid-template-columns: minmax(0, 1fr); }
  .dc-bubble.b2 { left: 150px; }
  .dc-bubble span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .pod-1 { order: -1; }
  .lb-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .hide-sm { display: none !important; }
  .up-banner { height: 170px; }
  .up-head > .lk-av { --s: 92px !important; }
  .up-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 14px; margin-top: -46px; }
  .up-id { width: 100%; padding-bottom: 0; }
  .up-acts { width: 100%; padding-bottom: 0; }
  .up-acts > * { flex: 1; justify-content: center; }
  .st-preview .up-banner { height: 150px; }
  .lb-cta { flex-wrap: wrap; }
  .lb-cta .grow { flex: 1 1 200px; }
  .lb-cta .btn { width: 100%; justify-content: center; }
  .up-bio, .up-socials { margin-left: 14px; margin-right: 14px; }
  .cp-head { flex-direction: column; align-items: flex-start; }
}
.st-back { display: inline-flex; margin: 0 0 6px -9px; text-decoration: none; }

@media (max-width: 560px) {
  .pp-cal { gap: 3px; }
  .pp-cal-d { min-height: 34px; padding: 3px 4px; border-radius: 7px; }
  .pp-cal-d b { font-size: 9.5px; }
  .pp-inst-r { grid-template-columns: auto minmax(0, 1fr) 38px auto; }
  .pp-inst-r .dim, .pp-inst-r .pp-bar { display: none; }
  .pp-wr { gap: 14px; }
  .pn-add { grid-template-columns: minmax(0, 1fr); }
  .pp-count { display: none; }
}
