/* ===== Profile page ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.profile { font-family: var(--font, 'Gochi Hand'), system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-color); }
.bg-media { position: absolute; inset: calc(var(--bg-blur) * -2); filter: blur(var(--bg-blur)) var(--bg-gray); }
.bg-media img, .bg-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, var(--bg-dim)); }
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, var(--grid-a)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, var(--grid-a)) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}

/* drifting blurred blobs (default background) */
.blobs { position: absolute; inset: -10%; filter: blur(20px) var(--bg-gray); }
.blobs i {
  position: absolute; display: block; border-radius: 42% 58% 53% 47% / 45% 41% 59% 55%;
  background: var(--blob); opacity: .95;
  animation: drift calc(var(--blob-dur) * 1s) ease-in-out infinite alternate;
}
.blobs i:nth-child(1) { width: 40vmax; height: 34vmax; left: 0%;  top: 2%;  animation-duration: calc(var(--blob-dur) * 1.1s); }
.blobs i:nth-child(2) { width: 34vmax; height: 40vmax; left: 66%; top: -6%; animation-duration: calc(var(--blob-dur) * 1.4s); animation-direction: alternate-reverse; }
.blobs i:nth-child(3) { width: 30vmax; height: 26vmax; left: 26%; top: 56%; animation-duration: calc(var(--blob-dur) * 0.9s); }
.blobs i:nth-child(4) { width: 26vmax; height: 30vmax; left: 80%; top: 58%; animation-duration: calc(var(--blob-dur) * 1.25s); }
.blobs i:nth-child(5) { width: 24vmax; height: 22vmax; left: -6%; top: 62%; animation-duration: calc(var(--blob-dur) * 1.6s); animation-direction: alternate-reverse; }
.blobs i:nth-child(6) { width: 18vmax; height: 20vmax; left: 44%; top: 8%;  animation-duration: calc(var(--blob-dur) * 1.9s); }
.blobs i:nth-child(7) { width: 16vmax; height: 14vmax; left: 58%; top: 40%; animation-duration: calc(var(--blob-dur) * 1.3s); animation-direction: alternate-reverse; }
.blobs i:nth-child(8) { width: 14vmax; height: 18vmax; left: 12%; top: 34%; animation-duration: calc(var(--blob-dur) * 1.7s); }
@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(6vmax, 4vmax) rotate(40deg) scale(1.12); }
  100% { transform: translate(-5vmax, 7vmax) rotate(-30deg) scale(.92); }
}
.still .blobs i { animation: none; }

#fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* ---------- pages / scrolling ---------- */
.pages {
  position: relative; z-index: 2; height: 100vh; height: 100dvh;
  overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none;
}
.pages::-webkit-scrollbar { display: none; }
.page {
  position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: var(--card-y, center);
  padding: 72px 12px;
}

/* ---------- shared glow / text ---------- */
.txt { color: var(--text); text-shadow: 0 0 var(--glow) var(--glow-c), 0 0 calc(var(--glow) * .35) var(--glow-c); }
.ico { width: 1em; height: 1em; flex: none; filter: drop-shadow(0 0 calc(var(--glow) * .7) var(--glow-c)); }

/* ---------- the card ---------- */
.card {
  position: relative;
  width: var(--card-w);
  min-height: var(--card-h);
  padding: var(--card-pad);
  border-radius: var(--card-r);
  background: rgba(var(--card-rgb), var(--card-a));
  border: 1px solid rgba(255, 255, 255, var(--card-border));
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
}
.card.sheen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(103deg, transparent 52%, rgba(255, 255, 255, .055) 62%, rgba(255, 255, 255, .02) 70%, transparent 80%),
    radial-gradient(120% 90% at 85% 40%, rgba(255, 255, 255, .06), transparent 60%);
}
.card.avatar-left { grid-template-columns: auto 1fr; }
.card.avatar-left .c-right { order: -1; align-items: flex-start; }
.card.avatar-left .c-left { align-items: flex-end; text-align: right; }
.card.avatar-left .loc, .card.avatar-left .links, .card.avatar-left .stats { justify-content: flex-end; }
.card.no-avatar { grid-template-columns: 1fr; }

.c-left { position: relative; display: flex; flex-direction: column; min-width: 0; }
.c-right { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }

.name {
  margin: 0; font-size: var(--name-size); font-weight: 400; line-height: 1.1;
  letter-spacing: .02em; white-space: nowrap; -webkit-text-stroke: var(--name-stroke) currentColor; overflow: hidden; text-overflow: ellipsis;
  min-height: 1.1em;
}
.loc {
  display: flex; align-items: center; gap: .45em; margin-top: 12px;
  font-size: var(--text-size); line-height: 20px; min-height: 20px;
}
.loc .ico { width: 1em; height: 1em; }
.loc .sub { color: var(--sub); text-shadow: none; }
.loc .uid { display: inline-flex; align-items: baseline; gap: .45em; margin-left: .5em; }

.links { display: flex; flex-wrap: wrap; gap: var(--icon-gap); margin-top: 20px; min-height: var(--icon-size); }
.links a {
  display: grid; place-items: center; width: var(--icon-size); height: var(--icon-size);
  color: var(--icon-c); transition: transform .15s ease, filter .15s ease;
}
.links a svg { width: 100%; height: 100%; }
.links.glow a svg { filter: drop-shadow(0 0 calc(var(--glow) * .8) var(--glow-c)) drop-shadow(0 0 2px var(--glow-c)); }
.links a:hover, .links a:focus-visible { transform: translateY(-2px) scale(1.06); outline: none; }

.stats {
  display: flex; align-items: center; gap: 1.1em; margin-top: auto; padding-top: 22px;
  font-size: var(--text-size); line-height: 20px;
}
.stats span { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.stats { flex-wrap: wrap; row-gap: 10px; }
.stats .ico { width: 1.15em; height: 1.15em; }

/* avatar */
.avatar {
  position: relative; width: var(--av); height: var(--av); margin: -4px -4px 0 0;
  transform: rotate(var(--av-tilt));
  filter: drop-shadow(0 0 calc(var(--glow) * .6) var(--glow-c));
}
.card.avatar-left .avatar { margin: -4px 0 0 -4px; }
.avatar .frame { position: absolute; inset: 0; background: var(--av-border); }
.avatar img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: cover; display: block; background: #222; }
.avatar.square .frame { clip-path: none; }
.avatar.square img { inset: 4%; width: 92%; height: 92%; }
.avatar.rounded .frame { border-radius: 22%; }
.avatar.rounded img { border-radius: 19%; inset: 4%; width: 92%; height: 92%; }
.avatar.circle .frame { border-radius: 50%; }
.avatar.circle img { border-radius: 50%; inset: 4%; width: 92%; height: 92%; }

.avatar .face { position: absolute; inset: 0; }
.avatar.has-alt { cursor: pointer; perspective: 700px; outline: none; }
.avatar .flipper { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.alt-flip .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.alt-flip .face.back { transform: rotateY(180deg); }
.alt-flip.alt-on .flipper { transform: rotateY(180deg); }
.alt-fade .face.back { opacity: 0; transition: opacity .35s ease; }
.alt-fade.alt-on .face.back { opacity: 1; }
@media (hover: hover) {
  html:not(.touch) .alt-flip:hover .flipper { transform: rotateY(180deg); }
  html:not(.touch) .alt-fade:hover .face.back { opacity: 1; }
}
.avatar .face.back img { object-fit: contain; background: radial-gradient(circle at 50% 40%, #3a3a3a, #141414); }
.avatar.has-alt[data-label]::after {
  content: attr(data-label); position: absolute; left: 50%; top: calc(100% + 8px); z-index: 3;
  transform: translateX(-50%) translateY(-4px); white-space: nowrap; pointer-events: none;
  font: 500 12px/1 Inter, system-ui, sans-serif; color: #fff; text-shadow: none;
  background: rgba(0, 0, 0, .85); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 8px; border-radius: 8px;
  opacity: 0; transition: .2s;
}
.avatar.has-alt.alt-on[data-label]::after { opacity: 1; transform: translateX(-50%); }
@media (hover: hover) { html:not(.touch) .avatar.has-alt:hover[data-label]::after { opacity: 1; transform: translateX(-50%); } }

.badges { display: flex; gap: 7px; margin: 0 -1px -3px 0; }
.badge {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .05);
  color: var(--text); font-size: 17px;
}
.badge .bicon-x { filter: drop-shadow(0 0 calc(var(--glow) * .7) var(--glow-c)); }
.badge::after {
  content: attr(data-label); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px); white-space: nowrap; pointer-events: none;
  font: 500 12px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; color: #fff;
  background: rgba(0, 0, 0, .85); border: 1px solid rgba(255, 255, 255, .12);
  padding: 6px 8px; border-radius: 8px; opacity: 0; transition: .15s;
}
.badge:hover::after { opacity: 1; transform: translateX(-50%); }

/* ---------- name effects ---------- */
.fx-typewriter .name .caret { display: inline-block; width: .06em; margin-left: .04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fx-shimmer .name {
  background: linear-gradient(100deg, var(--text) 30%, #ffffff00 45%, var(--text) 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.fx-float .name { animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-3px); } }
.fx-glitch .name { position: relative; }
.fx-glitch .name::before, .fx-glitch .name::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; text-shadow: none;
}
.fx-glitch .name::before { color: #ff2e63; animation: g1 2.6s infinite steps(1); }
.fx-glitch .name::after  { color: #08d9d6; animation: g2 2.2s infinite steps(1); }
@keyframes g1 { 0%,86%,100% { clip-path: inset(100% 0 0 0); } 88% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 0); } 92% { clip-path: inset(60% 0 10% 0); transform: translate(2px, 0); } }
@keyframes g2 { 0%,80%,100% { clip-path: inset(100% 0 0 0); } 83% { clip-path: inset(40% 0 30% 0); transform: translate(2px, 0); } 90% { clip-path: inset(5% 0 75% 0); transform: translate(-2px, 0); } }

/* ---------- page 2 ---------- */
.card2 { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.about { margin: 0; font-size: calc(var(--text-size) * 1.08); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.presence { display: flex; align-items: center; gap: 14px; }
.presence .pfp { position: relative; width: 56px; height: 56px; flex: none; }
.presence .pfp img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #222; }
.presence .pfp .st { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #0b0b0b; background: #747f8d; }
.st.online { background: #23a55a !important; } .st.idle { background: #f0b232 !important; } .st.dnd { background: #f23f43 !important; }
.presence .who { min-width: 0; font-size: var(--text-size); line-height: 1.35; }
.presence .who b { font-weight: 400; font-size: 1.15em; display: block; }
.presence .who small { opacity: .75; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92em; }
.presence .art { width: 44px; height: 44px; border-radius: 8px; margin-left: auto; object-fit: cover; }
.hint { font: 13px/1.4 Inter, system-ui, sans-serif; opacity: .6; margin: 0; }

/* ---------- music player ---------- */
.stack { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.player {
  display: flex; align-items: center; gap: 14px; font-size: var(--text-size); color: var(--text);
  width: var(--card-w); padding: 12px 16px; border-radius: calc(var(--card-r) * .75);
  background: rgba(var(--card-rgb), var(--card-a)); border: 1px solid rgba(255, 255, 255, var(--card-border));
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
}
.player.pos-inside, .player.pos-page2 { width: auto; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.player.pos-inside { grid-column: 1 / -1; margin-top: 2px; }
.player.pos-corner { position: fixed; z-index: 6; left: 18px; bottom: 18px; width: min(340px, calc(100vw - 36px)); }
.vol:not(.right) ~ .player.pos-corner { left: 18px; }

.p-cover {
  width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex: none; background: #222;
  box-shadow: 0 0 calc(var(--glow) * .8) var(--glow-c);
}
.p-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.p-title, .p-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.p-artist { color: var(--sub); font-size: .88em; }
.p-row { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.p-time { font-size: .75em; color: var(--sub); font-variant-numeric: tabular-nums; min-width: 2.5em; text-align: center; }
.p-bar { flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.p-track { position: relative; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.p-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--p-accent); box-shadow: 0 0 8px var(--p-accent); }
.p-track i::after {
  content: ''; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--p-accent); box-shadow: 0 0 8px var(--p-accent); opacity: 0; transition: opacity .15s;
}
.p-bar:hover .p-track i::after, .p-bar:focus-visible .p-track i::after { opacity: 1; }
.p-ctrl { display: flex; align-items: center; gap: 2px; flex: none; }
.p-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); border-radius: 50%; }
.p-btn svg { width: 17px; height: 17px; filter: drop-shadow(0 0 calc(var(--glow) * .6) var(--glow-c)); }
.p-btn.p-play svg { width: 22px; height: 22px; }
.p-btn:hover { background: rgba(255, 255, 255, .06); }
.p-btn:active { transform: scale(.92); }

.player.compact { position: relative; gap: 10px; padding: 8px 12px 10px; }
.player.compact.pos-inside, .player.compact.pos-page2 { padding: 0 0 8px; }
.player.compact .p-cover { width: 34px; height: 34px; border-radius: 7px; }
.player.compact .p-line { display: flex; gap: .5em; min-width: 0; align-items: baseline; }
.player.compact .p-line .p-title { flex: 0 1 auto; }
.player.compact .p-line .p-artist::before { content: '— '; }
.p-bar.mini { position: absolute; left: 12px; right: 12px; bottom: 0; height: 10px; }
.pos-inside .p-bar.mini, .pos-page2 .p-bar.mini { left: 0; right: 0; }
.p-bar.mini .p-track { height: 2px; }

/* ---------- ratings + comments ---------- */
.page.p2 { overflow-y: auto; justify-content: safe center; scrollbar-width: none; }
.page.p2::-webkit-scrollbar { display: none; }
.stats .rating { cursor: pointer; }
.stats .rating .ico-star { display: inline-flex; width: 1.05em; height: 1.05em; filter: drop-shadow(0 0 calc(var(--glow) * .7) var(--glow-c)); }
.stats .rating .ico-star svg { width: 100%; height: 100%; }
.stats .rating .r-n { color: var(--sub); text-shadow: none; font-size: .9em; margin-left: -.2em; }

.stars { position: relative; display: inline-flex; line-height: 0; color: var(--text); }
.stars svg { width: 1.15em; height: 1.15em; flex: none; }
.stars .s-bg { display: flex; opacity: .22; }
.stars .s-fg { position: absolute; left: 0; top: 0; bottom: 0; display: flex; overflow: hidden; filter: drop-shadow(0 0 calc(var(--glow) * .6) var(--glow-c)); }

.social { gap: 14px; font-size: var(--text-size); }
.s-rating { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.r-sum { display: flex; align-items: center; gap: 10px; }
.r-avg { font-size: 2em; line-height: 1; }
.r-count, .r-label, .c-time, .c-count, .c-empty { color: var(--sub); text-shadow: none; font-size: .85em; }
.r-me { display: flex; align-items: center; gap: 8px; }
.pick { display: flex; }
.pick-star { width: 1.6em; height: 1.6em; padding: 0 .08em; border: 0; background: none; cursor: pointer; color: var(--text); opacity: .3; transition: opacity .12s, transform .12s; }
.pick-star svg { width: 100%; height: 100%; }
.pick-star.on { opacity: 1; filter: drop-shadow(0 0 calc(var(--glow) * .7) var(--glow-c)); }
.pick-star:hover { transform: scale(1.12); }
.linkish { border: 0; background: none; padding: 0; color: var(--sub); font: inherit; font-size: .85em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish.more { align-self: center; }
.s-login { align-self: flex-start; padding: .35em .9em; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); font-size: .9em; }
.s-login:hover { background: rgba(255, 255, 255, .08); }
.s-head { display: flex; align-items: baseline; gap: 8px; font-size: 1.15em; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.s-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(242, 63, 67, .15); color: #ffb3b5; font: 13px/1.4 Inter, system-ui, sans-serif; }

.c-form { display: flex; flex-direction: column; gap: 6px; }
.c-input {
  width: 100%; min-height: 3.2em; resize: vertical; padding: 9px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); outline: none;
  color: var(--text); font: inherit; font-size: .95em; line-height: 1.4;
}
.c-input:focus { border-color: rgba(255, 255, 255, .35); }
.c-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.c-post { padding: .3em 1.1em; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: var(--text); font: inherit; cursor: pointer; }
.c-post:hover { background: rgba(255, 255, 255, .16); }
.c-post:disabled { opacity: .5; cursor: progress; }
.c-list { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 12px; max-height: 38vh; overflow-y: auto; }
.c-item { display: flex; gap: 10px; }
.c-av { flex: none; }
.c-av img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #222; display: block; }
.c-body { min-width: 0; flex: 1; }
.c-meta { display: flex; align-items: baseline; gap: 8px; }
.c-name { font-size: .95em; }
.c-name:hover { text-decoration: underline; }
.c-del { margin-left: auto; border: 0; background: none; color: var(--sub); cursor: pointer; font-size: 1.1em; line-height: 1; padding: 0 4px; opacity: .6; }
.c-del:hover { opacity: 1; color: #ff8a8a; }
.c-text { margin: 2px 0 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; font-size: .95em; }
.c-empty { margin: 0; }

/* ---------- scroll hint ---------- */
.scroll-hint {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: var(--text-size); background: none; border: 0; padding: 0; cursor: pointer;
}
.scroll-hint .ico { width: 1.2em; height: 1.2em; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- fixed controls ---------- */
.vol {
  position: fixed; z-index: 5; top: 17px; left: 18px;
  display: flex; align-items: center; gap: 10px;
}
.vol.right { left: auto; right: 18px; flex-direction: row-reverse; }
.vol-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(20, 20, 20, .55); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--text); font-size: 28px; padding: 0;
}
.vol-range {
  width: 0; opacity: 0; transition: width .25s ease, opacity .2s; accent-color: var(--text);
}
.vol:hover .vol-range, .vol:focus-within .vol-range { width: 110px; opacity: 1; }

.dots { position: fixed; z-index: 5; right: 23px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 11px; }
.dots button {
  width: 10px; height: 10px; border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .28); transition: background .2s, transform .2s;
}
.dots button.on { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .7); }

/* ---------- enter screen ---------- */
.enter {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: opacity .6s ease, visibility .6s;
}
.enter span { font-size: calc(var(--name-size) * .8); animation: pulse 2s ease-in-out infinite; }
.enter.gone { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- cursor trail ---------- */
.trail { position: fixed; z-index: 30; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; pointer-events: none; background: var(--text); box-shadow: 0 0 8px var(--glow-c); }

@media (prefers-reduced-motion: reduce) {
  .blobs i, .scroll-hint .ico, .enter span, .fx-shimmer .name, .fx-float .name, .fx-rainbow .name, .fx-neon .name, .wv { animation: none !important; }
}

/* badge icons (built-in or custom SVG) */
.bicon-x { display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(1em * var(--bs, 1)); height: calc(1em * var(--bs, 1)); line-height: 0; }
.bicon-x > svg, .bicon-x > .bi-img, .bicon-x > .bi-tint { width: 100%; height: 100%; display: block; }
.bicon-x > .bi-img { object-fit: contain; }

/* ---------- report popup ---------- */
.rp-back { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); font: 14px/1.4 Inter, system-ui, sans-serif; }
.rp { width: min(420px, 100%); padding: 20px; border-radius: 18px; background: #101010; border: 1px solid rgba(255,255,255,.1); color: #eee; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.rp h2 { margin: 0 0 4px; font: 600 18px Inter, system-ui, sans-serif; color: #fff; text-shadow: none; }
.rp-sub { margin: 0 0 14px; color: #999; font-size: 13px; }
.rp-reasons { display: grid; gap: 6px; margin-bottom: 12px; }
.rp-reasons label { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; background: #1a1a1a; border: 1px solid #262626; cursor: pointer; }
.rp-reasons label:has(input:checked) { border-color: #fff; background: #222; }
.rp-reasons input { accent-color: #fff; margin: 0; }
.rp textarea { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px; background: #1a1a1a; border: 1px solid #262626; color: #eee; font: inherit; resize: vertical; }
.rp-err { color: #ff8a8a; margin: 8px 0 0; font-size: 13px; }
.rp-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.rp-btns button, .rp-btns a { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #333; background: #1a1a1a; color: #eee; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.rp-btns .rp-send { background: #fff; color: #000; border-color: #fff; }
.rp-btns .rp-send:disabled { opacity: .5; }

/* ---------- more name effects ---------- */
.fx-rainbow .name {
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #f9f871, #5ef38c, #4fc3f7, #a78bfa, #ff5f6d) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke-color: transparent;
  animation: rainbow 4s linear infinite;
}
.fx-rainbow .name { filter: drop-shadow(0 0 calc(var(--glow) * .6) rgba(255,255,255,.35)); text-shadow: none; }
@keyframes rainbow { to { background-position: -200% 0; } }
.fx-neon .name { animation: neon 4.5s infinite; }
@keyframes neon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .35; text-shadow: none; } }
.fx-wave .name .wv { display: inline-block; animation: wave 1.6s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-.14em); } }
.name-wrap { position: relative; min-width: 0; }
.sparkles { position: absolute; inset: -6px -10px; pointer-events: none; }
.sparkles i {
  position: absolute; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  background: var(--text); filter: drop-shadow(0 0 4px var(--glow-c));
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 1.4s ease-in-out forwards;
}
@keyframes twinkle { 0% { transform: scale(0) rotate(0); opacity: 0; } 40% { transform: scale(1) rotate(45deg); opacity: 1; } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
.loc .caret, .about .caret { display: inline-block; margin-left: .05em; animation: blink 1s steps(1) infinite; }
.about.fx-fade { animation: fadein 1.4s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.trail-fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; width: 100%; height: 100%; }

/* ---------- likes + follows ---------- */
.stats .like { cursor: pointer; user-select: none; -webkit-user-select: none; }
.stats .like .ico-heart { display: inline-flex; width: 1.1em; height: 1.1em; transition: transform .2s; }
.stats .like .ico-heart svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; filter: drop-shadow(0 0 calc(var(--glow) * .7) var(--glow-c)); }
.stats .like.on .ico-heart svg { fill: #ff4d6d; stroke: #ff4d6d; filter: drop-shadow(0 0 6px rgba(255,77,109,.8)); }
.stats .like.on .ico-heart { animation: pop .35s ease; }
.stats .like:hover .ico-heart { transform: scale(1.12); }
@keyframes pop { 50% { transform: scale(1.35); } }
.s-follow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--text-size); }
.s-follow .f-n { color: var(--sub); text-shadow: none; }
.s-follow .f-n b { color: var(--text); font-weight: 400; text-shadow: 0 0 var(--glow) var(--glow-c); }
.f-btn { margin-left: auto; height: 34px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--text); background: var(--text); color: #000; font: inherit; font-size: calc(var(--text-size) * .95); cursor: pointer; text-shadow: none; }
.f-btn.on { background: transparent; color: var(--text); }
.f-btn:disabled { opacity: .5; cursor: default; }
.s-foot { display: flex; justify-content: flex-end; gap: 14px; margin-top: -4px; }
.s-foot .linkish { font-size: 12px; opacity: .55; }
.s-foot .linkish:hover { opacity: 1; }
.c-rep { font-size: 13px; }

/* ---------- widgets ---------- */
.wdg { display: flex; align-items: center; gap: 14px; min-height: 56px; font-size: var(--text-size); }
.wdg:empty { display: none; }
.wdg .w-load { display: block; width: 100%; height: 56px; border-radius: 12px; background: rgba(255,255,255,.04); animation: pulse 1.4s infinite; }
.w-img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: rgba(255,255,255,.06); }
.w-img.round { border-radius: 50%; }
.w-img.oct { background: rgba(255,255,255,.08); object-fit: contain; }
.w-img.art { border-radius: 8px; }
.w-initial { display: grid; place-items: center; font-size: 24px; }
.w-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.w-who b { font-weight: 400; font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.w-who a { color: inherit; text-decoration: none; min-width: 0; }
.w-who a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.w-who small { opacity: .75; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.w-who .w-label { text-transform: lowercase; opacity: .55; font-size: .8em; }
.w-at { opacity: .55; font-size: .85em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #747f8d; flex: none; }
.dot.on { background: #23a55a; box-shadow: 0 0 6px #23a55a; }
.dot.game { background: #57cbde; box-shadow: 0 0 6px #57cbde; }
.w-who small .dot + * { margin-left: 0; }
.w-btn { flex: none; height: 32px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.25); color: var(--text); text-decoration: none; font-size: .9em; }
.w-btn:hover { background: rgba(255,255,255,.08); }
.w-prog { display: flex; align-items: center; gap: 8px; font-size: .78em; opacity: .8; margin-top: 4px; }
.w-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.w-bar i { display: block; height: 100%; background: #1ed760; border-radius: 4px; }
