/* ═══════════════════════════════════════════════════════════════════
   rev. — style.css
   Minimalist dark theme · glassmorphism · soft glow accents

   TABLE OF CONTENTS
   ─────────────────
    0. Design tokens
    1. Reset / base
    2. Ambient background (blobs · grid · noise · particles)
    3. Motion system (reveals · shared keyframes · reduced motion)
    4. Nav
    5. Hero
    6. Vibes marquee
    7. Buttons
    8. Cards (glass, spotlight, tilt)
    9. Discord presence card
   10. Spotify card + lyrics
   11. Server card
   12. Links / socials
   13. Footer
   14. Custom cursor & click effects
   15. Entry gate
   16. Responsive
   ═══════════════════════════════════════════════════════════════════ */

/* ── 0. Design tokens ──────────────────────────────────────────── */
:root {
  /* Pure near-black base (wbio-style) */
  --bg:          #050505;
  --surface:     rgba(255, 255, 255, 0.045);
  --surface-2:   rgba(255, 255, 255, 0.075);
  --border:      rgba(255, 255, 255, 0.07);
  --border-hi:   rgba(255, 255, 255, 0.14);

  /* Gray-white text ramp */
  --text:        #e5e7eb;
  --text-dim:    #9da3ae;
  --text-faint:  #62666f;

  /* One-accent violet scheme: --peri is the primary violet,
     --mint a lighter violet used for the Spotify side, --lav lavender */
  --peri:        #8b5cf6;
  --peri-rgb:    139, 92, 246;
  --mint:        #a78bfa;
  --mint-rgb:    167, 139, 250;
  --lav:         #c4b5fd;

  /* Discord status colors stay semantic (they carry meaning) */
  --st-online:   #4ade80;
  --st-idle:     #fbbf24;
  --st-dnd:      #fb7185;
  --st-offline:  #8b90a0;

  --radius:      20px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

/* ── 1. Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }

/* JS toggles visibility via the hidden attribute; this keeps it winning
   over any display: flex/grid set on the same element */
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(var(--peri-rgb), 0.30); }

.accent { color: var(--peri); }

/* ── 2. Ambient background ─────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

/* Radial gradients instead of filter:blur() — same soft-glow look,
   a fraction of the GPU cost */
.bg-blob {
  position: absolute;
  width: 70vmax; height: 70vmax;
  opacity: 0.5;
  will-change: transform;
  animation: drift 30s var(--ease) infinite alternate;
}
.bg-blob--peri { background: radial-gradient(circle, rgba(var(--peri-rgb), 0.20), transparent 65%); top: -25%; left: -18%; }
.bg-blob--mint { background: radial-gradient(circle, rgba(var(--mint-rgb), 0.13), transparent 65%); bottom: -30%; right: -20%; animation-delay: -11s; animation-duration: 36s; }
.bg-blob--lav  { background: radial-gradient(circle, rgba(196, 181, 253, 0.10), transparent 65%);  top: 22%; left: 45%; width: 50vmax; height: 50vmax; animation-delay: -19s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, -5vmax) scale(1.15); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

.bg-noise {
  position: absolute; inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating dust particles (spans rendered by JS with per-particle
   custom props: --x --s --c --o --t --delay) */
.bg-particles { position: absolute; inset: 0; }
.bg-particle {
  position: absolute;
  bottom: -10px; left: var(--x);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
  animation: float-up var(--t) linear infinite;
  animation-delay: var(--delay);
}
@keyframes float-up {
  0%   { transform: translateY(0);       opacity: 0; }
  8%   { opacity: var(--o); }
  85%  { opacity: var(--o); }
  100% { transform: translateY(-105vh);  opacity: 0; }
}

/* ── 3. Motion system ──────────────────────────────────────────── */
/* Elements start hidden; an IntersectionObserver adds .in when they
   enter the viewport, so below-the-fold content animates on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.in {
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── 4. Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 16px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px;
  margin: 20px auto 0;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  width: calc(100% - 40px);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem;
  transition: text-shadow 0.3s var(--ease);
}
.nav__logo:hover { text-shadow: 0 0 22px rgba(var(--peri-rgb), 0.7); }

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 50%; bottom: 3px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--peri);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.nav__links a:hover::after { width: 40%; }

/* ── 5. Hero ───────────────────────────────────────────────────── */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(80px, 16vh, 160px) 24px 50px;
  text-align: center;
}

.hero__kicker {
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__name {
  background: linear-gradient(120deg, #a78bfa, #d6c8ff 50%, #8b5cf6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 9s ease infinite;
}
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__sub {
  max-width: 520px;
  margin: 22px auto 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero__sub em { color: var(--text); font-style: normal; font-weight: 600; }

/* Rotating descriptor — JS swaps the word with a fade/rise */
.hero__roles {
  margin-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
#role-word {
  display: inline-block;
  min-width: 130px;
  color: var(--lav);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
#role-word.swap { opacity: 0; transform: translateY(8px); }

.hero__cta {
  display: flex; gap: 14px; justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero__scrollcue {
  margin: 64px auto 0;
  width: 26px; height: 42px;
  border: 2px solid var(--border-hi);
  border-radius: 999px;
  position: relative;
}
.hero__scrollcue span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text-dim);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ── 6. Vibes marquee ──────────────────────────────────────────── */
.marquee {
  max-width: 1080px;
  margin: 0 auto 8px;
  padding: 0 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__track span:hover { color: var(--text); }
.marquee__track i { color: var(--peri); font-style: normal; font-size: 0.7rem; opacity: 0.6; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ── 7. Buttons ────────────────────────────────────────────────── */
/* --magx/--magy are set by JS (initMagnetic) so buttons lean a few px
   toward the cursor; they default to 0 so everything works without JS */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 14px;
  font-weight: 600; font-size: 0.95rem;
  overflow: hidden;
  cursor: pointer;
  transform: translate(var(--magx, 0px), var(--magy, 0px));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:active { transform: translate(var(--magx, 0px), var(--magy, 0px)) scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--peri), #7c3aed);
  color: #fff;
}
.btn--primary:hover {
  transform: translate(var(--magx, 0px), var(--magy, 0px)) translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(var(--peri-rgb), 0.35);
}

.btn--ghost {
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  background: transparent;
}
.btn--ghost:hover {
  transform: translate(var(--magx, 0px), var(--magy, 0px)) translateY(-2px) scale(1.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface);
}

/* Join button — premium hover: lift, glow, sweeping shine */
.btn--join {
  background: linear-gradient(135deg, var(--peri), #7c3aed);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 15px 26px;
}
.btn--join:hover {
  transform: translate(var(--magx, 0px), var(--magy, 0px)) translateY(-3px) scale(1.02);
  box-shadow: 0 10px 34px rgba(var(--peri-rgb), 0.4), 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}
.btn__shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.30) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn--join:hover .btn__shine { transform: translateX(120%); }

/* ── 8. Cards (glass, spotlight, tilt) ─────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 70px;
  align-items: start;
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  overflow: hidden;
  /* --rx/--ry (tilt) and --mx/--my (spotlight) are set by JS on mousemove */
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.35s var(--ease), border-color 0.4s, box-shadow 0.4s var(--ease);
  scroll-margin-top: 100px;
}
.card:hover {
  --lift: -4px;
  border-color: var(--border-hi);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

/* Radial highlight that follows the cursor */
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.06), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__glow {
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 120px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card:hover .card__glow { opacity: 0.22; }
.card__glow--peri { background: var(--peri); }
.card__glow--mint { background: var(--mint); }

.card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}

.card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  animation: dot-breathe 3s ease-in-out infinite;
}
.dot--peri { background: var(--peri); box-shadow: 0 0 8px rgba(var(--peri-rgb), 0.8); }
.dot--mint { background: var(--mint); box-shadow: 0 0 8px rgba(var(--mint-rgb), 0.8); }
.dot--gray { background: var(--st-offline); animation: none; }
@keyframes dot-breathe {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.78); opacity: 0.65; }
}

/* ── 9. Discord presence card ──────────────────────────────────── */
.profile { display: flex; align-items: center; gap: 18px; }

.profile__avatar-wrap {
  position: relative; flex-shrink: 0;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.profile__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  position: relative; z-index: 1;
  transition: transform 0.4s var(--ease);
}
.profile__avatar-wrap:hover .profile__avatar { transform: scale(1.05); }

/* Glowing status ring — color driven by [data-status] on the card */
.profile__ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--st-offline);
  transition: border-color 0.5s, box-shadow 0.5s;
  animation: ring-pulse 2.6s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1);     opacity: 1; }
  50%      { transform: scale(1.045); opacity: 0.75; }
}

.profile__status-dot {
  position: absolute; bottom: 3px; right: 3px; z-index: 2;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  background: var(--st-offline);
  transition: background 0.4s, box-shadow 0.4s;
}
/* Radar ping radiating from the status dot */
.profile__status-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.55; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.card--discord[data-status="online"]  .profile__ring       { border-color: var(--st-online);  box-shadow: 0 0 18px rgba(74, 222, 128, 0.4); }
.card--discord[data-status="online"]  .profile__status-dot { background: var(--st-online);    box-shadow: 0 0 8px var(--st-online); }
.card--discord[data-status="idle"]    .profile__ring       { border-color: var(--st-idle);    box-shadow: 0 0 18px rgba(251, 191, 36, 0.4); }
.card--discord[data-status="idle"]    .profile__status-dot { background: var(--st-idle);      box-shadow: 0 0 8px var(--st-idle); }
.card--discord[data-status="dnd"]     .profile__ring       { border-color: var(--st-dnd);     box-shadow: 0 0 18px rgba(251, 113, 133, 0.4); }
.card--discord[data-status="dnd"]     .profile__status-dot { background: var(--st-dnd);       box-shadow: 0 0 8px var(--st-dnd); }
.card--discord[data-status="offline"] .profile__ring       { border-color: var(--st-offline); animation: none; }
.card--discord[data-status="offline"] .profile__status-dot::after { animation: none; opacity: 0; }

.profile__name {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* Server-tag chip (Discord "guild tag"), like the native client shows */
.profile__guildtag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--border-hi);
  background: var(--surface-2);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.profile__guildtag:hover {
  border-color: var(--peri);
  box-shadow: 0 0 12px rgba(var(--peri-rgb), 0.3);
}
.profile__guildtag img { border-radius: 3px; }

.profile__username { color: var(--text-faint); font-size: 0.9rem; }
.profile__state {
  margin-top: 8px;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-dim);
}
.profile__device {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.profile__device:empty { display: none; }

/* Rich presence activity */
.activity {
  display: flex; gap: 14px; align-items: center;
  margin-top: 20px; padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  animation: rise 0.6s var(--ease);
}
.activity__img {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.activity__meta { min-width: 0; }
.activity__label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--peri);
}
.activity__name { font-weight: 600; font-size: 0.95rem; }
.activity__detail, .activity__state {
  font-size: 0.82rem; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity__detail:empty, .activity__state:empty { display: none; }
.activity__elapsed {
  font-size: 0.74rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.activity__elapsed:empty { display: none; }

/* ── 10. Spotify card + lyrics ─────────────────────────────────── */

/* Rotating mint border while a track is live */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.card--spotify.is-live::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin), transparent 62%, rgba(var(--mint-rgb), 0.5) 82%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: spin-border 6s linear infinite;
  pointer-events: none;
}
@keyframes spin-border {
  to { --spin: 360deg; }
}

.viz { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.viz span {
  width: 3.5px;
  border-radius: 2px;
  background: var(--mint);
  height: 4px;
  opacity: 0.25;
  transition: opacity 0.4s;
}
.viz.is-playing span { opacity: 1; animation: viz-bounce 0.9s ease-in-out infinite alternate; }
.viz span:nth-child(1) { animation-delay: -0.10s; }
.viz span:nth-child(2) { animation-delay: -0.35s; }
.viz span:nth-child(3) { animation-delay: -0.60s; }
.viz span:nth-child(4) { animation-delay: -0.25s; }
.viz span:nth-child(5) { animation-delay: -0.50s; }
@keyframes viz-bounce {
  from { height: 4px; }
  to   { height: 18px; }
}

.spotify-idle {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 34px 10px;
  text-align: center; color: var(--text-dim);
  font-size: 0.95rem;
}
.spotify-idle span { color: var(--text-faint); font-size: 0.83rem; }
.spotify-idle__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  color: var(--mint);
  animation: bob 5s ease-in-out infinite;
}

.spotify__track { display: flex; gap: 16px; align-items: center; }

.spotify__art-wrap { position: relative; flex-shrink: 0; }
.spotify__art {
  width: 88px; height: 88px;
  border-radius: 12px;
  position: relative; z-index: 1;
  transition: transform 0.4s var(--ease);
}
.spotify__art-wrap:hover .spotify__art { transform: scale(1.04) rotate(-1deg); }
.spotify__art-glow {
  position: absolute; inset: 6px;
  border-radius: 12px;
  background: var(--mint);
  filter: blur(22px);
  opacity: 0.25;
  animation: art-breathe 4s ease-in-out infinite;
}
@keyframes art-breathe {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.32; }
}

.spotify__meta { min-width: 0; }
.spotify__song {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.08rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.25s;
}
.spotify__song:hover { color: var(--mint); }
.spotify__artist { color: var(--text-dim); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotify__album  { color: var(--text-faint); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.spotify__progress {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
}
.spotify__time {
  font-size: 0.72rem; font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  min-width: 32px;
}
.spotify__time:last-child { text-align: right; }
.spotify__bar {
  flex: 1; height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}
.spotify__bar-fill {
  position: relative;
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, var(--mint));
  box-shadow: 0 0 8px rgba(var(--mint-rgb), 0.55);
  transition: width 1s linear;
}
/* Playhead knob riding the end of the fill */
.spotify__bar-fill::after {
  content: "";
  position: absolute; right: -4px; top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px rgba(var(--mint-rgb), 0.8);
}

/* Lyrics — Spotify-mobile style scroll */
.lyrics {
  position: relative;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.lyrics__viewport {
  height: 168px;
  overflow: hidden;
  position: relative;
}

.lyrics__scroller {
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.lyrics__line {
  padding: 7px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text-faint);
  opacity: 0.45;
  filter: blur(0.6px);
  transform: scale(0.97);
  transform-origin: left center;
  transition: color 0.5s, opacity 0.5s, transform 0.5s var(--ease), filter 0.5s, text-shadow 0.5s;
}
.lyrics__line.is-active {
  color: var(--text);
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  text-shadow: 0 0 22px rgba(var(--mint-rgb), 0.3);
}
.lyrics__line.is-past { opacity: 0.25; }

.lyrics__placeholder,
.lyrics__plain {
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 8px 2px;
}
.lyrics__plain { white-space: pre-line; color: var(--text-dim); }

.lyrics__fade {
  position: absolute; left: 0; right: 0;
  height: 44px; z-index: 2;
  pointer-events: none;
}
.lyrics__fade--top    { top: 14px;  background: linear-gradient(to bottom, #0e0e11, transparent); }
.lyrics__fade--bottom { bottom: 0;  background: linear-gradient(to top,    #0e0e11, transparent); }

/* ── 11. Server card ───────────────────────────────────────────── */
.server { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }

.server__icon {
  width: 76px; height: 76px;
  border-radius: 24px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  color: var(--peri);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-radius 0.4s var(--ease), box-shadow 0.4s;
}
.server__icon img { width: 100%; height: 100%; object-fit: cover; }
.card--server:hover .server__icon {
  transform: scale(1.06);
  border-radius: 18px;
  box-shadow: 0 0 26px rgba(var(--peri-rgb), 0.3);
}

.server__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.server__desc { color: var(--text-dim); font-size: 0.9rem; max-width: 280px; }

.server__counts { display: flex; gap: 18px; margin: 4px 0 8px; }
.server__count {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: var(--text-dim);
}
.server__count b { color: var(--text); font-weight: 600; }

/* ── 12. Links / socials ───────────────────────────────────────── */
.links {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 60px;
  text-align: center;
}
.links__title {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.links__row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.link-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-dim);
  transform: translate(var(--magx, 0px), var(--magy, 0px));
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, box-shadow 0.3s var(--ease);
}
.link-chip svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.link-chip:hover {
  transform: translate(var(--magx, 0px), var(--magy, 0px)) translateY(-3px) scale(1.03);
  color: var(--text);
  border-color: var(--chip-glow, var(--border-hi));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--chip-glow, #fff) 20%, transparent);
}
.link-chip:hover svg { transform: scale(1.15) rotate(-6deg); }

/* ── 13. Footer ────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 30px 24px 44px;
  color: var(--text-faint);
  font-size: 0.83rem;
}
.footer a {
  color: var(--text-dim);
  transition: color 0.25s;
}
.footer a:hover { color: var(--text); }

/* ── 14. Custom cursor & click effects ─────────────────────────── */
/* JS adds .custom-cursor to <body> only on fine pointers, so touch
   devices and no-JS visitors keep the native cursor */
body.custom-cursor,
body.custom-cursor a,
body.custom-cursor button { cursor: none; }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  z-index: 2000; /* above the entry gate so the cursor shows on the splash */
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--peri);
  box-shadow: 0 0 10px rgba(var(--peri-rgb), 0.9);
  transition: opacity 0.3s, width 0.2s var(--ease), height 0.2s var(--ease);
}
.cursor-dot.is-down { width: 10px; height: 10px; }

.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(var(--peri-rgb), 0.45);
  transition: opacity 0.3s,
              width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s, background 0.3s;
}
.cursor-ring.is-hover {
  width: 52px; height: 52px;
  border-color: rgba(var(--mint-rgb), 0.6);
  background: rgba(var(--mint-rgb), 0.05);
}
.cursor-ring.is-down { width: 26px; height: 26px; }

/* Expanding ring spawned at each click point (removed on animationend) */
.click-ripple {
  position: fixed;
  z-index: 1999;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(var(--peri-rgb), 0.7);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  animation: ripple 0.5s ease-out forwards;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* ── 15. Entry gate ────────────────────────────────────────────── */
/* Terminal-style splash over everything; JS types the path, a click
   (or Enter) dissolves it and starts the reveal cascade */
.gate {
  position: fixed; inset: 0;
  z-index: 1500;
  display: grid; place-items: center;
  background: #050505;
  cursor: pointer;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
body.custom-cursor .gate { cursor: none; }

.gate__inner {
  text-align: center;
  font-family: "Courier New", Consolas, monospace;
  text-transform: uppercase;
  user-select: none;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.gate__path {
  font-size: 14px;
  letter-spacing: 7px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 28px;
}

.gate__caret {
  display: inline-block;
  width: 9px; height: 15px;
  margin-left: 5px;
  vertical-align: -2px;
  background: rgba(255, 255, 255, 0.55);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}

.gate__enter {
  font-size: clamp(20px, 5vw, 36px);
  letter-spacing: 0.3em;
  color: #fff;
  animation: enter-pulse 2.4s ease-in-out infinite;
}
@keyframes enter-pulse {
  0%, 100% { opacity: 1;    text-shadow: 0 0 0 rgba(var(--peri-rgb), 0); }
  50%      { opacity: 0.7;  text-shadow: 0 0 20px rgba(var(--peri-rgb), 0.35); }
}
.gate:hover .gate__enter { text-shadow: 0 0 24px rgba(var(--peri-rgb), 0.5); }

/* Dissolve: fade the overlay while the text drifts up and blurs */
.gate.is-open { opacity: 0; visibility: hidden; }
.gate.is-open .gate__inner { transform: scale(1.08) translateY(-10px); filter: blur(8px); }

/* No scrolling while the gate is up */
body.gate-locked { overflow: hidden; }

/* ── 16. Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav__links a:not(:last-child) { display: none; }
  .profile { flex-direction: column; text-align: center; }
  .profile__meta { text-align: center; }
  .profile__name { justify-content: center; }
  .lyrics__line { transform-origin: center; }
}
