:root {
  --bg-0: #000000;
  --bg-1: #0a0a0b;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --surface: rgba(22, 22, 25, 0.72);
  --surface-2: rgba(30, 30, 34, 0.7);
  --stroke: rgba(255, 255, 255, 0.07);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #ededf0;
  --text-dim: #a1a1a8;
  --text-faint: #6b6b73;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: var(--bg-0);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

img { pointer-events: none; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(110% 80% at 50% -10%, #26262b 0%, #0d0d0f 45%, #000 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 78%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .30;
  will-change: transform;
}
.orb-1 { width: 460px; height: 460px; background: #4b4b55; top: -170px; left: -150px; animation: drift 22s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: #2e2e36; bottom: -170px; right: -130px; animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 300px; height: 300px; background: #6b6b78; top: 45%; left: 60%; opacity: .14; animation: drift 19s ease-in-out infinite alternate; animation-delay: -7s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(55px, -45px, 0) scale(1.14); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
}

.card {
  position: relative;
  width: min(400px, 100%);
  padding: 32px 24px 24px;
  border-radius: 26px;
  background: linear-gradient(175deg, rgba(28, 28, 32, 0.82) 0%, rgba(14, 14, 16, 0.86) 100%);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow:
    0 40px 90px -28px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: cardEnter 1.1s cubic-bezier(.16, 1, .3, 1) both;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.02) 70%,
    rgba(255, 255, 255, 0.16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(36px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-ring {
  position: relative;
  padding: 2.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3a3a42, #8a8a96, #d4d4dc, #8a8a96, #3a3a42);
  animation: spin 11s linear infinite;
  margin-bottom: 16px;
  will-change: transform;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 12px 34px -10px rgba(0, 0, 0, 0.9);
}

.avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  overflow: hidden;
  background: #0c0c0e;
  animation: spinReverse 11s linear infinite;
  will-change: transform;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: grayscale(12%) contrast(105%);
  transition: filter .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.avatar:hover img {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.06);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

.name {
  font-family: 'Permanent Marker', cursive;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.05;
  color: #ffffff;
  transform: rotate(-3deg) skewX(-4deg);
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.20),
    0 4px 12px rgba(0, 0, 0, 0.6);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.15);
  margin-top: -2px;
}

.user-bio {
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .015em;
  color: var(--text-faint);
}

.divider {
  width: 100%;
  height: 1px;
  margin: 22px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10) 20%, rgba(255, 255, 255, 0.10) 80%, transparent);
}

.links { display: flex; flex-direction: column; gap: 10px; }

.link {
  --accent: 190, 190, 200;
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(38, 38, 43, 0.55), rgba(20, 20, 23, 0.55));
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.12) 50%, transparent 75%);
  transform: translateX(-115%);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.link:hover::before { transform: translateX(115%); }

.link:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(48, 48, 54, 0.75), rgba(26, 26, 30, 0.75));
  border-color: rgba(var(--accent), .42);
  box-shadow:
    0 16px 38px -16px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(var(--accent), .14) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.link:active { transform: translateY(-1px) scale(.985); }

.link-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .35s ease, border-color .35s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
}

.link:hover .link-icon {
  background: linear-gradient(180deg, rgba(var(--accent), .20), rgba(var(--accent), .07));
  border-color: rgba(var(--accent), .32);
  transform: scale(1.06);
}

.icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
  transition: opacity .3s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
}

.link:hover .icon {
  opacity: 1;
  transform: scale(1.1) rotate(-5deg);
}

.link-text { flex: 1; color: var(--text); }

.arrow {
  width: 15px;
  height: 15px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
  color: rgba(var(--accent), .9);
  flex-shrink: 0;
}

.link:hover .arrow { opacity: 1; transform: translateX(0); }

.reveal {
  opacity: 0;
  animation: fadeUp .85s cubic-bezier(.16, 1, .3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.volume-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 46px;
  width: 46px;
  padding: 0 11px;
  border-radius: 15px;
  background: rgba(22, 22, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  transition: width .45s cubic-bezier(.4, 0, .2, 1), background .3s ease, border-color .3s ease;
}

.volume-container:hover { width: 74px; background: rgba(32, 32, 37, 0.8); border-color: rgba(255, 255, 255, 0.14); }
.volume-container.expanded { width: 210px; background: rgba(32, 32, 37, 0.85); border-color: rgba(255, 255, 255, 0.14); }

.volume-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 100%;
  cursor: pointer;
  transition: transform .25s ease;
}

.volume-icon-wrapper:hover { transform: scale(1.08); }

.expand-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-left: 6px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16, 1, .3, 1);
}

.volume-container:hover .expand-arrow { opacity: .75; pointer-events: auto; }
.volume-container.expanded .expand-arrow { transform: rotate(180deg); opacity: .75; }

.volume-slider-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100px;
  height: 100%;
  margin-left: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.volume-container.expanded .volume-slider-box { opacity: 1; pointer-events: auto; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  background: transparent;
  position: relative;
  z-index: 3;
}

input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 20px; cursor: pointer; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; background: transparent; cursor: pointer; }
input[type=range]::-moz-range-track { background: transparent; height: 20px; }
input[type=range]::-moz-range-thumb { height: 20px; width: 20px; border: 0; background: transparent; cursor: pointer; }

.slider-bg-track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.11);
  z-index: 1;
}

.slider-progress-smooth {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6b6b78, #d4d4dc);
  pointer-events: none;
  z-index: 1;
}

.slider-knob-smooth {
  position: absolute;
  left: 0%; top: 50%;
  transform: translate(-50%, -50%);
  height: 13px; width: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 2;
  transition: transform .2s cubic-bezier(.175, .885, .32, 1.275);
}

.volume-slider-box:active .slider-knob-smooth { transform: translate(-50%, -50%) scale(1.35); }

@media (max-width: 420px) {
  .card { padding: 26px 18px 22px; border-radius: 22px; }
  .name { font-size: 38px; }
  .avatar { width: 84px; height: 84px; }
  .link { padding: 11px 13px; font-size: 14px; }
  .volume-container { top: 14px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}