﻿.intro {
  color: #dff;
  font-family: monospace;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 24px 16px 80px 16px;
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.9s ease, filter 0.4s ease;
}


.intro-textbox {
  width: 100%;
  max-width: 560px;
  max-height: 430px;
  border: 1px solid rgba(0,255,255,0.3);
  padding: 15px;
  background: rgba(0, 20, 30, 0.4);
  box-shadow: 0 0 12px rgba(0,255,255,0.15);
  box-sizing: border-box;
  position: relative;

  cursor: pointer;

  --textbox-y: 30px;
  --textbox-scale: 1;

  opacity: 0;
  transform: translateY(var(--textbox-y)) scale(var(--textbox-scale));

  transition:
    opacity 0.7s ease 0.2s,
    transform 0.15s ease,
    box-shadow 0.1s ease;
}

.intro.show .intro-textbox {
  opacity: 1;
  --textbox-y: 0px;
}

.intro-textbox:active {
  --textbox-scale: 0.96;
  box-shadow:
    0 0 0 1px rgba(0,255,255,0.5),
    0 0 12px rgba(0,255,255,0.2);
}

.intro-textbox.typing {
  cursor: progress;
}

.intro.show {
  opacity: 1;
  filter: blur(0);
}

.intro.is-leaving {
  opacity: 0;
}


#intro-text {
  font-family: 'Aldrich', sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.3;
  font-size: 16px;
  padding-bottom: 18px;
}

.intro-cursor {
  position: absolute;
  right: 12px;
  bottom: 8px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}


.intro-reading-area {
  width: min(80vw, 310px);
  margin: 255px auto 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.intro-action-btn {
  position: static;
  bottom: 115px;
  right: 28px;

  min-width: 110px;
  height: 38px;
  padding: 0 18px;

  background: transparent;
  border: 1px solid rgba(0,255,255,0.65);
  background: rgba(0, 20, 30, 0.75);
  color: #00f6ff;

  font-family: 'PRESSSTART', monospace;
  font-size: 14px;
  cursor: pointer;

  transition:
    left 0.35s ease,
    right 0.35s ease,
    transform 0.45s ease,
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.intro-action-btn.is-skip {
  align-self: flex-end;
  transform: translateX(0);
}

.intro-action-btn.is-next {
  align-self: flex-end;
  transform: translateX(-200%);
}

.intro-action-btn:active {
  transform: scale(0.57);
  box-shadow:
    0 0 0 1px rgba(0,255,255,0.5),
    0 0 12px rgba(0,255,255,0.2);
}

.intro-action-btn:hover {
  background: rgba(0,255,255,0.75);
  color: #000011;
}


.intro-textbox.is-focused {
  box-shadow:
    0 0 0 1px rgba(0,255,255,0.45),
    0 0 24px rgba(0,255,255,0.16);
  transition: box-shadow 0.35s ease;
}



/* =========================
   CONTINUE HINT
========================= */

#intro-continue-hint {
  position: absolute;
  right: 16px;
  bottom: 7px;

  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(0, 255, 255, 0.75);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
  animation: hintBlink 1.5s infinite;
}

#intro-continue-hint.show {
  opacity: 1;
}

@keyframes hintBlink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

