/* Additions on top of the xmr.me stylesheet, using its own tokens. */

/* "Examination" is longer than "xmr", so the display type is scaled to fit. */
.intro-name { font-size: clamp(1.6rem, 4.2vw, 2.6rem); letter-spacing: -0.02em; }
.hero-name { font-size: clamp(2.6rem, 7vw, 6.75rem); max-width: none; white-space: nowrap; }

/* Roblox verified badge on the hero icon (replaces the green check). */
.rbx-hero-badge {
  display: flex;
  border-radius: 0.85rem;
  line-height: 0;
}
.rbx-hero-badge img { width: 2.1rem; height: 2.1rem; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.55)) drop-shadow(0 0 14px rgb(0 98 255 / 0.4)); }

/* Card name row with a badge */
.name-row { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.rbx-badge { width: 1.1rem; height: 1.1rem; flex: none; }
.yt-badge { display: inline-flex; flex: none; width: 1.05rem; height: 1.05rem; }
.yt-badge svg { width: 100%; height: 100%; }
.yt-badge circle { fill: var(--color-discord-muted); }
.yt-badge path { fill: none; stroke: var(--background); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.card-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-discord-elevated);
  color: var(--color-discord-header);
}
.avatar-icon svg { width: 2rem; height: 2rem; }

.stat {
  padding: 0 0.3rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--color-discord-muted);
  white-space: nowrap;
}
.stat b { color: var(--color-discord-header); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Status glow on the Discord card, as on xmr's member cards */
.card-ring { box-shadow: inset 0 0 0 2px var(--ring-c, transparent), inset 0 0 60px -16px var(--ring-c, transparent); transition: opacity 0.5s; }
.member-card:hover .card-ring { opacity: 1; }
.status-ring-online { --ring-c: color-mix(in oklch, var(--color-discord-online) 70%, transparent); }
.status-ring-idle { --ring-c: color-mix(in oklch, var(--color-discord-idle) 70%, transparent); }
.status-ring-dnd { --ring-c: color-mix(in oklch, var(--color-discord-dnd) 70%, transparent); }
.status-ring-offline { --ring-c: color-mix(in oklch, var(--color-discord-offline) 50%, transparent); }

[data-copy].is-copied { background: color-mix(in oklch, var(--color-discord-online) 70%, black); }
.member-card[hidden] { display: none; }



@media (prefers-reduced-motion: reduce) {
}

/* Live Discord extras */
.avatar-decoration { position: absolute; inset: -4%; width: 108%; height: 108%; pointer-events: none; z-index: 5; }
.custom-status, .discord-bio { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-discord-text); overflow-wrap: anywhere; }
.custom-status { display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start; padding: 0.35rem 0.7rem; border-radius: 0.9rem; background: var(--color-discord-elevated); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06); }
.custom-status img { width: 1rem; height: 1rem; }
.discord-bio { white-space: pre-line; color: var(--color-discord-header); }
.discord-badge img { display: block; }

/* Badge tooltip: same look as xmr's (Discord tooltip colors, 64px icon, uppercase display label). */
.badge-trigger { cursor: default; outline: none; }
.badge-trigger:focus-visible { box-shadow: 0 0 0 2px var(--primary); border-radius: 0.25rem; }
.rbx-hero-badge.badge-trigger { pointer-events: auto; }
.badge-tip {
  position: fixed;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min-content;
  min-width: 12.5rem;
  max-width: calc(100vw - 16px);
  padding: 1rem 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-discord-tooltip-border);
  background: var(--color-discord-tooltip);
  text-align: center;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
  pointer-events: none;
  opacity: 0;
  scale: 0.94;
  translate: 0 6px;
  filter: blur(2px);
  transition: scale 140ms ease-in, opacity 140ms ease-in, translate 140ms ease-in, filter 140ms ease-in;
}
.badge-tip[data-side="bottom"] { translate: 0 -6px; }
.badge-tip.is-open {
  opacity: 1;
  scale: 1;
  translate: 0 0;
  filter: none;
  transition: scale 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease-out, translate 320ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease-out;
}
.badge-tip-icon { transition: opacity 180ms ease-out; }
.badge-tip-icon { width: 4rem; height: 4rem; object-fit: contain; }
.badge-tip-icon[hidden] + .badge-tip-label { margin-top: 0; }
.badge-tip-label {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1rem;
  font-weight: 800;
  font-stretch: 115%;
  color: #fff;
  text-transform: uppercase;
  text-wrap: balance;
}
.badge-tip-arrow {
  position: absolute;
  width: 0.625rem;
  height: 0.625rem;
  rotate: 45deg;
  background: var(--color-discord-tooltip);
  border-color: var(--color-discord-tooltip-border);
  border-style: solid;
  border-width: 0;
}
.badge-tip[data-side="top"] .badge-tip-arrow { bottom: -5px; border-right-width: 1px; border-bottom-width: 1px; }
.badge-tip[data-side="bottom"] .badge-tip-arrow { top: -5px; border-top-width: 1px; border-left-width: 1px; }
@media (prefers-reduced-motion: reduce) { .badge-tip { transition: none; } }

/* "hey, i'm" over the name */
.hero-hey {
  margin-bottom: 0.4rem;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: color-mix(in oklch, var(--foreground) 62%, transparent);
}

/* Profile groups, labeled like "— right now" / "— building" */
.profile-groups { display: flex; flex-direction: column; gap: 3rem; }
.profile-group[hidden] { display: none; }
.group-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--muted-foreground);
}
.group-dash { width: 1.25rem; height: 1px; background: var(--primary); }

/* Minimal layout: shorter hero so the profiles show on the first screen */
.hero-compact { min-height: 64svh; padding-top: 6.5rem; padding-bottom: 3.5rem; }
.profiles { padding-top: 1rem; padding-bottom: 4.5rem; }
.profile-groups { gap: 2.5rem; }
.member-card { cursor: pointer; }
@media (max-width: 640px) {
  .hero-compact { min-height: 70svh; padding-top: 6rem; padding-bottom: 3rem; }
  .profiles { padding-bottom: 4rem; }
}

/* xmr: card banner slowly zooms on hover */
.card-banner { transition: transform 1.2s ease-out; }
.member-card:hover .card-banner { transform: scale(1.05); }


/* Account status: pill under the stats, dot on the avatar */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.15rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-discord-muted);
  --st: var(--color-discord-offline);
}
.status-pill i { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--st); box-shadow: 0 0 0 3px color-mix(in oklch, var(--st) 22%, transparent); }
.rbx-online { --st: #00a2ff; }
.rbx-ingame { --st: #02b757; }
.rbx-studio { --st: #f68802; }
.rbx-offline { --st: var(--color-discord-offline); }
.rbx-banned { --st: var(--color-discord-dnd); }
.dc-online { --st: var(--color-discord-online); }
.dc-idle { --st: var(--color-discord-idle); }
.dc-dnd { --st: var(--color-discord-dnd); }
.dc-offline { --st: var(--color-discord-offline); }
.status-pill:not(.rbx-offline):not(.dc-offline) { color: var(--color-discord-text); }
.rbx-dot { display: flex; line-height: 0; }
.rbx-dot i { display: block; width: 1rem; height: 1rem; border-radius: 9999px; background: var(--st); }
.rbx-dot.rbx-offline i { background: transparent; box-shadow: inset 0 0 0 0.25rem var(--st); }

/* Hero background pattern */
.hero-bg { opacity: 0.75; }

/* Compact cards: slim header when there's no banner, 4 per row on wide screens */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); align-items: stretch; }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; gap: 0.85rem; } }

/* ---- Card layout: same rows on every card ---- */
.card-top { position: relative; flex: none; height: 4.5rem; overflow: hidden; }
.card-top .card-banner { opacity: 0.9; }
.card-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 0.35rem; padding: 0 1rem 1rem; min-width: 0; }
.card-avatar { position: relative; width: 4.75rem; height: 4.75rem; margin-top: -2.4rem; margin-bottom: 0.35rem; padding: 0.3rem; border-radius: 9999px; background: var(--color-discord-popout); }
.card-avatar-img { display: flex; width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; }
.card-avatar .avatar-icon svg { width: 1.6rem; height: 1.6rem; }
.avatar-dot { position: absolute; right: 0; bottom: 0; z-index: 6; display: flex; padding: 0.22rem; border-radius: 9999px; background: var(--color-discord-popout); line-height: 0; }
.avatar-dot svg { width: 0.9rem; height: 0.9rem; }
.avatar-dot.rbx-dot i { width: 0.9rem; height: 0.9rem; }
.avatar-dot.rbx-dot.rbx-offline i { box-shadow: inset 0 0 0 0.22rem var(--st); }
.card-handle { font-size: 0.875rem; color: var(--color-discord-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -0.15rem; }
.card-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; }
.card-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.35rem; }
.chip-warn { color: var(--color-discord-idle) !important; background: color-mix(in oklch, var(--color-discord-idle) 14%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--color-discord-idle) 32%, transparent); }
.card-body .custom-status, .card-body .discord-bio { margin-top: 0.15rem; }
.member-card .name-row { min-width: 0; }


/* @username line: handle, then tag/role chip and badges (like xmr) */
.card-handle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; min-width: 0; margin-top: -0.1rem; }
.card-handle-row .card-handle { margin-top: 0; min-width: 0; max-width: 100%; }

/* Discord cards a bit wider so @user, tag and badges stay on one line */
.profile-group[data-group="discord"] .card-grid { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
@media (max-width: 640px) { .profile-group[data-group="discord"] .card-grid { grid-template-columns: 1fr; } }

/* Slightly smaller hero picture and tighter spacing to match the smaller name */
[data-hero-icon] { margin-bottom: 1.75rem !important; }
[data-hero-icon] > img { width: 6rem !important; height: 6rem !important; border-radius: 1.6rem !important; }
.rbx-hero-badge img { width: 1.75rem !important; height: 1.75rem !important; }
[data-hero-tagline] { margin-top: 1.25rem !important; font-size: clamp(1rem, 1.6vw, 1.35rem) !important; }

/* ================= Performance (no visual change) ================= */
/* Big always-animating layers get their own GPU layer and don't trigger layout. */
.grain { will-change: transform; contain: strict; }
.aurora, .hero-banner, .icon-halo, [data-hero-spotlight], [data-depth], [data-hero-content], [data-progress] { will-change: transform; }
.icon-halo { contain: paint; }
/* Scroll cue: same motion, but moved with transform instead of "top" (no repaint every frame). */
.scroll-cue::after { top: 0 !important; animation-name: scroll-cue-transform !important; }
@keyframes scroll-cue-transform { from { transform: translateY(-14px); } to { transform: translateY(56px); } }
/* Decorative loops pause while the hero is off screen or the tab is hidden. */
.motion-paused .aurora,
.motion-paused .hero-banner,
.motion-paused .icon-halo,
.motion-paused .scroll-cue::after { animation-play-state: paused !important; }
/* Background blur on controls that sit on solid cards isn't visible, only costly. */
.member-card [class*="backdrop-blur"] { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.member-card .card-top button:not(:hover), .member-card .card-top a:not(:hover) { background-color: rgb(0 0 0 / 0.58); }
/* Each card paints on its own; hovering one doesn't repaint the others. */
.member-card { contain: layout paint; }

/* Landing highlight after "Contact me" */
.profile-group { scroll-margin-top: 5.5rem; }
.profile-group.is-highlighted .member-card { animation: contact-glow 1.6s ease-out 0.45s; }
@keyframes contact-glow {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary) 0%, transparent); }
  30% { box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 70%, transparent), 0 0 40px -8px color-mix(in oklch, var(--primary) 60%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--primary) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .profile-group.is-highlighted .member-card { animation: none; } }

/* ---- Hero polish ---- */
/* Scroll hint: a small mouse outline with a dot gliding down (replaces the thin line). */
.scroll-mouse {
  display: flex;
  justify-content: center;
  width: 1.4rem;
  height: 2.2rem;
  padding-top: 0.4rem;
  border-radius: 9999px;
  border: 1.5px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.02);
  transition: border-color 0.35s ease, background-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-mouse:hover { border-color: rgb(255 255 255 / 0.45); background: rgb(255 255 255 / 0.05); transform: translateY(2px); }
.scroll-mouse:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.scroll-mouse-dot {
  width: 0.2rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.8);
  will-change: transform, opacity;
  animation: scroll-mouse-dot 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scroll-mouse-dot {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  65% { transform: translateY(0.7rem); opacity: 0; }
  100% { transform: translateY(0.7rem); opacity: 0; }
}
.motion-paused .scroll-mouse-dot { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .scroll-mouse-dot { animation: none; opacity: 0.8; } }

/* Tagline: lighter slash with a little air around it */
.tagline-sep { display: inline-block; margin: 0 0.18em; color: rgb(255 255 255 / 0.32); font-weight: 300; }

/* Placeholder avatar: gentle pulse until the live picture loads */
img[src$="placeholder.svg"] { animation: avatar-pulse 1.6s ease-in-out infinite; }
@keyframes avatar-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { img[src$="placeholder.svg"] { animation: none; } }

/* ================= Extras ================= */
/* Cursor glow (mouse/trackpad only): a soft warm light behind the content */
.cursor-glow {
  position: fixed;
  left: -18rem;
  top: -18rem;
  width: 36rem;
  height: 36rem;
  z-index: 0;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--glow-1) 9%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform, opacity;
}
.cursor-glow.is-on { opacity: 1; }
[data-hero-title] .hero-char { will-change: auto; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem 0.6rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -16px rgb(0 0 0 / 0.8);
  color: var(--foreground);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  translate: -50% 12px;
  transition: opacity 0.25s ease, translate 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast svg { width: 1rem; height: 1rem; color: var(--color-discord-online); }

/* Card hover: avatar lifts a touch */
.card-avatar { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.member-card:hover .card-avatar { transform: translateY(-3px) scale(1.03); }

/* Group label count */
.group-count {
  margin-left: 0.15rem;
  padding: 0.05rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  color: var(--color-discord-muted);
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

/* Keyboard: skip link appears on focus */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.25s ease;
}
.skip-link:focus-visible { transform: none; outline: 2px solid var(--primary); outline-offset: 2px; }
.member-card a:focus-visible, .member-card button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toast.is-error svg { color: var(--color-discord-dnd); }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ================= Premium overhaul ================= */
/* Header: quick-search button next to "Contact me" */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.palette-trigger {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 0.55rem 0 0.7rem;
  border-radius: 0.75rem; border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(255 255 255 / 0.03); color: var(--muted-foreground);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.palette-trigger:hover { border-color: rgb(255 255 255 / 0.25); background: rgb(255 255 255 / 0.07); color: var(--foreground); }
.palette-trigger svg { width: 0.95rem; height: 0.95rem; }
.palette-trigger kbd, .palette kbd {
  font-family: var(--font-mono); font-size: 0.68rem; line-height: 1;
  padding: 0.22rem 0.38rem; border-radius: 0.35rem;
  background: rgb(255 255 255 / 0.07); box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.06), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: var(--color-discord-muted);
}
@media (max-width: 640px) { .palette-trigger kbd { display: none; } .palette-trigger { padding: 0 0.65rem; } }

/* Command palette */
.palette { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: 14vh 1rem 1rem; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.2s ease; }
.palette-panel {
  position: relative; width: min(34rem, 100%); overflow: hidden;
  border-radius: 1.1rem; border: 1px solid rgb(255 255 255 / 0.1);
  background: color-mix(in oklch, var(--background) 92%, white 3%);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.06);
  opacity: 0; transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.palette.is-open .palette-backdrop { opacity: 1; }
.palette.is-open .palette-panel { opacity: 1; transform: none; }
.palette-search { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.1rem; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
.palette-search svg { width: 1.1rem; height: 1.1rem; color: var(--color-discord-muted); flex: none; }
.palette-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--foreground); font-size: 0.98rem; }
.palette-search input::placeholder { color: var(--color-discord-muted); }
.palette-list { max-height: min(22rem, 52vh); overflow-y: auto; padding: 0.4rem; margin: 0; list-style: none; }
.palette-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.65rem; border-radius: 0.7rem; cursor: pointer; }
.palette-item[aria-selected="true"] { background: rgb(255 255 255 / 0.07); }
.palette-glyph { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.6rem; background: rgb(255 255 255 / 0.05); color: var(--color-discord-muted); font-family: var(--font-mono); flex: none; }
.palette-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.palette-text strong { font-size: 0.9rem; font-weight: 600; color: var(--color-discord-header); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-text small { font-size: 0.78rem; color: var(--color-discord-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-tag { font-size: 0.7rem; font-weight: 600; color: var(--color-discord-text); padding: 0.15rem 0.45rem; border-radius: 0.4rem; background: rgb(255 255 255 / 0.06); }
.palette-empty { padding: 1.5rem; text-align: center; color: var(--color-discord-muted); font-size: 0.85rem; }
.palette-foot { display: flex; gap: 1rem; padding: 0.6rem 1.1rem; border-top: 1px solid rgb(255 255 255 / 0.07); font-size: 0.72rem; color: var(--color-discord-muted); }
.palette-foot span { display: inline-flex; align-items: center; gap: 0.3rem; }
@media (max-width: 640px) { .palette-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .palette-panel, .palette-backdrop { transition: none; } }

/* Cards: a thin light edge along the top, like light catching glass */
.member-card .card-top::after {
  content: "";
  position: absolute; inset: 0 0 auto; height: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.16) 30%, rgb(255 255 255 / 0.16) 70%, transparent);
}
.member-card { transition: border-color 0.5s, box-shadow 0.5s, translate 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* Hero avatar: a slowly turning light ring */
@property --ring-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
[data-hero-icon]::before {
  content: "";
  position: absolute; inset: -7px; z-index: 0; pointer-events: none;
  border-radius: calc(1.6rem + 7px);
  padding: 1px;
  background: conic-gradient(from var(--ring-angle), transparent 0 62%, rgb(255 255 255 / 0.5) 80%, color-mix(in oklch, var(--glow-1) 60%, transparent) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ring-turn 7s linear infinite;
}
@keyframes ring-turn { to { --ring-angle: 360deg; } }
.motion-paused [data-hero-icon]::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { [data-hero-icon]::before { animation: none; } }

/* Text selection + slim dark scrollbar */
::selection { background: color-mix(in oklch, var(--primary) 45%, transparent); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(255 255 255 / 0.14); border-radius: 9999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(255 255 255 / 0.26); }

/* Tiny footer */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.75rem;
  max-width: 72rem; width: 100%; margin: 0 auto; padding: 1.75rem 1.5rem 2.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.05);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-discord-muted);
}
.foot-dot { opacity: 0.5; }
.foot-live { display: inline-flex; align-items: center; gap: 0.45rem; }
.foot-live i { width: 0.4rem; height: 0.4rem; border-radius: 9999px; background: var(--color-discord-online); box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-discord-online) 20%, transparent); animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.45; } }
.foot-top { margin-left: auto; transition: color 0.3s; }
.foot-top:hover { color: var(--foreground); }
@media (max-width: 640px) { .foot-top { margin-left: 0; width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .foot-live i { animation: none; } }

/* Always keep room under the tagline for the scroll hint */
.hero-compact { padding-bottom: 6.5rem !important; }
@media (max-width: 640px) { .hero-compact { padding-bottom: 6rem !important; } }

/* Palette: badges, tags and status dots */
.pal-avatar { position: relative; flex: none; width: 2rem; height: 2rem; }
.pal-avatar img { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; }
.pal-dot { position: absolute; right: -2px; bottom: -2px; width: 0.7rem; height: 0.7rem; border-radius: 9999px; background: var(--st); box-shadow: 0 0 0 2.5px color-mix(in oklch, var(--background) 92%, white 3%); }
.pal-dot.rbx-offline, .pal-dot.dc-offline { background: color-mix(in oklch, var(--background) 92%, white 3%); box-shadow: inset 0 0 0 2.5px var(--st), 0 0 0 2.5px color-mix(in oklch, var(--background) 92%, white 3%); }
.pal-title { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.pal-title strong { min-width: 0; }
.pal-badges { display: inline-flex; flex: none; align-items: center; gap: 0.2rem; }
.pal-badge { display: inline-flex; line-height: 0; }
.pal-badge img { width: 1rem; height: 1rem; object-fit: contain; }
.pal-badge .yt-badge { width: 0.95rem; height: 0.95rem; }
.pal-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.08rem 0.35rem; border-radius: 0.35rem; font-size: 0.68rem; font-weight: 600; color: var(--color-discord-text); background: rgb(255 255 255 / 0.07); }
.pal-tag img { width: 0.8rem; height: 0.8rem; }
.pal-tag svg { width: 0.75rem; height: 0.75rem; }
.pal-warn { color: var(--color-discord-idle); background: color-mix(in oklch, var(--color-discord-idle) 14%, transparent); }
/* Badge tooltips must sit above the palette */
.badge-tip { z-index: 95; }
