/* Main Split: Track Record Left (No Borders) + 3D Discord Card Right */
.main-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  padding: 4rem 0;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 0.45rem;
  display: block;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
}

.about-copy {
  color: var(--fg-secondary);
  margin: 0 0 2rem;
  font-size: 0.96rem;
}

/* Borderless / Background-free Stats Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin-bottom: 2.25rem;
}

.metric-featured {
  grid-column: 1 / -1;
}

.metric-featured .metric-val {
  font-size: 2.5rem;
}

.metric-val {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  color: var(--fg-primary);
  line-height: 1.15;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

/* 3D Discord Card */
.profile-stage {
  perspective: 1100px;
  display: flex;
  justify-content: center;
}

.discord-card-3d {
  position: relative;
  width: 100%;
  max-width: 390px;
  /* Smooth gradient matching original profile: black top fading down to soft charcoal grey */
  background: linear-gradient(180deg, #000000 0%, #090a0c 28%, #1a1b1f 68%, #2a2c32 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: visible;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.88);
  transform-style: preserve-3d;
  contain: layout style;
  transition: transform 0.18s ease-out;
  --mx: 50%;
  --my: 50%;
}

/* GPU-composited Moving Silver Outline (rotates static gradient via transform: rotate) */
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .card-beam-frame {
    position: absolute;
    inset: -1.5px;
    border-radius: 17px;
    padding: 1.5px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
  }
  .card-beam-frame::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 620px;
    height: 620px;
    margin: -310px 0 0 -310px;
    background: conic-gradient(
      rgba(255, 255, 255, 0.08) 0deg,
      rgba(161, 161, 170, 0.25) 110deg,
      rgba(255, 255, 255, 0.95) 180deg,
      rgba(161, 161, 170, 0.25) 250deg,
      rgba(255, 255, 255, 0.08) 360deg
    );
    will-change: transform;
  }
  @media (prefers-reduced-motion: no-preference) {
    .card-beam-frame::before {
      animation: spinSilverRotor 5s linear infinite;
    }
    @keyframes spinSilverRotor {
      0% { transform: rotate3d(0, 0, 1, 0deg); }
      100% { transform: rotate3d(0, 0, 1, 360deg); }
    }
  }
}

/* Specular glass glare tracking mouse */
.discord-card-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background: radial-gradient(
    circle 240px at var(--mx) var(--my),
    rgba(255, 255, 255, 0.08),
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
}
.discord-card-3d:hover::after { opacity: 1; }

.card-banner {
  height: 108px;
  position: relative;
}

.card-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--fg-secondary);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.card-body {
  padding: 0 1.4rem 1.4rem;
  position: relative;
}

.avatar-row {
  display: flex;
  align-items: flex-end;
  margin-top: -50px;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
}

.avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.avatar-wrap img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #08090b;
  background: #000;
  display: block;
}

.status-ring {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #0e0f12;
  background: var(--status-online);
}
.status-ring[data-status="idle"] { background: var(--status-idle); }
.status-ring[data-status="dnd"] { background: var(--status-dnd); }
.status-ring[data-status="offline"] { background: var(--status-offline); }

/* Name & Silver Metallic Effect on Chinese character */
.name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #9ca3af 38%, #ffffff 62%, #6b7280 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .profile-name {
    animation: silverShine 4.5s linear infinite;
  }
  @keyframes silverShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }
}

.handle-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0.9rem;
  flex-wrap: wrap;
}

.handle-text {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  font-family: var(--font-mono);
}

/* Custom Role Badges Pill with Accessible Hover/Focus Tooltips */
.badges-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-item {
  position: relative;
  display: inline-flex;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 24px;
  min-block-size: 24px;
  padding: 2px;
  background: transparent;
  border: none;
  color: #d4d4d8;
  cursor: help;
  border-radius: 4px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.badge-btn:hover,
.badge-btn:focus-visible {
  color: #ffffff;
  transform: scale(1.12);
}

.badge-img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
}

.badge-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
}

.badge-item:hover .badge-tip,
.badge-item:focus-within .badge-tip {
  opacity: 1;
  pointer-events: auto;
}

/* Live Activity (Spotify / Game) */
.activity-box {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  color: var(--fg-secondary);
}
.activity-box.visible { display: flex; }

.card-bio {
  font-size: 0.84rem;
  color: var(--fg-secondary);
  margin: 0 0 1.15rem;
}
.card-bio strong { color: var(--fg-primary); }
.card-bio code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-primary);
}

/* Full-width Message Me Button */
.btn-message-me {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-message-me:hover {
  background: var(--fg-primary);
  color: #040405;
}

.msg-discord-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  display: block;
  transition: filter 0.15s ease;
}
.btn-message-me:hover .msg-discord-icon {
  filter: invert(1);
}
