body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
  user-select: none;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  z-index: 10;
  opacity: 1;
  transition: opacity 1.4s ease;
}

#intro-text {
  text-align: center;
  width: 60ch;
  max-width: 90vw;
  font-size: 1.55em;
  line-height: 1.36;
  font-weight: 300;
  opacity: 0;
  transition: opacity 1.4s ease;
  white-space: pre-line;
}

.no-wrap {
  white-space: nowrap;
}

.fade6 {
  opacity: 0 !important;
  transition: opacity 6s ease;
}

.fade4 {
  opacity: 0 !important;
  transition: opacity 4s ease;
}

.keep-pop {
  transform: translateY(-3px);
  transition: opacity 1.6s ease, transform 1.6s ease;
}

.hidden {
  display: none;
}

#name-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
  padding: 0 1rem;
  max-width: 90vw;
}

#name-line {
  font-size: 2.6em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
}

#dob-line {
  font-size: 1.2em;
  color: #bbb;
  margin-top: 0.35em;
  font-weight: 400;
  white-space: nowrap;
}

#play-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: #fff;
  background: transparent;
  border: none;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.8s ease;
  pointer-events: none;
  font-family: inherit;
  display: none;
}

#play-prompt.active {
  pointer-events: all;
  opacity: 1;
  display: block;
}

#play-prompt.pulsing {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

#video-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  max-width: 90vw;
}

#video-container.active {
  opacity: 1;
  pointer-events: all !important;
}

#video-container.active * {
  pointer-events: all !important;
}

#video-player {
  width: 315px;
  max-width: 100%;
  height: 560px;
  max-height: 70vh;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mute-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 10px;
  z-index: 6;
  font-family: inherit;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#mute-btn:hover {
  background: #fff;
  color: #000;
}

#video-caption {
  text-align: left;
  margin-top: 12px;
  margin-left: 0;
  font-size: 0.9em;
  color: #fff;
  line-height: 1.3;
  width: 100%;
  max-width: 315px;
}

#video-source {
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}

#video-source:hover {
  color: #ccc;
}

#video-date {
  font-size: 0.85em;
  color: #fff;
  margin-top: 2px;
}

#video-context {
  font-size: 0.9em;
  color: #fff;
  line-height: 1.4;
  margin-top: 16px;
  max-width: 315px;
  text-align: left;
  font-weight: 400;
  width: 100%;
}

#video-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  opacity: 0;
  transition: opacity 0.8s ease;
  flex-wrap: wrap;
}

#video-buttons.visible {
  opacity: 1;
}

.video-btn {
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#btn-complicit {
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;
}

#btn-complicit:hover {
  background: #fff;
  color: #000;
}

#btn-complicit.clicked {
  background: #000;
  color: red;
  border-color: red;
  opacity: 0.8;
  cursor: default;
}

#btn-help {
  color: #fff;
  background: #000;
  border: 1px solid #fff;
  cursor: pointer;
}

#btn-help:hover {
  background: #fff;
  color: #000;
}

#ghost-wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ghost {
  position: absolute;
  color: #fff;
  opacity: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  transition: opacity 5s ease;
}

.fade6, .fade4, .keep-pop, .ghost {
  will-change: opacity, transform;
}

#intro-text > #ctx-head,
#intro-text > #ctx-body,
#intro-text > #ctx-foot {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: 1em;
  line-height: inherit;
  font-weight: inherit;
}

#intro-text > #ctx-head {
  text-align: center;
  margin-bottom: 0.5em;
}

#intro-text > #ctx-body {
  text-align: justify;
  text-align-last: left;
  white-space: normal;
  margin: 0.5em 0;
}

#intro-text > #ctx-foot {
  text-align: center;
  white-space: nowrap;
  margin-top: 0.5em;
}

#intro-text.red {
  color: red;
}

#ctx-foot.red {
  color: red;
}

@media (max-width: 768px) {
  #intro-text {
    font-size: 1.2em;
    width: 90vw;
    padding: 0 1rem;
  }

  #name-line {
    font-size: 2em;
  }

  #dob-line {
    font-size: 1em;
  }

  #video-player {
    width: 280px;
    height: 500px;
  }

  #video-context {
    max-width: 280px;
  }

  #video-caption {
    max-width: 280px;
  }

  #video-buttons {
    gap: 15px;
  }

  .video-btn {
    font-size: 0.8em;
    padding: 6px 12px;
  }

  #play-prompt {
    font-size: 2.5em;
  }

  .ghost {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  #intro-text {
    font-size: 1em;
  }

  #name-line {
    font-size: 1.6em;
  }

  #video-player {
    width: 250px;
    height: 445px;
  }

  #video-context,
  #video-caption {
    max-width: 250px;
    font-size: 0.8em;
  }

  #video-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .video-btn {
    width: 200px;
    text-align: center;
  }

  #ctx-foot {
    white-space: normal !important;
  }
}

@media (max-height: 600px) {
  #video-player {
    height: 400px;
  }

  #intro-text {
    font-size: 1.1em;
  }
}

@media (max-height: 500px) {
  #video-player {
    height: 300px;
  }

  #intro-text {
    font-size: 0.9em;
  }

  #name-line {
    font-size: 1.8em;
  }
}