:root {
  --bg-overlay: rgba(0, 0, 0, 0.35);
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.25);
  --text: #f6f7fb;
  --muted: #cfd3e3;
  --primary: #6c5ce7;
  --accent: #00d1ff;
  --glow: 0 10px 30px rgba(108, 92, 231, 0.5);
  --tiltX: 0deg;
  --tiltY: 0deg;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: #0b1020 no-repeat center/cover fixed;
}

#app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--site-bg, #0b1020) center/cover no-repeat fixed;
  filter: brightness(0.9) saturate(1.1);
}

.bg-animated {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.bg-animated canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

body.animated-bg #app::before { display: none; }

.bg-animated::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(1200px 600px at 20% 10%, color-mix(in oklab, var(--primary) 24%, transparent), transparent 60%),
              radial-gradient(900px 500px at 90% 80%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
              linear-gradient(to bottom right, rgba(0,0,0,.2), rgba(0,0,0,.5));
  filter: saturate(1.1);
}

.bg-animated .blob {
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blob-color, #6c5ce7), rgba(0,0,0,0) 60%);
  filter: blur(50px) saturate(1.2);
  opacity: .45;
  mix-blend-mode: screen;
  transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
  animation: drift var(--d, 28s) ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(var(--x), var(--y)) scale(var(--s)); }
  to   { transform: translate(var(--tx), var(--ty)) scale(var(--s)); }
}

.bg-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .06;
}

@media (prefers-reduced-motion: reduce) {
  .bg-animated .blob { animation: none !important }
}

#app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(108,92,231,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 80%, rgba(0,209,255,.18), transparent 60%),
              linear-gradient(to bottom right, rgba(0,0,0,.2), rgba(0,0,0,.5));
}

main {
  height: 100dvh;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
  perspective: 1000px;
}

.profile-card {
  position: relative;
  width: min(92vw, 780px);
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glow), inset 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(14px) saturate(1.3);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  contain: layout paint;
}
.tilt-wrap {
  transform-style: preserve-3d;
  transform: rotateX(var(--tiltX)) rotateY(var(--tiltY));
  will-change: transform;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  filter: blur(40px) saturate(1.2);
}

.profile-card::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent), transparent 35%), transparent 70%);
  top: -60px;
  left: -60px;
}

.profile-card::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--primary), transparent 35%), transparent 70%);
  bottom: -80px;
  right: -80px;
}



.banner {
  position: relative;
  height: clamp(160px, 30vw, 240px);
  overflow: hidden;
  background: linear-gradient(160deg,
    color-mix(in oklab, var(--primary) 22%, transparent) 0%,
    color-mix(in oklab, var(--accent) 18%, transparent) 100%
  );
}

.tilt-wrap {
  transform: translateZ(0);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  filter: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.banner.no-image img { display: none }

.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.15) 35%, transparent 45%);
  transform: translateX(-100%);
  animation: bannerShine 6s ease-in-out infinite;
}

@keyframes bannerShine {
  0%, 20% { transform: translateX(-120%) }
  50% { transform: translateX(120%) }
  100% { transform: translateX(120%) }
}

.avatar-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: -68px;
}

.avatar-wrapper.fallback::before {
  content: "";
  position: absolute;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), transparent 65%),
              radial-gradient(circle at 70% 70%, var(--primary), transparent 65%),
              #111;
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255,255,255,0.12);
  z-index: 0;
}

.avatar-wrapper.fallback .avatar { display: none }

.avatar {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255,255,255,0.12);
  background: #111;
}

.avatar-ring {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), transparent 40%, var(--primary), transparent 70%);
  filter: blur(8px) saturate(1.3);
  opacity: .8;
  z-index: -1;
  animation: spin 10s linear infinite;
}

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

.content {
  text-align: center;
  padding: 16px 18px 28px;
}

.name {
  margin: 10px 0 4px;
  font-size: clamp(24px, 3.8vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 0 rgba(0,0,0,0);
}

.roles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.role-badge i {
  font-size: 16px;
}

.role-badge .label {
  font-weight: 600;
  letter-spacing: .3px;
}

.role-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.08);
}

.role-badge .icon {
  width: 18px; height: 18px;
  display: inline-block;
}

.role-badge .label {
  font-weight: 600;
  letter-spacing: .3px;
}

.socials {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.socials a {
  --ring: rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 20px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}

.socials a i {
  font-size: 18px;
}

.socials a:hover {
  transform: translateY(-4px);
  border-color: var(--ring);
  box-shadow: 0 12px 26px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.04);
}

.socials svg { width: 22px; height: 22px; }

.socials a .ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.35), transparent 60%);
  animation: ripple .6s ease-out forwards;
}

@keyframes ripple {
  from { width: 0; height: 0; opacity: .7 }
  to { width: 140px; height: 140px; opacity: 0 }
}

@media (max-width: 420px) {
  .avatar { width: 120px; height: 120px }
  .avatar-ring { width: 148px; height: 148px }
}

.profile-card { opacity: 0; }
.profile-card.revealed { opacity: 1; transition: opacity .6s ease; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 16, 32, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  padding: 16px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.brand-text {
  color: var(--accent);
  font-weight: 600;
}

.separator {
  color: var(--muted);
  opacity: 0.5;
}

.copyright {
  color: var(--muted);
}

.discord-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.discord-link i {
  font-size: 16px;
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 16px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }
}