html, body {
  height: 100%;
  margin: 0;
  background: #000;
  overflow: hidden;
  font-family: 'VT323', monospace;
  cursor: none;
}

/* SCENE */
#scene {
  position: fixed;
  inset: 0;
  z-index: 10;
}

/* BACKGROUND */
#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* GRAIN */
#grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 15;
}

/* LOGO — MOVED UP */
#logo {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  filter: drop-shadow(0 0 26px rgba(255, 221, 51, 0.35));
  z-index: 20;
}

/* LETTERBOX */
#letterbox {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

#barTop,
#barBottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50vh;
  background: #000;
}

#barTop { top: 0; }
#barBottom { bottom: 0; }

/* UI — NOW BELOW LOGO */
#ui {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 52vh;
  opacity: 0;
}

.menu {
  display: grid;
  gap: 18px;
  text-align: center;
}

.item {
  color: #ffdd33;
  font-size: 32px;
  cursor: pointer;
  letter-spacing: 1px;
  user-select: none;
}

.item:hover::before { content: "> "; }
.item:hover::after { content: " <"; }

.locked {
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}

.locked span {
  font-size: 22px;
  opacity: 0.7;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  z-index: 100;
}

#lightbox.active {
  display: grid;
  place-items: center;
}

.lightbox-inner,
.lightbox-inner iframe {
  width: 100%;
  height: 100%;
}

/* INTRO STATES */
body.opening #barTop,
body.opening #barBottom {
  transition: height 1700ms cubic-bezier(.2,.9,.2,1);
  height: 10vh;
}

body.ui-on #ui {
  opacity: 1;
  transition: opacity 120ms linear;
  cursor: default;
}

/* MOBILE */
@media (max-width: 767px) {
  #logo {
    top: 35%;
    width: min(760px, 94vw);
  }

  #ui {
    padding-top: 55vh;
  }

  .item {
    font-size: 26px;
  }
}