* {
  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;
}

/* ── custom cursor canvas ── */
#cur {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

/* ── entry screen ── */
#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;
  position: relative;
}

#enter-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

/* ambient glow behind enter text */
#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 background ── */
#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;
}

/* ── overlay / vignette ── */
#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.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 ── */
#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;
}

/* ── light sweep ── */
#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 (scaled up from 1/4 res) ── */
#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 ── */
#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);
  }
}

/* ── VFX canvas (particles, fog, lightning, geometry) ── */
#vfx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 3s ease;
}

#vfx-canvas.on {
  opacity: 1;
}

/* ── scene container ── */
#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;
}

/* ── SOCIALS (enhanced) ── */
#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 / alias block */
#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 cards */
.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;
}

/* staggered entrance */
#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;
}

/* discord hover */
#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;
}

/* roblox hover */
#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;
}

/* steam hover */
#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;
}

/* ── mute button ── */
#mute {
  position: fixed;
  bottom: clamp(32px, 5vh, 56px);
  left: clamp(32px, 4.5vw, 60px);
  z-index: 7;
  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;
  animation: slidein 0.6s ease 1.4s both;
}

#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;
}

/* ── toast notification ── */
#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);
  }
}