.ta-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.ta-title {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: var(--ta-title-top, 50%);
  color: white;
  font: bold clamp(24px, 5vw + 10px, 60px) Courier, monospace;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.ta-subtitle {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: calc(var(--ta-title-top, 50%) + var(--ta-subtitle-offset, 50px) / 2);
  color: white;
  font: clamp(14px, 2vw + 6px, 22px) Courier, monospace;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.5s ease;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.ta-quote {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: var(--ta-quote-top, 50%);
  color: white;
  font: clamp(14px, 1.8vw + 6px, 20px) Courier, monospace;
  text-align: center;
  max-width: min(80vw, 700px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  word-wrap: break-word;
  line-height: 1.5;
}

.ta-cursor {
  animation: ta-blink 0.6s infinite;
}

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

.ta-backdrop {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, var(--ta-backdrop-opacity, 0.7));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 4px;
}

.ta-backdrop-title {
  top: var(--ta-title-top, 50%);
  width: min(90vw, 750px);
  height: 120px;
}

.ta-backdrop-quote {
  top: var(--ta-quote-top, 65%);
  width: min(85vw, 740px);
  min-height: 60px;
  padding: 20px;
}

@media (max-width: 480px) {
  .ta-title {
    white-space: normal;
    max-width: 90vw;
    line-height: 1.2;
  }
  .ta-subtitle {
    white-space: normal;
  }
  .ta-quote {
    max-width: 90vw;
  }
}

@media (max-height: 500px) and (max-width: 900px) {
  .ta-title {
    font-size: clamp(18px, 4vw, 36px);
  }
  .ta-subtitle {
    font-size: clamp(12px, 1.5vw + 4px, 18px);
  }
  .ta-quote {
    font-size: clamp(12px, 1.5vw + 4px, 16px);
  }
}
