/* ═══════════════════════════════════════════════════════
   DISCORD BIO — style.css
   ─────────────────────────────────────────────────────
   Structure:
   1. CSS Variables & Reset
   2. Background & Blobs
   3. Card Shell
   4. Card Sections
   5. Avatar & Status
   6. Roles
   7. Link Buttons
   8. Activity Bar
   9. Animations
   10. Responsive
═══════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════════════ */

#splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  cursor: pointer;
  overflow: hidden;
}

/* Star canvas fills the splash */
#star-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Heavy blur layer over the stars */
.splash__blur {
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(6px) brightness(.7);
  -webkit-backdrop-filter: blur(6px) brightness(.7);
  background: rgba(5,4,18,.45);
}

/* Centered text content */
.splash__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 2rem;
}

.splash__title {
  font-family: 'Ethnocentric', 'Syne', sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 0 40px rgba(88,101,242,.9),
    0 0 80px rgba(88,101,242,.5),
    0 0 2px rgba(255,255,255,.8);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 30px rgba(88,101,242,.8),  0 0 60px rgba(88,101,242,.4),  0 0 2px #fff; }
  to   { text-shadow: 0 0 55px rgba(140,90,255,1.0), 0 0 110px rgba(88,101,242,.7), 0 0 4px #fff; }
}

.splash__sub {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  animation: breathe 2.5s ease-in-out infinite;
  order: -1; /* appears above title */
}

@keyframes breathe {
  0%, 100% { opacity: .35; }
  50%       { opacity: .75; }
}

/* Pulsing ring behind the title */
.splash__pulse {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(88,101,242,.25);
  animation: pulseRing 2.8s ease-out infinite;
  pointer-events: none;
}

.splash__pulse::before,
.splash__pulse::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(88,101,242,.12);
  animation: pulseRing 2.8s ease-out infinite;
}

.splash__pulse::after {
  inset: -80px;
  animation-delay: .6s;
}

@keyframes pulseRing {
  0%   { transform: scale(.85); opacity: .6; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ── Splash exit animation ────────────────────────── */
#splash.splash--exit {
  animation: splashExit .9s cubic-bezier(.7,0,.3,1) forwards;
  pointer-events: none;
}

@keyframes splashExit {
  0%   { opacity: 1;  transform: scale(1); }
  60%  { opacity: 1;  transform: scale(1.04); }
  100% { opacity: 0;  transform: scale(1.08); }
}


/* ── 1. Variables & Reset ─────────────────────────── */
:root {
  --bg:            #08090f;
  --surface:       #0e0f18;
  --surface-2:     rgba(255,255,255,.04);
  --surface-3:     rgba(255,255,255,.06);
  --border:        rgba(255,255,255,.07);
  --text-primary:  #f2f3f5;
  --text-secondary:#b5bac1;
  --text-muted:    #72767d;
  --accent:        #9b5de5;
  --accent-glow:   rgba(155,93,229,.4);
  --green:         #23a55a;
  --radius-card:   12px;
  --radius-sm:     6px;
  --font-display:  'Syne', sans-serif;
  --font-mono:     'Space Mono', monospace;
  --transition:    .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  min-height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  overflow-x: hidden;
  padding: 2rem 1rem;
}


/* ── 2. Background Canvas & Blobs ─────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  z-index: 0;
  pointer-events: none;
  animation: float 12s ease-in-out infinite alternate;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #7b2fff, transparent 70%);
  top: -120px; left: -100px;
  animation-duration: 14s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #5bc8fa, transparent 70%);
  bottom: -80px; right: -80px;
  animation-duration: 18s;
  animation-delay: -6s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a78bfa, transparent 70%);
  top: 50%; left: 60%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}


/* ── 3. Card Shell ────────────────────────────────── */
.card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 360px;
  background:
    linear-gradient(
      180deg,
      #1a1035 0%,
      #130d2e 18%,
      #0f0a24 36%,
      #0b0918 58%,
      #080810 100%
    );
  border: 1px solid rgba(155,93,229,.2);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 60px rgba(155,93,229,.07) inset;
  animation: cardIn .6s cubic-bezier(.34,1.4,.64,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}


/* ── 4. Banner ────────────────────────────────────── */
.card__banner {
  position: relative;
  height: 100px;
  background: linear-gradient(135deg, #a8d8f0 0%, #7cb8e8 30%, #9b5de5 70%, #7b2fff 100%);
  overflow: hidden;
}

.banner__pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 20px),
    repeating-linear-gradient(-45deg,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 20px);
}

.banner__tag {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--font-mono);
  font-size: .6rem;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.25);
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  letter-spacing: .04em;
}


/* ── 5. Avatar & Status ───────────────────────────── */
.card__avatar-wrap {
  position: relative;
  margin-left: 20px;
  margin-top: -44px;
  display: inline-block;
}

.card__avatar {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #eb459e);
  border: 6px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.avatar__letter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
}

.avatar__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, #5865F2, #eb459e) border-box;
  animation: spin-ring 6s linear infinite;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.status-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--surface);
}
.status--online { background: var(--green); }
.status--idle   { background: #f0b232; }
.status--dnd    { background: #ed4245; }


/* ── Name & Handle ────────────────────────────────── */
.card__head {
  padding: 10px 20px 0;
}

.card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

.card__handle {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card__discriminator {
  color: var(--text-muted);
}


/* ── Divider ──────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}


/* ── Sections ─────────────────────────────────────── */
.card__section {
  padding: 0 20px;
}

.card__section--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.section__label {
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section__text {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}


/* ── Quote (Whitebeard) ───────────────────────────── */
.quote {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  padding-left: 4px;
}

.quote__mark {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -6px;
  opacity: .8;
}

.quote__source {
  margin-top: 8px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--accent);
  letter-spacing: .05em;
  opacity: .75;
}


/* ── 6. Roles ─────────────────────────────────────── */
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid;
  cursor: default;
  position: relative;
  overflow: hidden;
  letter-spacing: .02em;
  transition:
    transform .2s cubic-bezier(.34,1.4,.64,1),
    box-shadow .2s ease,
    filter .2s ease;
}

/* Shimmer sweep on hover — uses ::after so ::before stays free for tooltip arrow */
.role::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,255,255,.12) 50%,
    transparent 70%);
  transform: translateX(-120%);
  transition: transform .45s ease;
  pointer-events: none;
  z-index: 0;
}

.role:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.25) saturate(1.2);
}

.role:hover::after {
  transform: translateX(120%);
}

/* ── Color variants ─── */
.role--purple {
  color: #c4caff;
  background: linear-gradient(135deg, rgba(88,101,242,.22), rgba(88,101,242,.10));
  border-color: rgba(88,101,242,.5);
  box-shadow: 0 0 12px rgba(88,101,242,.15), inset 0 1px 0 rgba(255,255,255,.06);
}
.role--purple:hover {
  box-shadow: 0 6px 22px rgba(88,101,242,.4), inset 0 1px 0 rgba(255,255,255,.08);
}

.role--blue {
  color: #a8d8ff;
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(59,130,246,.10));
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 12px rgba(59,130,246,.15), inset 0 1px 0 rgba(255,255,255,.06);
}
.role--blue:hover {
  box-shadow: 0 6px 22px rgba(59,130,246,.4), inset 0 1px 0 rgba(255,255,255,.08);
}

.role--green {
  color: #88f0a0;
  background: linear-gradient(135deg, rgba(35,165,90,.22), rgba(35,165,90,.10));
  border-color: rgba(35,165,90,.5);
  box-shadow: 0 0 12px rgba(35,165,90,.15), inset 0 1px 0 rgba(255,255,255,.06);
}
.role--green:hover {
  box-shadow: 0 6px 22px rgba(35,165,90,.4), inset 0 1px 0 rgba(255,255,255,.08);
}

.role--red {
  color: #ffaaaa;
  background: linear-gradient(135deg, rgba(237,66,69,.25), rgba(237,66,69,.10));
  border-color: rgba(237,66,69,.55);
  box-shadow: 0 0 12px rgba(237,66,69,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.role--red:hover {
  box-shadow: 0 6px 22px rgba(237,66,69,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

.role--yellow {
  color: #ffe499;
  background: linear-gradient(135deg, rgba(240,178,50,.22), rgba(240,178,50,.10));
  border-color: rgba(240,178,50,.5);
  box-shadow: 0 0 12px rgba(240,178,50,.15), inset 0 1px 0 rgba(255,255,255,.06);
}
.role--yellow:hover {
  box-shadow: 0 6px 22px rgba(240,178,50,.4), inset 0 1px 0 rgba(255,255,255,.08);
}


/* ── 7. Link Buttons ──────────────────────────────── */
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-secondary);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.link-btn svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), #eb459e);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-btn:hover {
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.link-btn:hover::before { opacity: .12; }

.link-btn span, .link-btn svg { position: relative; z-index: 1; }


/* ── 8. Activity Bar ──────────────────────────────── */
.activity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding: 10px 16px 14px;
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.06);
}

.activity__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

.activity__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity__title {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.activity__name {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 600;
}


/* ── 9. Scroll-in for sections ────────────────────── */
.card__section,
.activity {
  animation: fadeUp .5s ease both;
}
.card__section:nth-child(3)  { animation-delay: .05s; }
.card__section:nth-child(5)  { animation-delay: .10s; }
.card__section:nth-child(7)  { animation-delay: .15s; }
.card__section:nth-child(9)  { animation-delay: .20s; }
.card__section:nth-child(11) { animation-delay: .25s; }
.activity                    { animation-delay: .30s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}


/* ── 10. Music Toggle Button ──────────────────────── */
.music-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,18,20,.75);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 30px;
  padding: 7px 13px 7px 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: .65rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.music-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 14px var(--accent-glow);
}

.music-btn--playing {
  border-color: rgba(88,101,242,.6);
  box-shadow: 0 0 18px var(--accent-glow);
}

.music-btn__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Equaliser bars */
.music-btn__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-btn__bars span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background var(--transition);
}

.music-btn__bars--active span {
  background: var(--accent);
  animation: eq-bar 0.9s ease-in-out infinite alternate;
}

.music-btn__bars--active span:nth-child(1) { animation-duration: 0.7s; animation-delay: 0s;    }
.music-btn__bars--active span:nth-child(2) { animation-duration: 1.1s; animation-delay: 0.15s; }
.music-btn__bars--active span:nth-child(3) { animation-duration: 0.8s; animation-delay: 0.05s; }
.music-btn__bars--active span:nth-child(4) { animation-duration: 1.0s; animation-delay: 0.25s; }

@keyframes eq-bar {
  from { height: 3px;  }
  to   { height: 14px; }
}


/* ── 11. Avatar image (pfp from assets/) ─────────── */
.avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: none; /* shown by JS on load */
  z-index: 1;
}

/* ── 12. No user-select site-wide ────────────────── */
body {
  -webkit-user-select: none;
  user-select: none;
}


/* ── 13. Splash Screen ────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: #03040a;
  transition: opacity .9s cubic-bezier(.4,0,.2,1), visibility .9s;
}

#splash.splash--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Star canvas fills the splash */
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Frosted-glass blur layer over the stars */
.splash__blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px) brightness(.7);
  -webkit-backdrop-filter: blur(6px) brightness(.7);
  background: radial-gradient(
    ellipse at center,
    rgba(10,8,30,.45) 0%,
    rgba(3,4,10,.75) 70%
  );
}

/* Text content */
.splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: splashFadeIn 1.2s ease both;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.splash__title {
  font-family: 'Ethnocentric', 'ethnocentric rg', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, #a8b4ff 40%, #c084fc 80%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(168,180,255,.45));
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 14px rgba(168,180,255,.35)); }
  to   { filter: drop-shadow(0 0 32px rgba(192,132,252,.65)); }
}

.splash__sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(180,185,220,.55);
  animation: splashFadeIn 1.6s ease both;
}

/* Pulsing ring below title */
.splash__pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(168,180,255,.3);
  position: relative;
  animation: ringPulse 2s ease-in-out infinite;
}

.splash__pulse::before,
.splash__pulse::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(168,180,255,.15);
  animation: ringPulse 2s ease-in-out infinite;
}

.splash__pulse::after {
  inset: -22px;
  animation-delay: .4s;
}

@keyframes ringPulse {
  0%, 100% { opacity: .6; transform: scale(1);    }
  50%       { opacity: .2; transform: scale(1.08); }
}


/* ── 10. Responsive / Mobile ──────────────────────── */

/* Tablet & small desktop */
@media (max-width: 520px) {
  body { padding: 0; align-items: flex-start; }

  .card {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-height: 100dvh;
    box-shadow: none;
  }

  .card__banner { height: 130px; }

  .card__avatar-wrap { margin-left: 16px; margin-top: -50px; }

  .card__avatar {
    width: 88px;
    height: 88px;
    border-width: 5px;
  }

  .card__head { padding: 8px 16px 0; }

  .card__name { font-size: 1.2rem; }

  .card__handle { font-size: .7rem; }

  .card__section { padding: 0 16px; }

  .card__section--row { grid-template-columns: 1fr 1fr; gap: 8px; }

  .section__label { font-size: .58rem; }

  .section__text { font-size: .8rem; }

  .roles { gap: 5px; }

  .role { font-size: .62rem; padding: 3px 8px; }

  .links { gap: 6px; }

  .link-btn { font-size: .64rem; padding: 5px 10px; }

  .link-btn svg { width: 13px; height: 13px; }

  .activity { padding: 10px 14px 16px; }

  .activity__icon { font-size: 1.2rem; }

  .activity__name { font-size: .74rem; }

  .music-btn {
    top: 12px;
    right: 12px;
    padding: 5px 10px 5px 8px;
    font-size: .6rem;
  }

  .splash__title { font-size: clamp(1.5rem, 8vw, 2.8rem); }
}

/* Very small phones */
@media (max-width: 360px) {
  .card__name  { font-size: 1rem; }
  .card__section--row { grid-template-columns: 1fr; }
  .links { flex-direction: column; align-items: flex-start; }
}

/* Landscape phones — keep card scrollable */
@media (max-height: 500px) and (orientation: landscape) {
  body { align-items: flex-start; }
  .card { min-height: unset; }
  .card__banner { height: 80px; }
}


/* ════════════════════════════════════════════════════
   CUSTOM CURSOR
════════════════════════════════════════════════════ */

/* Hide default cursor on desktop */
@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

#cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(88, 101, 242, .7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s, opacity .2s;
}

/* Hover state — triggered via JS adding .cursor--hover to body */
body.cursor--hover #cursor-dot {
  width: 10px;
  height: 10px;
  background: #5865F2;
}
body.cursor--hover #cursor-ring {
  width: 46px;
  height: 46px;
  border-color: rgba(88, 101, 242, .4);
}

/* Click flash */
body.cursor--click #cursor-dot {
  width: 14px;
  height: 14px;
  background: #eb459e;
}


/* ════════════════════════════════════════════════════
   VISITOR COUNTER BAR
════════════════════════════════════════════════════ */
.visitor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 12px;
  border-top: 1px solid var(--border);
}

.visitor-bar__icon {
  font-size: .85rem;
  opacity: .6;
}

.visitor-bar__label {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  flex: 1;
}

.visitor-bar__count {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(88, 101, 242, .1);
  border: 1px solid rgba(88, 101, 242, .25);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: .04em;
  transition: color .3s;
}

/* Count-up flash */
.visitor-bar__count.flash {
  animation: countFlash .4s ease;
}
@keyframes countFlash {
  0%   { color: #fff; background: rgba(88,101,242,.35); }
  100% { color: var(--accent); background: rgba(88,101,242,.1); }
}


/* ════════════════════════════════════════════════════
   AVATAR BOUNCE
════════════════════════════════════════════════════ */
.card__avatar.bounce {
  animation: avatarBounce .5s cubic-bezier(.34, 1.7, .64, 1);
}
@keyframes avatarBounce {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.18) rotate(-6deg); }
  60%  { transform: scale(.93) rotate(4deg); }
  80%  { transform: scale(1.06) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}


/* ════════════════════════════════════════════════════
   KONAMI OVERLAY
════════════════════════════════════════════════════ */
#konami-overlay {
  position: fixed;
  inset: 0;
  z-index: 89000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}

#konami-overlay.konami--active {
  pointer-events: auto;
  opacity: 1;
}

#konfetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.konami-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  font-family: 'Ethnocentric', 'Syne', sans-serif;
  font-size: clamp(1.4rem, 4vw, 3rem);
  color: #fff;
  text-align: center;
  text-shadow: 0 0 40px rgba(88,101,242,1), 0 0 80px rgba(235,69,158,.8);
  letter-spacing: .08em;
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.4,.64,1), opacity .4s;
  pointer-events: none;
}

#konami-overlay.konami--active .konami-text {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}


/* ════════════════════════════════════════════════════
   ROLE TOOLTIPS
════════════════════════════════════════════════════ */
.role {
  position: relative; /* anchor for tooltip */
}

/* Tooltips are rendered via JS into body — see RoleTooltip class in script.js */




/* ════════════════════════════════════════════════════
   SCROLL / LOAD ANIMATIONS
   Each card section fades + slides up on load,
   staggered via animation-delay.
════════════════════════════════════════════════════ */

/* Base hidden state — set before JS kicks in */
.card__section,
.card__head,
.card__avatar-wrap,
.activity,
.visitor-bar,
.divider {
  opacity: 0;
  transform: translateY(14px);
}

/* Revealed state — JS adds .is-visible */
.card__section.is-visible,
.card__head.is-visible,
.card__avatar-wrap.is-visible,
.activity.is-visible,
.visitor-bar.is-visible,
.divider.is-visible {
  animation: revealUp .45s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════
   DISCORD SERVER CARDS
════════════════════════════════════════════════════ */
.discord-servers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

/* Hover shimmer sweep */
.server-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(88,101,242,.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.server-card:hover {
  background: rgba(88,101,242,.08);
  border-color: rgba(88,101,242,.3);
  transform: translateX(3px);
}

.server-card:hover::before {
  transform: translateX(100%);
}

/* Icon circle */
.server-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: background var(--transition), border-color var(--transition);
}

.server-card:hover .server-card__icon {
  background: rgba(88,101,242,.28);
  border-color: rgba(88,101,242,.5);
}

/* Server name + sub */
.server-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.server-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-card__sub {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* Arrow icon */
.server-card__join {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.server-card__join svg {
  width: 14px;
  height: 14px;
  display: block;
}

.server-card:hover .server-card__join {
  color: var(--accent);
  transform: translateX(3px);
}


/* ════════════════════════════════════════════════════
   NOW PLAYING — UPGRADED
════════════════════════════════════════════════════ */
.activity {
  position: relative;
}

/* Rotating dots indicator */
.np-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}

.np-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .4;
  animation: npDot 1.4s ease-in-out infinite;
}

.np-dots span:nth-child(2) { animation-delay: .2s; }
.np-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes npDot {
  0%, 80%, 100% { opacity: .25; transform: scale(.8); }
  40%            { opacity: 1;   transform: scale(1.2); }
}

/* Text swap animation */
.activity__name {
  transition: opacity .3s ease, transform .3s ease;
}

.activity__name.np-out {
  opacity: 0;
  transform: translateY(-6px);
}

.activity__name.np-in {
  animation: npSlideIn .35s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes npSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════════
   ROLE TOOLTIP (JS-rendered, appended to body)
   Avoids overflow:hidden clipping inside the card.
════════════════════════════════════════════════════ */
#role-tooltip {
  position: fixed;
  background: rgba(8, 8, 18, .97);
  border: 1px solid rgba(88, 101, 242, .45);
  color: #c8cdff;
  font-family: 'Space Mono', monospace;
  font-size: .6rem;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 7px;
  pointer-events: none;
  z-index: 99999;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,.6), 0 0 12px rgba(88,101,242,.2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}

#role-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Small arrow pointing down */
#role-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(88, 101, 242, .45);
}


/* ════════════════════════════════════════════════════
   KONAMI BLOOD MODE
   Smooth CSS transitions for the theme switch
════════════════════════════════════════════════════ */

/* All elements that use accent color transition smoothly */
body {
  transition: background .8s ease;
}

.card {
  transition:
    background 1s ease,
    border-color .6s ease,
    box-shadow .6s ease;
}

.blob {
  transition: background 1.2s ease;
}

/* Blood mode — cursor ring turns red */
body.konami--blood #cursor-ring {
  border-color: rgba(200, 34, 0, .7);
}

body.konami--blood #cursor-dot {
  background: #cc2200;
}

/* Konami overlay text goes red */
body.konami--blood .konami-text {
  text-shadow:
    0 0 40px rgba(200,34,0,1),
    0 0 80px rgba(200,34,0,.6),
    0 0 4px #fff;
}

/* Music button border goes red */
body.konami--blood .music-btn {
  border-color: rgba(200,34,0,.5);
}

body.konami--blood .music-btn--playing {
  box-shadow: 0 0 18px rgba(200,34,0,.4);
}

/* Visitor count goes red */
body.konami--blood .visitor-bar__count {
  color: #ff4422;
  border-color: rgba(200,34,0,.4);
  background: rgba(200,34,0,.1);
}

/* Roles get a red tint */
body.konami--blood .role--purple,
body.konami--blood .role--blue,
body.konami--blood .role--green,
body.konami--blood .role--yellow {
  filter: hue-rotate(160deg) saturate(1.4);
}


/* ════════════════════════════════════════════════════
   GLITCH NAME EFFECT
   CSS chromatic aberration flicker applied to h1
   while JS corrupts the characters.
════════════════════════════════════════════════════ */
.card__name {
  position: relative;
}

.card__name.glitch--active {
  animation: glitchShift .5s steps(1) forwards;
}

@keyframes glitchShift {
  0%   {
    text-shadow: 2px 0 #ff0040, -2px 0 #00ffff;
    transform: skewX(0deg);
    filter: brightness(1);
  }
  15%  {
    text-shadow: -3px 0 #ff0040, 3px 0 #00ffff;
    transform: skewX(-4deg) translateX(2px);
    filter: brightness(1.4);
  }
  30%  {
    text-shadow: 3px 0 #00ffff, -3px 0 #ff0040;
    transform: skewX(3deg) translateX(-2px);
    filter: brightness(.8);
  }
  45%  {
    text-shadow: -2px 0 #ff0040, 2px 0 #00ffff;
    transform: skewX(0deg);
    filter: brightness(1.2);
  }
  60%  {
    text-shadow: 4px 0 #ff0040, -4px 0 #00ffff;
    transform: skewX(-2deg) translateX(3px);
    filter: brightness(1);
  }
  75%  {
    text-shadow: -2px 0 #00ffff, 2px 0 #ff0040;
    transform: skewX(1deg);
    filter: brightness(1.3);
  }
  100% {
    text-shadow: none;
    transform: none;
    filter: brightness(1);
  }
}


/* ════════════════════════════════════════════════════
   IDLE FLOAT ANIMATION
   Card gently bobs up and down after 30s inactivity
════════════════════════════════════════════════════ */
.card--idle {
  animation: cardFloat 3.5s ease-in-out infinite !important;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  25%       { transform: translateY(-8px) rotate(.3deg); }
  75%       { transform: translateY(4px)  rotate(-.2deg); }
}


/* ════════════════════════════════════════════════════
   HEART RAIN
   Hearts float upward from the avatar on double-click
════════════════════════════════════════════════════ */
@keyframes heartFloat {
  0%   { transform: translateY(0)    scale(1)    rotate(0deg);  opacity: 1; }
  60%  { transform: translateY(-120px) scale(1.2) rotate(15deg); opacity: .8; }
  100% { transform: translateY(-200px) scale(.6)  rotate(-10deg); opacity: 0; }
}


/* ════════════════════════════════════════════════════
   STATUS DOT — extra states
════════════════════════════════════════════════════ */
.status--offline {
  background: #80848e;
}


/* ════════════════════════════════════════════════════
   FAKE ERROR DIALOG
════════════════════════════════════════════════════ */
#fake-error {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: min(420px, 90vw);
  background: #1e1f22;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  z-index: 99998;
  opacity: 0;
  transition: opacity .25s, transform .25s cubic-bezier(.34,1.4,.64,1);
  overflow: hidden;
  user-select: none;
}
#fake-error.fe--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
#fake-error.fe--explode {
  animation: feExplode .5s ease forwards;
}
@keyframes feExplode {
  0%   { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity: 1; }
  50%  { transform: translate(-50%,-50%) scale(1.3) rotate(5deg); opacity: .5; }
  100% { transform: translate(-50%,-50%) scale(0) rotate(20deg); opacity: 0; }
}
.fe-titlebar {
  display: flex; align-items: center; gap: 8px;
  background: #2b2d31; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.fe-icon  { font-size: 1rem; }
.fe-title { flex:1; font-family: 'Syne',sans-serif; font-weight:700; font-size:.85rem; color:#f2f3f5; }
.fe-close {
  background:none; border:none; color:#72767d; font-size:1rem;
  cursor:pointer; padding:2px 6px; border-radius:4px;
  transition: background .15s, color .15s;
}
.fe-close:hover { background:rgba(237,66,69,.3); color:#fff; }
.fe-body {
  display:flex; gap:14px; align-items:flex-start;
  padding: 18px 18px 12px;
}
.fe-warning-icon { font-size: 2.5rem; flex-shrink:0; }
.fe-text p { font-family:'Space Mono',monospace; font-size:.72rem; color:#b5bac1; line-height:1.6; margin-bottom:6px; }
.fe-code { color:#72767d !important; }
.fe-code code { color:#5865F2; }
.fe-buttons {
  display:flex; gap:8px; justify-content:flex-end;
  padding: 8px 14px 14px;
}
.fe-btn {
  font-family:'Space Mono',monospace; font-size:.68rem;
  padding: 6px 18px; border-radius:6px; border:none; cursor:pointer;
  transition: filter .15s, transform .1s;
}
.fe-btn:hover { filter:brightness(1.2); transform:translateY(-1px); }
.fe-btn--primary { background:#5865F2; color:#fff; }
.fe-btn--danger  { background:#ed4245; color:#fff; }


/* ════════════════════════════════════════════════════
   MINI SNAKE GAME
════════════════════════════════════════════════════ */
#snake-overlay {
  position: fixed; inset:0; z-index:99997;
  background: rgba(4,3,15,.92);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity .3s;
}
#snake-overlay.snake--visible { opacity:1; }

.snake-wrap {
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.snake-header {
  display:flex; align-items:center; gap:16px;
  font-family:'Space Mono',monospace; font-size:.72rem; color:#b5bac1;
}
.snake-title { font-family:'Syne',sans-serif; font-weight:800; font-size:1.1rem; color:#f2f3f5; }
#snake-close {
  background:none; border:1px solid rgba(255,255,255,.1); color:#72767d;
  padding:4px 10px; border-radius:6px; cursor:pointer; margin-left:auto;
  transition: background .15s;
}
#snake-close:hover { background:rgba(237,66,69,.3); color:#fff; }
#snake-canvas {
  border: 1px solid rgba(88,101,242,.3);
  border-radius:8px;
  box-shadow: 0 0 30px rgba(88,101,242,.2);
}
.snake-hint { font-family:'Space Mono',monospace; font-size:.6rem; color:#72767d; }


/* ════════════════════════════════════════════════════
   CLICK BATTLE
════════════════════════════════════════════════════ */
#click-battle {
  position: fixed; inset:0; z-index:99996;
  display:flex; align-items:center; justify-content:center;
  background: rgba(4,3,15,.85);
  backdrop-filter: blur(8px);
  opacity:0; transition: opacity .3s;
  pointer-events:auto;
}
#click-battle.cb--visible { opacity:1; }

.cb-inner {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:#111214; border:1px solid rgba(88,101,242,.3);
  border-radius:16px; padding:32px 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 40px rgba(88,101,242,.15);
  text-align:center;
}
.cb-label { font-family:'Syne',sans-serif; font-weight:800; font-size:1rem; color:#f2f3f5; }
.cb-timer { font-family:'Space Mono',monospace; font-size:2.5rem; font-weight:700; color:#5865F2; }
.cb-count {
  font-family:'Syne',sans-serif; font-weight:800; font-size:4rem; color:#fff;
  transition: transform .08s cubic-bezier(.34,1.7,.64,1);
  line-height:1;
}
.cb-sub  { font-family:'Space Mono',monospace; font-size:.65rem; color:#72767d; }
.cb-cps  { font-family:'Space Mono',monospace; font-size:.8rem; color:#5865F2; }
.cb-hi   { font-family:'Space Mono',monospace; font-size:.65rem; color:#72767d; }
.cb-hint { font-family:'Space Mono',monospace; font-size:.6rem; color:#b5bac1; }

.cb-bar-wrap {
  width:200px; height:6px; background:rgba(255,255,255,.08);
  border-radius:3px; overflow:hidden;
}
.cb-bar {
  height:100%; width:100%; border-radius:3px;
  background: linear-gradient(90deg, #5865F2, #eb459e);
  transition: width 1s linear, background .5s;
}
.cb-close {
  margin-top:8px; font-family:'Space Mono',monospace; font-size:.68rem;
  background:#5865F2; color:#fff; border:none; border-radius:8px;
  padding:8px 24px; cursor:pointer; transition: filter .15s;
}
.cb-close:hover { filter:brightness(1.2); }


/* ════════════════════════════════════════════════════
   HOTKEY PANEL — "?" Button + Panel
════════════════════════════════════════════════════ */
#hotkey-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17,18,20,.85);
  border: 1px solid rgba(88,101,242,.4);
  color: #b5bac1;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

#hotkey-btn:hover,
#hotkey-btn.hk-btn--active {
  background: rgba(88,101,242,.2);
  border-color: rgba(88,101,242,.7);
  color: #fff;
  box-shadow: 0 0 18px rgba(88,101,242,.35);
  transform: scale(1.1);
}

#hotkey-panel {
  position: fixed;
  bottom: 64px;
  right: 20px;
  z-index: 9998;
  width: 280px;
  background: rgba(10,10,20,.96);
  border: 1px solid rgba(88,101,242,.35);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 20px rgba(88,101,242,.1);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s cubic-bezier(.34,1.4,.64,1);
  overflow: hidden;
}

#hotkey-panel.hk--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.hk-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: var(--text-primary);
}

.hk-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.hk-close:hover { background: rgba(237,66,69,.25); color: #fff; }

.hk-list {
  list-style: none;
  padding: 8px 0 10px;
}

.hk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  transition: background .12s;
}
.hk-list li:hover { background: rgba(88,101,242,.07); }

.hk-list kbd {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: #c8cdff;
  background: rgba(88,101,242,.15);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

.hk-list span {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--text-muted);
}


/* ════════════════════════════════════════════════════
   TEAM DROPDOWN
   Sits on the banner, bottom-left corner.
   Trigger = small pill button, menu drops down below.
════════════════════════════════════════════════════ */
.team-drop {
  position: fixed;
  bottom: 20px;
  right: 64px; /* sits left of the ? button */
  z-index: 9999;
}

/* ── Trigger button — matches the ? hotkey button style ── */
.team-drop__trigger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17,18,20,.85);
  border: 1px solid rgba(88,101,242,.4);
  color: #b5bac1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition), box-shadow var(--transition);
  /* Hide text label, show only icon */
  font-size: 0;
}

.team-drop__trigger span { display: none; }

.team-drop__trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  font-size: initial;
}

.team-drop__trigger:hover,
.team-drop__trigger.is-open {
  background: rgba(88,101,242,.2);
  border-color: rgba(88,101,242,.7);
  color: #fff;
  box-shadow: 0 0 18px rgba(88,101,242,.35);
  transform: scale(1.1);
}

/* ── Dropdown menu ── */
.team-drop__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 210px;
  background: rgba(10,10,20,.97);
  border: 1px solid rgba(88,101,242,.3);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.7), 0 0 16px rgba(88,101,242,.1);
  padding: 6px 0 8px;
  opacity: 0;
  transform: translateY(6px) scale(.97);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s cubic-bezier(.34,1.4,.64,1);
}

.team-drop__menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Label */
.team-drop__label {
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  padding: 4px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 4px;
}

/* ── Member item ── */
.team-drop__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

.team-drop__item:hover {
  background: rgba(88,101,242,.1);
}

/* Avatar circle */
.team-drop__ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865F2, #eb459e);
  border: 2px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  color: #fff;
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}

.team-drop__item:hover .team-drop__ava,
.team-drop__item--active .team-drop__ava {
  box-shadow: 0 0 10px rgba(88,101,242,.4);
  border-color: rgba(88,101,242,.5);
}

/* Name + sub */
.team-drop__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.team-drop__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .75rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-drop__sub {
  font-family: var(--font-mono);
  font-size: .56rem;
  color: var(--text-muted);
}

/* Active dot indicator */
.team-drop__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

.team-drop__item--active .team-drop__name {
  color: #c8cdff;
}