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

:root {
  --bg: #0d0d0d;
  --fg: #e5e5e5;
  --muted: #888;
  --border: #333;
  --accent: #fff;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: 
    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: 50px 50px;
}

.corner {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}

.corner-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.corner-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.corner-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  bottom: -10px;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  5%  { opacity: 1; }
  95% { opacity: 1; }
  100% {
    transform: translateY(-110vh) rotate(720deg);
    opacity: 0;
  }
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.1) 2px,
    rgba(0,0,0,0.1) 4px
  );
  pointer-events: none;
}

.enter-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 100;
  transition: opacity 0.5s, visibility 0.5s;
}

.enter-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.enter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  padding: 16px 32px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: lowercase;
}

.enter-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
}

.bracket {
  color: var(--muted);
}

.main-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}

.main-content.visible {
  opacity: 1;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--border);
  filter: grayscale(100%);
  transition: all 0.5s;
  object-fit: cover;
}

.avatar:hover {
  filter: grayscale(0%);
  border-color: var(--accent);
  transform: scale(1.05);
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.username {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: lowercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-icon {
  color: var(--accent);
}

.cursor {
  animation: cursorBlink 1s infinite;
}

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

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin-top: 12px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-family: inherit;
  font-size: 13px;
  text-transform: lowercase;
  transition: all 0.3s;
}

.link-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.icon {
  width: 16px;
  height: 16px;
}

.user-id {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
  opacity: 0.5;
}

.music-player {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

.music-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.music-btn:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,0.05);
}

.music-btn.playing {
  border-color: var(--accent);
}

.music-icon {
  font-size: 18px;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.visualizer.active {
  opacity: 1;
}

.bar {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transition: height 0.1s ease;
}

.visualizer.active .bar {
  animation: wave 1.4s ease-in-out infinite;
}

.bar:nth-child(1) { animation-delay: 0.0s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0%   { height: 3px;  opacity: 0.4; }
  20%  { height: 18px; opacity: 1;   }
  50%  { height: 8px;  opacity: 0.7; }
  75%  { height: 20px; opacity: 1;   }
  100% { height: 3px;  opacity: 0.4; }
}

@media (max-width: 640px) {
  .corner {
    width: 50px;
    height: 50px;
  }
  
  .corner-tl, .corner-tr, .corner-bl, .corner-br {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .corner-tr { left: auto; }
  .corner-bl { top: auto; }
  .corner-br { top: auto; left: auto; }
  
  .avatar {
    width: 100px;
    height: 100px;
  }
  
  .username {
    font-size: 20px;
  }
  
  .links {
    max-width: 240px;
  }
  
  .link-btn {
    padding: 12px 20px;
    font-size: 12px;
  }
  
  .music-player {
    bottom: 15px;
    right: 15px;
  }
  
  .music-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .username {
    font-size: 18px;
  }
  
  .enter-btn {
    font-size: 12px;
    padding: 12px 24px;
  }
}

.icon-wrapper {
  width: 22px;
  height: 22px;
  background-color: currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.icon-svg {
  width: 16px;
  height: 16px;
  filter: brightness(0); 
}

.tg-btn:hover {
  color: #5ea9dd !important;
  border-color: #5ea9dd !important;
}

.lolz-btn:hover {
  color: #2bad72 !important;
  border-color: #2bad72 !important;
}