/* ═══════════════════════════════════════════════════════════════
   see-to-speak.css — overlay styling for the first home tile.
   Loaded after styles.css so the modal sits cleanly above the
   sticky pill (z:50), bottom rail (z:55), bottom nav (z:60),
   and below the page nav (z:10001).
   ═══════════════════════════════════════════════════════════════ */

.sts-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;                /* above Settings (200) and chrome */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-sans);
}
.sts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sts-card {
  position: relative;
  width: min(92vw, 460px);
  max-height: 86vh;
  overflow-y: auto;
  background: #1a1820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  color: #fff;
}
.sts-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sts-close:hover { background: rgba(255, 255, 255, 0.15); }

.sts-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #e8a33d;
}
.sts-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.sts-rail {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.sts-rail:hover,
.sts-rail:focus-visible {
  background: rgba(232, 163, 61, 0.10);
  border-color: rgba(232, 163, 61, 0.55);
  outline: none;
  transform: translateY(-1px);
}
.sts-rail:active { transform: translateY(0); }
.sts-rail input[type=file] { display: none; }

.sts-rail-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.sts-rail-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.sts-rail-label {
  font-size: 0.95rem;
  font-weight: 700;
}
.sts-rail-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.sts-ask-row {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}
.sts-ask-row input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;                  /* prevent iOS zoom */
  font-family: inherit;
}
.sts-ask-row input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sts-ask-row input:focus { outline: 1px solid #e8a33d; }
.sts-ask-row button {
  padding: 10px 16px;
  background: #e8a33d;
  color: #18121b;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.sts-ask-row button:hover { filter: brightness(1.08); }

.sts-gaze-box {
  position: relative;
  margin: 8px 0 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}
.sts-gaze-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sts-status {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.2em;
  text-align: center;
  margin-top: 6px;
}
