:root {
  --font_family: 'Inter', sans-serif;
  --font_size: 16px;
  --background_color: #000;
  --text_color: #fff;
  --discord_color: #5865F2;
  --spotify_green: #1DB954;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

body {
  font: var(--font_size) var(--font_family);
  background: var(--background_color);
  color: var(--text_color);
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

/* Ultra-Smooth 60FPS Pointer */
#pointer_circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  /* Instant update using translate3d */
  transform: translate3d(var(--mouse-x, -100px), var(--mouse-y, -100px), 0);
  /* Remove transitions for absolute zero lag response */
  transition: none !important;
}

/* Hide cursor on mobile/tablets */
@media (max-width: 1024px) {
  #pointer_circle { display: none; }
  * { cursor: auto !important; }
}

/* Dot Overlay */
.dot_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACdJREFUGFdjZEADTAwMDB8ZGBgYmBgYGD4yMDAwMDIwMDAwMDAwMAMABH8CAnmK3+AAAAAASUVORK5CYII=');
  z-index: 5;
  pointer-events: none;
  opacity: 0.1;
}

/* Background Video */
#bg_video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.35);
  /* Performance optimization */
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Tap Overlay */
#tap_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(5px);
}

.click_to_enter {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: #fff;
  text-transform: lowercase;
  opacity: 0.4;
  animation: pulse 2s infinite;
}

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

/* Volume Control */
#top_volume_control {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.volume_boundary {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.volume_boundary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

#volume_icon_wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

#volume_toggle_btn {
  font-size: 0.85rem;
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.2s;
}

#volume_toggle_btn:hover { opacity: 1; }

#volume_slider_container {
  width: 0;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

/* Show bar when boundary is hovered */
.volume_boundary:hover #volume_slider_container {
  width: 85px;
}

#volume_bar_bg {
  position: relative;
  width: 75px;
  height: 5px; /* Thicker bar as requested */
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

#volume_bar_fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #fff;
  pointer-events: none;
  border-radius: 3px;
}

#top_volume_slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  background: transparent;
  z-index: 2;
  cursor: none !important;
}

#top_volume_slider::-webkit-slider-thumb {
  appearance: none;
  width: 0;
  height: 0;
}

/* Content Layout */
.main_wrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 20px;
}

.content_container {
  text-align: center;
  max-width: 360px;
  width: 100%;
  /* Faster entry animation */
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Name Section */
.name_container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.main_name {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  text-transform: lowercase;
  opacity: 0.9;
  animation: float_name 4s ease-in-out infinite;
}

@keyframes float_name {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Discord Overlay - Minimal & Transparent */
.lanyard_card {
  background: rgba(255, 255, 255, 0.03); /* Nearly transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 auto 15px;
  border: 1px solid rgba(255, 255, 255, 0.08); /* Clearly visible boundaries */
  text-align: left;
}

.lanyard_main {
  display: flex;
  align-items: center;
  gap: 12px;
}

#lanyard_avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.status_dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.4);
}

.lanyard_info { flex-grow: 1; min-width: 0; }

.lanyard_user_row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

#lanyard_username {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pronouns {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
}

.lanyard_badges {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.badge_icon {
  width: 14px;
  height: 14px;
}

#lanyard_status_text {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Spotify */
.spotify_activity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.spotify_content {
  display: flex;
  align-items: center;
  gap: 10px;
}

#spotify_album_art {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.spotify_status_line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--spotify_green);
  text-transform: uppercase;
}

.spotify_track {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify_artist, .spotify_album {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
}

.hidden { display: none !important; }

/* Social Links */
.social_links_container {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social_link_item {
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social_link_item:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .main_name { font-size: 1.8rem; }
  .content_container { max-width: 300px; }
  #lanyard_avatar { width: 36px; height: 36px; }
  .social_link_item { font-size: 1.1rem; }
}
