/* style.css — Estilos comunes del launcher.
 * Diseño minimal, oscuro, una sola tarjeta centrada. Pensado para que la
 * persona vea de un vistazo qué va a pasar y dé el visto bueno. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0e1116;
  color: #e6e6e6;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  max-width: 520px;
  width: 100%;
  background: #161b22;
  border: 1px solid #2a313b;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d8590;
  margin-bottom: 8px;
}

h1 {
  font-size: 22px;
  margin: 0 0 12px;
  color: #f0f0f0;
}

p {
  line-height: 1.55;
  color: #c5cad1;
  margin: 0 0 16px;
}

code {
  background: #0b0e13;
  border: 1px solid #2a313b;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 0.9em;
  color: #e6e6e6;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  background: #2f81f7;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid #2f81f7;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:hover {
  background: #1f6dd6;
}

.btn-ghost {
  background: transparent;
  border-color: #2a313b;
  color: #c5cad1;
}

.btn-ghost:hover {
  background: #1f242c;
}

.cta {
  margin: 24px 0 8px;
}

.note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #2a313b;
  font-size: 13px;
  color: #7d8590;
}

.warn {
  background: #2a1d10;
  border: 1px solid #5b3a14;
  color: #f0c674;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
}

.lock { color: #f0c674; }
.danger { color: #ff7b72; }
.ok { color: #7ee787; }

/* Mensaje "ya puedes cerrar esta pestaña" tras el auto-disparo del scheme.
 * Se muestra solo si el navegador no permitió window.close() (típicamente
 * cuando la pestaña fue abierta por Discord, no por window.open). */
.close-hint {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #2a313b;
  text-align: center;
}

.close-hint p:first-child {
  font-size: 18px;
  color: #7ee787;
  margin-bottom: 8px;
}

.note.small {
  font-size: 11px;
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

/* Cuando el flujo arrancó (post-launch), suavizamos el contenido principal
 * para que la atención vaya al close-hint. */
.post-launch h1,
.post-launch p:not(.note) {
  opacity: 0.55;
}
