@font-face {
  font-family: 'SuperMario256';
  src: url('fonts/super-mario-256.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  background: none;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1f2937 0%, #000000 50%, #1f2937 100%);
  overflow-x: hidden;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
    z-index: 1;
}

.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    color: white;
    font-size: 12px;
    opacity: 0.6;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #dc2626;
}

.volume-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.volume-icon:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

.main-content {
    text-align: center;
    z-index: 10;
    max-width: 400px;
    padding: 0 16px;
}

.glass-card {
    position: relative;
    z-index: 2;
    background: rgba(24, 28, 47, 0.85);
    box-shadow: 0 8px 40px 0 #7c2fff33, 0 1.5px 8px 0 #00000044;
    border-radius: 24px;
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 340px;
    min-height: 420px;
    backdrop-filter: blur(12px);
}

.glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0) 100%);
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s;
    border-radius: 24px;
}

.glass-card:hover .glass-reflection {
    opacity: 1;
}

.profile-picture {
    position: relative;
    width: 128px;
    height: 128px;
    margin-bottom: 16px;
    transition: transform 0.2s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
    z-index: 2;
    perspective: 600px;
    transition: box-shadow 0.2s, filter 0.2s;
    /* box-shadow: 0 0 0 2px #a855f7, 0 0 12px 2px #a855f780; */
}

.profile-picture img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.profile-picture:hover {
    /* box-shadow: 0 0 0 3px #a855f7, 0 0 24px 6px #a855f7cc; */
    filter: brightness(1.1) saturate(1.1);
}

.username-section {
    margin-bottom: 16px;
}

.username {
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.welcome-text {
    color: #d1d5db;
    font-size: 18px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.status-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid #374151;
    border-radius: 16px;
    margin: 0 auto 24px;
    max-width: 320px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.status-content {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #a855f7, 0 0 12px 2px #a855f780;
    transition: box-shadow 0.2s, filter 0.2s;
}

.status-avatar:hover {
    box-shadow: 0 0 0 3px #a855f7, 0 0 24px 6px #a855f7cc;
    filter: brightness(1.15) saturate(1.2);
}

.status-info {
    flex: 1;
    text-align: left;
}

.status-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-name span {
    color: white;
    font-weight: 600;
}

.checkmark {
    color: #10b981;
}

.status-text {
    color: #9ca3af;
    font-size: 14px;
}

.dnd-indicator {
    background-color: #dc2626;
    border-radius: 50%;
    padding: 4px;
    color: white;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-icons a:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.12);
    box-shadow: 0 0 0 3px #a855f7, 0 0 24px 6px #a855f7cc;
    filter: brightness(1.15) saturate(1.2);
}

.social-icons img, .social-icons svg {
    width: 28px;
    height: 28px;
    display: block;
}

.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(179,0,0,0.08);
    padding: 2rem 1.5rem;
}

header h1 {
    color: #b30000;
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-weight: 700;
}

.profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eee;
    border: 3px solid #b30000;
    box-shadow: 0 2px 8px rgba(179,0,0,0.05);
}

.info {
    flex: 1;
}

#username {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #b30000;
}

#status, #activity {
    margin: 0.2rem 0;
    color: #b30000;
    font-size: 1rem;
    opacity: 0.8;
}

#discord-pfp {
    border-radius: 50%;
    border: 2px solid #7289da;
    margin-bottom: 10px;
}

#discord-status, #discord-activity {
    font-size: 1.2em;
    margin: 5px 0;
}

/* 3D hover effect for pfp */
.profile-picture {
    perspective: 600px;
}

.profile-picture.tilt {
    transition: transform 0.1s cubic-bezier(.25,.8,.25,1);
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
.status-avatar.spin {
  animation: spin 1.2s linear infinite;
}

.neon-bg-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13vw;
  font-family: 'SuperMario256', 'Segoe UI', Arial, sans-serif;
  color: #a855f7;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.15em;
  text-shadow:
    0 0 16px #a855f7,
    0 0 32px #a855f7,
    0 0 64px #a855f7,
    0 0 128px #a855f7;
  z-index: 0;
}

.music-btn {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 10;
  background: rgba(31, 41, 55, 0.95);
  border: 3px solid #a855f7;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px 8px #a855f7cc, 0 0 64px 16px #a855f744;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
  outline: none;
  overflow: visible;
}
.music-btn:active {
  transform: scale(0.92) rotate(-10deg);
}
.music-btn.noactive:active {
  transform: none;
}
.music-btn.on {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  box-shadow: 0 0 48px 16px #a855f7ee, 0 0 96px 24px #a855f7cc;
}
.music-btn.off {
  background: rgba(31, 41, 55, 0.95);
  border-color: #374151;
  box-shadow: 0 0 12px 2px #37415180;
  filter: grayscale(0.7) brightness(0.7);
}
.music-note {
  font-size: 2.3em;
  color: #fff;
  transition: color 0.2s, filter 0.2s, text-shadow 0.2s;
  text-shadow: 0 0 16px #a855f7, 0 0 32px #a855f7;
}
.music-btn.off .music-note {
  color: #a855f7;
  filter: grayscale(1) brightness(0.7);
  text-shadow: none;
}

.music-volume-compartment {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) scaleX(0.7);
  background: rgba(31,41,55,0.95);
  border-radius: 16px;
  box-shadow: 0 0 16px 2px #a855f7cc;
  padding: 12px 18px;
  margin-left: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  min-width: 120px;
  z-index: 20;
}
.music-btn:hover .music-volume-compartment,
.music-btn:focus-within .music-volume-compartment {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scaleX(1);
}
#music-volume {
  width: 90px;
  accent-color: #a855f7;
  background: transparent;
  border-radius: 8px;
  outline: none;
  height: 4px;
  margin: 0 0 0 0;
  box-shadow: 0 0 8px #a855f7cc;
  transition: box-shadow 0.2s;
}
#music-volume:focus {
  box-shadow: 0 0 16px #a855f7cc;
}

.enter-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), visibility 0.6s cubic-bezier(.4,0,.2,1);
}
.enter-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-glass-btn {
  background: rgba(255,255,255,0.13);
  border-radius: 24px;
  box-shadow: 0 0 32px 8px #fff8, 0 0 64px 16px #a855f7cc;
  border: 1.5px solid #fff6;
  padding: 36px 64px;
  font-size: 2.5rem;
  color: #fff;
  font-family: 'SuperMario256', 'Segoe UI', Arial, sans-serif;
  text-shadow: 0 0 24px #fff, 0 0 48px #a855f7;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
}
.enter-glass-btn:hover, .enter-glass-btn:focus {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 48px 16px #fff, 0 0 96px 24px #a855f7cc;
  transform: scale(1.04);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .glass-card {
    min-width: 220px;
    max-width: 98vw;
    padding: 32px 8vw 24px 8vw;
  }
  .profile-picture {
    width: 96px;
    height: 96px;
  }
  .profile-picture img {
    width: 96px;
    height: 96px;
  }
  .status-card {
    max-width: 98vw;
  }
  .main-content {
    max-width: 98vw;
    padding: 0 2vw;
  }
  .neon-bg-text {
    font-size: 10vw;
  }
  .music-btn {
    width: 52px;
    height: 52px;
    top: 16px;
    left: 16px;
  }
  .music-note {
    font-size: 1.5em;
  }
  .music-volume-compartment {
    min-width: 80px;
    padding: 8px 10px;
    margin-left: 8px;
  }
  #music-volume {
    width: 60px;
  }
  .enter-glass-btn {
    font-size: 1.3rem;
    padding: 18px 24px;
  }
}

@media (max-width: 600px) {
  .glass-card {
    margin-top: 22vw;
    z-index: 5;
    min-width: 0;
    max-width: 98vw;
    padding: 12px 2vw 10px 2vw;
    border-radius: 10px;
    box-shadow: 0 4px 24px 0 #7c2fff33, 0 1.5px 8px 0 #00000044;
  }
  .profile-picture {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  .profile-picture img {
    width: 80px;
    height: 80px;
  }
  .username {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }
  .status-card {
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 100vw;
  }
  .status-content {
    padding: 7px;
    gap: 5px;
  }
  .status-avatar {
    width: 26px;
    height: 26px;
  }
  .social-icons {
    gap: 8px;
    margin-top: 8px;
  }
  .social-icons a {
    width: 28px;
    height: 28px;
  }
  .social-icons img, .social-icons svg {
    width: 18px;
    height: 18px;
  }
  .neon-bg-text {
    font-size: 12vw;
    letter-spacing: 0.08em;
    opacity: 0.10;
    top: 62%;
  }
  .music-btn {
    width: 36px;
    height: 36px;
    top: 10px;
    left: 10px;
    z-index: 10;
  }
  .music-note {
    font-size: 1em;
  }
  .music-volume-compartment {
    min-width: 44px;
    padding: 3px 4px;
    margin-left: 2px;
  }
  #music-volume {
    width: 30px;
  }
  .enter-glass-btn {
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 10px;
  }
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.side-arrow {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  background: #7c2fff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5em;
}

.side-panel {
  position: absolute;
  right: -260px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background: #181c2f;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px 2px #7c2fff33;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
}

.side-panel.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 700px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 100vh;
  }
  .glass-card {
    min-width: 90vw;
    min-height: 340px;
    padding: 24px 8px 24px 8px;
  }
  .side-arrow {
    left: 50%;
    top: 100%;
    transform: translate(-50%, 32px);
    margin-top: 0;
  }
  .side-panel {
    left: 50%;
    top: 100%;
    transform: translate(-50%, 32px) scale(0.95);
    margin-top: 0;
  }
  .side-panel.active {
    transform: translate(-50%, 32px) scale(1);
  }
}

.info-tooltip-btn {
  display: block;
  margin: 32px auto 0 auto;
  background: rgba(24, 28, 47, 0.85);
  color: #fff;
  border: 2px solid #a855f7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 12px #a855f7cc;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  z-index: 10;
}
.info-tooltip-btn:hover,
.info-tooltip-btn:focus {
  background: rgba(168, 85, 247, 0.25);
  border-color: #fff;
  box-shadow: 0 0 24px 6px #a855f7cc;
}
.info-tooltip-text {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-120%) scale(0.98);
  background: rgba(24, 28, 47, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 16px #a855f7cc;
  font-size: 1rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(.4,0,.2,1), transform 0.32s cubic-bezier(.4,0,.2,1), visibility 0.32s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.info-tooltip-btn:hover + .info-tooltip-text,
.info-tooltip-btn:focus + .info-tooltip-text {
  opacity: 1;
  transform: translateX(-50%) translateY(-170%) scale(1.04);
  visibility: visible;
}
@media (max-width: 700px) {
  .info-tooltip-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1em;
    margin-top: 18px;
  }
  .info-tooltip-text {
    font-size: 0.9em;
    padding: 8px 12px;
  }
}

/* Shiny animated username effect */
.shiny-text {
  position: relative;
  color: #b5b5b5; /* Always-visible grey base */
  font-family: 'SuperMario256', 'Segoe UI', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  display: inline-block;
}

.shiny-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  color: transparent;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    #fff 48%,
    #fff 52%,
    rgba(255, 255, 255, 0) 70%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: shine 1.5s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    background-position: 100%;
  }
  100% {
    background-position: -100%;
  }
}

.shiny-text.disabled {
  animation: none;
}

/* Optionally comment out the glitch effect to avoid conflicts */
/*
.glitch-username, .glitch-username::before, .glitch-username::after {
  display: none !important;
}
*/

.star-border-container {
  display: inline-block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.border-gradient-bottom {
  position: absolute;
  width: 300%;
  height: 50%;
  opacity: 0.7;
  bottom: -12px;
  right: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, white, transparent 10%);
  animation: star-movement-bottom 6s linear infinite alternate;
  z-index: 0;
}

.border-gradient-top {
  position: absolute;
  opacity: 0.7;
  width: 300%;
  height: 50%;
  top: -12px;
  left: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, white, transparent 10%);
  animation: star-movement-top 6s linear infinite alternate;
  z-index: 0;
}

.inner-content {
  position: relative;
  border: 1px solid #222;
  background: #000;
  color: white;
  font-size: 16px;
  text-align: center;
  padding: 16px 26px;
  border-radius: 20px;
  z-index: 1;
}

@keyframes star-movement-bottom {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(-100%, 0%);
    opacity: 0;
  }
}

@keyframes star-movement-top {
  0% {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  100% {
    transform: translate(100%, 0%);
    opacity: 0;
  }
}

#particles-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
#particles-bg canvas {
  width: 100vw !important;
  height: 100vh !important;
  display: block;
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
  pointer-events: none;
}

/* Ripple effect for tap/cursor animation */
.ripple {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(180, 100, 255, 0.3);
  pointer-events: none;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  z-index: 9999;
}

@keyframes ripple-anim {
  to {
    transform: scale(2.5);
    opacity: 0;
  }

  #visualizer {
  display: flex;
  align-items: flex-end;
  height: 200px;
  width: 100%;
  gap: 4px;
}

.bar {
  width: 6px;
  background: linear-gradient(to top, #7223ff, #b44cff, #d98aff);
  border-radius: 12px;
  box-shadow: 0 0 12px #b44cff;
}

}
