:root {
  --bg: #050505;
  --ink: #f4f4f0;
  --muted: rgba(244, 244, 240, 0.62);
  --accent: #c8ff3d;
  --accent-dim: rgba(200, 255, 61, 0.18);
  --shadow: rgba(0, 0, 0, 0.72);
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
}

body {
  min-height: 100dvh;
  cursor: default;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.enter {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(200, 255, 61, 0.08), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--bg);
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.enter.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter__glow {
  position: absolute;
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  filter: blur(18px);
  animation: breathe 4.5s ease-in-out infinite;
}

.logo {
  position: relative;
  display: block;
  width: clamp(5.5rem, 18vw, 8.5rem);
  height: clamp(5.5rem, 18vw, 8.5rem);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(244, 244, 240, 0.14);
  box-shadow:
    0 0 0 6px rgba(5, 5, 5, 0.35),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

.logo--enter {
  z-index: 1;
  margin: 0 auto;
  animation: titleIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo--stage {
  width: clamp(4.5rem, 14vw, 7rem);
  height: clamp(4.5rem, 14vw, 7rem);
  margin: 0 auto 1rem;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage.is-live .logo--stage {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.15s;
}

.enter__brand {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: none;
  animation: titleIn 1.1s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enter__hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: hintIn 1.2s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.enter__pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: pulse 1.8s ease-out infinite;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.9s ease;
  background: #050505;
}

.stage.is-live {
  opacity: 1;
}

.stage__bg,
.stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  background: #000;
  transform: scale(1.06);
  filter: contrast(1.08) brightness(0.92);
  animation: videoDrift 22s ease-in-out infinite alternate;
}

.stage__video:not([hidden]) {
  z-index: 1;
}

.stage__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 30%, transparent 58%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.38) 100%);
  pointer-events: none;
}

.stage__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.stage__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-shadow: 0 8px 40px var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage.is-live .stage__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.stage__tag {
  margin: 0.55rem 0 0;
  color: var(--accent);
  font-size: clamp(0.75rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage.is-live .stage__tag {
  opacity: 0.9;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.volume {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border: 1px solid rgba(244, 244, 240, 0.18);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.45);
  backdrop-filter: blur(10px);
  color: var(--ink);
}

.mute {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.mute:hover {
  color: var(--accent);
  background: rgba(200, 255, 61, 0.1);
}

.mute__icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.mute[aria-pressed="false"] .mute__icon--off,
.mute[aria-pressed="true"] .mute__icon--on {
  display: none;
}

.volume__slider {
  -webkit-appearance: none;
  appearance: none;
  width: min(28vw, 140px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--vol, 23%),
    rgba(244, 244, 240, 0.22) var(--vol, 23%),
    rgba(244, 244, 240, 0.22) 100%
  );
  outline: none;
  cursor: pointer;
}

.volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.15);
  cursor: pointer;
}

.volume__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.15);
  cursor: pointer;
}

.volume__slider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.volume__value {
  min-width: 2.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.yt-music {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.001;
  pointer-events: none;
  overflow: hidden;
}

.yt-music iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.enter.is-loading {
  cursor: wait;
}

.enter.is-loading .enter__hint {
  opacity: 0.55;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(200, 255, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
  }
}

@keyframes titleIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes videoDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 640px) {
  .volume {
    right: 1rem;
    bottom: 1rem;
    gap: 0.55rem;
    padding-right: 0.65rem;
  }

  .volume__slider {
    width: min(34vw, 110px);
  }

  .enter__hint {
    letter-spacing: 0.2em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .stage__video {
    transform: none;
  }
}
