/* ════════════════════════════════════════════════════════════════════
   elegir_arroba.css — el formulario «Elige tu @» (Edgar 2026-10-08:
   «pedirles que elijan su @»)
   ────────────────────────────────────────────────────────────────────
   Un componente: lo usan el cajón de Amigos del lobby y Social. Va con
   los tokens globales, así se ve bien en el lobby (siempre oscuro) y en
   Social (oscuro o claro). El botón es naranja porque es LA acción de la
   pantalla; el marco, violeta, como lo demás de amigos.
   ════════════════════════════════════════════════════════════════════ */
.elg {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 18px;
  background: color-mix(in srgb, #A855F7 10%, transparent);
  border: 1px solid color-mix(in srgb, #A855F7 34%, transparent);
  animation: elg-entra .4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes elg-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.elg-t { font-size: 17px; font-weight: 900; letter-spacing: -.2px; color: var(--text-main); }
.elg-s { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.elg-caja {
  display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 14px;
  border-radius: 14px; cursor: text;
  background: color-mix(in srgb, var(--text-main) 6%, transparent);
  border: 1px solid var(--border-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.elg-caja:focus-within {
  border-color: color-mix(in srgb, #A855F7 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, #A855F7 16%, transparent);
}
.elg-arroba { font-size: 17px; font-weight: 900; color: #A855F7; }
/* 16px: con menos, el teléfono hace zoom al tocar el campo. */
.elg-in {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 16px; font-weight: 800; color: var(--text-main);
}
.elg-in::placeholder { color: var(--text-muted); font-weight: 700; }
.elg-estado { margin: 0; min-height: 18px; font-size: 12.5px; font-weight: 800; color: var(--text-muted); }
.elg-estado[data-tono="bien"] { color: var(--green, #34D399); }
.elg-estado[data-tono="mal"] { color: var(--red, #F87171); }
.elg-btn {
  height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 900; color: #2A1200;
  background: #FF8A00; box-shadow: 0 8px 20px rgba(255, 138, 0, .28);
  transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1), filter .18s ease, opacity .18s ease;
}
.elg-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.elg-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.elg-btn:focus-visible, .elg-in:focus-visible { outline: 2px solid #A855F7; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .elg { animation: none; }
  .elg-btn { transition: none; }
}
