/* The Void — Clover's layer */

.void-body {
  background: #000 url('../img/void-bg.png') center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 2rem;
  color: #444;
}

/* No visual snow in the Void */
.void-body::after {
  display: none;
}

/* Void container */
.void-container {
  max-width: 540px;
  width: 100%;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Void title — barely there */
.void-title {
  color: #1a1a20;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

/* Void text — silver-grey, not green, not red */
.void-text {
  font-size: 0.95rem;
  line-height: 2.2;
  text-align: center;
  color: #5a5a62;
}

.void-text p {
  margin-bottom: 1.5rem;
  animation: voidFadeIn 2.5s ease both;
}

.void-text p:nth-child(2) { animation-delay: 1s; }
.void-text p:nth-child(3) { animation-delay: 2s; }
.void-text p:nth-child(4) { animation-delay: 3s; }
.void-text p:nth-child(5) { animation-delay: 4s; }
.void-text p:nth-child(6) { animation-delay: 5s; }
.void-text p:nth-child(7) { animation-delay: 6s; }
.void-text p:nth-child(8) { animation-delay: 7s; }

@keyframes voidFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Observations — Clover's interpretations, slightly brighter */
.void-text .observation {
  color: #7a7a86;
  font-style: italic;
  margin: 2.5rem 0;
  font-size: 1rem;
}

/* Questions — to the reader */
.void-text .question {
  color: #8a8a96;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2.5rem 0;
}

/* Quiet asides */
.void-text .quiet {
  color: #3a3a42;
  font-size: 0.85rem;
}

/* Glimpse — hoverable spoiler fragments */
.void-text .glimpse {
  color: #555;
}

.void-text .glimpse:hover {
  color: #777;
  transition: color 1s;
}

/* Divider */
.void-divider {
  width: 40px;
  height: 1px;
  background: #1a1a20;
  margin: 3rem auto;
}

/* Void navigation */
.void-nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.void-nav-link {
  color: #222;
  font-size: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 2s;
}

.void-nav-link:hover {
  color: #444;
}

/* The Door */
.door-container {
  margin-top: 4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  cursor: pointer;
}

.door-frame {
  width: 120px;
  height: 200px;
  background: #000;
  border: 2px solid #fff;
  border-radius: 2px;
  position: relative;
  transition: border-color 0.5s;
}

.door-frame:hover {
  border-color: #888;
}

/* Door handle */
.door-handle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.door-frame:hover .door-handle {
  border-color: #888;
}

/* OPEN? text */
.door-prompt {
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.3em;
  animation: doorFlash 4s ease-in-out infinite;
  user-select: none;
}

@keyframes doorFlash {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 1; }
}

/* Backstory selector */
.void-stories {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.void-story-link {
  color: #1a1a1a;
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.15em;
  padding: 0.3rem 0.8rem;
  border: 1px solid transparent;
  transition: all 2s;
}

.void-story-link:hover {
  color: #444;
  border-color: #1a1a1a;
}

/* Mobile */
@media (max-width: 640px) {
  .void-body {
    padding: 2rem 1.5rem;
  }

  .door-frame {
    width: 90px;
    height: 150px;
  }

  .door-prompt {
    font-size: 0.85rem;
  }
}
