/* Public profile pages (zenvy.lol/<username>). Per-profile values arrive as CSS variables set by bio.js. */
:root {
  --accent: #8fb4ff; --bg: #07080c; --text: #eceef3; --card-alpha: .25; --card-blur: 16px;
  --bg-blur: 0px; --bg-dim: .35;
  --line: rgb(255 255 255 / .09); --soft: rgb(255 255 255 / .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.font-serif { --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
body.font-mono { --font: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
body.font-rounded { --font: ui-rounded, "SF Pro Rounded", "Varela Round", "Nunito", system-ui, sans-serif; }
body.font-hand { --font: "Bradley Hand", "Segoe Print", "Comic Neue", "Chalkboard SE", cursive; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.bio-page { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* background */
.bio-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.bio-bg-media { position: absolute; inset: calc(var(--bg-blur) * -2); width: calc(100% + var(--bg-blur) * 4); height: calc(100% + var(--bg-blur) * 4); object-fit: cover; filter: blur(var(--bg-blur)); }
.bio-bg-dim { position: absolute; inset: 0; background: rgb(0 0 0 / var(--bg-dim)); }
.bio-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }

/* enter screen */
.bio-enter { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgb(0 0 0 / .82); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  font-size: .95rem; letter-spacing: .04em; opacity: 1; transition: opacity .7s ease, visibility .7s; }
.bio-enter span { opacity: .7; animation: breathe 2.6s ease-in-out infinite; }
.bio-enter.is-gone { opacity: 0; visibility: hidden; }
@keyframes breathe { 50% { opacity: .35; } }

/* layout */
.bio-main { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 16px 2rem; }
.bio-card { position: relative; width: 100%; max-width: 640px; padding: 1.1rem 1.4rem 1.3rem; border-radius: 18px;
  background: rgb(14 15 20 / var(--card-alpha)); border: 1px solid var(--line);
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 24px 70px rgb(0 0 0 / .35); transition: transform .3s ease; }

.bio-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.bio-tabs { display: flex; gap: .2rem; }
.bio-tabs button { border: 0; background: none; padding: .3rem .7rem; border-radius: 8px; font-size: .78rem; cursor: pointer; opacity: .5; transition: opacity .15s, background .15s; }
.bio-tabs button:hover { opacity: .85; }
.bio-tabs button[aria-selected="true"] { opacity: 1; background: var(--soft); font-weight: 600; }
.bio-views { margin: 0; display: flex; align-items: center; gap: .35rem; font-size: .8rem; opacity: .65; font-variant-numeric: tabular-nums; }

/* identity */
.bio-id { display: flex; align-items: center; gap: 1.1rem; }
.bio-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; background: #15161c; border: 1px solid var(--line); }
.bio-avatar-empty { display: grid; place-items: center; font-size: 2.2rem; font-weight: 600; }
.bio-id-text { min-width: 0; }
.bio-name { margin: 0; font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .5rem; }
.bio-meta { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .86rem; opacity: .65; }
.bio-meta span { display: inline-flex; align-items: center; gap: .35rem; }

.name-glow { text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); }
.name-gradient { background: linear-gradient(90deg, var(--text) 20%, var(--accent), var(--text) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 5s linear infinite; }
.name-rainbow { background: linear-gradient(90deg, #ff8a8a, #ffd28a, #f6f58a, #9df0b0, #8fd8ff, #b7a8ff, #ff8a8a); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slide 8s linear infinite; }
.name-sparkle { text-shadow: 0 0 10px rgb(255 255 255 / .35); }
.name-sparkle::after { content: "✦"; font-size: .5em; color: var(--accent); animation: twinkle 2s ease-in-out infinite; }
.name-gradient .bio-badges, .name-rainbow .bio-badges { -webkit-text-fill-color: initial; }
@keyframes slide { to { background-position: 200% 0; } }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.8); } }

.bio-badges { display: inline-flex; gap: .25rem; vertical-align: middle; }
.bio-badge { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--badge, var(--accent)); cursor: default; }
.bio-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); width: max-content; max-width: 220px; padding: .4rem .6rem; border-radius: 8px;
  font: 400 .75rem/1.35 ui-sans-serif, system-ui, sans-serif; color: #eceef3; background: rgb(12 13 18 / .96); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: .15s ease; pointer-events: none; z-index: 5; text-align: left; letter-spacing: 0; }
.bio-tip strong { display: block; font-weight: 600; }
.bio-badge:hover .bio-tip, .bio-badge:focus .bio-tip, .bio-icon:hover .bio-tip, .bio-icon:focus-visible .bio-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.bio-text { margin: 1.1rem 0 0; line-height: 1.55; font-size: .98rem; opacity: .9; overflow-wrap: anywhere; min-height: 1.55em; }
.bio-text[data-typewriter]::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* icon row */
.bio-icons { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.bio-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); opacity: .8; transition: opacity .15s, background .15s, transform .15s; }
.bio-icon:hover { opacity: 1; background: rgb(255 255 255 / .12); transform: translateY(-1px); }
.bio-icon .pi, .bio-link .pi { width: 17px; height: 17px; }

/* links tab */
.bio-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bio-link { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; text-decoration: none; background: var(--soft); border: 1px solid transparent; transition: border-color .15s, background .15s; }
.bio-link:hover { border-color: var(--line); background: rgb(255 255 255 / .09); }
.bio-link-title { font-weight: 600; font-size: .92rem; }
.bio-link-host { margin-left: auto; font-size: .78rem; opacity: .5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* player */
.bio-player { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.bio-player-label { margin: 0 0 .6rem; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .45; font-family: ui-sans-serif, system-ui, sans-serif; }
.bio-player-row { display: flex; align-items: center; gap: .8rem; }
.bio-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--soft); }
.bio-cover-empty { display: grid; place-items: center; opacity: .6; }
.bio-track { flex: 1; min-width: 0; }
.bio-song, .bio-artist { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-song { font-size: .9rem; font-weight: 600; } .bio-artist { font-size: .78rem; opacity: .55; margin-top: .1rem; }
.bio-controls { display: flex; align-items: center; gap: .35rem; }
.bio-ctl { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; cursor: pointer; opacity: .6; }
.bio-ctl:hover { opacity: 1; }
.bio-play { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; color: #07080c; background: #f2f3f6; }
.bio-play .i-pause, .bio-player.is-playing .i-play { display: none; }
.bio-player.is-playing .i-pause { display: block; }
.bio-vol input { width: 64px; accent-color: var(--text); opacity: .6; }
.bio-progress { margin-top: .8rem; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .1); overflow: hidden; cursor: pointer; }
.bio-progress span { display: block; height: 100%; width: 0; background: var(--text); opacity: .8; }

.bio-foot { margin-top: 1.2rem; display: flex; gap: 1.2rem; font-size: .76rem; opacity: .4; font-family: ui-sans-serif, system-ui, sans-serif; }
.bio-foot a { text-decoration: none; } .bio-foot a:hover { text-decoration: underline; }

/* cursors */
body.cursor-dot, body.cursor-dot * { cursor: none; }
.bio-cursor { position: fixed; top: 0; left: 0; z-index: 100; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--text); pointer-events: none; mix-blend-mode: difference; transition: width .15s, height .15s, margin .15s; }
.bio-cursor.is-hover { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.bio-trail { position: fixed; inset: 0; z-index: 99; pointer-events: none; }
/* Dark cursors (images); the animated ones add an effect on top */
body.cursor-skull, body.cursor-skull * { cursor: url("../img/cursors/skull.de9b2dad51e2.svg") 16 16, auto; }
body.cursor-dagger, body.cursor-dagger * { cursor: url("../img/cursors/dagger.903550dbcd2e.svg") 1 1, auto; }
body.cursor-moon, body.cursor-moon * { cursor: url("../img/cursors/moon.7f2962f37560.svg") 16 16, auto; }
body.cursor-eye, body.cursor-eye * { cursor: url("../img/cursors/eye.aa5c11991514.svg") 16 16, auto; }
body.cursor-bat, body.cursor-bat * { cursor: url("../img/cursors/bat.d0c6414ed5ff.svg") 16 16, auto; }
body.cursor-spider, body.cursor-spider * { cursor: url("../img/cursors/spider.a9c1be6b0438.svg") 16 16, auto; }
body.cursor-shadow, body.cursor-shadow *, body.cursor-smoke, body.cursor-smoke *, body.cursor-wisps, body.cursor-wisps *, body.cursor-bats, body.cursor-bats *, body.cursor-runes, body.cursor-runes *, body.cursor-echo, body.cursor-echo * { cursor: url("../img/cursors/shadow.e7b78d830907.svg") 4 3, auto; }
body.cursor-blood, body.cursor-blood *, body.cursor-embers, body.cursor-embers *, body.cursor-bleed, body.cursor-bleed * { cursor: url("../img/cursors/blood.d36fa8bbc455.svg") 4 3, auto; }
body.cursor-sigil, body.cursor-sigil * { cursor: url("../img/cursors/sigil.5ffd16116226.svg") 16 16, auto; }
body.cursor-void, body.cursor-void *, body.cursor-eclipse, body.cursor-eclipse *, body.cursor-eyespin, body.cursor-eyespin * { cursor: none; }
.bio-follow { position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none; }
.bio-follow svg { display: block; width: 100%; height: 100%; }
.bio-eclipse { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.bio-eclipse svg { animation: bio-spin 4s linear infinite; filter: drop-shadow(0 0 8px #ff5a1a); }
.bio-eyespin { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.bio-eyespin svg { animation: bio-spin 3s linear infinite; filter: drop-shadow(0 0 6px #9b6bff); }
@keyframes bio-spin { to { transform: rotate(360deg); } }
.bio-void { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgb(0 0 0 / .55); border: 2px solid #8b5cf6; box-shadow: 0 0 16px #8b5cf6, inset 0 0 12px #000; animation: bio-pulse 1.2s ease-in-out infinite; }
.bio-void-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #e9e6f2; z-index: 101; }
@keyframes bio-pulse { 50% { scale: 1.25; } }

/* unavailable / small pages */
.bio-simple { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; text-align: center; }
.bio-simple h1 { font-size: 1.4rem; margin: 0 0 .5rem; }
.bio-simple p { opacity: .65; max-width: 42ch; }

@media (max-width: 560px) {
  .bio-card { padding: 1rem 1rem 1.1rem; }
  .bio-id { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .bio-avatar { width: 76px; height: 76px; }
  .bio-name { font-size: 1.45rem; }
  .bio-vol, .bio-link-host { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .name-gradient, .name-rainbow, .name-sparkle::after, .bio-enter span, .bio-text[data-typewriter]::after { animation: none; }
  .bio-card, .bio-icon { transition: none; }
}

/* ---- options ---- */
:root { --text-2: #9a9eaa; --card-radius: 18px; --card-border: 1px solid var(--line); --icon-color: currentColor; --icon-scale: 1; --glow: 6px; --avatar-radius: 50%; }
.bio-card { border-radius: var(--card-radius); border: var(--card-border); }
.has-gradient .bio-card { background: var(--card-bg); }
.has-gradient .bio-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(0 0 0 / calc(1 - var(--card-alpha))); pointer-events: none; z-index: -1; }
.bio-avatar { border-radius: var(--avatar-radius); }
.bio-meta, .bio-artist, .bio-link-host, .bio-views { color: var(--text-2); opacity: 1; }
.text-glow .bio-card { text-shadow: 0 0 10px color-mix(in srgb, var(--text) 45%, transparent); }
.bio-icon { width: calc(36px * var(--icon-scale)); height: calc(36px * var(--icon-scale)); color: var(--icon-color); }
.bio-icon .pi { width: calc(17px * var(--icon-scale)); height: calc(17px * var(--icon-scale)); }
.icons-glow .bio-icon .pi { filter: drop-shadow(0 0 var(--glow) var(--icon-color, var(--accent))); }
.bio-link .pi { color: var(--icon-color); }
.align-center .bio-icons { justify-content: center; } .align-right .bio-icons { justify-content: flex-end; }
.no-tip-badges .bio-badge .bio-tip, .no-tip-links .bio-icon .bio-tip { display: none; }
/* hover effects */
.hover-lift .bio-card:hover { transform: translateY(-4px); }
.hover-glow .bio-card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 50px color-mix(in srgb, var(--accent) 30%, transparent); }
.hover-pulse .bio-card:hover { animation: pulse 1.6s ease-in-out infinite; }
.hover-shake .bio-card:hover { animation: shake .45s ease-in-out; }
@keyframes pulse { 50% { transform: scale(1.012); } }
@keyframes shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
/* centered layout */
.layout-centered .bio-card { max-width: 440px; text-align: center; }
.layout-centered .bio-top { justify-content: center; position: relative; } .layout-centered .bio-views { position: absolute; right: 0; }
.layout-centered .bio-id { flex-direction: column; } .layout-centered .bio-name, .layout-centered .bio-meta, .layout-centered .bio-icons { justify-content: center; }
.layout-centered .bio-player-row, .layout-centered .bio-link { text-align: left; }
/* likes */
.bio-react { margin-top: 1rem; display: flex; gap: .4rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.bio-react form { display: flex; gap: .4rem; }
.bio-react button, .bio-react > span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: rgb(14 15 20 / .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .8rem; cursor: pointer; opacity: .75; }
.bio-react button:hover { opacity: 1; } .bio-react button[aria-pressed="true"] { opacity: 1; border-color: var(--accent); color: var(--accent); }
.bio-react > span { cursor: default; }
/* sign-up prompt */
.bio-cta { position: fixed; z-index: 60; left: 50%; bottom: 18px; display: flex; align-items: center; gap: .8rem; width: max-content; max-width: calc(100vw - 32px);
  padding: .65rem .7rem .65rem 1rem; border-radius: 16px; background: rgb(12 13 18 / .88); border: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgb(0 0 0 / .5); font: 400 .85rem/1.35 ui-sans-serif, system-ui, sans-serif; color: #eceef3; transform: translate(-50%, 20px); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s; }
.bio-cta.is-in { transform: translate(-50%, 0); opacity: 1; }
.bio-cta p { margin: 0; } .bio-cta strong { display: block; font-weight: 600; } .bio-cta span { color: #9a9eaa; font-size: .78rem; }
.bio-cta-btn { padding: .5rem .95rem; border-radius: 999px; background: #f2f3f6; color: #07080c; text-decoration: none; font-weight: 600; white-space: nowrap; }
.bio-cta-x { border: 0; background: none; color: #9a9eaa; font-size: 1.2rem; line-height: 1; padding: .2rem .4rem; cursor: pointer; }
@media (max-width: 480px) { .bio-cta span { display: none; } }
@media (prefers-reduced-motion: reduce) { .bio-cta { transition: none; } .hover-pulse .bio-card:hover, .hover-shake .bio-card:hover { animation: none; } }

/* ---- fonts, layouts, entry animations ---- */
body.font-display { --font: Impact, "Haettenschweiler", "Arial Black", "Franklin Gothic Bold", sans-serif; }
body.font-condensed { --font: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; }
body.font-gothic { --font: "Old English Text MT", "UnifrakturCook", "Luminari", fantasy; }
.layout-minimal .bio-card { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.layout-minimal .bio-card { text-shadow: 0 2px 18px rgb(0 0 0 / .6); }
.bio-card { opacity: 1; }
body:not(.is-entered):not(.entry-none) .bio-card { opacity: 0; }
.entry-fade.is-entered .bio-card { animation: e-fade .9s ease both; }
.entry-rise.is-entered .bio-card { animation: e-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.entry-zoom.is-entered .bio-card { animation: e-zoom .8s cubic-bezier(.2, .8, .2, 1) both; }
.entry-blur.is-entered .bio-card { animation: e-blur 1s ease both; }
@keyframes e-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes e-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes e-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes e-blur { from { opacity: 0; filter: blur(16px); } to { opacity: 1; filter: none; } }
.is-preview .bio-card { opacity: 1 !important; animation: none !important; }

/* ---- Spotify ---- */
.bio-spotify { margin-top: 1.1rem; }
.bio-spotify-load { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: rgb(30 215 96 / .08); color: #1ed760; cursor: pointer; text-align: left; font-family: ui-sans-serif, system-ui, sans-serif; }
.bio-spotify-load:hover { background: rgb(30 215 96 / .14); }
.bio-spotify-load strong { display: block; color: var(--text); font-size: .9rem; } .bio-spotify-load small { color: var(--text-2); font-size: .74rem; }
.bio-spotify-frame { width: 100%; border: 0; border-radius: 12px; display: block; }

/* ---- animated background gallery (original artwork, pure CSS) ---- */
.bio-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; will-change: transform; }
@keyframes bd-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, -6vh) scale(1.15); } 100% { transform: translate(-6vw, 5vh) scale(.95); } }
.bio-bg[class*="backdrop-"] i { animation: bd-drift 26s ease-in-out infinite alternate; }
.bio-bg[class*="backdrop-"] i:nth-child(2) { animation-duration: 32s; animation-delay: -8s; }
.bio-bg[class*="backdrop-"] i:nth-child(3) { animation-duration: 40s; animation-delay: -16s; }
.backdrop-aurora { background: #040610; }
.backdrop-aurora i:nth-child(1) { width: 70vw; height: 45vh; left: -10vw; top: 5vh; background: #12a37c; }
.backdrop-aurora i:nth-child(2) { width: 60vw; height: 40vh; right: -15vw; top: 25vh; background: #3a5bd9; }
.backdrop-aurora i:nth-child(3) { width: 50vw; height: 35vh; left: 25vw; bottom: -10vh; background: #7b3fd1; opacity: .5; }
.backdrop-ocean { background: #02070f; }
.backdrop-ocean i:nth-child(1) { width: 90vw; height: 60vh; left: -20vw; bottom: -25vh; background: #0b3d91; }
.backdrop-ocean i:nth-child(2) { width: 60vw; height: 50vh; right: -20vw; top: -10vh; background: #0f6e8c; }
.backdrop-ocean i:nth-child(3) { width: 40vw; height: 30vh; left: 30vw; top: 30vh; background: #1d9bb8; opacity: .35; }
.backdrop-sunset { background: #120610; }
.backdrop-sunset i:nth-child(1) { width: 80vw; height: 55vh; left: -10vw; bottom: -20vh; background: #ff6b3d; opacity: .55; }
.backdrop-sunset i:nth-child(2) { width: 60vw; height: 45vh; right: -15vw; bottom: 5vh; background: #e0336f; }
.backdrop-sunset i:nth-child(3) { width: 70vw; height: 40vh; left: 10vw; top: -15vh; background: #4a1e78; }
.backdrop-nebula { background: #06040d; }
.backdrop-nebula i:nth-child(1) { width: 55vw; height: 55vh; left: 5vw; top: 5vh; background: #8a2be2; }
.backdrop-nebula i:nth-child(2) { width: 45vw; height: 45vh; right: 0; bottom: 0; background: #ff3d9a; opacity: .45; }
.backdrop-nebula i:nth-child(3) { width: 35vw; height: 35vh; left: 40vw; top: 35vh; background: #2d6bff; opacity: .5; }
.backdrop-nebula::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 60%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 20%, #fff, transparent), radial-gradient(1px 1px at 10% 75%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #fff, transparent); opacity: .7; }
.backdrop-forest { background: linear-gradient(#030806, #071510); }
.backdrop-forest i:nth-child(1) { width: 80vw; height: 50vh; left: -10vw; bottom: -20vh; background: #0f5a43; }
.backdrop-forest i:nth-child(2) { width: 50vw; height: 40vh; right: -10vw; top: 10vh; background: #1b3d2e; }
.backdrop-forest i:nth-child(3) { width: 30vw; height: 25vh; left: 45vw; top: 20vh; background: #6fd3a8; opacity: .18; }
.backdrop-grid { background: linear-gradient(#0a0414 40%, #1a0630); overflow: hidden; }
.backdrop-grid::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%; background-image: linear-gradient(rgb(255 70 200 / .55) 1px, transparent 1px), linear-gradient(90deg, rgb(255 70 200 / .55) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(400px) rotateX(62deg); transform-origin: bottom; animation: bd-grid 3s linear infinite; mask-image: linear-gradient(transparent, #000 40%); -webkit-mask-image: linear-gradient(transparent, #000 40%); }
.backdrop-grid i:nth-child(1) { width: 40vw; height: 40vw; left: 30vw; top: 8vh; background: #ff6a3d; opacity: .5; filter: blur(30px); animation: none; }
.backdrop-grid i:nth-child(2), .backdrop-grid i:nth-child(3) { display: none; }
@keyframes bd-grid { to { background-position: 0 60px; } }
.backdrop-ember { background: #0a0504; }
.backdrop-ember i:nth-child(1) { width: 70vw; height: 40vh; left: 15vw; bottom: -20vh; background: #d4421f; }
.backdrop-ember i:nth-child(2) { width: 40vw; height: 30vh; left: 0; bottom: 0; background: #ff8a2a; opacity: .45; }
.backdrop-ember i:nth-child(3) { width: 40vw; height: 30vh; right: 0; bottom: 5vh; background: #a3122a; opacity: .5; }
.backdrop-noir { background: radial-gradient(120% 90% at 50% 0%, #1b1b1f, #050506 70%); }
.backdrop-noir i:nth-child(1) { width: 50vw; height: 30vh; left: 25vw; top: -10vh; background: #ffffff; opacity: .08; }
.backdrop-noir i:nth-child(2), .backdrop-noir i:nth-child(3) { display: none; }
@media (prefers-reduced-motion: reduce) { .bio-bg i, .backdrop-grid::before, .bio-card { animation: none !important; } }

/* ---- banner, animated border, widgets, projects ---- */
.bio-banner { display: block; width: calc(100% + 2.8rem); max-width: none; height: 140px; object-fit: cover; margin: -1.1rem -1.4rem 1rem; border-radius: var(--card-radius) var(--card-radius) 0 0; }
@media (max-width: 560px) { .bio-banner { width: calc(100% + 2rem); margin: -1rem -1rem .9rem; height: 110px; } }
.has-anim-border .bio-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--accent) 85%, #fff 90%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.bio-icon { font: inherit; cursor: pointer; }
button.bio-link { width: 100%; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.bio-widgets { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.bio-w { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; background: var(--soft); border: 1px solid var(--line); color: var(--text-2); max-width: 100%; }
.bio-w span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-w-city { opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #747f8d; }
.dot-online { background: #23a55a; } .dot-idle { background: #f0b232; } .dot-dnd { background: #f23f43; }
.bio-skills { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.bio-skills li { padding: .25rem .65rem; border-radius: 999px; font-size: .78rem; background: var(--soft); border: 1px solid var(--line); }
.bio-projects { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bio-projects li > a, .bio-projects li > strong { display: grid; gap: .15rem; padding: .75rem .85rem; border-radius: 12px; background: var(--soft); text-decoration: none; }
.bio-projects li > a:hover { background: rgb(255 255 255 / .09); }
.bio-projects span { font-size: .82rem; color: var(--text-2); }
.bio-server { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; background: rgb(88 101 242 / .12); border: 1px solid rgb(88 101 242 / .25); font-family: ui-sans-serif, system-ui, sans-serif; }
.bio-server[hidden] { display: none; }
.bio-server-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #5865f2; color: #fff; flex: none; }
.bio-server > span:nth-child(2) { flex: 1; min-width: 0; } .bio-server strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-server small { color: var(--text-2); font-size: .75rem; }
.bio-server-join { padding: .4rem .85rem; border-radius: 8px; background: #23a55a; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .has-anim-border .bio-card::after { animation: none; } }
.bio-roblox { margin-top: 1rem; display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border-radius: 14px; text-decoration: none; background: var(--soft); border: 1px solid var(--line); font-family: ui-sans-serif, system-ui, sans-serif; transition: background .15s; }
.bio-roblox[hidden] { display: none; } .bio-roblox:hover { background: rgb(255 255 255 / .09); }
.bio-roblox img { width: 52px; height: 52px; border-radius: 12px; background: #2a2c34; flex: none; }
.bio-roblox-id { flex: 1; min-width: 0; display: grid; } .bio-roblox-id strong, .bio-roblox-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-roblox-id small, .bio-roblox-stats small { color: var(--text-2); font-size: .74rem; }
.bio-roblox-stats { display: grid; text-align: center; min-width: 58px; } .bio-roblox-stats b { font-size: .95rem; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .bio-roblox-stats:last-child { display: none; } }
.bio-roblox { position: relative; }
.bio-roblox-logo { position: absolute; top: .55rem; right: .6rem; opacity: .55; }
.bio-roblox .bio-roblox-stats:last-of-type { margin-right: .9rem; }
/* staff: give badges */
.staff-badges { position: relative; display: inline-block; margin-top: .4rem; font-family: ui-sans-serif, system-ui, sans-serif; }
.staff-badges summary { list-style: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; font-weight: 600; line-height: 1; color: var(--text); background: var(--soft); border: 1px dashed rgb(255 255 255 / .3); transition: background .15s, transform .2s; }
.staff-badges summary::-webkit-details-marker { display: none; }
.staff-badges summary:hover { background: rgb(255 255 255 / .12); }
.staff-badges[open] summary { transform: rotate(45deg); }
.staff-panel { position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: min(420px, 82vw); padding: .8rem; border-radius: 14px; background: rgb(14 15 20 / .97); border: 1px solid var(--line); box-shadow: 0 24px 60px rgb(0 0 0 / .55); animation: sp-pop .2s ease both; }
@keyframes sp-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.staff-panel-title { margin: 0 0 .6rem; font-size: .82rem; font-weight: 600; } .staff-panel-title small { color: var(--text-2); font-weight: 400; margin-left: .3rem; }
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; max-height: 300px; overflow-y: auto; }
.staff-grid form { margin: 0; }
.sb { width: 100%; display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: .8rem; cursor: pointer; text-align: left; }
.sb svg { color: var(--sb, var(--accent)); flex: none; } .sb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb:hover { background: var(--soft); color: var(--text); }
.sb.is-on { color: var(--text); border-color: color-mix(in srgb, var(--sb, var(--accent)) 60%, transparent); background: color-mix(in srgb, var(--sb, var(--accent)) 14%, transparent); }
.sb.is-on::after { content: "✓"; margin-left: auto; color: var(--sb, var(--accent)); }

/* staff moderation panel */
.staff-mod summary { display: inline-grid; place-items: center; }
.mod-state { margin: 0 0 .6rem; padding: .5rem .65rem; border-radius: 8px; font-size: .78rem; background: rgb(255 180 60 / .1); color: #ffcf85; }
.mod-form { display: grid; gap: .4rem; }
.mod-delete { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid rgb(255 255 255 / .08); }
.mod-reason { width: 100%; padding: .55rem .7rem; border-radius: 8px; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04); color: inherit; font: inherit; font-size: .82rem; }
.mod-btn { display: grid; gap: .1rem; text-align: left; padding: .55rem .7rem; border-radius: 9px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); color: inherit; font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.mod-btn b { font-size: .85rem; font-weight: 600; } .mod-btn small { font-size: .72rem; opacity: .6; }
.mod-btn:hover { background: rgb(255 255 255 / .07); }
.mod-warn b { color: #ffb15c; } .mod-warn:hover { border-color: rgb(255 177 92 / .4); }
.mod-danger b { color: #ff5c7a; } .mod-danger:hover { border-color: rgb(255 92 122 / .45); background: rgb(255 92 122 / .08); }

/* ---- Stacked layout: avatar, name, then rounded cards and widgets in one centred column ---- */
.st { position: relative; width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.st-banner { width: 100%; max-height: 180px; object-fit: cover; border-radius: 22px; margin-bottom: -56px; }
.st-avatar { position: relative; width: 128px; height: 128px; border: 3px solid rgb(255 255 255 / .9); box-shadow: 0 10px 40px rgb(0 0 0 / .5); }
.st-name-row { position: relative; display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1rem 0 .2rem; flex-wrap: wrap; }
.st-name { margin: 0; font-size: clamp(1.8rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.st-tagline { margin: 0 0 .2rem; opacity: .6; font-size: .92rem; }
.st-bio { margin: .4rem 0 0; max-width: 46ch; opacity: .85; line-height: 1.55; }
.st-pill { display: inline-flex; align-items: center; gap: .45rem; margin: .8rem 0 0; padding: .35rem .8rem; border-radius: 99px; background: rgb(14 15 20 / .55); border: 1px solid var(--line); font-size: .82rem; }
.st-card { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 26px; text-align: left;
  background: rgb(10 10 12 / calc(var(--card-alpha) + .45)); border: 1.5px solid rgb(255 255 255 / .14); backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur)); }
.st-card strong { font-size: 1.12rem; font-weight: 700; }
.st-sub { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .25rem 0 .55rem; font-size: .82rem; opacity: .65; }
.st-sub span { display: inline-flex; align-items: center; gap: .3rem; } .st-sub b { font-weight: 500; }
.st-corner { position: absolute; top: .7rem; right: 1rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .66rem; opacity: .4; }
.st-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 99px; background: #f4f4f6; color: #0a0a0c; font-size: .74rem; font-weight: 600; text-decoration: none; transition: background .15s, transform .15s; }
.st-btn:hover { background: #fff; transform: translateY(-1px); }
.st-btn[hidden] { display: none; }
.st-roblox { margin-top: 1.4rem; width: min(100%, 330px); }
.st-roblox-img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: #1a1a1f; flex: none; }
.st-server { margin-top: .8rem; width: min(100%, 330px); }
.st-server[hidden] { display: none; }
.st-icons { justify-content: center; gap: .9rem; margin-top: 1.4rem; }
.st-icons .bio-icon { background: transparent; border: 0; opacity: 1; width: auto; height: auto; }
.st-icons .bio-icon .pi { width: calc(30px * var(--icon-scale, 1)); height: calc(30px * var(--icon-scale, 1)); }
.st-icons .bio-icon:hover { transform: translateY(-2px) scale(1.06); }
.st-meta { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; padding: 0 1.2rem; font-size: .92rem; }
.st-meta p { display: flex; align-items: center; gap: .75rem; margin: 0; }
.st-meta p span { display: inline-flex; align-items: center; gap: .35rem; } .st-meta b { font-weight: 600; }
.st-meta i { width: 1px; height: 14px; background: rgb(255 255 255 / .3); }
.st-react form, .st-react { display: flex; gap: .4rem; }
.st-react button, .st-react a { display: grid; place-items: center; padding: .25rem; border: 0; background: none; cursor: pointer; opacity: .75; transition: opacity .15s, transform .15s; }
.st-react button:hover, .st-react a:hover { opacity: 1; transform: translateY(-1px); }
.st-react [aria-pressed="true"] { opacity: 1; color: var(--accent); }
.st-widgets { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; margin-top: 2.2rem; }
.st-dial { width: 74px; height: 74px; flex: none; }
.st-dial-face { fill: #111114; stroke: rgb(255 255 255 / .18); stroke-width: 2; }
.st-tick { stroke: rgb(255 255 255 / .5); stroke-width: 2; stroke-linecap: round; }
.st-h { stroke: #f4f4f6; stroke-width: 4; stroke-linecap: round; } .st-m { stroke: #f4f4f6; stroke-width: 3; stroke-linecap: round; }
.st-s { stroke: #ff3b4e; stroke-width: 1.4; stroke-linecap: round; } .st-pin { fill: #f4f4f6; }
.st-clock small { font-weight: 400; font-size: .85rem; opacity: .55; }
.st-weather { min-height: 104px; }
.st-wx { width: 74px; height: 74px; flex: none; display: grid; place-items: center; border-radius: 16px; background: rgb(255 255 255 / .05); font-size: 1.9rem; }
.st-player { width: 100%; margin-top: 1.8rem; padding: 0 1.2rem; text-align: left; }
.st-track { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.st-cover { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.st-song { margin: 0; font-weight: 700; } .st-artist { margin: .1rem 0 0; font-size: .85rem; opacity: .6; }
.st-on { margin-left: auto; font-size: .72rem; opacity: .5; text-decoration: none; } .st-on:hover { opacity: .9; }
.st-controls { display: flex; align-items: center; gap: .6rem; }
.st-play { width: 34px; height: 34px; }
.st-time { font-size: .78rem; opacity: .65; font-variant-numeric: tabular-nums; min-width: 2.4em; }
.st-progress { position: relative; flex: 1; margin: 0; height: 5px; overflow: visible; background: rgb(255 255 255 / .18); }
.st-progress span { position: relative; border-radius: 5px; opacity: 1; }
.st-progress span::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--text); }
.st-vol { width: 80px; }
@media (max-width: 560px) {
  .st-avatar { width: 108px; height: 108px; }
  .st-meta, .st-player { padding: 0 .3rem; }
  .st-time { display: none; }
}
.st-player .i-pause, .st-player.is-playing .i-play { display: none; }
.st-player.is-playing .i-pause { display: block; }
.st-skills { justify-content: center; margin-top: 1.2rem; }
.st-projects { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.st-projects a { display: grid; gap: .2rem; text-decoration: none; } .st-projects span { font-size: .82rem; opacity: .65; }
.bio-foot-form { display: inline; margin: 0; }
.bio-foot-form button { all: unset; cursor: pointer; } .bio-foot-form button:hover { text-decoration: underline; }
.bio-foot-form button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Discord card: avatar with status ring, name, activity or 'last seen' */
.bio-dc { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; padding: .75rem .9rem; border-radius: 16px;
  background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); text-align: left; }
.bio-dc-ava { position: relative; flex: none; width: 56px; height: 56px; }
.bio-dc-ava img, .bio-dc-fallback { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.bio-dc-fallback { display: grid; place-items: center; background: #5865f2; color: #fff; }
.bio-dc.has-ava .bio-dc-fallback { display: none; }
.bio-dc-fallback svg { width: 26px; height: 26px; }
.bio-dc-ava .dot { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #111; }
.bio-dc-id { display: grid; min-width: 0; } .bio-dc-id strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-dc-id small { opacity: .6; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layout-centered .bio-dc { max-width: 340px; margin-left: auto; margin-right: auto; }
/* music player as its own card under the profile */
.bio-player.bio-player-card { position: relative; width: 100%; max-width: 640px; margin: 14px auto 0; padding: 1rem 1.3rem 1.1rem;
  border-radius: var(--card-radius); border: var(--card-border); background: rgb(14 15 20 / var(--card-alpha));
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur)); box-shadow: 0 24px 70px rgb(0 0 0 / .35); }
.layout-minimal .bio-player-card { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.layout-centered .bio-player-card { max-width: 440px; }
body:not(.is-entered):not(.entry-none) .bio-player-card { opacity: 0; }
.entry-fade.is-entered .bio-player-card, .entry-rise.is-entered .bio-player-card, .entry-zoom.is-entered .bio-player-card, .entry-blur.is-entered .bio-player-card { animation: e-fade 1s .15s ease both; }

.bio-full { display: inline-block; margin-top: .15rem; font-size: .72rem; opacity: .55; color: inherit; text-decoration: none; }
.bio-full:hover { opacity: .9; text-decoration: underline; }
.bio-player-card .bio-cover { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
/* keep the HTML hidden attribute working on elements that set their own display */
.bio-dc[hidden], .bio-dc-ava img[hidden], .bio-player-card[hidden], .bio-spotify[hidden] { display: none !important; }

/* glitch name: RGB split + jitter */
.name-glitch { animation: name-glitch 2.6s steps(1, end) infinite; }
@keyframes name-glitch {
  0%, 86%, 100% { text-shadow: none; transform: none; }
  87% { text-shadow: -2px 0 #ff2d55, 2px 0 #2de2ff; transform: translateX(1px) skewX(-6deg); }
  89% { text-shadow: 3px 0 #ff2d55, -3px 0 #2de2ff; transform: translateX(-2px); }
  91% { text-shadow: -1px 1px #ff2d55, 1px -1px #2de2ff; transform: none; }
  93% { text-shadow: 2px 0 #ff2d55, -2px 0 #2de2ff; transform: translateX(1px) skewX(4deg); }
}
/* rotating bio */
.bio-text[data-rotate-bio] { transition: opacity .25s ease, transform .25s ease; min-height: 1.5em; }
.bio-text.is-swap { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: reduce) { .name-glitch { animation: none; } .bio-text[data-rotate-bio] { transition: none; } }

/* avatar decorations (original, CSS-only) */
.bio-ava-wrap { position: relative; display: inline-grid; place-items: center; flex: none; isolation: isolate; }
.st-ava-wrap { margin: 0 auto; }
.bio-deco { position: absolute; inset: -12%; pointer-events: none; border-radius: 50%; z-index: 1; }
.bio-deco b { position: absolute; display: block; }
.deco-halo { inset: auto; top: -22%; left: 12%; width: 76%; height: 22%; border-radius: 50%; border: 3px solid color-mix(in srgb, #ffe9a8 85%, var(--accent));
  box-shadow: 0 0 12px #ffe39a, inset 0 0 8px #ffe39a; animation: deco-bob 3s ease-in-out infinite; }
.deco-neon { background: conic-gradient(from 0deg, var(--accent), transparent 30%, var(--accent) 50%, transparent 80%, var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 6px var(--accent)); animation: deco-spin 4s linear infinite; }
.deco-orbit { animation: deco-spin 6s linear infinite; }
.deco-orbit b { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.deco-orbit b:nth-child(1) { top: -2px; left: calc(50% - 4px); } .deco-orbit b:nth-child(2) { bottom: 6%; right: 4%; width: 6px; height: 6px; }
.deco-orbit b:nth-child(3) { bottom: 6%; left: 4%; width: 5px; height: 5px; opacity: .7; } .deco-orbit b:nth-child(4) { display: none; }
.deco-flames { inset: -16%; background: radial-gradient(closest-side, transparent 72%, rgb(255 120 40 / .55) 82%, transparent 100%);
  filter: blur(1px); animation: deco-flicker 1.1s ease-in-out infinite alternate; }
.deco-flames b { bottom: 8%; width: 22%; height: 34%; border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%; background: linear-gradient(to top, #ff5a1f, #ffcf4a 70%, transparent);
  filter: blur(1.5px); transform-origin: bottom; animation: deco-flame 1s ease-in-out infinite alternate; }
.deco-flames b:nth-child(1) { left: 2%; } .deco-flames b:nth-child(2) { right: 2%; animation-delay: -.4s; }
.deco-flames b:nth-child(3) { left: 39%; bottom: -6%; animation-delay: -.7s; } .deco-flames b:nth-child(4) { display: none; }
.deco-sparkles b { width: 12px; height: 12px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 4px var(--accent)); animation: deco-twinkle 2.2s ease-in-out infinite; }
.deco-sparkles b:nth-child(1) { top: 0; right: 8%; } .deco-sparkles b:nth-child(2) { bottom: 6%; left: 2%; width: 9px; height: 9px; animation-delay: -.7s; }
.deco-sparkles b:nth-child(3) { top: 22%; left: -4%; width: 7px; height: 7px; animation-delay: -1.3s; } .deco-sparkles b:nth-child(4) { bottom: -2%; right: 18%; width: 8px; height: 8px; animation-delay: -1.8s; }
.deco-hearts b { bottom: 10%; width: 12px; height: 12px; background: #ff5c8a; clip-path: path("M6 11 C1 7 0 5 0 3.5 A3 3 0 0 1 6 2.5 A3 3 0 0 1 12 3.5 C12 5 11 7 6 11Z"); opacity: 0; animation: deco-rise 3.2s ease-in infinite; }
.deco-hearts b:nth-child(1) { left: 8%; } .deco-hearts b:nth-child(2) { right: 6%; animation-delay: -.8s; }
.deco-hearts b:nth-child(3) { left: 44%; animation-delay: -1.6s; } .deco-hearts b:nth-child(4) { right: 30%; animation-delay: -2.4s; }
.deco-frost { border: 3px solid rgb(190 235 255 / .85); box-shadow: 0 0 14px rgb(150 220 255 / .8), inset 0 0 10px rgb(150 220 255 / .5); }
.deco-frost b { width: 10px; height: 10px; background: #e8fbff; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: deco-twinkle 2.6s ease-in-out infinite; }
.deco-frost b:nth-child(1) { top: -4px; left: 46%; } .deco-frost b:nth-child(2) { bottom: 10%; right: -3px; animation-delay: -1s; }
.deco-frost b:nth-child(3) { bottom: 10%; left: -3px; animation-delay: -1.8s; } .deco-frost b:nth-child(4) { display: none; }
.deco-glitch { border: 3px solid var(--accent); box-shadow: -3px 0 #ff2d55, 3px 0 #2de2ff; animation: deco-glitch 2.4s steps(1, end) infinite; }
@keyframes deco-spin { to { transform: rotate(360deg); } }
@keyframes deco-bob { 50% { transform: translateY(-4px); } }
@keyframes deco-flicker { to { opacity: .7; transform: scale(1.03); } }
@keyframes deco-flame { to { transform: scaleY(1.25) translateY(-2px); } }
@keyframes deco-twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }
@keyframes deco-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-70px) scale(1); opacity: 0; } }
@keyframes deco-glitch { 0%, 82%, 100% { transform: none; } 84% { transform: translate(2px, -1px); box-shadow: 3px 0 #ff2d55, -3px 0 #2de2ff; } 88% { transform: translate(-2px, 1px); } 92% { transform: translate(1px, 0); } }
@media (prefers-reduced-motion: reduce) { .bio-deco, .bio-deco b { animation: none !important; } .deco-hearts b { opacity: .8; } .deco-sparkles b, .deco-frost b { opacity: 1; transform: none; } }

.bio-viz { display: block; width: 100%; height: 34px; margin: .55rem 0 .1rem; }
.bio-viz[hidden] { display: none; }

/* Last.fm now playing */
.bio-fm { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; padding: .7rem .9rem; border-radius: 16px; text-align: left;
  background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.bio-fm[hidden], .bio-fm-cover[hidden] { display: none !important; }
.bio-fm-cover { width: 52px; height: 52px; flex: none; border-radius: 10px; object-fit: cover; }
.bio-fm-none { display: grid; place-items: center; background: #d51007; color: #fff; }
.bio-fm.has-cover .bio-fm-none { display: none; }
.bio-fm-id { display: grid; min-width: 0; flex: 1; } .bio-fm-id small { opacity: .6; font-size: .74rem; }
.bio-fm-id strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-fm-bars { display: none; align-items: flex-end; gap: 3px; height: 18px; } .bio-fm.is-now .bio-fm-bars { display: flex; }
.bio-fm-bars i { width: 3px; height: 100%; background: var(--accent); border-radius: 2px; transform-origin: bottom; animation: fm-eq 1s ease-in-out infinite alternate; }
.bio-fm-bars i:nth-child(2) { animation-delay: -.4s; } .bio-fm-bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes fm-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.layout-centered .bio-fm { max-width: 340px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .bio-fm-bars i { animation: none; } }

/* Verified tick, followers, GitHub / YouTube cards, own font */
.bio-verified { display: inline-flex; vertical-align: middle; margin-left: .3rem; color: #3ba7ff; filter: drop-shadow(0 0 6px rgb(59 167 255 / .45)); }
.bio-verified svg { width: .85em; height: .85em; min-width: 16px; min-height: 16px; }
.bio-social { margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .7rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; }
.bio-social form { margin: 0; }
.bio-followers { color: var(--text-2); } .bio-followers b { color: var(--text); }
.bio-follow-btn { display: inline-flex; align-items: center; min-height: 32px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--accent); color: #0b0912; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, filter .15s; }
.bio-follow-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bio-follow-btn.is-on, .bio-follow-btn.is-ghost { background: var(--soft); color: var(--text); }
.bio-ext { margin-top: 1rem; display: grid; gap: .6rem; padding: .7rem .8rem; border-radius: 14px; text-decoration: none; color: inherit; background: var(--soft); border: 1px solid var(--line); font-family: ui-sans-serif, system-ui, sans-serif; transition: background .15s, transform .15s; }
.bio-ext[hidden] { display: none !important; } .bio-ext:hover { background: rgb(255 255 255 / .09); transform: translateY(-1px); }
.bio-ext-top { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.bio-ext-top img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.bio-ext-top img[hidden] { display: none; } .bio-gh.has-ava .bio-ext-ico { display: none; }
.bio-ext-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .08); flex: none; }
.bio-ext-id { display: grid; min-width: 0; } .bio-ext-id strong, .bio-ext-id small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-ext-id small { color: var(--text-2); font-size: .74rem; }
.bio-gh-repos { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.bio-gh-repos:empty { display: none; }
.bio-gh-repos li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .55rem; border-radius: 9px; background: rgb(0 0 0 / .18); font-size: .8rem; }
.bio-gh-repos b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .bio-gh-repos small { color: var(--text-2); flex: none; }
.bio-yt-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #111; }
.bio-yt-badge { display: inline-block; padding: .05rem .4rem; border-radius: 5px; background: #ff0033; color: #fff; font-weight: 700; font-size: .68rem; }
.bio-yt .bio-ext-id strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.font-own .bio-main, .font-own .bio-main *:not(svg):not(path), .font-own .bio-enter { font-family: "zenvy-own", ui-sans-serif, system-ui, sans-serif !important; }
.bio-fx { z-index: 98; }
.bio-player .bio-cover[hidden], .st-player .st-cover[hidden], .bio-full[hidden], .st-on[hidden] { display: none !important; }
/* Pro: prism name (holographic shine) */
.name-prism { background: linear-gradient(110deg, var(--text) 0%, var(--text) 30%, #ff9ad5 40%, #9ee7ff 47%, #fff4a8 54%, #c4a1ff 61%, var(--text) 70%, var(--text) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: prism 3.6s ease-in-out infinite; filter: drop-shadow(0 0 10px rgb(255 154 213 / .25)); }
.name-prism .bio-badges { -webkit-text-fill-color: initial; }
@keyframes prism { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .name-prism { animation: none; background-position: 50% 0; } }
