

.tst-root {
  position: fixed;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  z-index: 9000;
  width: min(92vw, 640px);
  pointer-events: none;              
  font-family: Georgia, 'Times New Roman', serif;
  text-align: center;
}


.tst-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.tst-root.tst-open .tst-input-row {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tst-root.tst-open.tst-rest .tst-input-row { opacity: .28; }

.tst-input {
  flex: 0 1 auto;
  width: 100%;
  max-width: 480px;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  text-align: center;
  font-family: inherit;
  font-size: 1.08rem;
  color: var(--ink, #f0ebd8);
  caret-color: var(--gold, #e6c687);
  text-shadow:
    0 0 6px  var(--gold-glow, rgba(230,198,135,.15)),
    0 0 18px var(--gold-glow, rgba(230,198,135,.15)),
    0 0 34px var(--gold-glow, rgba(230,198,135,.15));
}
.tst-input::placeholder {
  color: var(--muted, #a38652);
  opacity: .55;
  font-style: italic;
}


.tst-glyph {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 2px 4px;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1;
  color: var(--gold, #e6c687);
  opacity: .3;
  cursor: pointer;
  transition: opacity .25s ease;
  text-shadow: 0 0 10px var(--gold-glow, rgba(230,198,135,.15));
}
.tst-glyph:hover, .tst-glyph:focus-visible { opacity: .85; outline: none; }


.tst-lines {
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column-reverse;   
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.tst-line {
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink, #f0ebd8);
  text-shadow:
    0 0 8px  var(--gold-glow, rgba(230,198,135,.15)),
    0 0 22px var(--gold-glow, rgba(230,198,135,.15));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.tst-line.tst-show { opacity: 1; transform: translateY(0); }

.tst-line.tst-fade { opacity: 0; transform: translateY(-14px); transition: opacity 3.2s ease, transform 3.2s ease; }
.tst-line.tst-you { color: var(--sun, #fff6e6); font-style: italic; font-size: .98rem; }
.tst-line.tst-stew { color: var(--gold, #e6c687); }
.tst-line.tst-dim { opacity: .45; font-size: .88rem; }   


.tst-line.tst-thinking { animation: tst-breathe 1.6s ease-in-out infinite; }
@keyframes tst-breathe { 0%,100% { opacity: .35; } 50% { opacity: .9; } }


.tst-hint {
  margin-top: 10px;
  font-size: .78rem;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--muted, #a38652);
  opacity: .5;
  transition: opacity 2.4s ease;
  pointer-events: none;
  text-shadow: 0 0 10px var(--gold-glow, rgba(230,198,135,.15));
}
.tst-root.tst-hint-sleep .tst-hint { opacity: .06; }
.tst-root.tst-open .tst-hint { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .tst-input-row, .tst-line, .tst-hint { transition: none; }
  .tst-line.tst-thinking { animation: none; opacity: .7; }
}
