*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'CustomFont';
  src: url('../fonts/font.otf') format('opentype'),
    url('../fonts/font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-dark: #0a0a0f;
  --bg-mid: #0f0f18;
  --accent-1: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-3: #c4b5fd;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0eeff;
  --text-muted: rgba(200, 190, 255, 0.55);
  --glow: rgba(139, 92, 246, 0.35);

  --font-mc: 'CustomFont', monospace;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  font-family: var(--font-mc);
  text-transform: lowercase;
  cursor: url('../content/cursor.png'), auto;
}

button,
a,
#landing {
  cursor: url('../content/cursor.png'), pointer;
}

.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-2%, -3%);
  }

  20% {
    transform: translate(-4%, 2%);
  }

  30% {
    transform: translate(3%, -4%);
  }

  40% {
    transform: translate(-1%, 5%);
  }

  50% {
    transform: translate(4%, 1%);
  }

  60% {
    transform: translate(-3%, -2%);
  }

  70% {
    transform: translate(2%, 4%);
  }

  80% {
    transform: translate(-4%, -1%);
  }

  90% {
    transform: translate(3%, 3%);
  }

  100% {
    transform: translate(0, 0);
  }
}

#landing {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, #16103a 0%, #0a0a0f 100%);
  z-index: 10;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);

}

#landing.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.landing-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0;
  animation: floatUp var(--dur, 6s) var(--delay, 0s) ease-in infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-120vh) scale(1.2);
  }
}

#enter-btn {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-1);
  animation: pulseText 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

#main {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, #0f0818 0%, #0a0a0f 100%);
  overflow: hidden;
  transition: opacity 0.8s ease;
  perspective: 1000px;
}

#main.hidden {
  opacity: 0;
  pointer-events: none;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbPulse 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-1);
  top: -150px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #4f46e5;
  bottom: -120px;
  right: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  top: 40%;
  left: 55%;
  animation-delay: -5s;
}

@keyframes orbPulse {

  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.15) translate(15px, -10px);
  }
}

.card-wrapper {
  position: relative;
  z-index: 2;
  width: min(450px, 92vw);
  animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transform: translateZ(30px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.5), transparent);
}

.avatar-ring {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-3), #4f46e5, var(--accent-1));
  animation: spinRing 6s linear infinite;
  box-shadow: 0 0 24px var(--glow);
  transform: translateZ(50px);
}

@keyframes spinRing {
  to {
    filter: hue-rotate(360deg);
  }
}

.avatar-container {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dark);
  border: 3px solid var(--bg-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateZ(40px);
}

.username {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #e0d7ff 0%, var(--accent-2) 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.diamond-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px var(--accent-1));
  animation: diamondPulse 3s ease-in-out infinite;
}

@keyframes diamondPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 4px var(--accent-1));
    opacity: 1;
  }

  50% {
    filter: drop-shadow(0 0 10px var(--accent-3));
    opacity: 0.8;
  }
}

.bio {
  font-size: clamp(1.1rem, 3.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  max-width: 320px;
  transform: translateZ(30px);
}












.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  transform: translateZ(50px);
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.social-btn:active::after {
  background: rgba(255, 255, 255, 0.08);
}

.social-btn.discord {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.25);
}

.social-btn.discord:hover {
  background: rgba(88, 101, 242, 0.35);
  border-color: rgba(88, 101, 242, 0.55);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3);
}

.social-btn.tiktok {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.social-btn.tiktok:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-btn.twitch {
  background: rgba(145, 70, 255, 0.18);
  border-color: rgba(145, 70, 255, 0.25);
}

.social-btn.twitch:hover {
  background: rgba(145, 70, 255, 0.35);
  border-color: rgba(145, 70, 255, 0.55);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(145, 70, 255, 0.3);
}

.social-btn.mail {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.2);
}

.social-btn.mail:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

@media (max-width: 480px) {
  .card {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }

  .avatar-container {
    width: 95px;
    height: 95px;
  }

  .socials {
    gap: 8px;
  }

  .social-btn {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .username {
    font-size: 1.6rem;
  }

  .bio {
    font-size: 1rem;
  }
}

#custom-player {
  position: relative;
  width: 100%;
  margin: 5px 0;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateZ(35px);
}

#custom-player::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: var(--accent-1);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes rotateBorder {
  to {
    transform: rotate(360deg);
  }
}

#custom-player.playing::before {
  opacity: 1;
}

#custom-player:hover {
  background: rgba(139, 92, 246, 0.15);
  transform: translateZ(35px) scale(1.02);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.player-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.player-icon-box svg.music-logo {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
}

#custom-player.playing .player-icon-box {
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(139, 92, 246, 0);
  }

  50% {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
  }
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-transform: none;
}

.player-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-controls {
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-controls svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px var(--accent-2));
  transition: transform 0.2s ease;
}

#custom-player:active .player-controls svg {
  transform: scale(0.85);
}