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

:root {
  --bg: #030304;
  --bg-card: rgba(12, 12, 14, 0.84);
  --silver: #d8d8d8;
  --silver-soft: rgba(255, 255, 255, 0.18);
  --red: #f5f5f5;
  --red-bright: #ffffff;
  --red-glow: rgba(255, 255, 255, 0.28);
  --white: #f5f5f5;
  --muted: #b9b9b9;
  --green: #3ddc84;
  --border: rgba(255, 255, 255, 0.16);
  --radius: 14px;
  --nav-height: 72px;
  --profile-theme: #ffffff;
  --profile-theme-rgb: 255, 255, 255;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(180deg, #050506 0%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--white);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 44%, rgba(255, 255, 255, 0.08) 0%, transparent 68%),
    url("assets/reis-logo-transparent.png") center / min(72vw, 720px) no-repeat;
  opacity: 0.18;
}

.main-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.main-particles--lightning span {
  position: absolute;
  display: block;
  width: 2px;
  height: 42vh;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9), rgba(125, 180, 255, 0.64), transparent);
  box-shadow:
    0 0 18px rgba(180, 210, 255, 0.72),
    0 0 48px rgba(90, 145, 255, 0.26);
  transform: rotate(var(--bolt-rotate));
  opacity: 0;
  animation: main-lightning-flash linear infinite;
}

@keyframes main-lightning-flash {
  0%,
  82%,
  100% {
    opacity: 0;
  }

  84%,
  87% {
    opacity: 0.78;
  }

  85%,
  90% {
    opacity: 0.16;
  }
}

.music-controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: none;
}

.music-toggle {
  min-width: 72px;
  padding: 0.48rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.profile-page .music-toggle:hover {
  background: rgba(var(--profile-theme-rgb), 0.18);
  color: #ffffff;
}

.profile-page .volume-control input {
  accent-color: var(--profile-theme);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 0.35rem;
  color: var(--muted);
}

.volume-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.volume-control input {
  width: 72px;
  accent-color: var(--white);
  cursor: pointer;
}

.home-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 65% 55% at 50% 45%, rgba(255, 255, 255, 0.1), transparent 65%),
    rgba(3, 3, 4, 0.92);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.home-screen--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.03);
}

.home-screen[hidden],
.loading-overlay[hidden] {
  display: none;
}

.enter-site {
  display: grid;
  place-items: center;
  width: min(78vw, 520px);
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.22));
  animation: logo-intro 1.1s ease-out both, logo-float 4s ease-in-out 1.1s infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.enter-site:hover,
.enter-site:focus-visible {
  transform: scale(1.04);
  filter: drop-shadow(0 0 46px rgba(255, 255, 255, 0.36));
  outline: none;
}

.home-logo {
  display: block;
  width: 100%;
  height: auto;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(3, 3, 4, 0.72);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  will-change: opacity;
}

.loading-overlay--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-panel {
  width: min(86vw, 360px);
  text-align: center;
}

.loading-logo {
  width: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.25));
}

.loading-label,
.loading-count {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loading-label {
  margin-bottom: 0.85rem;
  color: var(--white);
}

.loading-progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  appearance: none;
}

.loading-progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
}

.loading-progress::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, #8f8f8f, #ffffff, #c7c7c7);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.34);
  transition: width 0.25s ease;
}

.loading-progress::-moz-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f8f8f, #ffffff, #c7c7c7);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.34);
}

.loading-count {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes logo-intro {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logo-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-height);
  padding: 0 2rem;
  background: rgba(8, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #8b1028 100%);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--red-glow);
}

.brand-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link--active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 24px var(--red-glow);
}

.btn-login {
  flex-shrink: 0;
  padding: 0.5rem 1.35rem;
  border: 1.5px solid var(--white);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-login:hover {
  background: var(--white);
  color: var(--bg);
}

.main {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 3.5rem;
  max-width: 1320px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.site-entered .main {
  opacity: 1;
  transform: translateY(0);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.member-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 38%),
    var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 34px rgba(0, 0, 0, 0.38);
  animation: card-reveal 0.65s ease-out both;
  animation-delay: var(--card-delay, 0ms);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}

.members-grid .member-card {
  cursor: pointer;
}

.members-grid .member-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.members-grid .member-card:nth-child(1) {
  animation-delay: 0ms;
}

.members-grid .member-card:nth-child(2) {
  animation-delay: 45ms;
}

.members-grid .member-card:nth-child(3) {
  animation-delay: 90ms;
}

.members-grid .member-card:nth-child(4) {
  animation-delay: 135ms;
}

.members-grid .member-card:nth-child(5) {
  animation-delay: 180ms;
}

.members-grid .member-card:nth-child(6) {
  animation-delay: 225ms;
}

.members-grid .member-card:nth-child(7) {
  animation-delay: 270ms;
}

.members-grid .member-card:nth-child(8) {
  animation-delay: 315ms;
}

.members-grid .member-card:nth-child(9) {
  animation-delay: 360ms;
}

.members-grid .member-card:nth-child(10) {
  animation-delay: 405ms;
}

.members-grid .member-card:nth-child(11) {
  animation-delay: 450ms;
}

.members-grid .member-card:nth-child(12) {
  animation-delay: 495ms;
}

.members-grid .member-card:nth-child(13) {
  animation-delay: 540ms;
}

.members-grid .member-card:nth-child(14) {
  animation-delay: 585ms;
}

.members-grid .member-card:nth-child(n + 15) {
  animation-delay: 600ms;
}

.member-card::before {
  display: none;
}

.member-card--border-glow {
  border-color: rgba(var(--profile-theme-rgb), 0.62);
  animation:
    card-reveal 0.65s ease-out both,
    profile-border-glow 2.6s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 44px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(var(--profile-theme-rgb), 0.18);
}

.member-card--border-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
  border: 1px solid rgba(var(--profile-theme-rgb), 0.72);
  border-radius: inherit;
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(var(--profile-theme-rgb), 0.2);
  opacity: 0.76;
  animation: profile-border-scan 3.2s linear infinite;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 42px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(255, 255, 255, 0.12);
}

@keyframes profile-border-glow {
  0%,
  100% {
    border-color: rgba(var(--profile-theme-rgb), 0.34);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 14px 44px rgba(0, 0, 0, 0.48),
      0 0 16px rgba(var(--profile-theme-rgb), 0.12);
  }

  50% {
    border-color: rgba(var(--profile-theme-rgb), 0.88);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 16px 50px rgba(0, 0, 0, 0.5),
      0 0 34px rgba(var(--profile-theme-rgb), 0.34);
  }
}

@keyframes profile-border-scan {
  0%,
  100% {
    opacity: 0.48;
    filter: hue-rotate(0deg);
  }

  50% {
    opacity: 0.95;
    filter: hue-rotate(18deg);
  }
}

.card-banner {
  position: relative;
  height: 84px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(120, 120, 120, 0.14) 48%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(180deg, #1a1a1d 0%, #09090b 100%);
  overflow: hidden;
}

.card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/reis-logo-transparent.png") center / 135px no-repeat;
  opacity: 0.035;
}

.card-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14) 0%, transparent 35%);
}

.card-banner-image,
.card-banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.card-banner--custom::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.card-banner--custom::after {
  z-index: 2;
  opacity: 0.035;
}

.card-banner-pattern {
  display: none;
}

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 0.95rem;
  margin-top: -24px;
  text-align: center;
}

.card-avatar-wrap {
  position: relative;
  display: inline-block;
  z-index: 0;
  margin-bottom: 0.55rem;
}

.card-avatar-wrap::before,
.card-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card-avatar-wrap::before {
  display: none;
}

.card-avatar-wrap::after {
  inset: -3px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%);
  filter: blur(3px);
}

.member-card[data-status="online"] .card-avatar {
  border-color: rgba(61, 220, 132, 0.85);
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.34);
}

.member-card[data-status="idle"] .card-avatar {
  border-color: rgba(240, 178, 50, 0.85);
  box-shadow: 0 0 10px rgba(240, 178, 50, 0.32);
}

.member-card[data-status="dnd"] .card-avatar {
  border-color: rgba(237, 66, 69, 0.85);
  box-shadow: 0 0 10px rgba(237, 66, 69, 0.32);
}

.member-card[data-status="offline"] .card-avatar {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
}

.card-avatar {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  background: #1a1a1a;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skeleton,
.skeleton-text,
.skeleton-panel {
  position: relative;
  overflow: hidden;
  color: transparent;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  background-size: 180px 100%, 100% 100%;
  background-position: -180px 0, 0 0;
  animation: skeleton-shimmer 1.15s linear infinite;
}

.profile-page .skeleton,
.profile-page .skeleton-text,
.profile-page .skeleton-panel {
  background:
    linear-gradient(90deg, transparent 0%, rgba(var(--profile-theme-rgb), 0.26) 50%, transparent 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  background-size: 180px 100%, 100% 100%;
  background-position: -180px 0, 0 0;
}

.skeleton-text {
  width: min(100%, 220px);
  border-radius: 999px;
}

.skeleton-text--short {
  width: 130px;
}

.skeleton-panel {
  width: min(100%, 260px);
  min-height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

@keyframes skeleton-shimmer {
  from {
    background-position: -180px 0, 0 0;
  }

  to {
    background-position: calc(100% + 180px) 0, 0 0;
  }
}

.card-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.15rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.card-handle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--red-bright);
  margin-bottom: 0.25rem;
}

.card-activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  min-height: 2.25rem;
  max-width: 100%;
}

.activity-badge {
  padding: 0.14rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card-activity-title,
.card-activity-detail {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-activity-title {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.card-activity-title[href]:hover {
  text-decoration: underline;
}

.card-activity-detail {
  color: var(--muted);
}

.activity-emoji {
  width: 1em;
  height: 1em;
  margin-right: 0.25rem;
  vertical-align: -0.15em;
}

.activity-emoji-text {
  margin-right: 0.25rem;
  opacity: 0.9;
}

.profile-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 58% 44% at 50% 44%, rgba(255, 255, 255, 0.11), transparent 68%),
    linear-gradient(180deg, #040405 0%, #010102 100%);
}

.profile-page .bg-watermark {
  position: fixed;
  background: radial-gradient(ellipse 50% 42% at 50% 45%, rgba(255, 255, 255, 0.08), transparent 70%);
  opacity: 0.18;
  filter: none;
}

.profile-background-image,
.profile-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.36;
  filter: brightness(0.45) saturate(0.9);
}

.profile-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.profile-particles--stars {
  opacity: 1;
  mix-blend-mode: screen;
}

.profile-particles span {
  position: absolute;
  display: block;
  animation-duration: var(--particle-duration, 10s);
  animation-delay: var(--particle-delay, 0s);
  will-change: transform, opacity;
}

.profile-particles--snow span {
  top: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.34);
  animation: snow-fall linear infinite;
}

.profile-particles--rain span {
  top: -12vh;
  width: 1px !important;
  height: 42px !important;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(190, 210, 255, 0.72));
  box-shadow: 0 0 10px rgba(130, 170, 255, 0.18);
  animation: rain-fall linear infinite;
  animation-duration: var(--particle-duration, 1.8s);
  animation-delay: var(--particle-delay, 0s);
}

.profile-particles--sparkles span {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.58),
    0 0 18px rgba(var(--profile-theme-rgb), 0.18);
  animation: star-twinkle ease-in-out infinite;
}

.profile-particles--stars span {
  width: 2px !important;
  height: 2px !important;
  min-width: 1px;
  min-height: 1px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 4px rgba(255, 255, 255, 0.75),
    0 0 10px rgba(255, 255, 255, 0.32);
  animation: star-twinkle ease-in-out infinite;
}

.profile-particles--sparkles span,
.profile-particles--hearts span,
.profile-particles--amari-matrix span,
.profile-particles--matrix span {
  width: auto !important;
  height: auto !important;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(var(--profile-theme-rgb), 0.38);
}

.profile-particles--amari-matrix span {
  top: -8vh;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.34),
    0 0 18px rgba(var(--profile-theme-rgb), 0.28);
  animation: amari-matrix-fall linear infinite;
}

.profile-particles--sparkles span {
  animation: sparkle-float ease-in-out infinite;
}

.profile-particles--embers span {
  bottom: -12px;
  top: auto !important;
  border-radius: 50%;
  background: rgba(255, 112, 36, 0.9);
  box-shadow:
    0 0 8px rgba(255, 91, 36, 0.72),
    0 0 20px rgba(255, 150, 60, 0.24);
  animation: ember-rise ease-in infinite;
}

.profile-particles--smoke span {
  bottom: -10vh;
  top: auto !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 68%);
  filter: blur(8px);
  animation: smoke-rise ease-in-out infinite;
}

.profile-particles--matrix span {
  top: -8vh;
  color: rgba(80, 255, 150, 0.76);
  text-shadow: 0 0 12px rgba(80, 255, 150, 0.44);
  animation: matrix-fall linear infinite;
}

.profile-particles--bubbles span {
  bottom: -8vh;
  top: auto !important;
  border: 1px solid rgba(210, 235, 255, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 42%, transparent 70%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08);
  animation: bubble-rise ease-in-out infinite;
}

.profile-particles--ash span {
  top: -6vh;
  border-radius: 30% 70% 45% 55%;
  background: rgba(205, 205, 205, 0.58);
  filter: blur(0.4px);
  animation: ash-fall ease-in-out infinite;
}

.profile-particles--lightning span {
  width: 2px !important;
  height: 46vh !important;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92), rgba(125, 180, 255, 0.72), transparent);
  box-shadow:
    0 0 18px rgba(170, 205, 255, 0.72),
    0 0 42px rgba(80, 140, 255, 0.26);
  transform: rotate(14deg);
  animation: lightning-flash linear infinite;
}

.profile-particles--hearts span {
  bottom: -8vh;
  top: auto !important;
  color: rgba(255, 92, 130, 0.78);
  font-size: 1.05rem;
  text-shadow: 0 0 16px rgba(255, 92, 130, 0.42);
  animation: hearts-rise ease-in-out infinite;
}

@keyframes snow-fall {
  from {
    transform: translate3d(0, -12px, 0);
  }

  to {
    transform: translate3d(var(--particle-drift-x), 110vh, 0);
  }
}

@keyframes rain-fall {
  from {
    -webkit-transform: translate3d(0, -12vh, 0);
    transform: translate3d(0, -12vh, 0);
  }

  to {
    -webkit-transform: translate3d(24px, 118vh, 0);
    transform: translate3d(24px, 118vh, 0);
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.26;
    transform: scale(0.75);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.12);
  }
}

@keyframes sparkle-float {
  0%,
  100% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.88);
  }

  50% {
    opacity: 0.92;
    transform: translate3d(var(--particle-drift-x), var(--particle-drift-y), 0) rotate(var(--particle-rotate)) scale(1.16);
  }
}

@keyframes ember-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8vh, 0) scale(0.72);
  }

  18% {
    opacity: 0.9;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--particle-drift-x), -112vh, 0) scale(0.18);
  }
}

@keyframes smoke-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8vh, 0) scale(0.7);
  }

  28% {
    opacity: 0.56;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--particle-drift-x), -95vh, 0) scale(2.3);
  }
}

@keyframes matrix-fall {
  from {
    opacity: 0;
    transform: translate3d(0, -10vh, 0);
  }

  12%,
  78% {
    opacity: 0.8;
  }

  to {
    opacity: 0;
    transform: translate3d(0, 112vh, 0);
  }
}

@keyframes amari-matrix-fall {
  from {
    opacity: 0;
    -webkit-transform: translate3d(0, -10vh, 0) skewX(-8deg);
    transform: translate3d(0, -10vh, 0) skewX(-8deg);
  }

  10%,
  82% {
    opacity: 0.82;
  }

  to {
    opacity: 0;
    -webkit-transform: translate3d(var(--particle-drift-x), 112vh, 0) skewX(-8deg);
    transform: translate3d(var(--particle-drift-x), 112vh, 0) skewX(-8deg);
  }
}

@keyframes bubble-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 10vh, 0) scale(0.72);
  }

  25% {
    opacity: 0.55;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--particle-drift-x), -112vh, 0) scale(1.55);
  }
}

@keyframes ash-fall {
  from {
    opacity: 0;
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }

  20%,
  75% {
    opacity: 0.56;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--particle-drift-x), 112vh, 0) rotate(var(--particle-rotate));
  }
}

@keyframes lightning-flash {
  0%,
  88%,
  100% {
    opacity: 0;
  }

  90%,
  93% {
    opacity: 0.9;
  }

  91%,
  95% {
    opacity: 0.18;
  }
}

@keyframes hearts-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8vh, 0) rotate(-8deg) scale(0.7);
  }

  25% {
    opacity: 0.74;
  }

  to {
    opacity: 0;
    transform: translate3d(var(--particle-drift-x), -110vh, 0) rotate(12deg) scale(1.2);
  }
}

.profile-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255, 255, 255, 0.08), transparent 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.profile-main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  perspective: 900px;
  animation: profile-enter 0.55s ease-out both;
}

.profile-card {
  width: min(82vw, 260px);
  cursor: default;
}

.profile-card--tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  --tilt-glow-x: 50%;
  --tilt-glow-y: 35%;
  animation: none !important;
  transform: perspective(900px) translate3d(0, var(--tilt-lift), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important;
  -webkit-transform: perspective(900px) translate3d(0, var(--tilt-lift), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.16s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
}

.profile-card--tilt.member-card--border-glow {
  animation: none !important;
}

.profile-card--tilt:hover {
  transform: perspective(900px) translate3d(0, var(--tilt-lift), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important;
  -webkit-transform: perspective(900px) translate3d(0, var(--tilt-lift), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important;
}

.profile-card--tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--tilt-glow-x) var(--tilt-glow-y),
      rgba(255, 255, 255, 0.22),
      transparent 34%
    );
  opacity: 0.75;
  mix-blend-mode: screen;
}

.profile-card--tilt .card-banner,
.profile-card--tilt .card-body {
  position: relative;
  transform: translateZ(18px);
  -webkit-transform: translateZ(18px);
}

.cursor-follower {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
  transition: opacity 0.18s ease;
  will-change: transform;
}

.profile-page--custom-pointer,
.profile-page--custom-pointer * {
  cursor: var(--profile-cursor-url), auto !important;
}

.pointer-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
}

.cursor-follower--visible {
  opacity: 1;
}

.cursor-follower--dog {
  --dog-tilt: 0deg;
  width: 64px;
  height: 64px;
  line-height: 1;
  transform-origin: center;
  transition: opacity 0.18s ease;
  animation: cursor-dog-chase-idle 1.1s ease-in-out infinite;
}

.cursor-follower--dog.cursor-follower--running {
  animation: cursor-dog-chase 0.34s steps(2, end) infinite;
}

.cursor-follower--dog img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 72%;
  animation: cursor-dog-idle 0.9s ease-in-out infinite;
}

.cursor-follower--dog.cursor-follower--running img {
  animation: cursor-dog-run 0.22s steps(2, end) infinite;
}

.cursor-follower--dog::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 9px;
  width: 24px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(4px);
  animation: cursor-dog-shadow 0.28s steps(2, end) infinite;
}

@keyframes cursor-dog-chase-idle {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -3px;
  }
}

@keyframes cursor-dog-chase {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -10px;
  }
}

@keyframes cursor-dog-idle {
  0%,
  100% {
    transform: translate3d(0, 1px, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(0, -2px, 0) rotate(2deg);
  }
}

@keyframes cursor-dog-run {
  0% {
    transform: translate3d(-5px, 4px, 0) rotate(-12deg) scaleY(0.88) scaleX(1.08);
  }

  50% {
    transform: translate3d(6px, -5px, 0) rotate(12deg) scaleY(1.12) scaleX(0.94);
  }

  100% {
    transform: translate3d(-5px, 4px, 0) rotate(-12deg) scaleY(0.88) scaleX(1.08);
  }
}

@keyframes cursor-dog-shadow {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 0.48;
    transform: scaleX(1.1);
  }
}

.profile-card .card-banner {
  height: 72px;
}

.profile-card .card-body {
  padding: 0 0.75rem 1rem;
  margin-top: -30px;
}

.profile-card .card-handle {
  margin-bottom: 0.15rem;
  font-size: 0.62rem;
}

.profile-card .activity-badge {
  padding: 0.1rem 0.34rem;
  font-size: 0.48rem;
}

.profile-card .card-activity-detail {
  max-width: 11rem;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-width: 2px;
}

.profile-card--themed {
  border-color: rgba(var(--profile-theme-rgb), 0.24);
}

.profile-card--themed .profile-avatar {
  border-color: rgba(var(--profile-theme-rgb), 0.88);
  box-shadow:
    0 0 0 3px rgba(var(--profile-theme-rgb), 0.08),
    0 0 22px rgba(var(--profile-theme-rgb), 0.34),
    0 8px 22px rgba(0, 0, 0, 0.42);
}

.profile-card--themed .profile-avatar-wrap::after {
  opacity: 1;
  background: radial-gradient(circle, rgba(var(--profile-theme-rgb), 0.28), transparent 64%);
}

.profile-card--themed .profile-name {
  text-shadow:
    0 0 12px rgba(var(--profile-theme-rgb), 0.28),
    0 0 24px rgba(var(--profile-theme-rgb), 0.12);
}

.profile-card--themed .profile-social-link:hover,
.profile-card--themed .profile-social-link:focus-visible {
  border-color: rgba(var(--profile-theme-rgb), 0.72);
  background: rgba(var(--profile-theme-rgb), 0.14);
  box-shadow: 0 0 18px rgba(var(--profile-theme-rgb), 0.16);
}

.profile-avatar-wrap {
  margin-bottom: 0.55rem;
}

.profile-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  line-height: 1.05;
}

.profile-name--distort {
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.04em;
  text-transform: none;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.32),
    0 0 22px rgba(255, 255, 255, 0.16);
  animation: profile-name-distort 2.2s infinite steps(1);
}

.profile-name--distort::before,
.profile-name--distort::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.72;
  overflow: hidden;
}

.profile-name--distort::before {
  color: rgba(255, 255, 255, 0.82);
  text-shadow:
    -2px 0 rgba(255, 255, 255, 0.72),
    0 0 14px rgba(255, 255, 255, 0.24);
  clip-path: inset(0 0 48% 0);
  animation: profile-name-distort-top 1.65s infinite steps(1);
}

.profile-name--distort::after {
  color: rgba(205, 205, 205, 0.82);
  text-shadow:
    2px 0 rgba(255, 255, 255, 0.58),
    0 0 12px rgba(255, 255, 255, 0.18);
  clip-path: inset(48% 0 0 0);
  animation: profile-name-distort-bottom 1.35s infinite steps(1);
}

.profile-activity {
  min-height: 2.35rem;
  font-size: 0.72rem;
}

.profile-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  margin: -0.08rem 0 0.35rem;
  color: rgba(245, 245, 245, 0.58);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-views .profile-social-icon {
  width: 12px;
  height: 12px;
}

@keyframes profile-name-distort {
  0%,
  84%,
  100% {
    filter: none;
    transform: translateX(0);
  }

  86% {
    filter: blur(0.45px);
    transform: translateX(-1px) skewX(-6deg);
  }

  88% {
    filter: contrast(1.35);
    transform: translateX(2px) skewX(5deg);
  }

  90% {
    filter: none;
    transform: translateX(0);
  }
}

@keyframes profile-name-distort-top {
  0%,
  70%,
  100% {
    transform: translateX(0);
    clip-path: inset(0 0 52% 0);
  }

  72% {
    transform: translate(-4px, -1px);
    clip-path: inset(0 0 70% 0);
  }

  74% {
    transform: translate(3px, 1px);
    clip-path: inset(14% 0 44% 0);
  }

  76% {
    transform: translate(-2px, 0);
    clip-path: inset(4% 0 62% 0);
  }
}

@keyframes profile-name-distort-bottom {
  0%,
  62%,
  100% {
    transform: translateX(0);
    clip-path: inset(48% 0 0 0);
  }

  64% {
    transform: translate(4px, 1px);
    clip-path: inset(62% 0 8% 0);
  }

  66% {
    transform: translate(-3px, 0);
    clip-path: inset(42% 0 22% 0);
  }

  68% {
    transform: translate(2px, -1px);
    clip-path: inset(54% 0 4% 0);
  }
}

.profile-bio {
  position: relative;
  max-width: 34rem;
  margin: -0.1rem auto 0.55rem;
  color: rgba(245, 245, 245, 0.78);
  font-size: 0.68rem;
  line-height: 1.35;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.14);
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32rem;
  max-width: 34rem;
  margin: 0 0 0.55rem;
}

.profile-social-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, background 0.18s, color 0.18s;
}

.profile-social-icon {
  width: 17px;
  height: 17px;
}

.profile-social-link:hover,
.profile-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  outline: none;
}

.profile-bio--silver-shine {
  color: transparent;
  background: linear-gradient(90deg, #a9a9a9 0%, #ffffff 42%, #c8c8c8 58%, #8f8f8f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: bio-silver-shine 2.8s ease-in-out infinite;
}

.profile-bio--neon {
  color: #ffffff;
  animation: bio-neon-pulse 1.9s ease-in-out infinite;
}

.profile-bio--fade {
  animation: bio-fade-loop 2.8s ease-in-out infinite;
}

.profile-bio--scramble {
  color: rgba(255, 255, 255, 0.9);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.34),
    0 0 18px rgba(255, 255, 255, 0.14);
}

.profile-bio--typewriter::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.18em;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  vertical-align: -0.16em;
  animation: bio-cursor-blink 0.85s steps(1) infinite;
}

.profile-bio--glitch::before,
.profile-bio--glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  overflow: hidden;
}

.profile-bio--glitch::before {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: -1px 0 rgba(255, 255, 255, 0.65);
  transform: translateX(-1px);
  clip-path: inset(0 0 54% 0);
  animation: bio-glitch-top 2.4s infinite steps(1);
}

.profile-bio--glitch::after {
  color: rgba(210, 210, 210, 0.72);
  text-shadow: 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateX(1px);
  clip-path: inset(48% 0 0 0);
  animation: bio-glitch-bottom 2.1s infinite steps(1);
}

@keyframes bio-silver-shine {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@keyframes bio-neon-pulse {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.32),
      0 0 18px rgba(255, 255, 255, 0.18);
  }

  50% {
    text-shadow:
      0 0 12px rgba(255, 255, 255, 0.72),
      0 0 28px rgba(255, 255, 255, 0.38);
  }
}

@keyframes bio-fade-loop {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  24%,
  76% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes bio-cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes bio-glitch-top {
  0%,
  74%,
  100% {
    transform: translateX(0);
    clip-path: inset(0 0 58% 0);
  }

  76% {
    transform: translate(-3px, -1px);
    clip-path: inset(0 0 72% 0);
  }

  78% {
    transform: translate(2px, 1px);
    clip-path: inset(18% 0 46% 0);
  }

  80% {
    transform: translate(-1px, 0);
    clip-path: inset(4% 0 64% 0);
  }
}

@keyframes bio-glitch-bottom {
  0%,
  64%,
  100% {
    transform: translateX(0);
    clip-path: inset(46% 0 0 0);
  }

  66% {
    transform: translate(3px, 1px);
    clip-path: inset(62% 0 8% 0);
  }

  68% {
    transform: translate(-2px, 0);
    clip-path: inset(42% 0 22% 0);
  }

  70% {
    transform: translate(1px, -1px);
    clip-path: inset(56% 0 4% 0);
  }
}

.back-link {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.22);
  outline: none;
}

@keyframes profile-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .main,
  .site-entered .main {
    opacity: 1;
    transform: none;
  }

  .profile-particles span {
    animation-duration: var(--particle-duration, 10s) !important;
    animation-iteration-count: infinite !important;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .main {
    padding: 1.5rem 1rem 3rem;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}
