/* Demand Panel — estilos del Onboarding (asistente obligatorio a pantalla completa, 2026-10-15) y del selector de
   preferencias que comparte con Account Settings › Games you sell (js/pref-picker.js). Sólo variables de app.css. */

/* ── El asistente: pantalla propia, sin menú (como la firma de los términos) ── */
.obw { min-height: 100vh; min-height: 100dvh; padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% -20%, var(--accent-soft), transparent 55%), var(--bg); }
.obw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 920px; margin: 0 auto 8px; }
.obw-top .m-brand { display: flex; align-items: center; gap: 10px; }
.obw-top .m-brand img { width: 32px; height: 32px; border-radius: 8px; }
.obw-top .m-brand b { white-space: nowrap; }
.obw-top .auth-tools { align-items: center; }
.obw-wrap { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.obw-wrap > .sk-page { margin-top: 40px; }
.obw-intro { text-align: center; padding: 18px 8px 2px; }
.obw-intro .eyebrow { color: var(--accent-ink); font-weight: 600; }
.obw-intro h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; line-height: 1.2; }
.obw-intro p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* Los cuatro pasos: una fila pareja; el abierto con el borde de la marca, los hechos con su tilde. */
/* Una columna por paso: el número lo pone pasos() en `--obw-n` (2026-11-11, al sumar el de seguridad: con un 5
   escrito acá, el sexto caía solo a un segundo renglón). Un paso nuevo no necesita tocar este archivo. */
.obw-steps { display: grid; grid-template-columns: repeat(var(--obw-n, 5), minmax(0, 1fr)); gap: 8px; }
.obw-st { width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 56px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: start; }
.obw-st:not(:disabled):hover { border-color: var(--border-2); }
.obw-st:disabled { opacity: .6; cursor: not-allowed; }
.obw-steps li.on .obw-st { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.obw-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1.5px dashed var(--border-2); color: var(--muted); font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.obw-steps li.on .obw-n { border: 0; background: var(--accent); color: var(--on-accent); }
.obw-steps li.done .obw-n { border: 0; background: var(--green); color: var(--on-accent); }
.obw-sl { display: flex; flex-direction: column; min-width: 0; }
.obw-sl b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obw-sl small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obw-steps li.done .obw-sl small { color: var(--green); }

/* La tarjeta del paso abierto */
.obw-card { padding: 0; }
.ob-p { font-size: 13.5px; color: var(--text-2); }
.ob-mh { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--border); }
.ob-mh > div { min-width: 0; flex: 1; }
.ob-mh h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.ob-mh p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ob-mi { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.ob-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.obw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.obw-falta { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--amber); font-weight: 600; text-align: center; }
.obw-falta > .ic, .obw-falta > svg { flex-shrink: 0; }
.obw-later { margin: 0; }

/* País y método de cobro (2026-10-19): el formulario del método es el de la Wallet (wallet.css › .wmet). */
.obp { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.obp-pais .cb { max-width: 340px; }
.obp-acts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.obp-ok { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); max-width: 620px; }
.obp-ok > div { flex: 1; min-width: 0; }
.obp-ok > div > b { display: block; font-size: 14px; margin-bottom: 6px; }
.obp-ok .ob-li-i { width: 40px; height: 40px; }
.obp-kv dd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.obp-cc { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--text-2); }

/* Discord */
.ob-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.ob-form .err-t { margin: 0; }
.ob-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-linked { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.ob-linked > div { flex: 1; min-width: 0; }
.ob-linked b { display: block; font-size: 14px; }
.ob-linked small { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.ob-li-i { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.ob-sync > svg { color: var(--green); }
.ob-sync-off > svg { color: var(--amber); } /* el panel no contestó: no se pudo revisar Discord (2026-11-27) */
.ob-sync .link { display: inline-block; margin-top: 4px; font-size: 13px; }
.ob-how { border: 1px solid var(--border); border-radius: 12px; max-width: 520px; }
.ob-how summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; cursor: pointer; font-size: 13.5px; font-weight: 600; list-style: none; }
.ob-how summary::-webkit-details-marker { display: none; }
.ob-how summary > svg { color: var(--accent); }
.ob-how ol { display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 14px; }
.ob-how li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.ob-how li .step-n { margin-top: 1px; }
.ob-body .note > span { flex: 1; }
.ob-body textarea { font-size: 14px; }

/* Preferencias: chips de lo elegido + el selector Juego → Actividad → región → servidores / actividades */
.ob-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ob-f-h { display: flex; align-items: center; gap: 8px; }
.ob-f-h .count { background: var(--accent-soft); color: var(--accent-ink); }
.ob-q input { height: 40px; }
.ob-none { padding: 14px 8px; text-align: center; color: var(--muted); font-size: 13px; grid-column: 1 / -1; width: 100%; }
.ob-cb { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.ob-x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.ob-x:hover { background: var(--red-soft); color: var(--red); }
.ob-empty { border: 1px dashed var(--border-2); border-radius: 12px; }
.ob-empty .empty { padding: 18px 12px; }

.ob-prefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 8px; }
.ob-pg { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ob-pg > .glogo, .ob-pg > .pk-hot-w { margin-top: 2px; }
.ob-pg-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ob-pg-b > b { font-size: 13.5px; font-weight: 650; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-pg-cs { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-pc { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; height: 32px; border: 1px solid var(--border-2); border-radius: 99px; background: var(--surface-2); }
.ob-pc:hover { border-color: var(--muted); }
.ob-pc.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-ring); }
.ob-pc-b { display: inline-flex; align-items: center; gap: 5px; min-width: 0; height: 100%; padding-inline: 10px 2px; font-size: 12.5px; font-weight: 500; color: var(--text); border-radius: 99px; }
.ob-pc-b > .ic, .ob-pc-b > svg { color: var(--accent); flex-shrink: 0; width: 13px; height: 13px; }
.ob-pc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-pc-t i { font-style: normal; color: var(--muted); }
.ob-pc .ob-x { width: 28px; height: 28px; }
.ob-pd { color: var(--muted); opacity: .7; margin-inline: 4px; }

.ob-pk { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.ob-pk-h { display: flex; align-items: center; padding: 10px 14px 0; }
.ob-pk-h b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--accent-ink); }
.ob-pk-steps { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.ob-pk-steps::-webkit-scrollbar { display: none; }
.ob-pk-steps li { flex-shrink: 0; }
.ob-pk-st { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 4px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--muted); max-width: 200px; }
.ob-pk-st:disabled { opacity: .55; }
.ob-pk-st.ok { color: var(--text); background: var(--surface); }
.ob-pk-st.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.ob-pk-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3, var(--border)); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.ob-pk-st.ok .ob-pk-n { background: var(--green); color: var(--on-accent); }
.ob-pk-st.on .ob-pk-n { background: var(--accent); color: var(--on-accent); }
.ob-pk-l { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ob-pk-l > span { overflow: hidden; text-overflow: ellipsis; }
.ob-pk-l .glogo.xs { width: 18px; height: 18px; border-radius: 5px; }
.ob-pk-b { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
/* Paso de seguridad (2026-11-11): por qué conviene, y el aviso de que todavía no hay códigos de recuperación.
   2026-11-20 (pedido del dueño): "Configurar" es un CTA GRANDE que ocupa todo el alto a la derecha de la ficha (antes era
   un botón chico al final de la fila). Activado, en el mismo lugar va una caja verde del mismo tamaño: nada se corre. */
.ob-seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 14px; align-items: stretch; }
.ob-seg-f { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.ob-seg-e { display: flex; align-items: center; gap: 12px; }
.ob-seg-e > div { flex: 1; min-width: 0; }
.ob-seg-e b { display: block; font-size: 14px; font-weight: 650; }
.ob-seg-e small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ob-seg-cta { width: 100%; height: auto; min-height: 96px; gap: 14px; padding: 16px 22px; border-radius: 14px; white-space: normal; text-align: start; }
.ob-seg-cta > svg, .ob-seg-cta > .ic { width: 28px; height: 28px; flex-shrink: 0; }
.ob-seg-cta > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.ob-seg-cta b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ob-seg-cta small { font-size: 12.5px; font-weight: 500; opacity: .85; }
.ob-seg-ok { display: flex; align-items: center; justify-content: center; border: 1px solid var(--green); background: var(--green-soft); color: var(--green); }
.ob-seg-ok b { font-size: 16px; }
.ob-seg-l { display: flex; flex-direction: column; gap: 7px; }
.ob-seg-l li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.ob-seg-l li > .ic, .ob-seg-l li > svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.ob-seg-n { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--r); background: var(--amber-soft); }
.ob-seg-n > .ic, .ob-seg-n > svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.ob-seg-n p { font-size: 12.5px; color: var(--text-2); }

/* El paso del JUEGO queda a la vista en todos los pasos (2026-11-11): su buscador y, abajo, el juego elegido solo.
   Una línea punteada lo separa de lo que se está eligiendo ahora. */
.ob-pk-s { display: flex; flex-direction: column; gap: 10px; }
/* La línea sólo cuando hay un paso DEBAJO: en el paso del juego no cuelga una raya de la nada. */
.ob-pk-s:not(:last-child) { padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.ob-gts.uno { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-bottom: 2px; }
.ob-pk-q { font-size: 14px; font-weight: 650; }
.ob-pk-q small { font-weight: 500; color: var(--muted); font-size: 12px; }

.ob-gts { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); grid-auto-rows: minmax(100px, auto); align-content: start; flex-shrink: 0; gap: 8px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.ob-gt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 10px 6px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; }
.ob-gt > span:not(.ob-gt-c) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-gt:hover { border-color: var(--border-2); background: var(--surface-2); }
.ob-gt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
/* Las categorías del juego, en su CAJA (2026-11-11): antes eran íconos sueltos de 11 px que no se leían como nada.
   La que ya está en las preferencias va con un ✓ verde y la tarjeta entera se bloquea cuando no queda ninguna. */
.ob-gt-c { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); }
.ob-gt.on .ob-gt-c { background: var(--surface); }
.ob-gt-cp { display: inline-grid; place-items: center; width: 15px; height: 15px; color: var(--muted); }
.ob-gt-cp > .ic, .ob-gt-cp > svg { width: 13px; height: 13px; }
.ob-gt-cp.ya { color: var(--accent); }
/* Ya entero en las preferencias (2026-11-20, pedido del dueño: antes sólo se apagaba): "tuyo" — borde y fondo acento
   suaves y un sello ✓ en la esquina. Donde se puede quitar (Preferences), al pasar el mouse el sello pasa a ✕ rojo. */
.ob-gt.ya { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.ob-gt.ya.on, .ob-gt.ya.on:hover { border-color: var(--accent); background: var(--accent-soft); }
.ob-gt.ya:disabled { cursor: default; }
.ob-gt-ok { position: absolute; top: 6px; inset-inline-end: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.ob-gt-ok > i { display: grid; place-items: center; font-style: normal; }
.ob-gt-ok .ic, .ob-gt-ok svg { width: 11px; height: 11px; }
.ob-gt-ok > .x { display: none; }
.ob-gt.ya:not(:disabled):hover { border-color: color-mix(in srgb, var(--red) 55%, var(--border)); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.ob-gt.ya:not(:disabled):hover .ob-gt-ok { background: var(--red); color: #fff; }
.ob-gt.ya:not(:disabled):hover .ob-gt-ok > .ok { display: none; }
.ob-gt.ya:not(:disabled):hover .ob-gt-ok > .x { display: grid; }
/* "Top demanded now" (2026-11-26, pedido del dueño; js/pref-picker.js › hot): un fuego en la esquina de INICIO (el sello ✓
   va en la del final). Posición absoluta: aparecer, irse o cambiar en vivo no corre nada. Fondo sólido para que se lea
   también encima de un logo. En la lista va sobre la esquina del logo (.pk-hot-w mide lo mismo que el logo). */
.pk-hot { position: absolute; top: 5px; inset-inline-start: 5px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--amber) 16%, var(--surface)); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 60%, var(--border)); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ob-gt > .pk-hot { max-width: none; overflow: visible; }
.pk-hot .ic, .pk-hot svg { width: 12px; height: 12px; stroke-width: 2.5; }
.pk-hot-w { position: relative; display: inline-flex; flex-shrink: 0; }
.pk-hot-w > .pk-hot { top: -6px; inset-inline-start: -6px; width: 18px; height: 18px; }
.pk-hot-w > .pk-hot .ic, .pk-hot-w > .pk-hot svg { width: 11px; height: 11px; }

.ob-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ob-cat { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: start; }
.ob-cat:hover { border-color: var(--border-2); background: var(--surface-2); }
.ob-cat.on { border-color: var(--accent); background: var(--accent-soft); }
.ob-cat-i { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.ob-cat.on .ob-cat-i { background: var(--accent); color: var(--on-accent); }
/* Ya está en las preferencias: se muestra, con ✓, y no se puede volver a elegir (pedido del dueño, 2026-11-11). */
/* Ya en las preferencias = se ve ELEGIDO, igual que .on (pedido del dueño, 2026-11-16). Tocarla ofrece quitarla. */
.ob-cat.ya, .ob-cat.ya:hover { border-color: var(--accent); background: var(--accent-soft); }
.ob-cat.ya .ob-cat-i { background: var(--accent); color: var(--on-accent); }
.ob-cat.ya:disabled { cursor: default; }
.ob-op.ya, .ob-op.ya:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ob-op.ya > .ic, .ob-op.ya > svg { color: var(--accent); }
.ob-cat-t { display: flex; flex-direction: column; min-width: 0; }
.ob-cat-t b { font-size: 14px; font-weight: 650; }
.ob-cat-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Los atajos van ARRIBA y con otra forma (rectangulares y punteados): adentro de la lista, "Todos" era una opción
   más y, con todo tildado, tocar una parecía apagar dos cosas (pedido del dueño, 2026-11-11). */
.ob-ops-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ob-ops-n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ob-ops-n.hay { color: var(--text); }
.ob-ops-x { display: inline-flex; gap: 6px; }
.ob-ops-b { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding-inline: 10px; border: 1px dashed var(--border-2); border-radius: 8px; background: transparent; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ob-ops-b > .ic, .ob-ops-b > svg { color: var(--muted); flex-shrink: 0; }
.ob-ops-b:hover:not(:disabled) { border-style: solid; border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.ob-ops-b:hover:not(:disabled) > .ic, .ob-ops-b:hover:not(:disabled) > svg { color: var(--accent); }
.ob-ops-b:disabled { opacity: .45; }
/* 2026-11-27: una facción que ninguno de los servidores tildados tiene (`sa`): en su lugar, apagada. */
.ob-op[data-p="act"]:disabled { opacity: .45; cursor: not-allowed; }
.ob-ops { display: flex; flex-wrap: wrap; flex-shrink: 0; align-content: flex-start; gap: 6px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.ob-op { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding-inline: 8px 12px; border: 1px solid var(--border-2); border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); max-width: 100%; text-align: start; }
.ob-op > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-op:hover { background: var(--surface-2); }
.ob-op.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ob-op.on .ob-cb { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ob-op-r { padding-inline: 12px; }
.ob-op-todas { font-weight: 650; }
.ob-op-todas.on { border-color: var(--accent); }
.ob-op > .ic, .ob-op > svg { color: var(--muted); flex-shrink: 0; }
.ob-op.on > .ic, .ob-op.on > svg { color: var(--accent); }
.ob-op .count { min-width: 22px; height: 20px; padding: 0 6px; font-size: 11px; }

.ob-pk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
.ob-pk-r { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: 13px; }
.ob-pk-r .glogo.xs { width: 20px; height: 20px; }
.ob-pk-sum { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ob-pk-foot .ob-acts { flex-wrap: nowrap; gap: 6px; flex-shrink: 0; }

/* Barra flotante de cambios sin guardar: fija abajo, dentro de la columna principal (nunca debajo del menú) */
.ob-float { position: fixed; z-index: 35; bottom: 16px; inset-inline-start: calc(var(--side) + 32px); inset-inline-end: 32px; max-width: 1216px; margin-inline: auto; pointer-events: none; }
.ob-float .save-bar { position: static; pointer-events: auto; border-color: var(--accent); box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-ring); }
.ob:has(.ob-float) { padding-bottom: 76px; }
.ob-sv-t { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ob-sv-t > .ic, .ob-sv-t > svg { color: var(--accent); flex-shrink: 0; }
.ob-sv-m { display: flex; flex-direction: column; min-width: 0; }
.ob-sv-m b { font-size: 13.5px; font-weight: 650; }
.ob-sv-m small { font-size: 12px; color: var(--muted); }
.ob-sv-a { display: flex; gap: 8px; flex-shrink: 0; }
@keyframes ob-temblor { 0%, 100% { transform: translateX(0); } 15%, 55% { transform: translateX(-8px); } 35%, 75% { transform: translateX(8px); } 90% { transform: translateX(-3px); } }
@keyframes ob-destello { 0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 3px var(--accent-ring); } 30% { box-shadow: var(--shadow-lg), 0 0 0 6px var(--accent); } }
@keyframes ob-latido { 0%, 100% { transform: none; } 40% { transform: scale(1.07); } }
.ob-shake { animation: ob-temblor .4s ease-in-out, ob-destello .9s ease-out; }
.ob-shake .ob-sv-ok { animation: ob-latido .45s .35s ease-in-out 2; box-shadow: 0 0 0 4px var(--accent-ring); }
@media (prefers-reduced-motion: reduce) {
  .ob-shake { animation: ob-destello .9s ease-out; }
  .ob-shake .ob-sv-ok { animation: none; }
}

/* ── Sin scroll en la compu (2026-10-20, pedido del dueño: "evitar el scroll a toda costa") ──
   De 900 px para arriba el asistente es una caja del alto de la ventana: arriba la barra (con el título en un renglón),
   la fila de pasos, y la tarjeta del paso ocupa el resto; si un paso no entra, scrollea SU cuerpo, nunca la página.
   Cada paso se arma de costado: Discord | cómo sacar el ID · Selector | tu preferencia · País | método | datos. */
.obw-h1 { display: none; }
.obw-sig { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.obw-skip { color: var(--muted); }
.obw-steps li.skip .obw-n { border: 0; background: var(--surface-3, var(--border)); color: var(--muted); }
.obw-steps li.skip .obw-sl small { color: var(--muted); }
@media (min-width: 900px) {
  .obw { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 8px 20px 10px; }
  .obw-top { width: 100%; max-width: 1180px; flex-shrink: 0; margin-bottom: 6px; }
  .obw-top .m-brand img { width: 28px; height: 28px; }
  .obw-h1 { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
  .obw-h1 .eyebrow { font-size: 11px; color: var(--accent-ink); font-weight: 600; }
  .obw-h1t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .obw-wrap { width: 100%; max-width: 1180px; flex: 1; min-height: 0; gap: 8px; }
  .obw-wrap > [data-region="obSteps"], .obw-wrap > .alert { flex-shrink: 0; }
  .obw-st { min-height: 42px; padding: 5px 12px; }
  .obw-n { width: 26px; height: 26px; }
  /* ── Tarjeta fija (2026-11-20, pedido del dueño: "la tarjeta es muy vertical") ──
     Los cuatro pasos miden LO MISMO: `--obw-card-h`, el alto que necesita "2 · Juegos" (el selector con dos filas de
     juegos enteras). Cambiar de paso no mueve nada. En una ventana más baja (el dueño mira en ~1225×590) la tarjeta se
     achica con el flex (min-height: 0) hasta lo que queda, y lo que no entra scrollea ADENTRO: el cuerpo del paso o, en
     Juegos, la lista del selector. La página nunca. */
  .obw { --obw-card-h: 552px; }
  .obw-card { flex: 0 1 auto; height: var(--obw-card-h); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .ob-mh { padding: 10px 18px; gap: 12px; align-items: center; flex-shrink: 0; }
  .ob-mh h2 { margin-top: 0; font-size: 17px; }
  .ob-mh p { font-size: 13px; margin-top: 1px; }
  .ob-mi { width: 34px; height: 34px; border-radius: 10px; }
  .ob-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 18px; gap: 12px; }
  [data-region="obFoot"] { flex-shrink: 0; }
  .obw-foot { padding: 8px 18px; }
  .obw-foot .btn-lg { height: 42px; }
  /* Discord: el formulario y, al lado, cómo sacar el ID */
  .ob-dc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
  /* Juegos: el selector y la preferencia elegida */
  .ob-jg { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .ob-jg .ob-prefs { grid-template-columns: minmax(0, 1fr); }
  /* Juegos llena la tarjeta (2026-11-20): el selector ocupa todo el alto del cuerpo; arriba, en UN renglón, "Agregar una
     preferencia" y los pasitos del selector; abajo su pie (Agregar), siempre a la vista. En el paso del juego la grilla
     toma lo que queda; en los de adentro scrollea el cuerpo del selector (una sola barra, no una lista adentro de otra).
     Sólo en el ASISTENTE (.obw): la pestaña Preferences usa el mismo selector y scrollea como cualquier página. */
  .obw .ob-b-juegos { overflow: hidden; }
  .obw .ob-jg { flex: 1; min-height: 0; align-items: stretch; }
  .obw .ob-jg > [data-region="obPk"] { display: flex; flex-direction: column; min-height: 0; }
  .obw .ob-jg > .ob-f { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .obw .ob-jg .ob-pk { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "h s" "b b" "f f"; }
  .obw .ob-jg .ob-pk-h { grid-area: h; padding: 0; padding-inline: 14px 6px; }
  .obw .ob-jg .ob-pk-steps { grid-area: s; border-bottom: 0; padding: 7px 0; padding-inline: 4px 12px; }
  .obw .ob-jg .ob-pk-st { height: 30px; }
  .obw .ob-jg .ob-pk-n { width: 22px; height: 22px; }
  .obw .ob-jg .ob-pk-b { grid-area: b; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--border); padding: 10px 14px; gap: 8px; }
  .obw .ob-jg .ob-pk-foot { grid-area: f; padding: 7px 14px; }
  .obw .ob-jg .ob-pk-s { gap: 8px; }
  .obw .ob-jg .ob-pk-s > .ob-q { flex: 0 0 auto; } /* .search crece (flex: 1) en las barras: acá no */
  /* Tarjetas de juego chicas (2026-11-20, pedido del dueño): sin la cajita de categorías, sólo logo y nombre, para
     que entren 5–6 por fila sin achicar el logo. */
  .obw .ob-jg .ob-gts { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); grid-auto-rows: max-content; gap: 6px; }
  .obw .ob-jg .ob-gt { min-height: 0; padding: 8px 4px 7px; gap: 5px; border-radius: 10px; }
  .obw .ob-jg .ob-gt > * { flex-shrink: 0; } /* en una fila más baja el nombre no se achica debajo de la cajita */
  .obw .ob-jg .ob-pk-s:only-child { flex: 1 1 auto; min-height: 0; }
  .obw .ob-jg .ob-pk-s:only-child > .ob-gts { flex: 1 1 0; min-height: 96px; max-height: none; }
  .obw .ob-jg .ob-ops, .obw .ob-jg .ob-ops.ob-grid { max-height: none; overflow: visible; }
  /* En los pasos de adentro el juego elegido sigue a la vista (2026-11-11) con la MISMA tarjeta que en la grilla
     (pedido del dueño, 2026-11-20: antes pasaba a un renglón y la tarjeta cambiaba de cuadrada a rectangular). */
}
.ob-dc .ob-form { max-width: none; }
.ob-how-lado { max-width: none; padding: 12px 14px; background: var(--surface-2); }
.ob-how-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 8px; }
.ob-how-t > svg, .ob-how-t > .ic { color: var(--accent); flex-shrink: 0; }
.ob-how-lado ol { padding: 0; gap: 8px; }
.ob-how-lado li { font-size: 13px; }
.ob-jg .ob-f { gap: 8px; }

/* ① País · ② Moneda · ③ Método · ④ Datos en una fila (el formulario es el de la Wallet en modo enLinea: .wmet-linea).
   La moneda entró como ② el 2026-11-20 (pedido del dueño); hasta elegir el país, ② y ③ esperan apagados (.obp-off). */
.obp-linea { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: none; }
.obp-linea .cb, .obp-linea .cb-b { width: 100%; max-width: none; }
.obp-linea .wmet-linea { display: contents; }
.wmet-c { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wmet-c .field { margin: 0; }
.wmet-notas { display: flex; flex-direction: column; gap: 8px; }
.obp-acts { justify-content: space-between; }
.obp-later { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.obp-later > svg, .obp-later > .ic { flex-shrink: 0; }
@media (min-width: 900px) {
  .obp-linea { grid-template-columns: minmax(0, .85fr) minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 18px; align-items: start; }
  .obp-linea .wmet-notas, .obp-linea .obp-acts { grid-column: 1 / -1; }
  .obp-linea .obp-pais .hint, .obp-linea .obp-mon .hint { display: block; }
}

/* El cartel de "listo": rueda de carga + papel picado → recorrido o saltear */
.ob-fin { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(7, 8, 12, .72); backdrop-filter: blur(6px); }
.ob-fin-papel { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ob-fin-papel i { position: absolute; top: -24px; left: var(--x); width: 8px; height: 14px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: ob-fin-cae var(--t) var(--d) linear infinite; opacity: .9; }
@keyframes ob-fin-cae { to { transform: translateY(110vh) rotate(calc(var(--r) + 720deg)); } }
.ob-fin-c { position: relative; width: min(440px, 100%); padding: 32px 28px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: ob-fin-entra .35s ease-out; }
.ob-fin-c h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ob-fin-c p { font-size: 14px; }
.ob-fin-ruedita { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--accent); animation: ob-fin-gira .85s linear infinite; margin-bottom: 6px; }
@keyframes ob-fin-gira { to { transform: rotate(360deg); } }
@keyframes ob-fin-entra { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.ob-fin-ok { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 4px; }
.ob-fin-ok > svg, .ob-fin-ok > .ic { width: 28px; height: 28px; }
.ob-fin-c.ok { animation: ob-fin-entra .3s ease-out; }
.ob-fin-acts { display: flex; gap: 10px; margin-top: 10px; width: 100%; }
.ob-fin-acts .btn { flex: 1; }
@media (prefers-reduced-motion: reduce) {
  .ob-fin-papel { display: none; }
  .ob-fin-ruedita { animation-duration: 2s; }
  .ob-fin-c, .ob-fin-c.ok { animation: none; }
}
@media (max-width: 899px) {
  .ob-dc, .ob-jg { display: flex; flex-direction: column; gap: 16px; }
  .obp-acts { flex-direction: column; align-items: stretch; }
  .obp-acts .btn { width: 100%; }
  .ob-fin-acts { flex-direction: column-reverse; }
  .ob-seg { grid-template-columns: minmax(0, 1fr); }
  .ob-seg-cta { min-height: 64px; justify-content: center; }
}

/* Lo que coincidió al buscar un juego y no está en su nombre (un alias, un servidor, una actividad): chiquito, abajo. */
.ob-gt-via { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.ob-gt-via > .ic, .ob-gt-via > svg { width: 10px; height: 10px; flex-shrink: 0; }
.ob-gt-via > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Boosting › servicios: una grilla PAREJA (Y × Y): todas las celdas del mismo ancho y alto (el texto en 2 renglones
   como máximo, con "…" si no entra), en cualquier idioma y en claro / oscuro. Las columnas las pone js/pref-picker.js. */
.ob-ops.ob-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 58px; gap: 8px; max-height: 340px; }
.ob-grid .ob-op { width: 100%; height: 100%; min-height: 0; max-width: none; border-radius: 12px; padding: 8px 10px; gap: 9px; align-items: center; }
.ob-grid .ob-op > .ob-op-t { flex: 1; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
.ob-grid .ob-none { grid-column: 1 / -1; }

@media (max-width: 899px) {
  .obw { padding-inline: 12px; }
  .obw-intro { padding-top: 8px; }
  .obw-intro h1 { font-size: 22px; }
  .obw-steps { gap: 6px; }
  .obw-st { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; text-align: center; }
  .obw-sl { align-items: center; max-width: 100%; }
  .obw-sl small { display: none; }
  .obw-sl b { font-size: 12px; max-width: 100%; }
  .ob-mh { padding: 16px; }
  .ob-body { padding: 16px; }
  .obw-foot { padding: 12px 16px; flex-wrap: wrap; }
  .obw-foot .btn { min-height: 44px; }
  .obw-foot > .btn-primary { flex: 1 1 auto; }
  .obw-falta { order: -1; flex-basis: 100%; }
  .ob-pc { height: 38px; }
  .ob-pc .ob-x { width: 36px; height: 36px; }
  .ob-prefs { grid-template-columns: minmax(0, 1fr); }
  .ob-gts { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); max-height: 282px; }
  .ob-gt { font-size: 11.5px; padding-inline: 4px; min-height: 86px; }
  .ob-cats { grid-template-columns: minmax(0, 1fr); }
  .ob-op { min-height: 42px; }
  .ob-ops.ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 58px; }
  .ob-pk-h { padding: 10px 12px 0; }
  .ob-pk-steps, .ob-pk-b, .ob-pk-foot { padding-inline: 12px; }
  .ob-pk-foot .btn { min-height: 44px; }
  /* La barra flotante (Games you sell) va arriba de la barra de abajo (.bnav) */
  .ob-float { inset-inline-start: 10px; inset-inline-end: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ob-float .save-bar { padding: 10px 10px 10px 12px; padding-inline: 12px 10px; gap: 8px; }
  .ob-sv-m small { display: none; }
  .ob-sv-a .btn { min-height: 44px; }
  .ob:has(.ob-float) { padding-bottom: 70px; }
  .ob-acts .btn { min-height: 44px; }
}
@media (max-width: 420px) { .obw-top .m-brand b { display: none; } }
/* En el asistente las tarjetas de juego no llevan la cajita de categorías (cfg.sinCats): sin piso de alto, en cualquier
   ancho, miden lo que miden el logo y el nombre. */
.obw .ob-gts { grid-auto-rows: max-content; } /* `auto` con la lista de alto fijo aplastaba las filas a 18 px */
.obw .ob-gts .ob-gt { min-height: 0; }

/* En la pestaña Preferences las listas usan el alto que queda de ventana (pedido del dueño, 2026-11-11: la de juegos
   mostraba dos filas y media con media pantalla vacía debajo). Son ~40 juegos: con esto entran casi todos de una.
   En el teléfono manda la regla de arriba (≤ 899 px), que es la que hace entrar el paso en una pantalla chica. */
@media (min-width: 900px) {
  /* 412 px es lo que mide todo lo que NO es la grilla (cabecera de la página, migas, pregunta, buscador, pie y
     márgenes), medido con scripts/revisar_preferencias.js: con eso la tarjeta entra justa y la PÁGINA no scrollea —
     el único scroll es el de la lista. Medido en 1366×1035: 2,4 filas de juegos a la vista → 5,5. */
  .pf .ob-gts { max-height: clamp(240px, calc(100dvh - 430px), 900px); }
  /* En los pasos de adentro el bloque del juego sigue arriba (~210 px más), así que se les descuenta. */
  .pf .ob-ops { max-height: clamp(180px, calc(100dvh - 640px), 560px); }
  .pf .ob-ops.ob-grid { max-height: clamp(180px, calc(100dvh - 640px), 560px); }
}

/* Grilla de juegos: abajo un degradé avisa que hay más para scrollear. */
.ob-gts { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); padding-bottom: 14px; }

/* (Hasta 2026-11-20 acá las listas del selector del asistente tenían un tope según el alto de la ventana. Desde la
   tarjeta fija scrollea el cuerpo del selector entero: ver "Juegos llena la tarjeta", arriba.) */

/* Paso de cobro (2026-10-21, pedido del dueño): País · Moneda · Método · Datos alineados — misma fila de etiquetas
   (1 · 2 · 3 · 4, alto fijo), los desplegables del mismo alto que el campo, y las ayudas debajo sin correr nada. */
.obp-linea .obp-pais, .obp-linea .obp-mon, .obp-linea .wmet-c { display: flex; flex-direction: column; gap: 8px; margin: 0; min-width: 0; }
.obp-linea .flabel { min-height: 24px; margin: 0; }
.obp-linea .obp-pais .cb, .obp-linea .obp-mon .cb, .obp-linea .wmet-sel, .obp-linea .wmet-sel .cb { width: 100%; max-width: none; }
/* Lo que espera al país: apagado (el desplegable ya viene `disabled`), con su número a la vista para que se lea el orden. */
.obp-off { opacity: .55; }
.obp-off .cb-b { cursor: not-allowed; }
.obp-tasa { display: block; min-height: 1.45em; color: var(--muted); font-size: 11.5px; } /* reserva su renglón aunque sea USD */
.obp-linea .cb-b { height: 42px; width: 100%; max-width: none; }
.obp-linea .wmet-c textarea, .obp-linea .wmet-c input { min-height: 42px; }
/* La lista del desplegable flota (core.js ubicarFijo): con su propio scroll, sin el tope de 340 px de ancho. */
.cb-fijo .cb-pop { max-width: calc(100vw - 16px); }

/* El bot no puede escribirle (2026-11-27, js/discord-vinculo.js › fase sinDm): la tarjeta va en el lugar del formulario. */
.dc-unir { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--accent-ring); border-radius: 14px; background: var(--accent-soft); min-width: 0; }
.dc-unir-h { display: flex; align-items: flex-start; gap: 10px; }
.dc-unir-h b { font-size: 15px; line-height: 1.35; }
.dc-unir-i { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); color: var(--accent-ink); }
.dc-unir .note { margin: 0; }
.dc-unir .ob-acts .btn { max-width: 100%; }
.dc-unir .btn-primary .ic.xs { opacity: .8; }
/* "Enviar el código otra vez": la cuenta atrás tiene su lugar siempre (en 0:00 queda invisible, no se saca). */
.dc-otra .dc-cd { min-width: 3.2ch; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; }
.dc-otra .dc-cd-0 { visibility: hidden; }
.dc-unir-id { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin: 0; }
/* "Revisando tu código…" / "Discord vinculado ✓" en el renglón reservado de los casilleros (core.js › otp). */
.otp-err.otp-estado { color: var(--text-2); }
.otp-err.otp-listo { color: var(--green); font-weight: 600; }
.dc-chk .otp input:disabled { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .dc-chk .btn.busy::after { animation: none; } } /* el anillo queda quieto; el texto del renglón dice qué pasa */
