/* btw.bio - public profile page. Theme variables come from a nonce'd <style> built from validated values.
   Name / bio effects live in textfx.css. */
/* Onest (variable, SIL OFL): the UI and default profile font on every device; self-hosted latin + latin-ext (Turkish)
   subsets from @fontsource-variable/onest. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --accent: #e4e4e7; --text: #ffffff; --bg: #09090b; --icon: #ffffff; --grad: #7c3aed; --fx1: #ffffff; --fx2: #ff1f2e; --fx-mult: 1;
  --card-alpha: 0.4; --card-blur: 20px; --radius: 20px; --dim: 0.35; --name-size: 30px; --name-weight: 700;
  --font: "Onest", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --name-font: var(--font);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
/* No page scrollbar on profiles (the page still scrolls; sections mode has its dots). Inner lists keep theirs. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, svg, video, canvas, iframe { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(900px 520px at 50% -12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg); }
.bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--bg-x, 50%) var(--bg-y, 50%); scale: var(--bg-zoom, 1); transform-origin: var(--bg-x, 50%) var(--bg-y, 50%); }
/* Framing "fit" (settings.bgFit): all of the picture or video, black bars around it. */
.bgfit-contain .bg-media { object-fit: contain; scale: none; }
.bgfit-contain .bg { background: #000; }
.bg-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, var(--dim)); }
.bg-overlay { position: absolute; inset: 0; pointer-events: none; }
.bgfx-blur .bg-media { filter: blur(10px); transform: scale(1.08); }
.bgfx-night .bg-overlay { background: radial-gradient(ellipse at center, transparent 30%, rgba(2, 4, 20, 0.85) 100%), linear-gradient(180deg, rgba(10, 20, 70, 0.35), rgba(0, 0, 0, 0.2)); }
.bgfx-tv .bg-overlay {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0, rgba(0, 0, 0, 0.28) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  animation: bg-flicker 0.18s infinite;
}
.bgfx-tv .bg-media { filter: saturate(1.3) contrast(1.15); }
@keyframes bg-flicker { 50% { opacity: 0.92; } }
.bgfx-vignette .bg-overlay { background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.88) 100%); }
/* Dot screen: a fine grid of dark dots over the picture (a 2 x 2 tile: one dot at 70 %, the rest at 31 %). */
.bgfx-dots .bg-overlay { background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFElEQVR4nGNgYGDYzMDA4M8AJfwBDswBoS6VZ6YAAAAASUVORK5CYII=") 0 0 / 2px 2px repeat; }
.bgfx-grain .bg-overlay {
  inset: -50%; opacity: 0.16; animation: bg-grain 0.8s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes bg-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -3%); } 60% { transform: translate(-3%, -6%); } 80% { transform: translate(4%, 5%); } 100% { transform: translate(0, 0); } }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Enter overlay ---------- */
.enter {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
/* The text stays at the centre; the loading line (media pages) hangs below it without moving it. */
.enter-box { position: relative; display: block; max-width: 100%; }
.enter-text { display: block; font-size: clamp(17px, 2.4vw, 22px); font-weight: 600; letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); animation: breathe 2.4s ease-in-out infinite; padding: 0 20px; text-align: center; transition: opacity 0.4s ease; }
.enter.hide { opacity: 0; visibility: hidden; }
/* Phones: a full-screen blur re-drawn over the starting video on every frame of the fade stalls it: dropped at once. */
@media (pointer: coarse) { .enter.hide { backdrop-filter: none; -webkit-backdrop-filter: none; } }
@keyframes breathe { 50% { opacity: 0.55; } }

/* ---------- Layout & card ---------- */
.wrap { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; align-content: center; padding: 48px 16px 88px; }
.card {
  position: relative; width: min(var(--card-w, 520px), 100%); padding: 32px 28px 24px; text-align: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color, var(--bg)) calc(var(--card-alpha) * 100%), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 80px -40px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, opacity 0.6s ease;
  animation: card-in 0.8s cubic-bezier(.2, .8, .2, 1) backwards;
}
body.locked .card { animation: none; opacity: 0; }
/* Card delay (settings.cardDelay): everything in the page's main column waits; the card's entrance plays when it shows. */
body.card-wait .wrap { opacity: 0; visibility: hidden; pointer-events: none; }
body.card-wait .card { animation: none; }
.wrap { transition: opacity 0.6s ease; }
.card-gradient .card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--grad) 22%, transparent)), color-mix(in srgb, var(--card-color, var(--bg)) calc(var(--card-alpha) * 100%), transparent); }
.no-border .card { border-color: transparent; }
/* Card height: a taller card keeps its content vertically centred, never taller than the screen. */
.card-tall .card { min-height: min(var(--card-h), calc(100svh - 136px)); display: flex; flex-direction: column; justify-content: center; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }

/* Card styles */
.cs-frosted .card { background: color-mix(in srgb, var(--card-color, #ffffff) 9%, transparent); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(calc(var(--card-blur) + 12px)) saturate(1.5); -webkit-backdrop-filter: blur(calc(var(--card-blur) + 12px)) saturate(1.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.cs-outlined .card { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, rgba(255, 255, 255, 0.25)); box-shadow: none; }
.cs-aurora .card { background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 60%), radial-gradient(120% 80% at 100% 100%, color-mix(in srgb, var(--grad) 32%, transparent), transparent 60%), color-mix(in srgb, var(--card-color, var(--bg)) calc(var(--card-alpha) * 100%), transparent); box-shadow: 0 0 70px -18px color-mix(in srgb, var(--accent) 55%, transparent), 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.cs-transparent .card { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
/* Partner card (lib/partner.ts): a picture across the whole card under its content, darkened by --cardbg-dim, in a thin
   metal frame with a small tag, both in the Partner badge's colour (--partner). isolation keeps the picture inside the
   card, behind everything in it. */
.cs-partner { --pm: var(--partner, #06b6d4); --pm-metal: linear-gradient(135deg, color-mix(in srgb, var(--pm) 40%, #fff), var(--pm) 30%, color-mix(in srgb, var(--pm) 30%, #fff) 50%, color-mix(in srgb, var(--pm) 65%, #000) 72%, color-mix(in srgb, var(--pm) 55%, #fff)); }
.cs-partner .card { isolation: isolate; background: #0b0b0e; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9); }
.cs-partner .card::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: var(--pm-metal); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.card-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--cardbg-dim, 0.45)); }
.partner-tag { position: absolute; top: 12px; inset-inline-end: 14px; z-index: 3; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--pm) 22%, #000); background: var(--pm-metal); }

/* Layouts: classic (centred) · floating avatar · stacked (left-aligned) · compact row */
.head { position: relative; z-index: 3; }
.layout-floating .wrap { padding-top: calc(var(--avatar, 112px) / 2 + 48px); }
.layout-floating .card { padding-top: calc(var(--avatar, 112px) / 2 + 20px); }
/* static head: the floating avatar is positioned against the card, not the head block */
.layout-floating .head { position: static; }
.layout-floating .avatar-wrap { position: absolute; left: 50%; top: calc(var(--avatar, 112px) / -2 - 2px); margin: 0; transform: translateX(-50%); }
/* No profile picture: no avatar box, so the floating layout needs no room for it. */
.no-avatar.layout-floating .wrap { padding-top: 48px; }
.no-avatar.layout-floating .card { padding-top: 34px; }
.layout-stacked .card { text-align: start; }
.layout-stacked .avatar-wrap { margin: 0 0 14px; }
.layout-stacked .name-row, .layout-stacked .meta, .layout-stacked .socials { justify-content: flex-start; }
.layout-stacked .desc { margin-inline: 0; }
.layout-compact .head { display: flex; align-items: center; gap: 18px; text-align: start; }
.layout-compact .avatar-wrap { width: var(--avatar, 88px); height: var(--avatar, 88px); margin: 0; flex: none; }
.layout-compact .avatar { width: var(--avatar, 88px); height: var(--avatar, 88px); }
.layout-compact .viz-ring { width: calc(var(--avatar, 88px) * 1.55); height: calc(var(--avatar, 88px) * 1.55); }
.layout-compact .head-text { min-width: 0; }
.layout-compact .name-row { justify-content: flex-start; }

/* Size: --avatar (profile setting); 112 px by default. */
.avatar-wrap { position: relative; width: var(--avatar, 112px); height: var(--avatar, 112px); margin: 0 auto 16px; }
.avatar { position: relative; z-index: 1; width: var(--avatar, 112px); height: var(--avatar, 112px); border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.3); }
.avatar-fallback { display: grid; place-items: center; font-size: calc(var(--avatar, 112px) * 0.39); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--grad)); }
.viz-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--avatar, 112px) * 1.54); height: calc(var(--avatar, 112px) * 1.54); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
/* Avatar decoration (Discord shop, the Discord account's or an upload): drawn over the picture at 1.2x its size, as
   Discord does. An uploaded one that is not square keeps its proportions inside that box. */
.avatar-deco { position: absolute; left: 50%; top: 50%; z-index: 2; width: calc(var(--avatar, 112px) * 1.2); height: calc(var(--avatar, 112px) * 1.2); max-width: none; object-fit: contain; transform: translate(-50%, -50%); pointer-events: none; }
.layout-compact .avatar-deco { width: calc(var(--avatar, 88px) * 1.2); height: calc(var(--avatar, 88px) * 1.2); }
/* Room for the part of the decoration outside the picture, so it does not touch the name. */
.avatar-wrap:has(.avatar-deco) { margin-bottom: calc(16px + var(--avatar, 112px) * 0.1); }
.layout-floating .card:has(.avatar-deco) { padding-top: calc(var(--avatar, 112px) * 0.6 + 20px); }
.layout-compact .avatar-wrap:has(.avatar-deco) { margin: 0 calc(var(--avatar, 88px) * 0.1); }

.name-tip { min-width: 0; border-radius: 8px; outline-offset: 4px; }
.name-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.badges-below .name-row { flex-direction: column; gap: 8px; }
.badges { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; }
/* No layer of its own (no will-change / transform): a composited badge was snapped to whole pixels when the card's
   entrance effect (or a hover) ended, a small jump. The hover lift moves it with top instead. */
/* --badge-k (settings.badgeSize / 100) scales every badge. */
.badge { display: grid; place-items: center; width: calc(26px * var(--badge-k, 1)); height: calc(26px * var(--badge-k, 1)); border-radius: 8px; position: relative; top: 0; transition: top 0.18s ease; }
.badge .icon { width: calc(22px * var(--badge-k, 1)); height: calc(22px * var(--badge-k, 1)); }
/* Hover lifts it by whole pixels (no scaling: a scaled badge drew a blurry icon and tooltip). */
.badge:hover { top: -2px; }
/* Badge box (settings.badgeStyle), whatever the position: none, one pill around all badges, or one box per badge. */
.bdg-box .badges { padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.bdg-each .badges { gap: 6px; }
.bdg-each .badge { width: calc(32px * var(--badge-k, 1)); height: calc(32px * var(--badge-k, 1)); border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.bdg-each .badge .icon { width: calc(20px * var(--badge-k, 1)); height: calc(20px * var(--badge-k, 1)); }
/* Each badge glows in its own colour (the svg's color is the badge colour); one glow colour only when chosen (--badge-glow). */
/* --badge-glow-k (settings.badgeGlowStrength / 100) scales both the size and the strength of the glow. */
.glow-badges .badge .icon, .glow-badges .badge-custom img { filter: drop-shadow(0 0 calc(4px * var(--badge-glow-k, 1)) color-mix(in srgb, var(--badge-glow, currentColor) min(100%, calc(100% * var(--badge-glow-k, 1))), transparent)) drop-shadow(0 0 calc(10px * var(--badge-glow-k, 1)) color-mix(in srgb, var(--badge-glow, currentColor) min(100%, calc(55% * var(--badge-glow-k, 1))), transparent)); }

.handle { margin: 4px 0 0; color: var(--text-3); font-size: 14px; font-weight: 500; }
.pstatus { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); font-size: 13.5px; font-weight: 500; max-width: 100%; }
.pstatus > span:last-child { overflow-wrap: anywhere; }
.pstatus-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.desc { position: relative; margin: 14px auto 0; max-width: 440px; white-space: pre-line; color: var(--text-2); font-size: 15px; line-height: 1.6; min-height: 1.5em; overflow-wrap: anywhere; }
/* Bio formatting tags (shared/biomarkup.ts). Colours follow the page theme (--text, --accent, --bg). */
.desc strong { color: var(--text); font-weight: 700; }
.desc u { text-underline-offset: 3px; }
.md-h { display: block; margin: 0.1em 0 0.2em; font-size: 1.4em; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--text); }
.md-code { padding: 0.08em 0.4em; border-radius: 6px; font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: 0.88em; background: color-mix(in srgb, var(--text) 10%, transparent); }
.md-quote { display: table; margin: 0.35em auto; padding: 0.1em 0 0.1em 0.8em; border-inline-start: 2px solid color-mix(in srgb, var(--text) 35%, transparent); text-align: start; font-style: normal; }
.layout-stacked :is(.md-quote, .md-list), .layout-compact :is(.md-quote, .md-list), .md-left :is(.md-quote, .md-list) { margin-inline: 0; }
.md-right :is(.md-quote, .md-list) { margin-inline: auto 0; }
.md-hr { height: 1px; margin: 0.75em 0; border: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 32%, transparent), transparent); }
.md-hr-theme { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); filter: drop-shadow(0 0 6px var(--accent)); }
.md-theme { font-weight: 700; color: var(--accent); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 75%, transparent); }
.md-mark { padding: 0.05em 0.45em; border-radius: 0.5em; color: var(--bg); background: var(--text); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.md-spoiler { padding: 0 0.35em; border-radius: 0.4em; cursor: pointer; transition: color 0.2s, background 0.2s; background: color-mix(in srgb, var(--text) 12%, transparent); }
.md-spoiler:not(.shown) { color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; background: var(--text); user-select: none; }
.md-list { display: table; margin: 0.25em auto; padding-inline-start: 1.2em; text-align: start; list-style: disc; }
.md-list li::marker { color: var(--text-3); }
.md-left { text-align: left; }
.md-center { text-align: center; }
.md-right { text-align: right; }
/* Inline like text (the page resets images to block), so it follows the line's alignment. */
.md-emoji { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: -0.32em; object-fit: contain; }

.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--text-3); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 14px; height: 14px; }

/* ---------- Widgets: see widgets.css ---------- */
.widgets-out { width: var(--card-w, min(560px, 100%)); max-width: 100%; margin-top: 14px; }

/* ---------- Socials & links ---------- */
.link-img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: none; }
.ptags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.ptag { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--text-2); background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.03)); border: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.06)); }
.layout-stacked .ptags, .layout-compact .ptags { justify-content: flex-start; }
.ptags.al-left { justify-content: flex-start; }
.ptags.al-center { justify-content: center; }
.ptags.al-right { justify-content: flex-end; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 22px; }
.social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--icon); opacity: 0.88; transition: transform 0.18s ease, opacity 0.18s, background 0.18s; }
.social .icon { width: 26px; height: 26px; }
.social-img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; display: block; }
.social:hover { opacity: 1; transform: translateY(-2px); background: rgba(255, 255, 255, 0.06); }
.mono-icons .social svg[fill]:not([fill="none"]) { fill: var(--icon); }
.glow-socials .social .icon { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 80%, transparent)); }
.links { display: grid; gap: 10px; margin-top: 20px; }
.link-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: calc(var(--radius) * 0.6); background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.08); font-weight: 500; font-size: 14.5px; transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.link-btn:hover { background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.05)); border-color: color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.08)); transform: translateY(-1px); }
.link-btn span { flex: 1; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn .icon { color: var(--icon); opacity: 0.9; }
/* Social links as buttons keep their brand colour; a copy button looks like the links around it. */
.link-social .icon:not(.link-ext) { color: inherit; opacity: 1; }
button.link-btn { width: 100%; font: inherit; color: inherit; cursor: pointer; }
.link-ext { opacity: 0.45; width: 15px !important; height: 15px !important; }
[dir="rtl"] .link-ext { transform: scaleX(-1); }

.viz-strip { width: 100%; height: 38px; margin-top: 14px; pointer-events: none; }

/* ---------- Sound control (top-left) ---------- */
.sound { position: fixed; top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sound-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; transition: background 0.15s, transform 0.15s; touch-action: manipulation; }
.sound-btn:hover { background: rgba(255, 255, 255, 0.1); }
.sound-btn:active { transform: scale(0.94); }
.sound-btn .icon { width: 19px; height: 19px; }
.s-off { display: none; }
.sound.muted .s-on { display: none; }
.sound.muted .s-off { display: block; }
.sound-vol { direction: ltr; -webkit-appearance: none; appearance: none; width: 0; height: 4px; margin: 0; opacity: 0; border-radius: 999px; outline: none; cursor: pointer; transition: width 0.2s, opacity 0.2s, margin 0.2s; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 0%) 100% no-repeat, rgba(255, 255, 255, 0.22); }
/* The slider opens on hover with a mouse only: on a touch screen a hover-only change makes the first tap a hover
   (iOS), so the button would need two taps; and phones ignore page volume anyway. Touch: the button alone. */
@media (hover: hover) and (pointer: fine) { .sound:hover .sound-vol, .sound:focus-within .sound-vol { width: 92px; opacity: 1; margin: 0 10px 0 4px; } }
@media (hover: none), (pointer: coarse) { .sound-vol { display: none; } }
.sound-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.sound-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
/* Touch screens: tap to mute/unmute (iOS ignores page-set volume, so no slider there). */
@media (hover: none) {
  .sound-vol { display: none; }
}

/* ---------- Corners ---------- */
/* Bottom-left: the view counter and the like / dislike buttons (views/profile.ts .corner). */
.corner { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.views, .votes { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-family: "Onest", "Segoe UI", system-ui, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, 0.92); background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; }
.views .icon, .vote .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.votes { padding: 2px; gap: 2px; }
.vote { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; }
.vote:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.vote:active { transform: scale(0.94); }
.vote[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.vote[data-vote="1"][aria-pressed="true"] .icon { color: #4ade80; fill: rgba(74, 222, 128, 0.25); }
.vote[data-vote="-1"][aria-pressed="true"] .icon { color: #f87171; fill: rgba(248, 113, 113, 0.25); }
.vote[aria-disabled="true"] { cursor: default; }
.votes.busy .vote { pointer-events: none; opacity: 0.7; }
.made-with { position: fixed; inset-inline-end: 16px; bottom: 18px; z-index: 3; display: block; opacity: 0.55; transition: opacity 0.2s; }
.made-with img { display: block; height: 15px; width: auto; }
.made-with:hover { opacity: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; padding: 9px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; font-weight: 600; animation: card-in 0.25s ease; }
.toast a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Phones: above the bottom-left counters. */
@media (max-width: 600px) { .toast { bottom: 64px; max-width: calc(100vw - 32px); text-align: center; } }

/* ---------- Tooltips ---------- */
[data-tip]:not(.views, .vote) { position: relative; }
.vote[data-tip] { position: relative; }
[data-tip]:hover, [data-tip]:focus-visible { z-index: 30; }
.name-row { position: relative; z-index: 4; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  padding: 5px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.92); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 20; text-shadow: none;
  -webkit-text-fill-color: #fff; font-family: var(--font); letter-spacing: normal;
}
.views[data-tip]:hover::after, .corner > :first-child [data-tip]:first-child:hover::after { left: 0; transform: none; }
[dir="rtl"] .views[data-tip]:hover::after, [dir="rtl"] .corner > :first-child [data-tip]:first-child:hover::after { left: auto; right: 0; }

/* ---------- Look options (settings bgStyle, avatarShape, avatarRing, iconStyle, iconSize, entrance) ---------- */
/* Page background: glow (default, the .bg rule above), solid, gradient, aurora, mesh, dots, grid. An uploaded
   background covers these (they sit under .bg-media). */
.bgs-solid .bg { background: var(--bg); }
.bgs-gradient .bg { background: linear-gradient(165deg, color-mix(in srgb, var(--grad) 34%, var(--bg)) 0%, var(--bg) 52%, color-mix(in srgb, var(--accent) 20%, var(--bg)) 100%); }
.bgs-mesh .bg {
  background: radial-gradient(60% 50% at 12% 18%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(55% 45% at 88% 22%, color-mix(in srgb, var(--grad) 36%, transparent), transparent 70%),
    radial-gradient(75% 55% at 50% 105%, color-mix(in srgb, var(--grad) 26%, transparent), transparent 70%), var(--bg);
}
.bgs-aurora .bg, .bgs-dots .bg, .bgs-grid .bg { background: var(--bg); }
.bgs-aurora .bg::before, .bgs-dots .bg::before, .bgs-grid .bg::before { content: ""; position: absolute; pointer-events: none; }
.bgs-aurora .bg::before {
  inset: -25%; opacity: 0.6; filter: blur(70px); animation: aurora 20s ease-in-out infinite alternate;
  background: radial-gradient(38% 32% at 28% 30%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(42% 38% at 72% 58%, color-mix(in srgb, var(--grad) 60%, transparent), transparent 70%),
    radial-gradient(34% 30% at 46% 88%, color-mix(in srgb, var(--accent) 35%, var(--grad)), transparent 70%);
}
@keyframes aurora { 0% { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(4%, 3%, 0) rotate(10deg) scale(1.1); } 100% { transform: translate3d(-2%, 4%, 0) rotate(-8deg) scale(1.03); } }
.bgs-dots .bg::before, .bgs-grid .bg::before { inset: 0; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 25%, transparent 100%); }
.bgs-dots .bg::before { background: radial-gradient(color-mix(in srgb, var(--text) 22%, transparent) 1.1px, transparent 1.6px) 0 0 / 22px 22px; }
.bgs-grid .bg::before {
  background: linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px) 0 0 / 46px 46px;
}

/* Profile picture: shape and frame (subtle = the thin line of the base rule). */
.av-rounded .avatar { border-radius: 28%; }
.av-square .avatar { border-radius: 10%; }
.ring-none .avatar { border-color: transparent; }
.ring-accent .avatar { border: 3px solid var(--accent); }
.ring-gradient .avatar { border: 3px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, var(--accent), var(--grad)) border-box; }
.ring-glow .avatar { border: 2px solid var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 46px color-mix(in srgb, var(--accent) 30%, transparent); }

/* Social icons: style and size (plain + md = the base rules). */
.isz-sm .social { width: 36px; height: 36px; border-radius: 10px; }
.isz-sm .social :is(.icon, .social-img) { width: 21px; height: 21px; }
.isz-lg .social { width: 50px; height: 50px; border-radius: 14px; }
.isz-lg .social :is(.icon, .social-img) { width: 30px; height: 30px; }
.ico-soft .social, .ico-circle .social { opacity: 1; background: color-mix(in srgb, var(--accent) 13%, rgba(255, 255, 255, 0.05)); border: 1px solid color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.07)); }
.ico-circle .social { border-radius: 50%; }
.ico-outline .social { opacity: 1; border: 1.5px solid color-mix(in srgb, var(--icon) 42%, transparent); }
.ico-soft .social:hover, .ico-circle .social:hover { background: color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.06)); }
.ico-outline .social:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Card entrance (rise = the base card-in animation). */
.in-none .card { animation: none; }
.in-fade .card { animation: in-fade 0.9s ease backwards; }
.in-zoom .card { animation: in-zoom 0.7s cubic-bezier(.2, .9, .25, 1.1) backwards; }
.in-blur .card { animation: in-blur 0.9s ease backwards; }
.in-drop .card { animation: in-drop 0.85s cubic-bezier(.25, 1.35, .45, 1) backwards; }
.in-flip .card { animation: in-flip 0.9s cubic-bezier(.2, .85, .25, 1) backwards; transform-origin: 50% 0; }
@keyframes in-fade { from { opacity: 0; } }
@keyframes in-zoom { from { opacity: 0; transform: scale(0.86); } }
@keyframes in-blur { from { opacity: 0; filter: blur(16px); transform: scale(1.03); } }
@keyframes in-drop { from { opacity: 0; transform: translateY(-46px); } }
@keyframes in-flip { from { opacity: 0; transform: perspective(900px) rotateX(-38deg) translateY(14px); } }

/* ---------- Sections mode (views/profile.ts: html.sec-mode, body.mode-sections) ---------- */
/* The root element scrolls. Snapping is "proximity": "mandatory" traps sections taller than the screen in Safari.
   With snap on, profile.js pager() also moves one whole section per wheel flick, swipe or key.
   No pull-to-refresh, and no scroll chaining from the dashboard preview into the dashboard. */
html.sec-mode { overscroll-behavior-y: contain; }
html.snap { scroll-snap-type: y proximity; }
/* With profile.js running, its pager moves section by section instead (see pager()). */
html.snap.js-pager { scroll-snap-type: none; }
/* The enter screen still blocks scrolling (iOS Safari does not stop touch scrolling for overflow on body alone). */
html.sec-mode:has(body.locked) { overflow: hidden; }
.mode-sections .enter { touch-action: none; overscroll-behavior: contain; }
/* The fixed background keeps the large viewport height, so it does not jump when mobile browser bars slide away. */
.mode-sections .bg { bottom: auto; height: 100vh; height: 100lvh; }
/* place-items too: browsers now align block children by it, which would shrink each section to its content. */
.profile.mode-sections .wrap { display: block; min-height: 0; padding: 0; place-items: normal; align-content: normal; }
.psec { position: relative; display: grid; place-items: center; align-content: center; min-height: 100vh; min-height: 100svh; padding: 72px 16px; scroll-snap-align: start; }
.psec-hero { padding: 48px 16px 104px; }
.mode-sections.layout-floating .psec-hero { padding-top: calc(var(--avatar, 112px) / 2 + 48px); }
.mode-sections.no-avatar.layout-floating .psec-hero { padding-top: 48px; }
/* Room for the dot navigator, so it never covers the content. */
.has-dots .psec { padding-inline: 48px; }
.psec-inner { width: min(var(--card-w, 520px), 100%); min-width: 0; }
.sec-wide .psec-inner { width: min(max(var(--card-w, 520px), 960px), 100%); }
/* Widgets need room for a name, a handle and a button side by side: their section is wide even at the normal width. */
.psec-widgets > .psec-inner { width: min(max(var(--card-w, 520px), 880px), 100%); }
.sec-wide .psec-widgets > .psec-inner { width: min(max(var(--card-w, 520px), 1100px), 100%); }
.psec-head { margin-bottom: 18px; text-align: start; }
.sec-al-center .psec-head { text-align: center; }
.psec-title { margin: 0; font-family: var(--name-font); font-size: clamp(26px, 5vw, 36px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); overflow-wrap: anywhere; }
.psec-sub { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-3); overflow-wrap: anywhere; }
.psec .widgets, .psec .links { margin-top: 0; }
/* Two columns where they fit (one on phones); links and embeds only in wide sections. */
.psec-widgets .psec-grid, .sec-wide :is(.psec-links, .psec-embeds) .psec-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(320px, calc(50% - 5px))), 1fr)); }
/* Text and the music player sit on a panel like the card (the card's own colour, opacity and blur). */
.psec-panel {
  padding: 22px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color, var(--bg)) calc(var(--card-alpha) * 100%), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur));
}
.no-border .psec-panel { border-color: transparent; }
.cs-outlined .psec-panel { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, rgba(255, 255, 255, 0.25)); }
.cs-transparent .psec-panel { background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Items without cards (setting secCards off): bare on the page background, like haunt.gg/b. */
.sec-flat .psec-panel { padding: 0; background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sec-flat .psec .widget:not(.wbg-color) { background: transparent; border-color: transparent; }
.sec-flat .psec .widget-embed { background: none; }
.sec-flat .psec .link-btn { background: transparent; border-color: transparent; border-bottom-color: rgba(255, 255, 255, 0.1); border-radius: 0; padding-inline: 4px; }
.sec-flat .psec .link-btn:hover { background: rgba(255, 255, 255, 0.04); border-bottom-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: none; }
.psec-prose { white-space: pre-line; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.7; text-align: start; color: var(--text-2); }
.sec-al-center .psec-prose { text-align: center; }
.sec-al-left .psec-prose :is(.md-quote, .md-list) { margin-inline: 0; }

/* Music player (profile.js musicPlayer) */
.mp { display: grid; gap: 14px; }
.mp-head { display: flex; align-items: center; gap: 14px; min-width: 0; text-align: start; }
.mp-art { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: calc(var(--radius) * 0.6); color: #fff; background: linear-gradient(135deg, var(--accent), var(--grad)); box-shadow: 0 12px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.mp-art .icon { width: 24px; height: 24px; }
.mp-cover { object-fit: cover; padding: 0; background: rgba(255, 255, 255, 0.06); }
.mp.playing .mp-cover { animation: mp-cover-pulse 2.2s ease-in-out infinite; }
@keyframes mp-cover-pulse { 50% { box-shadow: 0 14px 36px -12px color-mix(in srgb, var(--accent) 85%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mp.playing .mp-cover { animation: none; } }
.mp.playing .mp-art .icon { animation: mp-beat 1.1s ease-in-out infinite; }
@keyframes mp-beat { 50% { transform: scale(1.14); } }
.mp-meta { display: grid; gap: 2px; min-width: 0; }
.mp-track { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-artist { font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp .viz-strip { margin-top: 0; }
/* Time runs left to right in every language. */
.mp-bar { display: flex; align-items: center; gap: 10px; direction: ltr; }
.mp-time { flex: none; min-width: 38px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-3); }
.mp-time:last-child { text-align: end; }
/* A 20 px tall touch target that draws a 4 px bar (the played part in the accent colour, --fill from profile.js). */
.mp-seek {
  flex: 1; min-width: 0; height: 20px; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y;
  background: linear-gradient(var(--accent), var(--accent)) left center / var(--fill, 0%) 4px no-repeat, linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)) left center / 100% 4px no-repeat;
}
.mp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.mp-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--text); }
.mp-seek::-moz-range-track { background: transparent; }
.mp-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; }
.mp-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-2); transition: color 0.15s, background 0.15s, transform 0.15s; touch-action: manipulation; }
.mp-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.mp-btn:active { transform: scale(0.94); }
.mp-btn .icon { width: 22px; height: 22px; }
.mp-btn.mp-play { width: 56px; height: 56px; color: var(--bg); background: var(--text); }
.mp-btn.mp-play:hover { color: var(--bg); background: var(--text); transform: scale(1.05); }
.mp-play .icon { width: 26px; height: 26px; }
.mp-i-pause, .mp.playing .mp-i-play { display: none; }
.mp.playing .mp-i-pause { display: block; }
/* Synced lyrics, karaoke style: the current line is bright, the next ones fade (--d = distance, set by profile.js). */
.lyrics { position: relative; height: min(44vh, 330px); height: min(44svh, 330px); margin-top: 24px; overflow: hidden; text-align: start; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 64%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 64%, transparent); }
.sec-al-center .lyrics { text-align: center; }
/* Its own layer: the slide runs on the compositor (iPhones stuttered repainting it under the mask). */
.lyrics-list { display: grid; gap: 12px; transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.lyric { margin: 0; font-size: clamp(19px, 3.6vw, 26px); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere; cursor: pointer; opacity: max(0.14, calc(0.62 - var(--d, 3) * 0.12)); transition: opacity 0.45s ease; }
.lyric.past { opacity: 0.22; }
.lyric.now { opacity: 1; text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent); }
.lyric:not(.now):hover { opacity: 0.85; }
/* Lyrics without timestamps: all lines, scrollable inside the section. */
.lyrics.static { height: auto; max-height: min(52vh, 380px); overflow-y: auto; overscroll-behavior: contain; -webkit-mask-image: none; mask-image: none; }
.lyrics.static .lyric { opacity: 0.85; cursor: auto; font-size: clamp(17px, 2.8vw, 21px); }

/* Reveal as a section scrolls in (profile.js adds .seen; without JavaScript everything stays visible). */
.sec-js .psec:not(.psec-hero) > .psec-inner { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.sec-js .rv-fade .psec:not(.psec-hero):not(.seen) > .psec-inner { opacity: 0; }
.sec-js .rv-rise .psec:not(.psec-hero):not(.seen) > .psec-inner { opacity: 0; transform: translateY(40px); }
.sec-js .rv-zoom .psec:not(.psec-hero):not(.seen) > .psec-inner { opacity: 0; transform: scale(0.92); }

/* "Scroll for more" under the card */
.sec-hint { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; padding: 6px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; color: var(--text-3); transition: color 0.2s; animation: in-fade 0.8s 0.6s ease backwards; }
.sec-hint:hover { color: var(--text); }
.sec-hint .icon { width: 18px; height: 18px; animation: hint-bob 1.8s ease-in-out infinite; }
@keyframes hint-bob { 50% { transform: translateY(4px); } }
body.locked .sec-hint { opacity: 0; animation: none; }

/* Dot navigator: one 24 px target per section, the current one a tall pill. */
.sec-dots { position: fixed; top: 50%; right: max(10px, env(safe-area-inset-right)); z-index: 50; display: grid; justify-items: center; gap: 2px; transform: translateY(-50%); transition: opacity 0.5s ease; }
.dots-left .sec-dots { right: auto; left: max(10px, env(safe-area-inset-left)); }
body.locked .sec-dots { opacity: 0; visibility: hidden; }
.sec-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; transition: height 0.35s cubic-bezier(.2, .8, .2, 1); -webkit-tap-highlight-color: transparent; }
.sec-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--text) 40%, transparent); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); transition: height 0.35s cubic-bezier(.2, .8, .2, 1), background 0.25s; }
.sec-dot:hover::before { background: color-mix(in srgb, var(--text) 78%, transparent); }
.sec-dot[aria-current="true"] { height: 40px; }
.sec-dot[aria-current="true"]::before { height: 28px; background: var(--accent); }
.sec-dots [data-tip]:hover::after, .sec-dots [data-tip]:focus-visible::after { left: auto; right: calc(100% + 6px); bottom: auto; top: 50%; transform: translateY(-50%); }
.dots-left .sec-dots [data-tip]:hover::after, .dots-left .sec-dots [data-tip]:focus-visible::after { right: auto; left: calc(100% + 6px); }
/* A tap would leave the label stuck on touch screens. */
@media (hover: none) {
  .sec-dots [data-tip]:hover::after { content: none; }
}

@media (max-width: 520px) {
  .card { padding: 28px 18px 20px; }
  /* Phones: the full gutter only on the side of the dots. */
  .has-dots.dots-right .psec { padding-inline: 16px 46px; }
  .has-dots.dots-left .psec { padding-inline: 46px 16px; }
  .psec-panel { padding: 18px; }
  .lyrics { height: min(36vh, 280px); height: min(36svh, 280px); margin-top: 18px; }
  .socials { gap: 10px 12px; }
  .w-action { padding: 5px 10px; font-size: 12px; margin-inline-end: 8px; }
  .w-clock-time { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Template preview for signed-in visitors (views/profile.ts TemplateBar): "Use this template". */
.tpl-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 16px; width: min(560px, calc(100vw - 32px)); padding: 10px 10px 10px 18px; border-radius: 16px; background: rgba(12, 12, 16, 0.82); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); animation: card-in 0.3s ease; font-family: "Onest", "Segoe UI", system-ui, sans-serif; }
/* The bar and its notices always use the site font: a template font (uploaded by its author) could draw other words. */
.tpl-bar *, .has-tpl-bar .toast { font-family: "Onest", "Segoe UI", system-ui, sans-serif !important; letter-spacing: normal; }
.tpl-bar-text { display: grid; min-width: 0; flex: 1; }
.tpl-bar-text b { font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-bar-text span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.tpl-bar-actions { display: flex; gap: 8px; flex: none; }
.tpl-bar-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; background: #a3000f; color: #fff; font: 600 14px/1 "Onest", "Segoe UI", system-ui, sans-serif; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.tpl-bar-btn:hover { background: #c00012; }
.tpl-bar-btn:disabled { opacity: 0.7; cursor: default; }
.tpl-bar-btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.tpl-bar-btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.has-tpl-bar .corner { bottom: 92px; }
.has-tpl-bar .toast { bottom: 92px; }
@media (max-width: 520px) {
  .tpl-bar { flex-direction: column; align-items: stretch; gap: 10px; bottom: 10px; padding: 12px; }
  .tpl-bar-actions .tpl-bar-btn { flex: 1; }
  .has-tpl-bar .corner, .has-tpl-bar .toast { bottom: 150px; }
}

/* ---------- Banner (Customize > Profile > Banner) ----------
   Edge to edge across the top of the card (the negative margins cancel the card padding); the picture overlaps its
   bottom edge. Nothing is drawn without an upload. ".fade" melts the bottom into the card (--banner-fade of it). */
.has-banner .card, .has-banner.layout-floating .card, .has-banner.no-avatar.layout-floating .card { padding-top: 32px; }
.banner { position: relative; z-index: 0; margin: -32px -28px 0; aspect-ratio: 3 / 1; max-height: 240px; overflow: hidden; border-radius: max(0px, calc(var(--radius) - 1px)) max(0px, calc(var(--radius) - 1px)) 0 0; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner.fade img { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--banner-fade, 50%)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--banner-fade, 50%)), transparent); }
.has-banner .avatar-wrap { margin-top: calc(var(--avatar, 112px) / -2); }
.has-banner .avatar { box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-color, var(--bg)) 92%, transparent), 0 14px 34px -14px rgba(0, 0, 0, 0.8); }
/* Floating layout: the picture sits on the banner instead of above the card. */
.has-banner.layout-floating:not(.mode-sections) .wrap { padding-top: 48px; }
/* Sections mode: the hero keeps the usual top space (no room needed above the card for the picture). */
.mode-sections.has-banner.layout-floating .psec-hero { padding-top: 48px; }
/* A first section taller than the screen (long bio, widgets, many icons): profile.js shrinks the card to fit (down to
   80%) and the padding around it gets smaller, room for the "Scroll for more" hint kept. */
.mode-sections .psec-hero.hero-fit { padding-top: 28px; padding-bottom: 88px; }
.mode-sections .psec-hero.hero-fit:not(:has(.sec-hint)) { padding-bottom: 28px; }
.mode-sections.layout-floating:not(.no-avatar):not(.has-banner) .psec-hero.hero-fit { padding-top: calc(var(--avatar, 112px) / 2 + 24px); }
.has-banner.layout-floating .head { position: relative; }
.has-banner.layout-floating .avatar-wrap { position: relative; left: auto; top: auto; transform: none; margin: calc(var(--avatar, 112px) / -2) auto 16px; }
/* Picture beside the name (compact) or no picture: the head starts under the banner. */
.has-banner.layout-compact .avatar-wrap { margin-top: 0; }
.has-banner.layout-compact .head, .has-banner.no-avatar .head { margin-top: 18px; }
@media (max-width: 520px) {
  .has-banner .card, .has-banner.layout-floating .card, .has-banner.no-avatar.layout-floating .card { padding-top: 28px; }
  .banner { margin: -28px -18px 0; }
}

/* Enter screen while the background video and the music load together (setting syncMedia): not clickable yet. */
.enter.wait { cursor: progress; }
.enter.wait .enter-text { opacity: 0.6; animation: none; }
/* How much of the media is loaded (profile.js sets --p, 0 to 1, never lower): a hairline and a small figure, neutral
   white so they sit under any enter text; the click opens at the full line and both fade out. */
.enter-load { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 32px 96px 32px; align-items: center; column-gap: 10px; transition: opacity 0.4s ease; }
.enter-track { grid-column: 2; position: relative; width: 96px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.enter-load-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); background: rgba(255, 255, 255, 0.85); transition: width 0.3s ease-out; }
.enter-pct { grid-column: 3; justify-self: start; font-family: "Onest", "Segoe UI", system-ui, sans-serif; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.6); text-align: start; }
.enter:not(.wait) .enter-load { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .enter-text { animation: none; } .enter-load-bar, .enter-load, .enter-text { transition: none; } }

/* Leaving the site (profile.js leaveConfirm) */
.leave { width: min(360px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: #141416; color: #fafafa; font-family: var(--font); }
.leave::backdrop { background: rgba(0, 0, 0, 0.6); }
.leave-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.leave-title { margin: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.leave-x { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: #a1a1aa; font-size: 22px; line-height: 1; cursor: pointer; }
.leave-x:hover { color: #fafafa; background: rgba(255, 255, 255, 0.06); }
.leave-label { margin: 18px 16px 10px; text-align: center; font-size: 20px; font-weight: 700; }
.leave-url { width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); font-size: 14px; text-align: center; overflow-wrap: anywhere; direction: ltr; }
.leave-actions { display: flex; justify-content: center; gap: 10px; padding: 20px 16px 18px; }
.leave-btn { min-width: 92px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(255, 255, 255, 0.07); color: #fafafa; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.leave-btn:hover { background: rgba(255, 255, 255, 0.12); }
.leave-go { background: color-mix(in srgb, var(--accent) 45%, #141416); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.leave-go:hover { background: color-mix(in srgb, var(--accent) 60%, #141416); }

/* A custom badge (routes/shop.ts): the owner's own icon */
.badge-custom img { display: block; width: calc(22px * var(--badge-k, 1)); height: calc(22px * var(--badge-k, 1)); object-fit: contain; border-radius: 5px; }
.bdg-each .badge-custom img { width: calc(20px * var(--badge-k, 1)); height: calc(20px * var(--badge-k, 1)); }

/* More card entrances (settings.entrance). */
.in-slide .card { animation: in-slide 0.8s cubic-bezier(.2, .85, .25, 1) backwards; }
.in-swing .card { animation: in-swing 1s cubic-bezier(.3, 1.4, .5, 1) backwards; transform-origin: 50% 0; }
.in-bounce .card { animation: in-bounce 0.9s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.in-spin .card { animation: in-spin 0.9s cubic-bezier(.2, .85, .25, 1) backwards; }
.in-unfold .card { animation: in-unfold 0.8s cubic-bezier(.2, .85, .25, 1) backwards; }
@keyframes in-slide { from { opacity: 0; transform: translateX(-60px); } }
@keyframes in-swing { from { opacity: 0; transform: perspective(900px) rotateX(70deg); } }
@keyframes in-bounce { from { opacity: 0; transform: translateY(60px) scale(0.9); } }
@keyframes in-spin { from { opacity: 0; transform: perspective(900px) rotateY(-90deg); } }
@keyframes in-unfold { from { opacity: 0; transform: scaleY(0.05); } 40% { opacity: 1; } }

/* Comments (profile.js comments(), routes/comments.ts): the corner button and the panel. */
.cm-open { border: 1px solid rgba(255, 255, 255, 0.14); font: inherit; font-family: "Onest", "Segoe UI", system-ui, sans-serif; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cm-open:hover, .cm-open[aria-expanded="true"] { color: #fff; background: rgba(0, 0, 0, 0.5); }
.cm { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; font-family: "Onest", "Segoe UI", system-ui, sans-serif; letter-spacing: normal; text-shadow: none; }
.cm[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.cm-sheet { position: relative; width: min(600px, 100%); max-height: min(80vh, 760px); display: flex; flex-direction: column; border-radius: 20px; background: rgba(12, 12, 14, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(18px); color: #fff; overflow: hidden; animation: cm-in 0.22s ease; }
@keyframes cm-in { from { opacity: 0; transform: translateY(8px); } }
.cm-top { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cm-title { flex: 1; margin: 0; font-size: 15px; font-weight: 700; }
.cm-count { margin-inline-start: 4px; font-weight: 500; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.cm-x, .cm-del { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; color: rgba(255, 255, 255, 0.6); cursor: pointer; }
.cm-x:hover, .cm-del:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cm-x .icon, .cm-del .icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-del { width: 28px; height: 28px; flex: none; opacity: 0.6; }
.cm-del .icon { width: 15px; height: 15px; }
.cm-item:hover .cm-del, .cm-del:focus-visible { opacity: 1; }
.cm-del:disabled { opacity: 0.3; pointer-events: none; }
.cm-scroll { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cm-list { list-style: none; margin: 0; padding: 6px 0; }
.cm-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 10px 18px; }
.cm-av-link { flex: none; }
.cm-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.1); font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; }
.cm-main { flex: 1; min-width: 0; }
.cm-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.cm-name { color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cm-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }
.cm-time { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.cm-body { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-empty { padding: 28px 18px; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }
.cm-loading { min-height: 80px; }
.cm-more { display: block; margin: 0 auto 12px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.8); font: inherit; font-size: 13px; cursor: pointer; }
.cm-more:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cm-more[hidden] { display: none; }
.cm-foot { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 14px 14px; }
.cm-foot:empty { display: none; }
.cm-note { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); text-align: center; }
.cm-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cm-form { display: grid; gap: 8px; }
.cm-form.busy { opacity: 0.7; pointer-events: none; }
.cm-input { width: 100%; box-sizing: border-box; resize: none; min-height: 60px; max-height: 140px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #fff; font: inherit; font-size: 14px; line-height: 1.4; outline: none; }
.cm-input:focus { border-color: rgba(255, 255, 255, 0.3); }
.cm-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.cm-row { display: flex; align-items: center; gap: 10px; }
.cm-rules { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.45); }
.cm-left { font-size: 12px; color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }
.cm-left.over { color: #f87171; }
.cm-send { padding: 8px 16px; border: 0; border-radius: 10px; background: #fff; color: #000; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.cm-send:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 600px) {
  .cm { padding: 12px; }
  .cm-sheet { max-height: min(84vh, 760px); border-radius: 18px; }
  .cm-del { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .cm-sheet { animation: none; } }
.cm-sheet:focus { outline: none; }
.cm-x:focus-visible, .cm-del:focus-visible, .cm-send:focus-visible, .cm-more:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 1px; }
.cm.cm-font { font-family: var(--font); }


/* Gallery (views/profile.ts, profile.js gallery()): the button under the card, the panel, the grid, the big viewer. */
.gal-panel { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; font-family: "Onest", "Segoe UI", system-ui, sans-serif; letter-spacing: normal; text-shadow: none; }
.gal-panel[hidden] { display: none; }
.gal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.gal-sheet { position: relative; width: min(880px, 100%); max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 20px; border-radius: 20px; background: rgba(12, 12, 14, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; animation: cm-in 0.22s ease; }
.gal-sheet:focus { outline: none; }
.gal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gal-top h2 { margin: 0; font-size: 16px; font-weight: 700; }
.gal-x { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, 0.7); cursor: pointer; }
.gal-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gal-x .icon, .gal-nav .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; gap: 12px; }
.gal-item { position: relative; margin: 0; display: grid; align-content: start; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.gal-pic { display: block; padding: 0; border: 0; border-radius: 11px; overflow: hidden; background: rgba(255, 255, 255, 0.05); cursor: zoom-in; }
.gal-pic img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; transition: transform 0.25s ease; }
.gal-pic:hover img { transform: scale(1.03); }
.gal-item figcaption { display: grid; gap: 2px; padding: 0 4px 4px; }
.gal-item figcaption b { font-size: 14px; color: #fff; }
.gal-item figcaption span { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.4; }
.gal-item > .gal-link { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(6px); }
.gal-link .icon { width: 15px; height: 15px; }
.gal-viewer { position: fixed; inset: 0; z-index: 160; display: grid; grid-template-rows: 1fr auto; background: rgba(0, 0, 0, 0.88); color: #fff; font-family: "Onest", "Segoe UI", system-ui, sans-serif; letter-spacing: normal; text-shadow: none; }
.gal-viewer[hidden] { display: none; }
.gal-v-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 0; padding: 50px 12px 8px; }
.gal-big { max-width: min(100%, 1400px); max-height: 100%; object-fit: contain; border-radius: 10px; }
.gal-nav { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; }
.gal-nav:hover { background: rgba(255, 255, 255, 0.2); }
.gal-nav[hidden] { display: none; }
.gal-v-x { position: absolute; top: 10px; right: 10px; z-index: 1; color: #fff; }
.gal-v-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; padding: 8px 16px 18px; text-align: center; }
.gal-v-title { font-size: 15px; }
.gal-v-cap { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.gal-v-count { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.gal-v-link { font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gal-v-link[hidden] { display: none; }
.psec .gal-grid { width: min(900px, 100%); }
@media (max-width: 600px) {
  .gal-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gal-item { padding: 6px; }
  .gal-nav { position: absolute; bottom: 12px; }
  .gal-prev { left: 12px; }
  .gal-next { right: 12px; }
  .gal-v-stage { padding: 50px 6px 64px; }
}
@media (prefers-reduced-motion: reduce) { .gal-sheet { animation: none; } .gal-pic img { transition: none; } }

/* Comment replies (profile.js comments): a Reply link under a comment, its box, the replies indented under it. */
.cm-reply-btn { margin-top: 4px; padding: 2px 0; border: 0; background: none; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cm-reply-btn:hover, .cm-reply-btn:focus-visible { color: #fff; }
.cm-reply-slot:empty { display: none; }
.cm-reply-slot { margin-top: 8px; }
.cm-form-reply .cm-input { min-height: 44px; font-size: 13.5px; }
.cm-cancel { padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cm-cancel:hover { background: rgba(255, 255, 255, 0.14); }
.cm-replies { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-inline-start: 2px solid rgba(255, 255, 255, 0.08); }
.cm-replies:empty { display: none; }
.cm-item.cm-reply { padding: 8px 4px 4px 8px; gap: 8px; }
.cm-reply .cm-av { width: 26px; height: 26px; font-size: 11px; }
.cm-reply .cm-body { font-size: 13.5px; }
/* Deleting a comment asks inside the comment (profile.js askDelete), not with the browser's dialog. */
.cm-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.cm-confirm > span { flex: 1; min-width: 120px; }
.cm-confirm button { padding: 6px 12px; border: 0; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cm-confirm-yes { background: #e5484d; color: #fff; }
.cm-confirm-yes:hover { background: #d13a40; }
.cm-confirm-no { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cm-confirm-no:hover { background: rgba(255, 255, 255, 0.16); }
