/* PROFILE 2.0 (2026-11-20): the full profile page (js/profile2.js). Light first, html.dark below. Loaded after dark.css. */
.modal.pf2m .box { padding: 0 0 16px !important; overflow-x: hidden; }
.modal.pf2m .box > .pf2 { padding: 0 16px; }
.pf2 { --pf2-card: #f4f6f2; --pf2-soft: rgba(23, 38, 30, .06); --pf2-acc: #6d28d9; position: relative; text-align: left; }
.pf2-cover { position: relative; height: 112px; margin: 0 -16px; border-radius: 28px 28px 0 0; overflow: hidden; }
#phone .pf2-cover, .phone .pf2-cover { border-radius: 18px; margin: 0; }
.pf2-cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .28), transparent 60%), linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .25)); }
.pf2-wm { position: absolute; right: 14px; bottom: 10px; z-index: 1; color: #fff; font: 800 13px/1 var(--font, system-ui); letter-spacing: .02em; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.pf2-live { position: absolute; left: 14px; top: 12px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #4ade80; font: 700 11px/1.3 var(--font, system-ui); }
.pf2-top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -46px; position: relative; z-index: 2; }
.pf2-av { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(0, 0, 0, .18); }
.pf2-av > * { width: 100%; height: 100%; display: block; }
.pf2-lvl { margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: #ede9fe; color: var(--pf2-acc); font: 800 12px/1.3 var(--font, system-ui); }
.pf2-name { margin: 10px 0 2px; font-size: 22px; line-height: 1.2; word-break: break-word; }
.pf2-sub { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.pf2-note { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.pf2-xp { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.pf2-xp > div { flex: 1; height: 6px; border-radius: 99px; background: var(--pf2-soft); overflow: hidden; }
.pf2-xp i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a78bfa, #6d28d9); }
.pf2-xp span { color: var(--ink-soft); font-size: 11.5px; white-space: nowrap; }
.pf2 .tags { margin: 8px 0 !important; }
.pf2-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0; padding: 10px 0; border-radius: 18px; background: var(--pf2-card); }
.pf2-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.pf2-stats > div + div { border-left: 1px solid var(--line); }
.pf2-stats b { font-size: 18px; line-height: 1.2; white-space: nowrap; }
.pf2-stats span { color: var(--ink-soft); font-size: 11.5px; }
.pf2-worth { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(135deg, #ede9fe, #fdf4ff); }
.pf2-worth span { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.pf2-worth b { color: var(--pf2-acc); font: 800 18px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; }
.pf2-tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px; margin: 4px -4px 10px; padding: 6px 4px; background: inherit; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.modal.pf2m .pf2-tabs { background: #fff; }
.pf2-tabs button { flex: 1; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-soft); font: 700 13.5px/1 var(--font, system-ui); white-space: nowrap; cursor: pointer; }
.pf2-tabs button.on { background: #ede9fe; color: var(--pf2-acc); }
.pf2-card { margin: 0 0 10px; padding: 12px; border-radius: 18px; background: var(--pf2-card); }
.pf2-card .empty { padding: 14px 6px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.pf2-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pf2-acts { margin-bottom: 12px; }
.pf2-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pf2-stamp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border: 1.5px dashed rgba(23, 38, 30, .18); border-radius: 12px; opacity: .42; filter: grayscale(1); }
.pf2-stamp.on { opacity: 1; filter: none; border-color: #a78bfa; background: rgba(167, 139, 250, .1); transform: rotate(-2deg); }
.pf2-stamp.on:nth-child(even) { transform: rotate(2deg); }
.pf2-stamp.here { border-style: solid; border-color: #16a34a; }
.pf2-stamp i { font-style: normal; font-size: 22px; line-height: 1; }
.pf2-stamp span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 700; }
.pf2-stamp em { position: absolute; top: -7px; padding: 0 5px; border-radius: 99px; background: #16a34a; color: #fff; font: 700 8.5px/1.5 var(--font, system-ui); font-style: normal; white-space: nowrap; }
.pf2-tro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pf2-t { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 3px; border-radius: 14px; background: rgba(23, 38, 30, .04); text-align: center; opacity: .5; }
.pf2-t.got { opacity: 1; background: linear-gradient(160deg, #fef3c7, #fde68a); box-shadow: inset 0 0 0 1px rgba(180, 120, 0, .25); }
.pf2-t i { font-style: normal; font-size: 24px; line-height: 1; filter: grayscale(1); }
.pf2-t.got i { filter: none; }
.pf2-t span { font-size: 10.5px; font-weight: 700; line-height: 1.2; }
.pf2-t em { font-size: 9px; font-style: normal; line-height: 1.2; color: var(--ink-soft); }
.pf2-t.got span { color: #5a3e00; }
.pf2-tlw { padding: 6px 12px; }
.pf2-tl { position: relative; display: flex; gap: 12px; padding: 10px 0 10px 2px; }
.pf2-tl::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: -10px; width: 2px; background: var(--line); }
.pf2-tl.first::before { display: none; }
.pf2-tl i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); font-style: normal; font-size: 16px; position: relative; z-index: 1; }
.pf2-tl b { display: block; font-size: 14px; line-height: 1.3; }
.pf2-tl span { color: var(--ink-soft); font-size: 11.5px; }
.pf2-tl-sec { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pf2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pf2-ph { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--pf2-card); cursor: pointer; font-size: 26px; }
.pf2-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf2-ph span { position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; font: 700 10.5px/1.5 var(--font, system-ui); }
.pf2-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.pf2-row + .pf2-row { border-top: 1px solid var(--line); }
.pf2-row i { flex: none; width: 22px; font-style: normal; text-align: center; }
.pf2-row span { flex: none; width: 92px; color: var(--ink-soft); font-size: 13px; }
.pf2-row b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; word-break: break-word; }
.pf2-priv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; flex-wrap: wrap; }
.pf2-priv > span { font-size: 13px; font-weight: 600; }
.pf2-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--pf2-soft); }
.pf2-seg button { min-height: 32px; padding: 4px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font: 700 12px/1 var(--font, system-ui); cursor: pointer; }
.pf2-seg button.on { background: #fff; color: var(--pf2-acc); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---- dark mode ---- */
html.dark .pf2 { --pf2-card: rgba(255, 255, 255, .06); --pf2-soft: rgba(255, 255, 255, .08); --pf2-acc: #c4b5fd; }
html.dark .pf2-av { background: #1c2420; box-shadow: 0 0 0 4px #141c18, 0 8px 22px rgba(0, 0, 0, .4); }
html.dark .pf2-lvl, html.dark .pf2-tabs button.on { background: rgba(167, 139, 250, .18); }
html.dark .modal.pf2m .pf2-tabs { background: #141c18; }
html.dark body.frosted .modal.pf2m .pf2-tabs { background: rgba(20, 28, 24, .98); }
html.dark .pf2-worth { background: linear-gradient(135deg, rgba(167, 139, 250, .16), rgba(240, 171, 252, .08)); }
html.dark .pf2-stamp { border-color: rgba(255, 255, 255, .2); }
html.dark .pf2-t { background: rgba(255, 255, 255, .04); }
html.dark .pf2-t.got { background: linear-gradient(160deg, rgba(251, 191, 36, .28), rgba(180, 120, 0, .22)); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); }
html.dark .pf2-t.got span { color: #fde68a; }
html.dark .pf2-tl i { background: #1c2420; }
html.dark .pf2-seg button.on { background: rgba(255, 255, 255, .14); }
@media (max-width: 360px) { .pf2-stamps { grid-template-columns: repeat(5, 1fr); gap: 4px; } .pf2-tro { grid-template-columns: repeat(3, 1fr); } .pf2-row span { width: 78px; } }
