.profile-page {
  --p-accent: #9b8cff;
  --p-text: #ffffff;
  --p-card: rgba(12, 12, 20, 0.4);
  --p-blur: 20px;
  --p-font: 'Inter';
  font-family: var(--p-font), 'Inter', system-ui, sans-serif;
  color: var(--p-text);
  overflow-x: hidden;
}
html:has(.profile-page) { scrollbar-width: none; }
html:has(.profile-page)::-webkit-scrollbar, .profile-page::-webkit-scrollbar { display: none; }

#bg { position: fixed; inset: 0; z-index: 0; background: var(--p-page, #07070b); }
#cursorFx { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
#previewBanner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 300; padding: 8px 16px; border-radius: 10px;
  background: rgba(155, 140, 255, 0.2); border: 1px solid rgba(155, 140, 255, 0.5); backdrop-filter: blur(10px); font-size: 0.85rem; color: #fff;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); text-align: center;
}
#previewBanner[hidden] { display: none; }
.pv-sound {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #111; font: 700 0.8rem 'Inter', sans-serif;
}
.pv-sound svg { width: 14px; height: 14px; }
.pv-sound:hover { filter: brightness(0.9); }
#bg img, #bg video {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(var(--p-blur)); transform: scale(1.12);
}
#bgShade { position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.35); }
#fx { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#bg, #bgShade, #fx, #cursorFx { bottom: auto; height: 100vh; height: 100lvh; }
#bg img, #bg video { will-change: transform; }
#bg video { filter: none; }
.bg-video-blur #bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(var(--p-blur)); backdrop-filter: blur(var(--p-blur));
}
.layout-fullscreen.bg-video-blur #bg::after { display: none; }

#splashAvatar {
  width: var(--sp-img, 56px); height: var(--sp-img, 56px); border-radius: 50%; background: center / cover no-repeat; margin-bottom: 14px;
  box-shadow: 0 0 20px color-mix(in srgb, var(--p-accent) 50%, transparent);
}
.sp-shape-rounded #splashAvatar { border-radius: 22%; }
.sp-shape-raw #splashAvatar { border-radius: 0; background-size: contain; box-shadow: none; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--p-accent) 60%, transparent)); }
#splashAvatar.sp-symbol {
  display: grid; place-items: center; background: none; box-shadow: none; border-radius: 0; font-size: calc(var(--sp-img, 56px) * 0.9); line-height: 1;
  color: var(--sp-color, #fff); text-shadow: 0 0 18px var(--p-accent), 0 0 42px color-mix(in srgb, var(--p-accent) 50%, transparent);
}
#splashAvatar[hidden] { display: none; }
#splash {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 20px; text-align: center;
  background: rgba(0, 0, 0, var(--sp-dim, 0.75)); backdrop-filter: blur(var(--sp-blur, 18px)); -webkit-backdrop-filter: blur(var(--sp-blur, 18px)); transition: opacity 0.6s;
}
#splash span {
  position: relative; font-size: var(--sp-size, 1.3rem); letter-spacing: 0.08em; color: var(--sp-color, inherit); font-family: var(--sp-font, inherit);
  text-shadow: 0 0 18px var(--p-accent); overflow-wrap: anywhere;
}
#splash.sp-noglow span, #splash.sp-noglow #splashAvatar.sp-symbol { text-shadow: none; }
#splash.sp-noglow #splashAvatar { box-shadow: none; filter: none; }
#splash.sp-pulse span { animation: pulse 2s ease-in-out infinite; }
#splash.sp-typewriter span::after { content: '|'; margin-left: 2px; animation: blink 0.9s step-end infinite; }
#splash.sp-flicker span { animation: sp-flicker 3.2s linear infinite; }
#splash.sp-glitch span::before, #splash.sp-glitch span::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
}
#splash.sp-glitch span::before { color: #ff2a6d; animation: sp-glitch-a 2.4s steps(1) infinite; }
#splash.sp-glitch span::after { color: #05d9e8; animation: sp-glitch-b 2.4s steps(1) infinite; }
#splash.sp-wave span i { display: inline-block; font-style: normal; animation: sp-wave 1.6s ease-in-out infinite; }
#splash.gone { opacity: 0; pointer-events: none; }
@keyframes pulse { 50% { opacity: 0.45; } }
@keyframes sp-flicker { 0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; } 20%, 22%, 55% { opacity: 0.15; } }
@keyframes sp-glitch-a { 0%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 10% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, -1px); } 14% { clip-path: inset(0 0 100% 0); } 52% { clip-path: inset(55% 0 20% 0); transform: translate(3px, 1px); } 56% { clip-path: inset(0 0 100% 0); } }
@keyframes sp-glitch-b { 0%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 12% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 1px); } 16% { clip-path: inset(0 0 100% 0); } 70% { clip-path: inset(20% 0 50% 0); transform: translate(-3px, 0); } 74% { clip-path: inset(0 0 100% 0); } }
@keyframes sp-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-0.3em); } }
@media (prefers-reduced-motion: reduce) { #splash span, #splash span::before, #splash span::after, #splash span i { animation: none !important; } }

#audioCtl {
  position: fixed; top: 16px; left: 16px; z-index: 50; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#audioCtl button {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: none; border: none; cursor: pointer;
  font-size: 1.1rem; line-height: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#audioCtl input { width: 0; opacity: 0; transition: width 0.25s, opacity 0.25s; accent-color: var(--p-accent); }
#audioCtl:hover input, #audioCtl:focus-within input { width: 90px; opacity: 1; }
@media (hover: none) {
  #audioCtl { padding: 4px; top: max(12px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); }
  #audioCtl button { width: 40px; height: 40px; font-size: 1.25rem; }
  #audioCtl input { display: none; }
}

#editBtn { position: fixed; top: 16px; right: 16px; z-index: 50; }

#wrap { position: relative; z-index: 10; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: clamp(12px, 4vh, 40px) 16px; }

#card {
  position: relative; width: min(var(--p-width, 520px), 100%); padding: 34px 28px 18px; border-radius: var(--p-radius, 22px); text-align: center;
  background: var(--p-card); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: transform 0.15s ease-out; isolation: isolate;
}
#card.show { opacity: 1; animation: 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
.anim-pop #card.show { animation-name: cardPop; }
.anim-fade #card.show { animation-name: cardFade; animation-timing-function: ease; }
.anim-slide #card.show { animation-name: cardSlide; animation-timing-function: ease-out; }
@keyframes cardPop { from { opacity: 0; transform: scale(0.8); } }
@keyframes cardFade { from { opacity: 0; } }
@keyframes cardSlide { from { opacity: 0; transform: translateY(40px); } }
.parallax #wrap { perspective: 1000px; }
.parallax #card { transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.parallax #card.tilting { transition: transform 0.08s linear; }
.parallax #card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.14), transparent 55%);
}
.parallax #card.shine::after { opacity: 1; }
#avatarWrap { position: relative; width: 110px; height: 110px; margin: 0 auto 14px; }
.no-avatar.layout-wide #card { grid-template-columns: 1fr; }
.no-avatar.has-banner #info { margin-top: 16px; }
#avatarDeco { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; pointer-events: none; z-index: 2; }
.layout-wide #avatarWrap { width: 160px; height: 160px; }
#avatarWrap:has(> #avatarDeco:not([hidden])) { margin-bottom: 26px; }
.layout-wide #avatarWrap:has(> #avatarDeco:not([hidden])) { margin-bottom: 14px; }
.badge-orbit #avatarWrap:has(> #avatarDeco:not([hidden])) { margin-bottom: 44px; }

.layout-minimal #card { background: none; border: none; box-shadow: none; backdrop-filter: none; }
.layout-wide #card { width: min(820px, 100%); display: grid; grid-template-columns: 170px 1fr; gap: 26px; text-align: left; align-items: center; padding: 30px; }
.layout-wide #cardFoot { grid-column: 1 / -1; }
.layout-wide #badges, .layout-wide #socials { justify-content: flex-start; }
.layout-wide #presence { margin-left: 0; }

.layout-left #wrap { place-items: center start; padding-left: max(16px, 7vw); }
.layout-left #card { text-align: left; }
.layout-left #avatarWrap { margin-left: 0; }
.layout-left #badges { margin-left: 0; }
.layout-left #badges, .layout-left #socials, .layout-left #tags { justify-content: flex-start; }

.layout-fullscreen.profile-page { background: var(--p-page, #07070b); }
.layout-fullscreen #bg { position: absolute; height: 100vh; overflow: hidden; }
.layout-fullscreen #bg img, .layout-fullscreen #bg video { filter: none; transform: none; }
.layout-fullscreen #bgShade {
  position: absolute; height: 100vh;
  background: linear-gradient(transparent 45%, color-mix(in srgb, var(--p-page, #07070b) 70%, transparent) 80%, var(--p-page, #07070b));
}
.layout-fullscreen #wrap { display: block; min-height: 0; padding: 62vh 16px 60px; }
.layout-fullscreen #card { margin: 0 auto; }
.layout-fullscreen #wrap::before {
  content: '⌄'; position: absolute; top: calc(62vh - 46px); left: 50%; transform: translateX(-50%);
  font-size: 1.6rem; opacity: 0.6; animation: bob 2.4s ease-in-out infinite;
}
@media (max-height: 560px) { .layout-fullscreen #wrap { padding-top: 45vh; } .layout-fullscreen #wrap::before { display: none; } }

#avatar {
  width: 100%; height: 100%; border-radius: 50%; background: rgba(255, 255, 255, 0.08) center / cover no-repeat;
  background-origin: border-box; background-clip: border-box; overflow: hidden; transform: translateZ(0);
  border: 3px solid rgba(255, 255, 255, 0.1); display: grid; place-items: center; font-size: 46px;
  box-shadow: 0 0 30px color-mix(in srgb, var(--p-accent) 45%, transparent);
}

#name {
  position: relative; display: inline-block; font-size: var(--p-name-size, 2rem); font-weight: 700; letter-spacing: var(--p-name-spacing, -0.02em); line-height: 1.2;
  font-family: var(--p-name-font, inherit), 'Inter', system-ui, sans-serif;
}
.name-wrap { position: relative; display: inline-block; }
.uid-tip {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); z-index: 20;
  padding: 4px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  font: 600 0.72rem/1.3 'Inter', system-ui, sans-serif; letter-spacing: 0.02em; color: #fff;
  background: rgba(12, 12, 18, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.15s, transform 0.15s;
}
.name-wrap.show-uid .uid-tip { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) { .name-wrap:hover .uid-tip { opacity: 1; transform: translate(-50%, 0); } }
.fx-glow #name { text-shadow: 0 0 14px var(--p-accent), 0 0 30px var(--p-accent); }
.fx-rainbow #name {
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #6ee7f9, #9b8cff, #ff6bd6, #ff6b6b);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbow 4s linear infinite;
}
@keyframes rainbow { to { background-position: 200% center; } }
.fx-glitch #name { animation: glitch 2.5s infinite; }
@keyframes glitch {
  0%, 90%, 100% { text-shadow: none; transform: none; }
  92% { text-shadow: -2px 0 #ff2bd6, 2px 0 #2bf0ff; transform: translateX(-1px); }
  94% { text-shadow: 2px 0 #ff2bd6, -2px 0 #2bf0ff; transform: translateX(1px); }
  96% { text-shadow: -1px 0 #ff2bd6, 1px 0 #2bf0ff; }
}
.name-typing::after { content: '|'; margin-left: 2px; font-weight: 400; animation: blink 0.8s step-end infinite; }
.name-glitching { text-shadow: -2px 0 #ff2bd6, 2px 0 #2bf0ff !important; animation: name-jitter 0.12s steps(2) infinite !important; }
@keyframes name-jitter { 50% { transform: translate(1px, -1px) skewX(-4deg); } }
.name-fade span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(8px); animation: name-letter 0.6s ease-out forwards; }
@keyframes name-letter { to { opacity: 1; filter: none; transform: none; } }
.name-hidden { opacity: 0; }
#name { transition: opacity 0.5s; }
.name-particles { position: fixed; inset: 0; z-index: 60; pointer-events: none; transition: opacity 0.5s; }
.name-particles.gone { opacity: 0; }

.sparkle { position: absolute; pointer-events: none; color: var(--p-accent); font-size: 12px; animation: sparkle 1.2s ease-out forwards; text-shadow: 0 0 8px var(--p-accent); }
@keyframes sparkle { from { opacity: 1; transform: scale(0.4); } to { opacity: 0; transform: translateY(-14px) scale(1.2); } }

#badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 8px auto 4px; width: fit-content; max-width: 100%; }
#badges .bico { position: relative; font-size: calc(1.2rem * var(--badge-scale, 1)); cursor: default; }
.badgebox-one #badges:not(:empty) { gap: 4px; padding: 4px 8px; border-radius: 10px; background: color-mix(in srgb, var(--p-accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--p-accent) 25%, transparent); }
.badgebox-one #badges .bico, .badgebox-none #badges .bico { background: none; border-color: transparent; box-shadow: none; width: 1.4em; height: 1.4em; }
.badgebox-one #badges .bico svg, .badgebox-none #badges .bico svg { width: 82%; height: 82%; }
body:not(.glow-badges) #badges .bico { box-shadow: none; }
body:not(.glow-badges) #badges .bico svg { filter: none; }
.glow-badges #badges .bico svg { filter: drop-shadow(0 0 4px var(--bc)) drop-shadow(0 0 8px color-mix(in srgb, var(--bc) 60%, transparent)); }
.glow-badges.badgebox-each #badges .bico { animation: badge-glow 3s ease-in-out infinite; }
.glow-badges.badgebox-each #badges .bico:nth-child(2n) { animation-delay: -1s; }
.glow-badges.badgebox-each #badges .bico:nth-child(3n) { animation-delay: -2s; }
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 25%, transparent), inset 0 0 8px color-mix(in srgb, var(--bc) 12%, transparent); }
  50% { box-shadow: 0 0 18px color-mix(in srgb, var(--bc) 48%, transparent), inset 0 0 10px color-mix(in srgb, var(--bc) 22%, transparent); }
}
.layout-wide #badges { margin-left: 0; justify-content: flex-start; }
.badge-orbit #avatarWrap { margin-top: 30px; margin-bottom: 44px; }
.badge-orbit.has-banner #avatarWrap { margin-top: -40px; }
.badge-orbit.layout-wide.has-banner #avatarWrap { margin-top: 30px; }
#badgeOrbit { --r: 84px; position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; animation: orbit-spin 30s linear infinite; }
.layout-wide #badgeOrbit { --r: 112px; }
.badge-orbit.layout-wide #card { grid-template-columns: 210px 1fr; column-gap: 56px; }
#badgeOrbit .orb { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
#badgeOrbit .bico {
  --bs: calc(32px * var(--badge-scale, 1));
  position: relative; display: grid; width: var(--bs); height: var(--bs); margin: calc(var(--bs) / -2) 0 0 calc(var(--bs) / -2); border-radius: 50%; font-size: calc(1rem * var(--badge-scale, 1)); cursor: default;
  animation: orbit-spin 30s linear infinite reverse, orbit-bob 3.2s ease-in-out infinite;
}
#badgeOrbit .orb:nth-child(2n) .bico { animation-delay: 0s, -1.1s; }
#badgeOrbit .orb:nth-child(3n) .bico { animation-delay: 0s, -2.2s; }
.glow-badges #badgeOrbit .bico { box-shadow: 0 0 14px color-mix(in srgb, var(--bc) 45%, transparent), inset 0 0 8px color-mix(in srgb, var(--bc) 18%, transparent); }
.glow-badges #badgeOrbit .bico svg { filter: drop-shadow(0 0 4px var(--bc)) drop-shadow(0 0 8px color-mix(in srgb, var(--bc) 60%, transparent)); }
#badgeOrbit:hover, #badgeOrbit:hover .bico { animation-play-state: paused; }
.badge-orbit #badges { display: none; }
@keyframes orbit-spin { to { rotate: 360deg; } }
@keyframes orbit-bob { 50% { translate: 0 -4px; } }
@media (max-width: 640px) { .layout-wide #badgeOrbit { --r: 84px; } .badge-orbit.layout-wide #card { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #badgeOrbit, #badgeOrbit .bico { animation: none; } }
#badgeOrbit .bico:hover::after,
#badges .bico:hover::after {
  content: attr(data-name); position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.85); color: #fff; font-family: 'Inter', sans-serif;
}

#desc {
  margin-top: 8px; opacity: 0.9; min-height: 1.5em; white-space: pre-wrap;
  font-family: var(--p-bio-font, inherit), 'Inter', system-ui, sans-serif; font-size: var(--p-bio-size, 15px); letter-spacing: var(--p-bio-spacing, 0);
}
#desc .spoiler {
  border-radius: 4px; padding: 0 3px; cursor: pointer; color: transparent; background: rgba(255, 255, 255, 0.22);
  transition: color 0.2s, background 0.2s; user-select: none;
}
#desc .spoiler.shown { color: inherit; background: rgba(255, 255, 255, 0.08); cursor: auto; user-select: auto; }
#desc .spoiler.shown * { color: inherit; }
#desc .spoiler:not(.shown) * { color: transparent !important; }
#desc.typing::after { content: '|'; margin-left: 1px; animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
#location { margin-top: 6px; font-size: 0.85rem; opacity: 0.7; }

#presence {
  display: flex; gap: 12px; align-items: center; text-align: left; margin: 18px auto 0; max-width: 360px;
  padding: 10px 12px; border-radius: 14px; background: var(--p-box); border: 1px solid rgba(255, 255, 255, 0.06);
}
.pr-avatar { position: relative; flex-shrink: 0; width: 46px; height: 46px; }
.pr-avatar img { width: 46px; height: 46px; border-radius: 50%; }
.pr-avatar img.deco { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; border-radius: 0; }
.pr-avatar i { z-index: 3; position: absolute; bottom: 0; right: 0; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #111; }
.st-online { background: #23a55a; } .st-idle { background: #f0b232; } .st-dnd { background: #f23f43; } .st-offline { background: #80848e; }
.pr-text { min-width: 0; font-size: 0.82rem; }
.pr-text strong { display: block; font-size: 0.92rem; }
.pr-text span { display: block; opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-badges, .pr-text .d-badges { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: -3px; opacity: 1; overflow: visible; }
.d-badges img { width: 16px; height: 16px; }
.pr-art { width: 46px; height: 46px; border-radius: 8px; margin-left: auto; flex-shrink: 0; }

#socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.lk { position: relative; color: inherit; font: inherit; text-decoration: none; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, border-color 0.18s; }
.lk-icon { width: 34px; height: 34px; display: grid; place-items: center; background: none; border: none; padding: 0; }
.lk-icon img, .lk-icon svg { width: 30px; height: 30px; }
.glow-socials .lk-icon img, .glow-socials .lk-icon svg, .glow-socials .lk-pill img, .glow-socials .lk-pill svg,
.glow-socials .lk-tile img, .glow-socials .lk-tile svg { filter: drop-shadow(0 0 6px var(--lc, var(--p-accent))); }

.socials-pills { gap: 8px !important; }
.lk-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
  background: color-mix(in srgb, var(--lc, var(--p-accent)) 14%, var(--p-box)); border: 1px solid color-mix(in srgb, var(--lc, var(--p-accent)) 35%, transparent);
}
.lk-pill img, .lk-pill svg { width: 18px; height: 18px; }

.socials-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px !important; }
.lk-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 14px 8px; border-radius: 14px;
  background: var(--p-box); border: 1px solid color-mix(in srgb, var(--lc, #fff) 14%, transparent); font-size: 0.76rem; font-weight: 600;
  min-width: 0; overflow: hidden;
}
.lk-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-tile img, .lk-tile svg { width: 28px; height: 28px; }

.socials-dock {
  gap: 6px !important; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding: 8px 12px; border-radius: 18px; align-items: flex-end;
  background: color-mix(in srgb, var(--p-box) 80%, transparent); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
}
.socials-dock .lk-icon { transform-origin: bottom center; transform: scale(var(--dock, 1)) translateY(calc((var(--dock, 1) - 1) * -10px)); transition: transform 0.12s ease-out; }
.layout-left .socials-dock, .layout-wide .socials-dock { margin-left: 0; }

#featuredLinks { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.lk-featured {
  padding: 15px 18px !important; font-size: 1.02rem; border-color: color-mix(in srgb, var(--lc, var(--p-accent)) 70%, transparent) !important;
  background: color-mix(in srgb, var(--lc, var(--p-accent)) 20%, var(--p-box)) !important;
  box-shadow: 0 0 22px color-mix(in srgb, var(--lc, var(--p-accent)) 40%, transparent), inset 0 0 16px color-mix(in srgb, var(--lc, var(--p-accent)) 15%, transparent);
  animation: featured-glow 2.6s ease-in-out infinite;
}
.lk-featured .lb-icon img, .lk-featured .lb-icon svg { width: 26px; height: 26px; }
@keyframes featured-glow { 50% { box-shadow: 0 0 34px color-mix(in srgb, var(--lc, var(--p-accent)) 60%, transparent), inset 0 0 18px color-mix(in srgb, var(--lc, var(--p-accent)) 22%, transparent); } }
.link-button[style*="--lc"] { border-color: color-mix(in srgb, var(--lc) 45%, transparent); }

.lhover-lift .lk:hover { transform: translateY(-3px); }
.lhover-lift .lk-icon:hover { transform: translateY(-3px) scale(1.08); }
.lhover-pop .lk:hover { transform: scale(1.1); transition-timing-function: cubic-bezier(0.3, 1.8, 0.5, 1); }
.lhover-shake .lk:hover { animation: lk-shake 0.4s; }
@keyframes lk-shake { 20% { transform: translateX(-3px) rotate(-2deg); } 40% { transform: translateX(3px) rotate(2deg); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.lhover-glow .lk:hover { box-shadow: 0 0 20px color-mix(in srgb, var(--lc, var(--p-accent)) 55%, transparent); border-color: var(--lc, var(--p-accent)); }
.lhover-glow .lk-icon:hover { box-shadow: none; filter: drop-shadow(0 0 10px var(--lc, var(--p-accent))) brightness(1.15); }
.lhover-underline .lk::after {
  content: ''; position: absolute; left: 12%; right: 12%; bottom: 2px; height: 2px; border-radius: 2px; background: var(--lc, var(--p-accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.lhover-underline .lk-icon::after { bottom: -4px; }
.lhover-underline .lk:hover::after { transform: scaleX(1); }
.lhover-none .lk:hover, .lhover-none .link-button:hover { transform: none; }
@media (hover: none) {
  .lhover-lift .lk:hover, .lhover-lift .lk-icon:hover, .lhover-pop .lk:hover { transform: none; }
  .lhover-shake .lk:hover { animation: none; }
}
.socials-dock .lk:hover { animation: none; }
.lhover-lift .socials-dock .lk-icon:hover, .lhover-pop .socials-dock .lk-icon:hover {
  transform: scale(var(--dock, 1)) translateY(calc((var(--dock, 1) - 1) * -10px));
}

#card { --p-inner-radius: max(0px, calc(var(--p-radius, 22px) - var(--p-bw, 1px))); }
.border-solid, .border-dashed, .border-pulse { --p-bw: 2px; }
#cardImage {
  position: absolute; inset: 0; z-index: -1; border-radius: var(--p-inner-radius); pointer-events: none;
  background: center / cover no-repeat;
}
#cardImage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, var(--ci-dim, 0.35)); }
.has-card-image #card { border-color: rgba(255, 255, 255, 0.22); }
.has-card-image #info { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }
.layout-minimal #cardImage, .has-card-image .card-ag { display: none; }

#banner {
  height: 150px; margin: -34px -28px 0; border-radius: var(--p-inner-radius) var(--p-inner-radius) 0 0; background: center / cover no-repeat;
  overflow: hidden; transform: translateZ(0);
}
.banner-fade #banner { -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.has-banner #avatarWrap { margin-top: -60px; }
.layout-minimal #banner { border-radius: 16px; margin: 0 0 0; }
.layout-wide #banner { grid-column: 1 / -1; margin: -30px -30px -40px; }
.layout-wide.has-banner #avatarWrap { margin-top: 0; }

#tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 2px; }
#tags span { font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--p-accent) 20%, transparent); border: 1px solid color-mix(in srgb, var(--p-accent) 40%, transparent); }
.layout-wide #tags { justify-content: flex-start; }

#linkButtons { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.link-button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: var(--p-box); border: 1px solid rgba(255, 255, 255, 0.08); color: inherit; font: inherit; text-decoration: none; text-align: left;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.link-button:hover { border-color: color-mix(in srgb, var(--lc, var(--p-accent)) 60%, transparent); }
.lb-icon { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.lb-icon img, .lb-icon svg { width: 22px; height: 22px; }
.lb-text { flex: 1; font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-go { opacity: 0.5; font-size: 0.85rem; }

#player {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; text-align: left;
  background: var(--p-box); border: 1px solid rgba(255, 255, 255, 0.06);
}
.pl-screen { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 12px; }
.pl-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin: 0 auto; }
.pl-controls button:not(#plToggle) {
  width: 30px; height: 30px; border: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: inherit; opacity: 0.7; transition: opacity 0.15s, background 0.15s;
}
.pl-controls button:not(#plToggle):hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.pl-controls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#plPrev svg path:last-child, #plNext svg path:last-child { fill: currentColor; }
#plShuffle.on { opacity: 1; color: var(--p-accent); }
#plShuffle.on::after { content: ''; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--p-accent); }
#plShuffle { position: relative; }
.pl-reels { display: none; }
#plLyrics { flex-basis: 100%; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; position: relative; text-align: center; padding: 2px 4px; overflow: hidden; }
#plLyrics .ly-head { display: none; }
#plLyrics .ly-view { position: relative; width: 100%; min-width: 0; height: 5.4em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
#plLyrics .ly-list { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
#plLyrics .ly-line { margin: 0; padding: 1px 22px; font-size: 0.78rem; line-height: 1.4; opacity: 0.35; white-space: normal; overflow-wrap: anywhere; transition: opacity 0.3s, font-size 0.3s; }
#plLyrics.ly-timed .ly-line { cursor: pointer; }
#plLyrics .ly-line.on { opacity: 1; font-size: 0.92rem; font-weight: 700; text-shadow: 0 0 12px color-mix(in srgb, var(--p-accent) 50%, transparent); }
#plLyrics .ly-line.past { opacity: 0.25; }
#plLyrics.ly-timed .ly-line.on .ly-w { --f: 0; color: transparent; background-image: linear-gradient(90deg, var(--ly-ink, #fff) calc(var(--f) * 100%), color-mix(in srgb, var(--ly-ink, #fff) 35%, transparent) calc(var(--f) * 100%)); -webkit-background-clip: text; background-clip: text; }
#plLyrics .ly-expand { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; padding: 3px; border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: 0.45; cursor: pointer; }
#plLyrics .ly-expand:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
#plLyrics .ly-expand svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#plLyrics.ly-full { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; padding: 28px 24px; color: #fff; background: rgba(6, 6, 10, 0.86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); animation: ly-open 0.25s ease-out; }
#plLyrics.ly-full .ly-head { display: block; text-align: center; margin-bottom: 14px; }
#plLyrics.ly-full .ly-head strong { display: block; font-size: 1.15rem; }
#plLyrics.ly-full .ly-head span { opacity: 0.6; font-size: 0.9rem; }
#plLyrics.ly-full .ly-view { flex: 1; height: auto; mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
#plLyrics.ly-full .ly-line { white-space: normal; font-size: clamp(1.1rem, 3.2vw, 1.7rem); line-height: 1.35; padding: 8px 6vw; font-weight: 700; }
#plLyrics.ly-full .ly-line.on { font-size: clamp(1.35rem, 4.2vw, 2.3rem); }
#plLyrics.ly-full .ly-expand { top: 18px; right: 18px; transform: none; width: 38px; height: 38px; padding: 9px; opacity: 0.85; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
body.lyrics-open { overflow: hidden; }
@keyframes ly-open { from { opacity: 0; } }

#player.skin-minimal { padding: 6px 8px 6px 12px; gap: 6px 10px; border-radius: 99px; }
.skin-minimal #plCover, .skin-minimal #plViz, .skin-minimal .pl-bar span { display: none; }
.skin-minimal .pl-main { flex-direction: row; align-items: center; gap: 10px; }
.skin-minimal .pl-meta { flex-direction: row; gap: 6px; align-items: baseline; max-width: 55%; }
.skin-minimal .pl-meta span::before { content: '· '; }
.skin-minimal .pl-bar { flex: 1; }
.skin-minimal #plToggle { width: 30px; height: 30px; }
.skin-minimal #plToggle svg { width: 13px; height: 13px; }
.skin-minimal #plLyrics { border-top: 1px solid rgba(255, 255, 255, 0.06); }

.skin-vinyl #plCover {
  width: 34px; height: 34px; margin: 15px; border-radius: 50%;
  box-shadow: 0 0 0 2px #0b0b0d, 0 0 0 5px #1b1b1f, 0 0 0 6px #0e0e10, 0 0 0 9px #1c1c21, 0 0 0 10px #0e0e10, 0 0 0 13px #1b1b1f, 0 0 0 15px #0b0b0d,
    0 6px 22px 15px rgba(0, 0, 0, 0.35);
}
.skin-vinyl #plCover::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #0b0b0d; }
#player.skin-vinyl.playing #plCover { animation: spin 2.4s linear infinite; box-shadow: 0 0 0 2px #0b0b0d, 0 0 0 5px #1b1b1f, 0 0 0 6px #0e0e10, 0 0 0 9px #1c1c21, 0 0 0 10px #0e0e10, 0 0 0 13px #1b1b1f, 0 0 0 15px #0b0b0d, 0 0 26px 16px color-mix(in srgb, var(--p-accent) 30%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }

#player.skin-cassette {
  padding: 12px 14px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(#26232e, #1a1820) padding-box; box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.25);
}
.skin-cassette #plCover { display: none; }
.skin-cassette .pl-reels {
  display: flex; align-items: center; justify-content: space-around; width: 92px; height: 44px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(90deg, #3a2c22 0 18%, transparent 18% 82%, #3a2c22 82%), rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.1);
}
.skin-cassette .pl-reels i {
  width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #111 0 22%, #e8e2d4 23% 34%, #111 35% 100%);
  -webkit-mask: radial-gradient(circle, #000 0 98%, transparent);
  border: 2px dashed #e8e2d4;
}
.skin-cassette.playing .pl-reels i { animation: spin 1.6s linear infinite; }
.skin-cassette .pl-meta strong { font-family: 'Permanent Marker', 'Comic Sans MS', cursive; font-weight: 400; letter-spacing: 0.02em; }
.skin-cassette .pl-meta { padding: 2px 8px; border-radius: 4px; background: #efe8d6; color: #2a2433; }
.skin-cassette .pl-meta span { opacity: 0.7; }

#player.skin-ipod {
  flex-direction: column; flex-wrap: nowrap; width: 210px; margin: 14px auto 0; padding: 14px; gap: 14px; border-radius: 22px;
  background: linear-gradient(160deg, #f4f4f6, #c9cad0); color: #111; border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 #fff;
}
.layout-left #player.skin-ipod, .layout-wide #player.skin-ipod { margin-left: 0; }
.skin-ipod .pl-screen {
  flex: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border-radius: 6px;
  background: linear-gradient(#cfe0ec, #a8bfcf); color: #0d1a24; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.skin-ipod #plCover { width: 100%; height: 92px; border-radius: 4px; }
.skin-ipod .pl-meta strong, .skin-ipod .pl-meta span { text-align: center; }
.skin-ipod #plSeek { background: rgba(0, 0, 0, 0.18); }
.skin-ipod #plSeek i { background: #2b5f86; }
.skin-ipod .pl-controls {
  position: relative; width: 132px; height: 132px; border-radius: 50%; display: block; flex-shrink: 0;
  background: radial-gradient(circle, #e9e9ec 0 26%, transparent 26.5%), linear-gradient(160deg, #fdfdfd, #dcdce1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 0 #fff;
}
.skin-ipod .pl-controls button { position: absolute; color: #8a8a93 !important; opacity: 1 !important; background: none !important; box-shadow: none !important; }
.skin-ipod #plShuffle { top: 4px; left: 50%; transform: translateX(-50%); }
.skin-ipod #plPrev { left: 6px; top: 50%; transform: translateY(-50%); }
.skin-ipod #plNext { right: 6px; top: 50%; transform: translateY(-50%); }
.skin-ipod #plToggle { bottom: 4px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; }
.skin-ipod #plToggle:hover { transform: translateX(-50%) scale(1.1); }
.skin-ipod #plToggle svg { width: 14px; height: 14px; }
.skin-ipod #plShuffle.on { color: #2b5f86 !important; }
.skin-ipod #plLyrics { width: 100%; color: #333; }
.skin-ipod #plLyrics { --ly-ink: #222; }
.skin-ipod #plLyrics .ly-line.on { text-shadow: none; }
#plCover {
  position: relative; width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08) center / cover;
  display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
#player.playing #plCover { box-shadow: 0 0 18px color-mix(in srgb, var(--p-accent) 45%, transparent); }
.pl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pl-meta strong { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta span { font-size: 0.74rem; opacity: 0.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#plViz { display: block; width: 100%; height: 22px; }
.pl-bar { display: flex; align-items: center; gap: 8px; font-size: 0.66rem; opacity: 0.75; font-variant-numeric: tabular-nums; }
#plSeek { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); cursor: pointer; position: relative; touch-action: none; }
#plSeek::before { content: ''; position: absolute; inset: -6px 0; }
#plSeek i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--p-accent); }
#plSeek:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
#plToggle {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  background: var(--p-accent); color: var(--p-on-accent, #fff); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 14px color-mix(in srgb, var(--p-accent) 50%, transparent); transition: transform 0.15s;
}
#plToggle:hover { transform: scale(1.07); }
#plToggle svg { width: 18px; height: 18px; }

#widgets { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; text-align: left; }
.widget { border-radius: 14px; background: var(--p-box); border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.w-row { display: flex; align-items: center; gap: 12px; padding: 12px; color: inherit; text-decoration: none; }
a.w-row:hover { background: rgba(255, 255, 255, 0.03); }
.w-av { position: relative; width: 46px; height: 46px; flex-shrink: 0; }
.w-av img { width: 100%; height: 100%; border-radius: 50%; }
.w-av i { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #111; }
.w-av-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: rgba(255, 255, 255, 0.06); }
.w-art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.w-art-empty { display: grid; place-items: center; font-size: 1.4rem; background: rgba(255, 255, 255, 0.06); }
.w-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; }
.w-text strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.85; }
.w-sub { opacity: 0.6; font-weight: 400; font-size: 0.78rem; }
.w-stats { opacity: 0.8; display: flex; align-items: center; gap: 4px; }
.w-brand { flex-shrink: 0; opacity: 0.85; }
.w-brand img, .w-brand svg { width: 20px; height: 20px; }
.w-progress { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; opacity: 0.75; margin-top: 4px; }
.w-progress div { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.w-progress i { display: block; height: 100%; background: #1db954; }
.w-spotify { display: block; width: 100%; height: 152px; border: 0; }
.w-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.w-soundcloud { display: block; width: 100%; height: 166px; border: 0; }
iframe.w-tiktok { display: block; width: 100%; max-width: 325px; margin: 0 auto; aspect-ratio: 9 / 16; border: 0; }
.rbx-card { position: relative; padding: 14px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.rc-brand { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; opacity: 0.55; display: grid; place-items: center; pointer-events: none; }
.rc-brand svg, .rc-brand img { width: 100%; height: 100%; }
.rc-brand ~ .rbx-top .rbx-name { padding-right: 26px; }
.rc-round .rbx-pic, .rc-round .rbx-pic img { border-radius: 50%; }
.rc-round .rbx-pic img { object-fit: cover; }
.rc-glyph { font-size: 2.6rem; line-height: 1; opacity: 0.7; }
.rc-bio { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rbx-line:has(.rc-bio) { white-space: normal; align-items: flex-start; }
.rbx-top { display: flex; gap: 14px; align-items: flex-start; }
.rbx-pic { position: relative; flex-shrink: 0; width: 96px; height: 96px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; color: inherit; }
.rbx-pic img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.rbx-pic svg { width: 36px; height: 36px; opacity: 0.5; }
.rbx-pic .dot { position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; border: 2px solid #111; }
.rbx-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 0.82rem; }
.rbx-name { font-size: 1.1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbx-check { color: #3b82f6; font-size: 0.8rem; }
.rbx-row { display: flex; flex-wrap: wrap; gap: 4px 14px; opacity: 0.85; }
.rbx-line { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.rbx-line svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.8; }
.rbx-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; font-size: 0.8rem; text-decoration: none; }
.rbx-btn svg { width: 13px; height: 13px; }
.rbx-btn:hover { filter: brightness(0.92); }
.rbx-items { display: flex; flex-wrap: wrap; gap: 8px; }
.rbx-item { position: relative; width: 56px; height: 56px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; }
.rbx-item img { width: 46px; height: 46px; object-fit: contain; }
.rbx-item b { position: absolute; right: 3px; bottom: 2px; font-size: 0.62rem; padding: 0 4px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); }
.rbx-item:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 420px) {
  .rbx-pic { width: 76px; height: 76px; }
  .rbx-item { width: 48px; height: 48px; }
  .rbx-item img { width: 40px; height: 40px; }
}
.rav { display: flex; gap: 14px; padding: 14px; text-align: left; }
.rav-body { flex-shrink: 0; width: 140px; align-self: stretch; min-height: 170px; border-radius: 14px; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 70%); display: grid; place-items: center; color: inherit; }
.rav-body img { width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.rav-body svg { width: 40px; height: 40px; opacity: 0.5; }
.rav-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rav-head { position: relative; display: flex; flex-direction: column; padding-right: 26px; min-width: 0; }
.rav-head .rc-brand { top: 2px; right: 0; }
.rav-stats { display: flex; gap: 6px; }
.rav-stats span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.rav-stats b { font-size: 0.95rem; }
.rav-stats small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.rav-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.rav-item { position: relative; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; color: inherit; text-decoration: none; overflow: hidden; }
.rav-item:hover { background: rgba(255, 255, 255, 0.12); }
.rav-item img { width: 78%; height: 78%; object-fit: contain; margin-bottom: 8px; }
.rav-item small { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 0.6rem; font-weight: 700; opacity: 0.85; }
.rav-item b { position: absolute; right: 3px; top: 2px; font-size: 0.6rem; padding: 0 4px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); }
.rav-empty { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; opacity: 0.7; }
.rav-empty svg { width: 15px; height: 15px; }
.rav .rbx-btn { margin-top: auto; }
@media (max-width: 420px) {
  .rav { flex-direction: column; }
  .rav-body { width: 100%; min-height: 0; height: 200px; }
}
.w-tt { align-items: flex-start; padding: 14px; }
.w-tt .w-av-img { width: 54px; height: 54px; border-radius: 50%; }
.tt-stats { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; }
.tt-stats b { font-size: 0.9rem; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--p-text); margin-right: 3px; }
.tt-private { text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.tt-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 10px; flex-shrink: 0; }
.tt-follow { padding: 6px 14px; border-radius: 8px; background: #fe2c55; color: #fff; font-size: 0.78rem; font-weight: 700; }
a.w-tt:hover .tt-follow { filter: brightness(1.1); }
.w-verified { color: #26a5e4; font-size: 0.8rem; }
.w-btn { width: 100%; border: none; background: none; font: inherit; cursor: pointer; text-align: left; }
.w-btn:hover { background: rgba(255, 255, 255, 0.03); }
.w-copyhint { font-size: 1rem; opacity: 0.5; }
.w-pixel { image-rendering: pixelated; }
.w-ico svg, .w-mc svg { width: 26px; height: 26px; }
.w-title { padding: 0 5px; border-radius: 4px; background: #7fa650; color: #fff; font-size: 0.7rem; font-weight: 800; vertical-align: 1px; }
.w-time { font-size: 1.3rem !important; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.w-countdown { padding: 14px 12px; text-align: center; }
.w-cd { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.w-cd span { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.w-cd b { font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.w-cd small { font-size: 0.66rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; }
.w-done { font-size: 1.1rem; }
.w-loading, .w-error { padding: 16px; font-size: 0.8rem; opacity: 0.6; text-align: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #888; }
.dot-online { background: #3ba55c; }
.dot-ingame { background: #02b757; }
.dot-inStudio { background: #f6a609; }

#cardFoot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: 0.8rem; min-height: 20px; }
#views { opacity: 0.65; }
#socialBar {
  position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08); font-family: Inter, system-ui, sans-serif;
}
#reactBar { display: flex; gap: 6px; }
.react-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--p-text, #fff);
  font: inherit; font-size: 0.8rem; white-space: nowrap; transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.react-btn:hover { background: rgba(255, 255, 255, 0.12); }
.react-btn:active { transform: scale(0.94); }
.react-btn.on { background: color-mix(in srgb, var(--p-accent) 28%, transparent); border-color: var(--p-accent); }
#reactBar.readonly .react-btn, .embed .react-btn, .follow-btn.readonly { cursor: default; pointer-events: none; }
.follow-btn b { font-weight: 600; }
.follow-btn.on b { color: var(--p-accent); }

#commentsPanel { position: fixed; inset: 0; z-index: 400; display: flex; justify-content: flex-end; background: rgba(0, 0, 0, 0); transition: background 0.2s; font-family: Inter, system-ui, sans-serif; }
#commentsPanel.open { background: rgba(0, 0, 0, 0.45); }
.cp-box {
  width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: #101016; border-left: 1px solid rgba(255, 255, 255, 0.08); color: #ececf3;
  transform: translateX(100%); transition: transform 0.2s ease-out; overflow-y: auto;
}
#commentsPanel.open .cp-box { transform: none; }
.cp-head { display: flex; justify-content: space-between; align-items: center; }
.cp-head strong { font-size: 1.05rem; }
.cp-head span { color: #8a8a9c; font-weight: 500; }
#cpClose { background: none; border: none; color: #8a8a9c; font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
#cpClose:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
#cpForm { display: flex; flex-direction: column; gap: 6px; }
#cpForm textarea {
  width: 100%; resize: vertical; min-height: 64px; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 0.88rem;
  background: #0a0a0f; color: #ececf3; border: 1px solid rgba(255, 255, 255, 0.1);
}
#cpForm textarea:focus { outline: none; border-color: var(--p-accent, #9b8cff); }
.cp-form-row { display: flex; justify-content: space-between; align-items: center; }
.cp-form-row small { color: #8a8a9c; font-size: 0.72rem; }
.cp-note { color: #8a8a9c; font-size: 0.85rem; }
.cp-note a { color: var(--p-accent, #9b8cff); }
.cp-empty { text-align: center; padding: 30px 0; }
#cpList { display: flex; flex-direction: column; gap: 4px; }
.cp-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; }
.cp-item:hover { background: rgba(255, 255, 255, 0.03); }
.cp-av {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.1) center / cover; color: #fff; text-decoration: none;
}
.cp-main { flex: 1; min-width: 0; }
.cp-meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 0.8rem; }
.cp-meta a { color: #fff; font-weight: 600; text-decoration: none; }
.cp-meta a:hover { text-decoration: underline; }
.cp-handle, .cp-time { color: #8a8a9c; font-size: 0.74rem; }
.cp-del { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0; font-size: 0.8rem; transition: opacity 0.15s; }
.cp-item:hover .cp-del, .cp-del:focus { opacity: 0.7; }
.cp-del:hover { opacity: 1; }
.cp-text { margin-top: 3px; font-size: 0.88rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
#cpMore { align-self: center; }
.cp-replies { margin-left: 44px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid rgba(255, 255, 255, 0.06); padding-left: 8px; }
.cp-replies:empty { display: none; }
.cp-reply { padding: 8px; }
.cp-reply .cp-av { width: 26px; height: 26px; font-size: 0.72rem; }
.cp-creator { font-size: 0.66rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; color: var(--p-accent, #9b8cff); background: color-mix(in srgb, var(--p-accent, #9b8cff) 16%, transparent); }
.cp-reply-btn { margin-top: 4px; padding: 0; background: none; border: none; color: #8a8a9c; font: inherit; font-size: 0.74rem; font-weight: 600; cursor: pointer; }
.cp-reply-btn:hover { color: #fff; }
.cp-reply-form { margin: 4px 0 8px 54px; display: flex; flex-direction: column; gap: 6px; }
.cp-reply-form textarea {
  width: 100%; resize: vertical; min-height: 48px; padding: 8px 10px; border-radius: 10px; font: inherit; font-size: 0.84rem;
  background: #0a0a0f; color: #ececf3; border: 1px solid rgba(255, 255, 255, 0.1);
}
.cp-reply-form textarea:focus { outline: none; border-color: var(--p-accent, #9b8cff); }
.cp-reply-form .cp-form-row { justify-content: flex-end; gap: 8px; }
.cp-cancel, .cp-send { padding: 5px 12px; border-radius: 8px; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.12); background: none; color: #ececf3; }
.cp-send { background: var(--p-accent, #9b8cff); border-color: transparent; color: #0a0a0f; }
.cp-send:disabled { opacity: 0.6; cursor: default; }
@media (hover: none) { .cp-del { opacity: 0.7; } }
#reportBtn { margin-left: auto; background: none; border: none; cursor: pointer; opacity: 0.6; font-size: 0.95rem; }
#reportBtn:hover { opacity: 1; }

#notFound { position: relative; z-index: 10; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.nf-icon { font-size: 4rem; color: #9b8cff; text-shadow: 0 0 24px #9b8cff; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.ban-box {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(580px, 100%); padding: 28px 32px 30px;
  background: #111114; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px;
}
.ban-mark { font-size: 3.6rem; font-weight: 300; line-height: 1; color: #fff; }
.ban-box h1 { margin: 6px 0 0; font-size: 1.3rem; font-weight: 600; }
.ban-box h1 span { color: #9b8cff; }
.ban-box p { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.ban-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.ban-actions .btn { background: #18181c; border: 1px solid rgba(255, 255, 255, 0.07); }

#pronouns {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; vertical-align: 0.5em; font-size: 0.72rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.85; font-family: 'Inter', system-ui, sans-serif;
}
#pronouns[hidden] { display: none; }
#aliases { position: relative; z-index: 5; margin: 2px 0 0; font-size: 0.8rem; font-family: 'Inter', system-ui, sans-serif; text-shadow: none; color: color-mix(in srgb, currentColor 64%, transparent); }
#aliases b { font-weight: 600; color: var(--p-accent, inherit); }
.rarity-tip .rarity { align-self: flex-start; margin-bottom: 3px; }
.alias-item { position: relative; display: inline-block; cursor: help; outline: none; border-radius: 6px; }
.alias-item:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--r) 60%, transparent); }
.rarity-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 30; width: max-content; max-width: 220px; padding: 10px 12px; border-radius: 12px;
  display: flex; flex-direction: column; gap: 3px; text-align: left; white-space: normal; color: #fff; font-size: 0.78rem; line-height: 1.35;
  background: rgba(14, 14, 20, 0.96); border: 1px solid color-mix(in srgb, var(--r) 50%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--r) 25%, transparent);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; pointer-events: none;
}
.rarity-tip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: color-mix(in srgb, var(--r) 50%, transparent); }
.alias-item:hover .rarity-tip, .alias-item:focus-visible .rarity-tip, .alias-item.open .rarity-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.rarity-tip strong { color: var(--r); font-size: 0.85rem; }
.rarity-tip small { opacity: 0.7; }
.rarity-meter { display: flex; gap: 3px; margin: 4px 0 2px; }
.rarity-meter i { flex: 1; width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.rarity-meter i.on { background: var(--r); box-shadow: 0 0 6px color-mix(in srgb, var(--r) 60%, transparent); }
.rarity-tip ul { margin: 4px 0 0; padding: 0 0 0 14px; opacity: 0.85; }
.rarity-tip li { margin: 1px 0; }
#aliases[hidden] { display: none; }
#status {
  display: inline-flex; align-items: center; gap: 6px; margin: 8px auto 0; padding: 4px 12px; border-radius: 99px; font-size: 0.82rem; max-width: 100%;
  background: color-mix(in srgb, var(--p-accent) 12%, rgba(0, 0, 0, 0.25)); border: 1px solid color-mix(in srgb, var(--p-accent) 28%, transparent);
}
#status[hidden] { display: none; }
#status .st-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#status .st-emoji:empty { display: none; }

#avatarAlt {
  position: absolute; inset: 0; border-radius: 50%; background: center / cover no-repeat; background-origin: border-box; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, 0.1);
}
#avatarWrap.has-alt:hover #avatarAlt { opacity: 1; }
.av-clickable { cursor: pointer; }
.av-clickable:active #avatar { transform: scale(0.96); }
.av-spin { animation: av-spin 0.7s cubic-bezier(0.3, 0.7, 0.3, 1); }
.av-flip { animation: av-flip 0.8s ease; }
.av-wobble { animation: av-wobble 0.7s ease; }
.av-bounce { animation: av-bounce 0.7s cubic-bezier(0.3, 1.6, 0.5, 1); }
.av-jelly { animation: av-jelly 0.7s ease; }
@keyframes av-spin { to { transform: rotate(360deg); } }
@keyframes av-flip { to { transform: perspective(400px) rotateY(360deg); } }
@keyframes av-wobble { 15% { transform: rotate(-14deg); } 30% { transform: rotate(10deg); } 45% { transform: rotate(-7deg); } 60% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
@keyframes av-bounce { 30% { transform: translateY(-22px) scale(1.04); } 55% { transform: translateY(0) scale(1.06, 0.92); } 75% { transform: translateY(-6px); } }
@keyframes av-jelly { 25% { transform: scale(1.18, 0.85); } 45% { transform: scale(0.88, 1.12); } 65% { transform: scale(1.06, 0.95); } 85% { transform: scale(0.98, 1.02); } }

.fx-dropglow #name { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--p-accent) 70%, transparent)); }
.fx-gradient #name, .fx-chrome #name, .fx-fire #name, .fx-ice #name { -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-gradient #name { background-image: linear-gradient(90deg, var(--p-name-from, #ff6bd6), var(--p-name-to, #6ee7f9)); }
.fx-chrome #name {
  background-image: linear-gradient(100deg, #6d6d78 0%, #fdfdfd 18%, #8d8d99 32%, #ffffff 46%, #5b5b66 60%, #e6e6ee 80%, #7a7a86 100%);
  background-size: 250% 100%; animation: shine-sweep 4s linear infinite;
}
.fx-fire #name {
  background-image: linear-gradient(0deg, #ff2d00, #ff8a00 35%, #ffd93d 65%, #fff6c7);
  background-size: 100% 220%; animation: fire-flicker 1.4s ease-in-out infinite alternate;
}
.fx-fire.fx-dropglow #name { filter: drop-shadow(0 0 8px #ff6a00) drop-shadow(0 -2px 14px rgba(255, 60, 0, 0.6)); }
.fx-ice #name {
  background-image: linear-gradient(160deg, #ffffff 0%, #bdf4ff 30%, #5ecbff 55%, #e8fbff 70%, #7fd6ff 100%);
  background-size: 200% 200%; animation: shine-sweep 6s linear infinite;
}
.fx-ice.fx-dropglow #name { filter: drop-shadow(0 0 8px rgba(120, 220, 255, 0.8)); }
@keyframes shine-sweep { to { background-position: -250% 0; } }
@keyframes fire-flicker { 0% { background-position: 0 0%; } 50% { background-position: 0 40%; filter: brightness(1.15); } 100% { background-position: 0 100%; } }
.fx-neon #name {
  color: #fff; text-shadow: 0 0 4px #fff, 0 0 10px var(--p-accent), 0 0 22px var(--p-accent), 0 0 44px var(--p-accent);
  animation: neon-flicker 4s infinite;
}
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; text-shadow: none; }
}
.name-wave span { display: inline-block; animation: name-wave 1.8s ease-in-out infinite; }
@keyframes name-wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
.sparkle.burst { animation-duration: 1.1s; }

.glass-clear #card { backdrop-filter: none; }
.glass-tinted #card { background: color-mix(in srgb, var(--p-accent) 18%, var(--p-card)); backdrop-filter: blur(12px) saturate(140%); }
.glass-liquid #card {
  backdrop-filter: blur(26px) saturate(190%) brightness(1.05);
  border: 1px solid color-mix(in srgb, var(--p-accent) 45%, rgba(255, 255, 255, 0.25));
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 30px color-mix(in srgb, var(--p-accent) 18%, transparent);
}

.border-none #card { border-color: transparent; }
.border-solid #card { border: 2px solid var(--p-border); }
.border-dashed #card { border: 2px dashed var(--p-border); }
.border-glow #card { border: 1px solid var(--p-border); box-shadow: 0 0 26px color-mix(in srgb, var(--p-border) 55%, transparent), inset 0 0 14px color-mix(in srgb, var(--p-border) 22%, transparent); }
.border-pulse #card {
  border: 2px solid var(--p-border);
  box-shadow: 0 0 calc(8px + var(--beat, 0) * 46px) color-mix(in srgb, var(--p-border) calc(30% + var(--beat, 0) * 50%), transparent);
}
@property --rb-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.border-rainbow #card { border-color: transparent; }
.border-rainbow #card::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--rb-angle), #ff6b6b, #ffd93d, #6bff95, #6ee7f9, #9b8cff, #ff6bd6, #ff6b6b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rb-turn 4s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}
@keyframes rb-turn { to { --rb-angle: 360deg; } }
.layout-minimal #card::before { display: none; }
.border-none.glass-liquid #card { box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5), inset 0 0 30px color-mix(in srgb, var(--p-accent) 18%, transparent); }
.card-clear #card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.card-clear.glass-tinted #card { background: var(--p-card); }
.card-clear.border-none #card, .card-clear.border-subtle #card { border-color: transparent; box-shadow: none; }

.ag-card #card { background: transparent; }
.card-ag {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--ag-card); background-size: 300% 300%; animation: ag-shift var(--ag-dur, 9s) ease-in-out infinite;
}
.ag-page #bg { background: var(--ag-page); background-size: 300% 300%; animation: ag-shift var(--ag-dur, 9s) ease-in-out infinite; }
@keyframes ag-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

#overlay { position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: var(--ov-strength, 0.4); }
#overlay[hidden] { display: none; }
.ov-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay; animation: grain 0.6s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); } 60% { transform: translate(-2%, 6%); } 80% { transform: translate(5%, -2%); } }
.ov-scanlines, .ov-vhs { inset: 0; background: repeating-linear-gradient(rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 3px); }
.ov-vhs::before {
  content: ''; position: absolute; left: 0; right: 0; height: 18%; top: -20%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.04) 55%, transparent);
  animation: vhs-roll 6s linear infinite;
}
.ov-vhs::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7)); }
@keyframes vhs-roll { to { top: 110%; } }
.overlay-vhs #info { text-shadow: 1.5px 0 rgba(255, 0, 80, 0.45), -1.5px 0 rgba(0, 200, 255, 0.45); }
.overlay-vhs #info { animation: vhs-jitter 5s steps(1) infinite; }
@keyframes vhs-jitter { 0%, 96%, 100% { translate: 0; } 97% { translate: 2px 0; } 98% { translate: -2px 1px; } }

#bg.slideshow img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
#bg.slideshow img.on { opacity: 1; }
#bg { overflow: hidden; }
#bg .yt-bg {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100vw, calc(100lvh * var(--yt-ratio, 1.7778))); height: max(100lvh, calc(100vw / var(--yt-ratio, 1.7778)));
  transform: translate(-50%, -50%) scale(1.12); filter: blur(var(--p-blur));
}
.layout-fullscreen #bg .yt-bg { filter: none; transform: translate(-50%, -50%); }
#bg .yt-bg { opacity: 0; transition: opacity 0.6s; }
#bg .yt-bg.playing { opacity: 1; }
#bg .yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); filter: blur(var(--p-blur)); }
#bg .yt-thumb.hd { transform: scale(1.05); }
.layout-fullscreen #bg .yt-thumb { filter: none; }

#views { display: inline-flex; align-items: center; gap: 2px; }
.od-eye { display: inline-flex; margin-right: 5px; }
.counter-odometer .od-d {
  display: inline-block; width: 0.78em; height: 1.35em; overflow: hidden; border-radius: 3px; text-align: center; line-height: 1.35em;
  background: linear-gradient(#111, #2a2a2a 50%, #111); color: #f3f3f3; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.counter-odometer .od-d i { display: block; font-style: normal; transform: translateY(calc(var(--d, 0) * -1.35em)); transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.counter-odometer .od-d b { display: block; height: 1.35em; font-weight: 700; }
.counter-odometer .od-d:nth-child(3n + 2) i { transition-delay: 0.1s; }
.counter-flip .fl-d {
  position: relative; display: inline-block; min-width: 0.95em; padding: 2px 3px; border-radius: 4px; text-align: center; font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace; background: #1b1b22; color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.counter-flip .fl-d::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.6); }
.counter-flip .fl-d.flip { animation: flip-in 0.6s ease-out backwards; transform-origin: center; }
@keyframes flip-in { from { transform: perspective(200px) rotateX(-90deg); opacity: 0.3; } }
.counter-pixel {
  flex-direction: column; align-items: flex-start !important; gap: 3px !important; padding: 5px 8px; border-radius: 4px; opacity: 1 !important;
  background: #0b1a0b; border: 2px solid #1f3d1f; color: #57ff6a; font-family: 'Press Start 2P', monospace; image-rendering: pixelated;
  text-shadow: 0 0 6px rgba(87, 255, 106, 0.7);
}
.counter-pixel .pc-label { font-size: 0.42rem; opacity: 0.7; }
.counter-pixel .pc-num { font-size: 0.72rem; letter-spacing: 0.08em; }

.egg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 500; pointer-events: none; transition: opacity 0.6s; }
.egg-canvas.gone { opacity: 0; }
.egg-msg {
  position: fixed; left: 50%; top: 40%; z-index: 510; transform: translate(-50%, -50%); max-width: min(420px, 90vw); padding: 18px 24px; border-radius: 16px;
  text-align: center; font-size: 1.05rem; font-weight: 700; color: #fff; white-space: pre-wrap;
  background: rgba(10, 10, 16, 0.85); border: 1px solid var(--p-accent); box-shadow: 0 0 40px color-mix(in srgb, var(--p-accent) 50%, transparent);
  backdrop-filter: blur(10px); animation: egg-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); transition: opacity 0.5s, transform 0.5s;
}
.egg-msg.gone { opacity: 0; transform: translate(-50%, -60%); }
@keyframes egg-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } }
.egg-rainbow { animation: egg-hue 1s linear 3; }
@keyframes egg-hue { to { filter: hue-rotate(360deg); } }
.egg-shake #wrap { animation: egg-shake 0.6s; }
@keyframes egg-shake { 10%, 50%, 90% { transform: translate(-8px, 3px) rotate(-1deg); } 30%, 70% { transform: translate(8px, -3px) rotate(1deg); } }
#card.egg-flip { animation: egg-flip 1.1s cubic-bezier(0.4, 0, 0.2, 1) !important; }
@keyframes egg-flip { to { transform: perspective(900px) rotateY(360deg); } }

html:has(body.has-pages) { scroll-snap-type: y mandatory; }
.has-pages #wrap, .xpage { scroll-snap-align: start; scroll-snap-stop: always; }
.has-pages #wrap { padding-bottom: 96px; }
.has-pages.layout-fullscreen #wrap::before { display: none; }
#pagesHint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; background: none; border: none; cursor: pointer; color: var(--p-text); opacity: 0.75;
  font: 700 0.95rem var(--p-font), Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: opacity 0.3s; -webkit-tap-highlight-color: transparent;
}
#pagesHint:hover { opacity: 1; }
#pagesHint.gone { opacity: 0; pointer-events: none; }
#pagesHint svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: bob 2.4s ease-in-out infinite; }
#pages { position: relative; z-index: 10; }
.xpage { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 60px 20px; }
.xp-inner { width: min(620px, 100%); text-align: center; opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.xpage.in .xp-inner { opacity: 1; transform: none; }
.xp-title {
  margin: 0; font-family: var(--p-name-font, var(--p-font)), Inter, sans-serif; font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 800;
  line-height: 1.05; text-transform: uppercase; letter-spacing: -0.01em; overflow-wrap: anywhere;
  text-shadow: 0 0 22px color-mix(in srgb, var(--p-accent) 45%, transparent);
}
.xp-sub { margin: 10px 0 0; opacity: 0.6; font-size: 0.95rem; font-family: var(--p-bio-font, var(--p-font)), Inter, sans-serif; }
.xp-content { width: min(460px, 100%); margin: 28px auto 0; display: flex; flex-direction: column; gap: 14px; }
.xp-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.xp-content #socials { justify-content: center; }
.xg-grid { width: min(560px, 100%); margin: 28px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.xg-item {
  display: flex; flex-direction: column; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; text-align: left; color: inherit; font: inherit;
  background: var(--p-box); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.xg-item:hover, .xg-item:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--p-accent) 55%, transparent); box-shadow: 0 10px 28px color-mix(in srgb, var(--p-accent) 22%, transparent); outline: none; }
.xg-item img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: rgba(255, 255, 255, 0.04); }
.xg-text { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; font-family: 'Inter', system-ui, sans-serif; }
.xg-text b { font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xg-text small { font-size: 0.72rem; opacity: 0.65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .xg-grid { width: min(760px, calc(100vw - 40px)); margin-left: 50%; translate: -50% 0; grid-template-columns: repeat(3, 1fr); } }
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 56px 16px; opacity: 0; transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: 'Inter', system-ui, sans-serif; color: #fff;
}
.lightbox.open { opacity: 1; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; max-height: 100%; }
.lb-fig img { max-width: min(92vw, 1100px); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); border-radius: 12px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); transform: scale(0.96); transition: transform 0.2s ease; }
.lightbox.open .lb-fig img { transform: none; }
.lb-fig figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 0.9rem; }
.lb-fig figcaption span { font-size: 0.8rem; opacity: 0.7; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; border: none; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.12); transition: background 0.15s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 1rem; }
.lb-nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 1.8rem; line-height: 1; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; opacity: 0.7; }
@media (max-width: 600px) { .lb-nav { top: auto; bottom: 14px; margin-top: 0; } }
.xp-content #presence { max-width: none; width: 100%; box-sizing: border-box; }
.xp-content #presence[hidden] { display: none; }
.xp-body {
  margin-top: 28px; font-family: var(--p-bio-font, var(--p-font)), Inter, sans-serif; font-size: var(--p-bio-size, 15px);
  letter-spacing: var(--p-bio-spacing, 0); line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; opacity: 0.9;
}
#pageDots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 14px; }
#pageDots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 99px; background: var(--p-text); opacity: 0.35; cursor: pointer;
  transition: height 0.3s, opacity 0.3s;
}
#pageDots button:hover { opacity: 0.7; }
#pageDots button.on { height: 26px; opacity: 1; }
@media (hover: none) { #pageDots { right: 6px; gap: 4px; } #pageDots button { border: 7px solid transparent; background-clip: padding-box; width: 22px; height: 22px; } #pageDots button.on { height: 40px; } }
.embed #pageDots, .embed #pagesHint, .embed #pages { display: none; }

@media (prefers-reduced-motion: reduce) {
  .xp-inner { opacity: 1; transform: none; transition: none; }
  .ov-grain, .ov-vhs::before, .overlay-vhs #info, .fx-neon #name, .name-wave span, .card-ag, .ag-page #bg, .border-rainbow #card::before { animation: none !important; }
}

@media (max-width: 640px) {
  .layout-wide #card { grid-template-columns: 1fr; text-align: center; }
  .layout-wide #badges, .layout-wide #socials { justify-content: center; }
  .layout-wide #avatarWrap { width: 110px; height: 110px; }
  .layout-left #wrap { place-items: center; padding-left: 16px; }
  body:has(#audioCtl:not([hidden]), #editBtn:not([hidden])) #wrap { padding-top: 68px; }
  body:has(#socialBar:not([hidden])) #wrap { padding-bottom: 78px; }
  body.has-pages:has(#socialBar:not([hidden])) #wrap { padding-bottom: 150px; }
  body:has(#socialBar:not([hidden])) #pagesHint { bottom: 76px; }
  .xpage { padding: 60px 30px 90px; }
  .has-pages #wrap { padding-left: 30px; padding-right: 30px; }
  #socialBar { left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  #card { padding: 28px 18px 16px; }
  #banner { margin: -28px -18px 0; }
  #name { font-size: min(var(--p-name-size, 2rem), 9vw); overflow-wrap: anywhere; }
  .cp-box { width: 100%; }
}
