*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e8ebf3;
  background: #07080d;
}

:root {
  --text-offset: 0px;
  --link-offset: -6px;
}

h1,
h2,
p {
  margin: 0;
}

.page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}

.snow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(120, 132, 255, 0.13), transparent 35%),
    radial-gradient(circle at 84% 86%, rgba(145, 102, 255, 0.1), transparent 32%),
    linear-gradient(165deg, #05060b 0%, #0f1119 54%, #090a12 100%);
  z-index: 0;
}

.page::after {
  content: none;
}

.enter-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.enter-screen.hide {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.enter-box {
  width: auto;
  text-align: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.enter-btn {
  border: 0;
  background: transparent;
  color: #eceff8;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.enter-btn:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.profile-shell {
  position: relative;
  z-index: 2;
  margin-top: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.profile-shell.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-card {
  width: min(560px, 92vw);
  border-radius: 24px;
  background: rgba(15, 17, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 28px 24px;
  text-align: center;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(120, 92, 255, 0.16);
  backdrop-filter: blur(9px);
}

.avatar-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #d3deff 0%, #7b88ff 62%, #5d2fbe 100%);
  padding: 3px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111423;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.name {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow:
    0 0 10px rgba(133, 154, 255, 0.6),
    0 0 24px rgba(133, 154, 255, 0.45),
    0 0 36px rgba(129, 84, 255, 0.28);
}

.text-block {
  transform: translateY(var(--text-offset));
  transition: transform 0.2s ease;
}

.bio {
  color: rgba(229, 234, 247, 0.9);
  line-height: 1.45;
}

.mail {
  margin: 8px 0 10px;
  color: rgba(207, 215, 246, 0.96);
  transform: translateY(var(--link-offset));
}

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

.player {
  border-radius: 14px;
  border: 1px solid rgba(154, 165, 255, 0.28);
  background: rgba(10, 13, 22, 0.72);
  padding: 12px 13px;
}

.track-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: rgba(236, 239, 255, 0.95);
}

.song {
  font-weight: 600;
}

.time {
  font-size: 0.86rem;
}

.progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(157, 167, 255, 0.25);
  cursor: pointer;
}

.progress span {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ced5ff, #8d65ff);
}

.player-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(159, 172, 255, 0.72);
  border-radius: 999px;
  background: rgba(120, 129, 246, 0.22);
  color: #eef0ff;
  font-size: 0.95rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(137, 147, 255, 0.45);
}

.volume-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-label {
  font-size: 0.78rem;
  color: rgba(218, 222, 245, 0.82);
  min-width: 48px;
}

.volume-slider {
  width: 100%;
  accent-color: #859aff;
}

@keyframes snowDrift {
  0% {
    transform: translateY(-2%) translateX(0);
  }
  100% {
    transform: translateY(2%) translateX(-3%);
  }
}

@media (max-width: 560px) {
  .profile-shell {
    margin-top: 0;
  }

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

  .name {
    font-size: 1.7rem;
  }

  .bio {
    font-size: 0.95rem;
  }
}
