* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ffffff33 transparent;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffffff44; border-radius: 3px; }

body {
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body.locked { overflow: hidden; }

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  transition: opacity .5s, visibility .5s;
}
.splash.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash:focus-visible { outline: none; }
.splash-text {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
}

/* Layout */
.profile {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  position: relative;
  width: auto;
  max-width: 520px;
  text-align: left;
  animation: cardIn .6s ease-out both;
}

.card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.content { flex: 1; min-width: 0; }

/* Name */
.display-name {
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.3px;
  cursor: default;
  text-shadow: 0 0 10px #ffedeb, 0 0 20px #ffedeb, 0 0 40px #ffedeb80;
  animation: glow-pulse 2.5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px #ffedeb, 0 0 20px #ffedeb, 0 0 40px #ffedeb80; }
  50% { text-shadow: 0 0 20px #ffedeb, 0 0 40px #ffedeb, 0 0 80px #ffedeb80; }
}

/* Socials */
.socials {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  isolation: isolate;
}
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transform: scale(1);
  filter: drop-shadow(0 0 6px #ffffff66) drop-shadow(0 0 14px #ffffff33);
  transition: transform .25s, filter .25s;
}
.socials a:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #ffffff99) drop-shadow(0 0 24px #ffffff59);
}
.socials svg { width: 32px; height: 32px; }

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.custom-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  transition: transform .15s;
}
.custom-link:active { transform: scale(.95); }
.custom-link:focus-visible { outline: 1px solid #ffffff88; outline-offset: 2px; }

.custom-link > span:not(.link-content) {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  transition: opacity 1.2s;
}
.link-glow {
  background: radial-gradient(15% 50% at 50% 100%, rgba(255, 255, 255, .8) 0%, transparent 100%);
  filter: blur(15px);
  opacity: 1;
}
.link-glow-hover {
  background: radial-gradient(60% 50% at 50% 100%, rgba(255, 255, 255, .8) 0%, transparent 100%);
  filter: blur(18px);
  opacity: 0;
}
.link-stroke {
  background: radial-gradient(11% 50% at 50% 100%, #fff 0%, transparent 100%);
  opacity: 1;
}
.link-stroke-hover {
  background: radial-gradient(60% 50% at 50% 100%, #fff 0%, transparent 100%);
  opacity: 0;
}
.custom-link:hover .link-glow,
.custom-link:hover .link-stroke { opacity: 0; }
.custom-link:hover .link-glow-hover,
.custom-link:hover .link-stroke-hover { opacity: 1; }

.custom-link > span.link-fill {
  inset: 1px;
  border-radius: 7px;
  background: #000;
}

.link-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.link-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .3s;
}
.custom-link:hover .link-arrow { transform: translateX(3px); }

@media (max-width: 480px) {
  .profile { padding: 20px 12px; }
  .card { max-width: 92vw; }
  .card-inner { flex-direction: column; align-items: center; }
  .content { text-align: center; }
  .avatar { width: 90px; height: 90px; }
  .display-name { font-size: 22px; }
  .socials { justify-content: center; gap: 20px; }
  .socials svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .display-name, .card { animation: none; }
}
