* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: Consolas, 'Courier New', monospace;
}

#cur {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

/* ── ENTRY ── */
#entry {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 1.6s ease, visibility 1.6s ease;
}

#entry.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#entry-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#enter-btn {
  font-family: Consolas, 'Courier New', monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  user-select: none;
  animation: blink 2.2s ease-in-out infinite;
  transition: color 0.2s, text-shadow 0.2s;
}

#enter-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

#entry-center::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
  animation: ambientPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ambientPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

/* ── VIDEO ── */
#vid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.72) saturate(0.4) contrast(1.15);
  transition: opacity 2.5s ease;
}

#vid.on {
  opacity: 1;
}

/* ── POST-FX ── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.04) 20%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.08) 75%, rgba(0, 0, 0, 0.75) 100%),
    radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity 2.5s ease;
}

#overlay.on {
  opacity: 1;
}

#scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(0, 0, 0, 0.14) 2px, rgba(0, 0, 0, 0.14) 3px);
  opacity: 0;
  transition: opacity 2.5s ease;
}

#scanlines.on {
  opacity: 1;
}

#sweep {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0%, transparent 36%, rgba(255, 255, 255, 0.03) 47%, rgba(255, 255, 255, 0.015) 53%, transparent 64%, transparent 100%);
  opacity: 0;
  animation: sweep 10s linear infinite;
  transition: opacity 2.5s ease;
}

#sweep.on {
  opacity: 1;
}

@keyframes sweep {
  0% {
    transform: translateX(-130%) skewX(-8deg);
  }

  100% {
    transform: translateX(230%) skewX(-8deg);
  }
}

#grain-wrap {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.5s ease;
}

#grain-wrap.on {
  opacity: 1;
}

#grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#vignette-pulse {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 28%, rgba(0, 0, 0, 0.65) 100%);
  opacity: 0;
  animation: vpulse 6s ease-in-out infinite;
  transition: opacity 2.5s ease;
}

#vignette-pulse.on {
  opacity: 1;
}

@keyframes vpulse {

  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(1.06);
  }
}

/* ── SCENE ── */
#scene {
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease 0.8s;
}

#scene.on {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════
   TOP-LEFT: CLOCK + VISITORS
   ══════════════════════════════════ */
#top-left {
  position: fixed;
  top: clamp(32px, 5vh, 56px);
  left: clamp(32px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadein 0.6s ease 1.2s both;
}

#clock {
  font-family: Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.22);
}

#visitors {
  display: flex;
  align-items: center;
  gap: 8px;
}

#eye-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.2);
  animation: eyePulse 3s ease-in-out infinite;
}

@keyframes eyePulse {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

#visitor-count {
  font-family: Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════
   BOTTOM-LEFT: DISCORD + NOW PLAYING + MUTE
   ══════════════════════════════════ */
#bottom-left {
  position: fixed;
  bottom: clamp(32px, 5vh, 56px);
  left: clamp(32px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  animation: fadein 0.6s ease 1.4s both;
}

/* ── Discord Status ── */
#discord-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  backdrop-filter: blur(16px);
}

#ds-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

#ds-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(5, 5, 5, 0.9);
  transition: background 0.3s, box-shadow 0.3s;
}

.dot-online {
  background: #43b581;
  box-shadow: 0 0 6px rgba(67, 181, 129, 0.5);
  animation: dotPulse 2s ease-in-out infinite;
}

.dot-idle {
  background: #faa61a;
  box-shadow: 0 0 6px rgba(250, 166, 26, 0.4);
}

.dot-dnd {
  background: #f04747;
  box-shadow: 0 0 6px rgba(240, 71, 71, 0.4);
}

.dot-offline {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

#ds-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#ds-name {
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

#ds-state {
  font-family: Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  line-height: 1;
}

#ds-activity {
  font-family: Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.18);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
  line-height: 1;
}

#now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  backdrop-filter: blur(16px);
}

#np-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

#np-bars span {
  width: 2.5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  transform: scaleY(0.4);
  transition: transform 0.3s, background 0.3s;
}

#np-bars span:nth-child(1) {
  height: 6px;
}

#np-bars span:nth-child(2) {
  height: 10px;
}

#np-bars span:nth-child(3) {
  height: 4px;
}

#np-bars span:nth-child(4) {
  height: 8px;
}

/* only animate when spotify is active */
#np-bars.active span {
  background: rgba(30, 215, 96, 0.5);
  animation: npBar 1.2s ease-in-out infinite;
}

#np-bars.active span:nth-child(1) {
  animation-delay: 0s;
}

#np-bars.active span:nth-child(2) {
  animation-delay: 0.15s;
}

#np-bars.active span:nth-child(3) {
  animation-delay: 0.3s;
}

#np-bars.active span:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes npBar {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

#np-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#np-label {
  font-family: Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
}

#np-track {
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
}

#mute {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  transition: background 0.2s, border-color 0.2s, color 0.18s, transform 0.18s;
}

#mute:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.1);
}

#mute svg {
  width: 15px;
  height: 15px;
}

/* ══════════════════════════════════
   SOCIALS
   ══════════════════════════════════ */
#socials {
  position: fixed;
  bottom: clamp(32px, 5vh, 56px);
  right: clamp(32px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 2px;
  animation: slidein 0.5s ease 0.8s both;
}

#alias {
  font-family: Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  transition: color 0.3s, text-shadow 0.3s;
}

#identity:hover #alias {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

#alias-tag {
  font-family: Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
}

#socials-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 4px 0;
  animation: slidein 0.5s ease 0.9s both;
}

.link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 2px;
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(24px);
  min-width: 160px;
  overflow: hidden;
  position: relative;
  transition: color 0.2s, background 0.2s, border-color 0.2s,
    transform 0.22s cubic-bezier(.34, 1.5, .64, 1), box-shadow 0.2s;
}

#dc {
  animation: slidein 0.5s ease 1.0s both;
}

#rb {
  animation: slidein 0.5s ease 1.15s both;
}

#st {
  animation: slidein 0.5s ease 1.3s both;
}

.link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  transition: left 0.48s ease;
}

.link:hover::after {
  left: 160%;
}

.link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.link-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-name {
  font-family: Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.link-sub {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.2s;
}

.link-arr {
  font-size: 0.7rem;
  opacity: 0;
  transform: translate(-4px, 3px);
  transition: opacity 0.18s, transform 0.18s;
}

#dc:hover {
  color: #fff;
  background: rgba(114, 137, 218, 0.1);
  border-color: rgba(114, 137, 218, 0.3);
  box-shadow: 0 4px 20px rgba(114, 137, 218, 0.14);
  transform: translateX(-4px);
}

#dc:hover .link-sub {
  color: rgba(114, 137, 218, 0.55);
}

#dc:hover .link-arr {
  opacity: 0.75;
  transform: translate(0, 0);
  color: #7289da;
}

#rb:hover {
  color: #fff;
  background: rgba(232, 25, 44, 0.09);
  border-color: rgba(232, 25, 44, 0.3);
  box-shadow: 0 4px 20px rgba(232, 25, 44, 0.14);
  transform: translateX(-4px);
}

#rb:hover .link-arr {
  opacity: 0.75;
  transform: translate(0, 0);
  color: #e8192c;
}

#st:hover {
  color: #fff;
  background: rgba(102, 192, 244, 0.09);
  border-color: rgba(102, 192, 244, 0.3);
  box-shadow: 0 4px 20px rgba(102, 192, 244, 0.14);
  transform: translateX(-4px);
}

#st:hover .link-arr {
  opacity: 0.75;
  transform: translate(0, 0);
  color: #66c0f4;
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: clamp(32px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6);
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  padding: 8px 18px;
  border-radius: 2px;
  backdrop-filter: blur(16px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes slidein {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── WHISPERS ── */
.whisper {
  position: absolute;
  z-index: 3;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: whisperLife 4s ease-in-out forwards;
  text-shadow: 0 0 12px currentColor;
  will-change: transform, opacity, filter;
}

@keyframes whisperLife {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(0) translateY(0) rotate(0deg) scale(0.85);
    filter: blur(6px);
  }

  15% {
    opacity: 0.55;
    filter: blur(0.5px);
    transform: translate(-50%, -50%) translateX(calc(var(--drift-x) * 0.15)) translateY(calc(var(--drift-y) * 0.15)) rotate(calc(var(--rot) * 0.3)) scale(1);
  }

  40% {
    opacity: 0.4;
    filter: blur(0px);
  }

  70% {
    opacity: 0.25;
    filter: blur(1px);
    transform: translate(-50%, -50%) translateX(calc(var(--drift-x) * 0.7)) translateY(calc(var(--drift-y) * 0.7)) rotate(calc(var(--rot) * 0.8)) scale(1.02);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translate(-50%, -50%) translateX(var(--drift-x)) translateY(var(--drift-y)) rotate(var(--rot)) scale(1.1);
  }
}
