/* «Pide un juego» (2026-11-10): tarjeta al final de la lista de juegos, botón en el buscador sin resultados y ventana del pedido. */
.qpj-card { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 100%; padding: 20px 18px; border-radius: 16px; border: 1.5px dashed #4a3d6e; background: rgba(124, 92, 245, .07); color: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.qpj-card:hover { border-color: #a78bfa; background: rgba(124, 92, 245, .14); transform: translateY(-2px); }
.qpj-card i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #7c3aed; margin-bottom: 6px; }
.qpj-card i svg { width: 20px; height: 20px; }
.qpj-card b { font-size: 17px; font-weight: 700; line-height: 1.2; }
.qpj-card small { font-size: 13px; color: #b9aed6; line-height: 1.4; }
.qpj-card span { margin-top: 8px; font-size: 13px; font-weight: 700; color: #c4b5fd; }

.qpj-side { display: block; width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid #4a3d6e; background: rgba(124, 92, 245, .12); color: #e9e3fb; font: 600 12.5px/1.3 inherit; font-family: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.qpj-side:hover { border-color: #a78bfa; background: rgba(124, 92, 245, .22); }
.qpj-side[hidden] { display: none; }

dialog.qpj { position: fixed; inset: 0; margin: auto; width: min(480px, calc(100vw - 24px)); max-height: min(92vh, 720px); padding: 0; border: 1px solid #2f2745; border-radius: 20px; background: #14101d; color: #f2eef9; font-family: inherit; overflow: hidden; }
dialog.qpj[open] { display: flex; flex-direction: column; }
dialog.qpj::backdrop { background: rgba(5, 3, 10, .72); }
.qpj-hd { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 4px; }
.qpj-hd h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.qpj-hd p { margin: 5px 0 0; font-size: 13.5px; color: #a89ec2; line-height: 1.45; }
.qpj-x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #332b4a; background: transparent; color: #cfc6e6; font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qpj-x:hover { background: #231c33; color: #fff; }
.qpj-bd { padding: 14px 20px 18px; overflow-y: auto; overscroll-behavior: contain; }
.qpj-lb { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: #ded6f2; }
.qpj-lb:first-child { margin-top: 0; }
.qpj-lb em { font-style: normal; font-weight: 400; color: #8f86a6; }
dialog.qpj input, dialog.qpj textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid #3a3152; background: #1b1628; color: #fff; font: inherit; font-size: 16px; outline: 0; box-shadow: none; }
dialog.qpj input:focus, dialog.qpj textarea:focus { border-color: #8b6cf6; outline: 0; box-shadow: none; }
dialog.qpj input::placeholder, dialog.qpj textarea::placeholder { color: #746b8c; }
dialog.qpj textarea { resize: vertical; min-height: 64px; max-height: 160px; }
.qpj-res { margin-top: 8px; display: grid; gap: 6px; }
.qpj-res:empty { display: none; }
.qpj-op { display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 10px 7px 7px; border-radius: 12px; border: 1px solid #2c2540; background: #18131f; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.qpj-op:hover, .qpj-op:focus-visible { border-color: #8b6cf6; background: #1f1830; outline: 0; }
.qpj-op img, .qpj-op .qpj-ph { flex: none; width: 42px; height: 42px; border-radius: 9px; background: #261f38; object-fit: cover; display: grid; place-items: center; font-size: 20px; }
.qpj-op div { min-width: 0; flex: 1; }
.qpj-op b { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qpj-op small { display: block; font-size: 12px; color: #9a90b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qpj-op .qpj-tag { flex: none; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.qpj-nota { margin: 8px 0 0; font-size: 12.5px; color: #8f86a6; line-height: 1.45; }
.qpj-sel { display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 8px; border-radius: 12px; border: 1px solid #6d4fe0; background: rgba(124, 92, 245, .13); }
.qpj-sel img, .qpj-sel .qpj-ph { flex: none; width: 46px; height: 46px; border-radius: 10px; background: #261f38; object-fit: cover; display: grid; place-items: center; font-size: 22px; }
.qpj-sel div { min-width: 0; flex: 1; }
.qpj-sel b { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.qpj-sel small { display: block; font-size: 12px; color: #b9aed6; }
.qpj-sel button { flex: none; border: 0; background: transparent; color: #c4b5fd; font: 600 13px inherit; font-family: inherit; cursor: pointer; padding: 8px; }
.qpj-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: 13.5px; line-height: 1.4; }
.qpj-err[hidden], .qpj-sel[hidden], .qpj-busca[hidden], .qpj-form[hidden], .qpj-fin[hidden] { display: none; }
.qpj-go { display: block; width: 100%; margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 0; background: #7c3aed; color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.qpj-go:hover { background: #8b4cf5; }
.qpj-go:disabled { opacity: .55; cursor: default; }
.qpj-go.sec { background: transparent; border: 1px solid #3a3152; color: #ded6f2; margin-top: 10px; }
.qpj-go.sec:hover { background: #1f1830; }
.qpj-fin { text-align: center; padding: 10px 0 2px; outline: 0; }
.qpj-fin .qpj-ok { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.qpj-fin .qpj-ok svg { width: 28px; height: 28px; }
.qpj-fin h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.qpj-fin p { margin: 0 auto; max-width: 36ch; font-size: 14px; color: #b9aed6; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  dialog.qpj { width: 100vw; max-width: 100vw; margin: auto 0 0; inset: 0; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 92dvh; }
  .qpj-hd { padding: 18px 16px 2px; } .qpj-bd { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .qpj-card { padding: 16px 14px; } .qpj-card b { font-size: 15px; } .qpj-card small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .qpj-card, .qpj-go { transition: none; } .qpj-card:hover { transform: none; } }
