:root {
  --red: #ef4444;
  --red-hover: #dc2626;
  --cyan: #06b6d4;
  --orange: #f97316;
  --bg-light: #f2f2f7;
  --bg-dark: #000000;
  --text: #f9fafb;
  --muted: rgba(249, 250, 251, 0.68);
  --glass: rgba(255, 255, 255, 0.13);
  --glass-edge: rgba(255, 255, 255, 0.34);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-dark);
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  background:
    linear-gradient(145deg, #111114 0%, var(--bg-dark) 52%, #15151a 100%);
  letter-spacing: 0;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 84%);
}

body::after {
  position: fixed;
  inset: -18vmax;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(239, 68, 68, 0.58), transparent 26%),
    radial-gradient(circle at 84% 26%, rgba(6, 182, 212, 0.52), transparent 28%),
    radial-gradient(circle at 56% 86%, rgba(249, 115, 22, 0.44), transparent 30%),
    radial-gradient(circle at 40% 42%, rgba(255, 255, 255, 0.1), transparent 22%);
  background-size: 130% 130%, 120% 120%, 150% 150%, 110% 110%;
  background-position: 0% 0%, 100% 18%, 50% 100%, 42% 48%;
  filter: blur(18px) saturate(1.2);
  opacity: 0.92;
  animation: background-pulse 11s ease-in-out infinite alternate;
}

.aurora,
.sticker-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  z-index: 0;
  filter: blur(12px) saturate(1.22);
}

.aurora span {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  border-radius: 999px;
  opacity: 0.72;
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
  animation: aurora-drift 9s ease-in-out infinite alternate;
}

.aurora-red {
  top: -18vmax;
  left: -12vmax;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.72), transparent 68%);
}

.aurora-cyan {
  top: 10vmax;
  right: -18vmax;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.62), transparent 70%);
  animation-delay: -6s;
}

.aurora-orange {
  bottom: -18vmax;
  left: 28%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.56), transparent 72%);
  animation-delay: -11s;
}

.sticker-field {
  z-index: 1;
}

.floating-sticker {
  position: absolute;
  width: clamp(70px, 12vw, 150px);
  height: auto;
  object-fit: contain;
  opacity: 0.42;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.36));
  animation: sticker-float 24s linear infinite;
}

.sticker-a {
  left: 8%;
  top: -18%;
  animation-duration: 28s;
}

.sticker-b {
  right: 12%;
  top: -22%;
  width: clamp(64px, 10vw, 132px);
  animation-delay: -13s;
  animation-duration: 31s;
}

.sticker-c {
  left: 18%;
  top: -24%;
  width: clamp(76px, 13vw, 164px);
  animation-delay: -7s;
  animation-duration: 34s;
}

.sticker-d {
  right: 4%;
  top: -20%;
  animation-delay: -20s;
  animation-duration: 29s;
}

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

img {
  display: block;
  width: 100%;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  align-content: center;
  width: min(100% - 32px, 500px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
}

@supports (min-height: 100dvh) {
  .page-shell {
    min-height: 100dvh;
  }
}

.profile-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
}

.profile-card::after {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.28), transparent 34%, rgba(255, 255, 255, 0.08) 72%, transparent);
  opacity: 0.7;
}

.portrait-wrap,
.eyebrow,
h1,
.tagline,
.socials,
.info-section {
  position: relative;
  z-index: 1;
}

.portrait-wrap {
  width: min(100%, 340px);
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
  aspect-ratio: 1;
}

.portrait-wrap img {
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 8px 18px 11px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--red);
  font-size: clamp(2.8rem, 12vw, 4.8rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.socials {
  display: grid;
  gap: 10px;
}

.info-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.info-section h2 {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 7px 13px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1;
}

.social-link {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

.social-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.social-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.social-copy {
  min-width: 0;
}

.social-label,
.social-handle {
  display: block;
  overflow-wrap: anywhere;
}

.social-label {
  font-weight: 850;
}

.social-handle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.social-arrow {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(-8vw, -8vh, 0) scale(0.72);
  }

  50% {
    transform: translate3d(10vw, 8vh, 0) scale(1.22);
  }

  100% {
    transform: translate3d(-4vw, 16vh, 0) scale(0.92);
  }
}

@keyframes background-pulse {
  0% {
    background-position: 0% 0%, 100% 18%, 50% 100%, 42% 48%;
    background-size: 124% 124%, 118% 118%, 148% 148%, 108% 108%;
    transform: scale(1) rotate(0deg);
  }

  45% {
    background-position: 24% 20%, 78% 44%, 34% 70%, 62% 32%;
    background-size: 152% 152%, 138% 138%, 128% 128%, 126% 126%;
    transform: scale(1.05) rotate(2deg);
  }

  100% {
    background-position: 42% 8%, 62% 76%, 72% 58%, 30% 70%;
    background-size: 138% 138%, 156% 156%, 168% 168%, 118% 118%;
    transform: scale(1.1) rotate(-2deg);
  }
}

@keyframes sticker-float {
  0% {
    transform: translate3d(0, -20vh, 0) rotate(-10deg) scale(0.82);
  }

  35% {
    transform: translate3d(7vw, 38vh, 0) rotate(13deg) scale(1.08);
  }

  70% {
    transform: translate3d(-5vw, 82vh, 0) rotate(-18deg) scale(0.92);
  }

  100% {
    transform: translate3d(4vw, 126vh, 0) rotate(18deg) scale(1.12);
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(100% - 16px, 500px);
    padding-top: max(14px, env(safe-area-inset-top));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .profile-card {
    padding: 16px;
    border-radius: 22px;
  }

  .portrait-wrap {
    width: min(100%, 300px);
    border-radius: 20px;
  }

  h1 {
    padding: 7px 14px 10px;
  }

  .social-link {
    grid-template-columns: 42px 1fr 22px;
    min-height: 58px;
  }

  .social-icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span,
  .floating-sticker {
    animation: none;
  }
}
