/* ============================================
   INDEX — The Entry
   Cryptic Mystery / Oppressive Emptiness
   ============================================ */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--black);
  position: relative;
}

/* --- Center Message --- */
.center-message {
  text-align: center;
  position: relative;
  z-index: 1;
}

.center-message .main-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  animation: pulse-dim 8s ease-in-out infinite;
  margin-bottom: 2rem;
}

.center-message .sub-text {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.3em;
  opacity: 0;
  animation: fade-in 4s ease-out 5s forwards;
}

/* --- Hidden Coordinates (bottom of page) --- */
.coordinates {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 0.55rem;
  color: var(--near-black);
  letter-spacing: 0.1em;
  transition: color 1.5s;
  z-index: 1;
}

.coordinates:hover {
  color: var(--text-faint);
}

/* --- Corner fragment --- */
.corner-fragment {
  position: fixed;
  top: 16px;
  left: 20px;
  font-size: 0.5rem;
  color: var(--near-black);
  transition: color 2s;
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
}

.corner-fragment:hover {
  color: var(--text-faint);
}

/* --- The hidden gate link --- */
.gate-link {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  margin-top: 6rem;
  font-size: 0.6rem;
  color: transparent;
  padding: 30px 60px;
  z-index: 2;
  cursor: default;
  transition: color 0.8s;
  animation: gate-hint-pulse 8s ease-in-out 15s 3;
}

@keyframes gate-hint-pulse {
  0%, 85%, 100% { color: transparent; }
  92% { color: #1a1a1a; }
}

.gate-link:hover {
  color: var(--text-faint);
  cursor: pointer;
}

/* --- Secret text only visible when selecting --- */
.select-reveal {
  position: fixed;
  top: 40%;
  left: 10%;
  font-size: 0.6rem;
  color: transparent;
  user-select: text;
  max-width: 200px;
  line-height: 1.8;
  z-index: 1;
}

.select-reveal::selection {
  background: var(--red-dark);
  color: var(--text-dim);
}

/* --- Breathing border --- */
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 150px 60px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 10;
}

/* --- Blinking cursor element --- */
.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--text-dim);
  margin-left: 4px;
  animation: blink-cursor 1.2s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .center-message .main-text {
    font-size: 0.9rem;
  }
  .select-reveal {
    left: 5%;
  }
}
