/* css/dialogue.css — Dialogue box and text styling */

.dialogue-box {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.dialogue-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

/* Typewriter cursor */
.dialogue-text .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 2px;
  animation: cursor-blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

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

/* Screen text overlay (cinematic) */
.screen-text {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  width: 85%;
  max-width: 380px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.screen-text.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Phone notification */
.notification {
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  padding: 16px 20px;
  margin: auto auto 16px;
  max-width: 320px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.notification.visible {
  transform: translateY(0);
  opacity: 1;
}

.notification.hidden {
  opacity: 0;
  pointer-events: none;
}
