:root {
  --bg: #0a0a0c;
  --fg: #f5f5f7;
  --muted: #a0a0a8;
  --accent: #ffffff;
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.1);
  --card: rgba(0, 0, 0, 0.22);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  overflow: hidden;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::selection { background: #fff; color: #000; }

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#stars {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  background: rgba(10, 10, 12, 0.2);
  transition: opacity 0.6s ease, backdrop-filter 0.6s ease;
  cursor: pointer;
}

#gate.open {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}

.gate-cta {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.03em;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#gate:hover .gate-cta {
  transform: scale(1.06);
  opacity: 0.85;
}

.stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  perspective: 1200px;
}

.card-wrap {
  width: min(440px, 92vw);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.card-wrap:active { cursor: grabbing; }

.card {
  position: relative;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.1) 60%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(1.2) brightness(0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.2) brightness(0.85);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.9s ease 0.4s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.06), transparent 55%);
  pointer-events: none;
}

body.entered .card { opacity: 1; }

.card-inner {
  padding: 36px 32px;
  text-align: center;
  position: relative;
}

.view-count {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
  z-index: 2;
}

body.entered .view-count { opacity: 0.85; }

.view-count img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.85;
}

.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}

.bio {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}

.links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link {
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.link:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

.volume {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(20, 20, 24, 0.25);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}

body.entered .volume {
  opacity: 1;
  transform: translateY(0);
}

.vol-btn {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.vol-btn:hover { opacity: 1; }
.vol-btn.muted { opacity: 0.4; }

#volume {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#volume::-webkit-slider-thumb:hover { transform: scale(1.25); }

#volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}
