* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100dvh;
  background: #000;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  background: #000;
}

.card {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  perspective: 1000px;
}

/* Frosted-glass panel around the profile */
.panel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 40px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(9px) saturate(125%);
  -webkit-backdrop-filter: blur(9px) saturate(125%);
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  will-change: transform;
}

/* children lift slightly in 3D space for depth */
.panel .avatar,
.panel .info {
  transform: translateZ(40px);
}

/* soft light glare that follows the cursor */
.panel-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.panel:hover .panel-glow {
  opacity: 1;
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(120,140,255,0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.name {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-shadow:
    0 0 6px rgba(255,255,255,0.85),
    0 0 16px rgba(255,255,255,0.55),
    0 0 32px rgba(180,200,255,0.45),
    0 0 60px rgba(150,170,255,0.35);
  animation: nameGlow 3.2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes nameGlow {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(255,255,255,0.8),
      0 0 16px rgba(255,255,255,0.5),
      0 0 32px rgba(180,200,255,0.4),
      0 0 60px rgba(150,170,255,0.3);
  }
  50% {
    text-shadow:
      0 0 10px rgba(255,255,255,1),
      0 0 24px rgba(255,255,255,0.7),
      0 0 48px rgba(180,200,255,0.6),
      0 0 90px rgba(150,170,255,0.5);
  }
}

/* tagline under the name */
.tagline {
  display: none;
}

/* typewriter caret */
.name .caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: #f5f5f5;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  animation: caretBlink 0.9s steps(1) infinite;
}

.name.done .caret { display: none; }

@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 12px;
  border-radius: 12px;
}

.ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  cursor: default;
}

.ico img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

.ico::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #2b2b2b;
  color: #f5f5f5;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.ico::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: #2b2b2b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.ico:hover::after,
.ico:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.links {
  display: flex;
  gap: 12px;
}

.discord {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.discord-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease;
}

.discord:hover .discord-icon {
  transform: scale(1.08);
}

.tiktok {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.tiktok-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease;
}

.tiktok:hover .tiktok-icon {
  transform: scale(1.08);
}


/* Volume control top-right */
.volume-control {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 0;
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px;
  z-index: 50;
  overflow: hidden;
  transition: gap 0.2s ease, padding 0.2s ease;
}

.volume-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #e8e8e8;
  cursor: pointer;
  flex-shrink: 0;
}

.volume-btn svg { width: 22px; height: 22px; }

.volume-slider {
  width: 0;
  opacity: 0;
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: #4a4a4a;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: width 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
}

.volume-control:hover {
  gap: 10px;
}

.volume-control:hover .volume-slider {
  width: 120px;
  opacity: 1;
  margin-right: 6px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}


/* Start overlay */
.start-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.start-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-text {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.3px;
}


/* Mobile: stack the panel vertically and center */
@media (max-width: 560px) {
  .panel {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 28px 26px;
  }
  .name-row { justify-content: center; }
  .links { justify-content: center; }
  .name { font-size: 28px; }
  .avatar { width: 140px; height: 140px; }
}
