/* ── x.css ───────────────────────────────────────────────────────────────── */

.x-modal {
  position: fixed;
  inset: 0;
  background: rgba(4,4,8,.92); /* mismo fondo que el body, casi invisible */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
}

.x-box {
  position: relative;
  background: #0d0d10;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 44px 40px 36px;
  max-width: 380px;
  width: 92vw;
  text-align: center;
}

.x-cerrar {
  position: absolute;
  top: 14px; right: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.25);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.x-cerrar:hover { border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }

.x-body {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Símbolo — solo el palo, sin emoción */
.x-suit {
  font-size: 22px;
  color: rgba(180,40,60,.7);
  letter-spacing: .1em;
  font-family: serif;
  line-height: 1;
  margin-bottom: 4px;
}

/* Textos */
.x-linea {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 280px;
  font-family: 'DM Mono', monospace;
  letter-spacing: .01em;
}
.x-linea-sub {
  font-size: 11px;
  color: rgba(255,255,255,.22);
  margin-top: -6px;
  letter-spacing: .03em;
}

/* Botón — casi invisible, sobrio */
.x-btn {
  margin-top: 8px;
  padding: 9px 24px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.4);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.x-btn:hover {
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.04);
}
.x-btn:disabled { opacity: .3; cursor: default; }

.x-btn-ghost {
  border-color: transparent;
  color: rgba(255,255,255,.18);
  font-size: 10px;
}
.x-btn-ghost:hover {
  border-color: transparent;
  background: transparent;
  color: rgba(255,255,255,.35);
}

/* Input */
.x-input-wrap { width: 100%; }

.x-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  text-align: center;
  outline: none;
  transition: border-color .2s;
  letter-spacing: .02em;
}
.x-input:focus { border-color: rgba(255,255,255,.2); }
.x-input::placeholder { color: rgba(255,255,255,.15); }

.x-error {
  font-size: 10px;
  color: rgba(180,40,60,.6);
  margin-top: 8px;
  letter-spacing: .04em;
}

/* Match */
.x-match-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  font-style: italic;
}
.x-match-texto {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.85;
  max-width: 290px;
  font-family: 'DM Mono', monospace;
}
.x-match-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
  margin-top: 4px;
}

/* Final */
.x-final-texto {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
  font-family: 'DM Mono', monospace;
}