:root {
  --bg-void: #05070f;
  --bg-deep: #0a0e1f;
  --blue-electric: #3aa8ff;
  --blue-indigo: #3a5bff;
  --blue-cyan: #7cf5ff;
  --violet-nebula: #7b5cff;
  --text-primary: #eaf2ff;
  --text-muted: #9db1d9;
  --glass-bg: rgba(15, 22, 46, 0.55);
  --glass-border: rgba(124, 181, 255, 0.22);
  --online-green: #3ddc84;
  --idle-yellow: #f4c150;
  --dnd-red: #ef5865;
  --offline-gray: #6b7690;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100svh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-void);
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-electric), var(--violet-nebula));
  border-radius: 20px;
  border: 2px solid var(--bg-void);
}

body {
  scrollbar-width: thin;
  scrollbar-color: var(--blue-electric) var(--bg-void);
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0b1230 0%, #05070f 70%);
  z-index: 50;
  transition: opacity 0.9s var(--ease-soft), visibility 0.9s var(--ease-soft);
}

.intro.intro--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.enter-btn {
  position: relative;
  z-index: 2;
  margin-top: 46vh;
  padding: 14px 22px;
  color: var(--blue-cyan);
  font-family: var(--font-pixel);
  font-size: clamp(10px, 2.4vw, 12px);
  letter-spacing: 1px;
  border: 2px solid rgba(124, 245, 255, 0.55);
  border-radius: var(--radius-sm);
  background: rgba(10, 16, 40, 0.4);
  animation: pulse-glow 2.2s ease-in-out infinite;
  transition: transform 0.25s var(--ease-soft), background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft);
}

.enter-btn:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(58, 168, 255, 0.15);
  border-color: rgba(124, 245, 255, 0.85);
}

.enter-btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(124, 245, 255, 0.25); }
  50% { box-shadow: 0 0 24px rgba(124, 245, 255, 0.6); }
}

@media (max-width: 480px) {
  .enter-btn {
    margin-top: 40vh;
    padding: 12px 18px;
  }
}

.bio-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, #060812 0%, #0a1024 55%, #0b0f22 100%);
  overflow: hidden;
}

.galaxy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.nebula-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  animation: drift 18s ease-in-out infinite;
}

.nebula-glow--one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, var(--blue-indigo), transparent 70%);
}

.nebula-glow--two {
  width: 460px;
  height: 460px;
  bottom: -140px;
  right: -120px;
  background: radial-gradient(circle, var(--violet-nebula), transparent 70%);
  animation-delay: -9s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}

.card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: rise-in 0.7s var(--ease-smooth) both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(124, 181, 255, 0.06) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 24px;
  transition: box-shadow 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}

.glass-card:hover {
  border-color: rgba(124, 181, 255, 0.38);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(58, 168, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.discord-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.discord-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.discord-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(124, 181, 255, 0.35);
  background: var(--bg-deep);
  transition: border-color 0.3s var(--ease-soft);
}

.discord-card:hover .discord-card__avatar {
  border-color: rgba(124, 245, 255, 0.6);
}

.status-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg-deep);
  transition: background 0.3s var(--ease-soft);
}

.status-dot--online {
  background: var(--online-green);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.status-dot--idle { background: var(--idle-yellow); }
.status-dot--dnd { background: var(--dnd-red); }
.status-dot--offline { background: var(--offline-gray); }

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(61, 220, 132, 0); }
}

.discord-card__info {
  min-width: 0;
}

.discord-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(14px, 3.6vw, 16px);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.discord-card__activity {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.badge-orbs {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.badge-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(124, 245, 255, 0.35), rgba(58, 91, 255, 0.18));
  border: 1px solid rgba(124, 181, 255, 0.3);
  box-shadow: 0 0 10px rgba(58, 168, 255, 0.25);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.badge-orb:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 16px rgba(124, 245, 255, 0.45);
}

.badge-orb--placeholder {
  opacity: 0.35;
}

.badge-orb--icon {
  padding: 5px;
  object-fit: contain;
  background: radial-gradient(circle at 30% 30%, rgba(124, 245, 255, 0.35), rgba(58, 91, 255, 0.18));
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.divider__label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bio-box {
  background: rgba(8, 12, 28, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.3s var(--ease-soft);
}

.bio-box:hover {
  border-color: rgba(124, 181, 255, 0.32);
}

.bio-box__title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-cyan);
  margin-bottom: 8px;
}

.bio-box__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(58, 91, 255, 0.08);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}

.link-item:hover {
  background: rgba(58, 168, 255, 0.16);
  border-color: rgba(124, 181, 255, 0.4);
  transform: translateX(3px);
}

.link-item:hover .link-item__icon {
  transform: rotate(45deg);
  color: var(--blue-cyan);
}

.link-item__icon {
  color: var(--blue-electric);
  font-size: 10px;
  transition: transform 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.footer-note {
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

@media (max-width: 420px) {
  .glass-card { padding: 18px; }
  .discord-card__name,
  .discord-card__activity { max-width: 130px; }
  .badge-orb { width: 26px; height: 26px; }
}

@media (max-width: 340px) {
  .discord-card__name,
  .discord-card__activity { max-width: 108px; }
  .badge-orbs { gap: 6px; }
  .badge-orb { width: 24px; height: 24px; }
}

@media (min-width: 900px) {
  .card-wrap { max-width: 500px; }
}

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