html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

#stage {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

#stage:fullscreen {
  cursor: none;
}

#ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(clamp(22px, 5vmin, 64px)) saturate(1.24) brightness(0.68);
  transform: scale(1.1);
}

video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  visibility: hidden;
}

video.active {
  visibility: visible;
}

#stage.cover video {
  object-fit: cover;
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(46px, 9vh, 96px);
  background: #1e1e1e;
  transition: opacity .7s ease, visibility .7s;
}
#splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
#splash .brand { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); width: min(34vw, 400px); min-width: 220px; }
#splash .logo { flex: 1; min-width: 0; height: auto; overflow: visible; }
#splash .logo path { fill: #fff; }
#splash .tv {
  flex: none;
  display: grid;
  place-items: center;
  padding: .2em .62em .22em;
  border: clamp(2px, .3vw, 4px) solid #fff;
  border-radius: .42em;
  color: #fff;
  font: 700 clamp(20px, 3.9vw, 46px)/1 system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: .1em;
  text-indent: .1em;
}
#splash .load {
  width: min(62vw, 760px);
  min-width: 260px;
  height: 4px;
  border-radius: 4px;
  background: #ffffff2e;
  overflow: hidden;
}
#splash .load i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  border-radius: 4px;
  transform: scaleX(.04);
  transform-origin: left;
  transition: transform .45s ease-out;
}
#splash.waiting .load i { animation: wait 1.4s ease-in-out infinite; }
@keyframes wait { 0%, 100% { transform: scaleX(.04); } 50% { transform: scaleX(.14); } }
@media (prefers-reduced-motion: reduce) { #splash.waiting .load i { animation: none; } #splash, #splash .load i { transition: none; } }

#splash.off { display: none; }

#sound-hint {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: clamp(16px, 4vh, 40px);
  transform: translateX(-50%);
  padding: 9px 18px;
  border: 0;
  border-radius: 99px;
  background: #000a;
  color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, Arial, sans-serif;
  backdrop-filter: blur(6px);
  cursor: pointer;
}
