/* Actividad de la liga (estilo Vestuario) para La Puja */
.wa-chat { max-width: none; background: transparent; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #202c33; color: #e9edef; border-bottom: 1px solid rgba(255,255,255,0.06); }
[data-theme="light"] .wa-top { background: #f0f2f5; color: #111b21; border-bottom-color: rgba(0,0,0,0.08); }
.wa-back { font-size: 1.5rem; line-height: 1; opacity: 0.75; margin-top: -4px; }
.wa-hanger { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #00a884; }
[data-theme="light"] .wa-hanger { background: #dfe5e7; color: #008069; }
.wa-top-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.wa-top-txt b { font-size: 0.95rem; font-weight: 800; }
.wa-top-txt span { font-size: 0.72rem; color: #00a884; }
[data-theme="light"] .wa-top-txt span { color: #008069; }
.wa-logo { margin-left: auto; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid rgba(255,255,255,0.55); }
.wa-logo img { width: 74%; height: 74%; object-fit: contain; }
.wa-pin-label { text-align: center; font-size: 0.72rem; font-weight: 700; color: #00a884; margin: 2px 0 8px; }
[data-theme="light"] .wa-pin-label { color: #008069; }
.wa-bottom { display: flex; justify-content: center; margin: 14px 0 4px; }
.wa-bottom-logo { width: 48px; height: 48px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid rgba(255,255,255,0.55); }
.wa-bottom-logo img { width: 72%; height: 72%; object-fit: contain; }

/* Anillo de multiposición (color por posición) */
.posring { display: inline-flex; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 180deg, var(--c1) 0 50%, var(--c2) 50% 100%); }
.posring > img { border-radius: 50%; object-fit: cover; display: block; }
.posring-clip { padding: 2px !important; border-color: transparent !important; background: conic-gradient(from 180deg, var(--c1) 0 50%, var(--c2) 50% 100%) !important; }
.posring-clip > img { border-radius: 50%; }
.posring.single { background: var(--c1); }
.posring-clip.single { background: var(--c1) !important; }
.mcard-photo > .posring { position: absolute; inset: -2.5px; }
.mcard-photo > .posring > img { width: 100%; height: 100%; }
.mcard-roles { justify-content: center; }
/* Mismo criterio que en Clausulazo de la Guía Fantasy: nada de 3 cajas con
   borde iguales, los datos van en línea y solo PTS destaca en color. */
.mcard-stats { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 2px; column-gap: 13px; width: 100%; margin-top: 6px; }
.mstat { flex: none; display: flex; flex-direction: row; align-items: baseline; gap: 4px; padding: 0; border: none; background: none; }
.mstat b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 0.86rem; font-weight: 700; color: var(--text); line-height: 1; white-space: nowrap; }
.mstat small { font-size: 0.64rem; font-weight: 600; letter-spacing: 0; color: var(--muted); text-transform: none; white-space: nowrap; }
.mstat.pts b { color: var(--accent); }
.wa-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; background: #0b141a; }
[data-theme="light"] .wa-body { background: #e9edef; }
.wa-pin { background: #182229; border-left: 3px solid #06cf9c; border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
[data-theme="light"] .wa-pin { background: #ffffff; box-shadow: 0 1px 1px rgba(11,20,26,0.13); }
.wa-pin-head { color: #06cf9c; font-weight: 800; font-size: 0.72rem; margin-bottom: 6px; letter-spacing: 0.02em; }
[data-theme="light"] .wa-pin-head { color: #008069; }
.wa-pin-txt { font-size: 0.82rem; line-height: 1.5; color: #e9edef; }
[data-theme="light"] .wa-pin-txt { color: #111b21; }
.wa-pin-txt b { font-weight: 800; }
.wa-day { align-self: center; background: rgba(11,20,26,0.55); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 6px 0 2px; }
.wa-msg { display: flex; align-items: flex-end; gap: 8px; }
.wa-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #1f2c34; }
[data-theme="light"] .wa-avatar { background: #dfe5e7; }
.wa-bubble { background: #202c33; border-radius: 8px 8px 8px 2px; padding: 7px 11px; max-width: 78%; box-shadow: 0 1px 1px rgba(0,0,0,0.35); }
[data-theme="light"] .wa-bubble { background: #ffffff; box-shadow: 0 1px 0.5px rgba(11,20,26,0.13); }
.wa-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.wa-name { font-weight: 800; font-size: 0.8rem; }
.wa-time { font-size: 0.64rem; color: #8696a0; margin-left: auto; white-space: nowrap; }
[data-theme="light"] .wa-time { color: #667781; }
.wa-text { font-size: 0.88rem; line-height: 1.45; color: #e9edef; }
[data-theme="light"] .wa-text { color: #111b21; }
.wa-text b, .wa-text strong { font-weight: 800; color: #ffffff; }
[data-theme="light"] .wa-text b, [data-theme="light"] .wa-text strong { color: #111b21; }

/* Panel de administrador (La Puja) */
.puja-admin { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--border, #d7dde6); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.puja-admin-t { flex: 1 0 100%; font-size: 0.72rem; font-weight: 800; color: var(--muted, #69727d); text-transform: uppercase; letter-spacing: 0.03em; }
.puja-admin .btn-ghost { font-size: 0.8rem; }
.puja-admin-note { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(34,197,94,0.12); border: 1px dashed #22c55e; color: var(--text, #0f172a); font-size: 0.78rem; font-weight: 700; }

/* Tarjeta de jugador: puntos y media más visuales */
.mcard-stats2 { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mstat2 { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; border-radius: 12px; border: 1px solid var(--border); background: rgba(127,127,127,.08); }
.mstat2 b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.15rem; font-weight: 900; line-height: 1; color: var(--text); }
.mstat2 small { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mstat2.pts { background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(34,197,94,.08)); border-color: rgba(34,197,94,.45); }
.mstat2.pts b { color: #22c55e; }
.mstat2.avg b { color: var(--text); }

/* ===== LA PUJA · rediseño v2 ===== */
.ico { flex: 0 0 auto; vertical-align: -3px; }
/* posiciones dobles: separadas */
.posb.posb-dual { display: inline-flex; padding: 0; gap: 2px; background: transparent !important; overflow: hidden; border-radius: 7px; }
.posb.posb-dual > span { padding: 2px 6px; line-height: 1.45; color: #fff; }

/* barra de cuenta atrás: compacta */
.puja-countdown.pj-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; margin: 0 0 12px; padding: 10px 12px 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card-solid); }
.pj-bar-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pj-bar .puja-sub { margin: 0; font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.pj-bar .puja-timer { font-size: 1.05rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pj-bar .puja-timer.small { font-size: .85rem; }
.pj-bar.is-open .puja-timer { color: #22c55e; font-size: 1.5rem; font-weight: 800; }
.pj-bar .puja-refresh { position: static; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pj-bar .puja-refresh.spin svg { animation: pjspin .7s linear; }
@keyframes pjspin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) { .pj-bar .puja-refresh:hover { transform: none; } }
@media (max-width: 640px) { .pj-bar .puja-refresh { width: 34px; height: 34px; } }

/* subasta activa: tarjeta protagonista */
.puja-pcard.pj-hero { padding: 18px 14px 16px; border-radius: 20px; border: 1px solid rgba(34,197,94,.35); background: linear-gradient(180deg, rgba(34,197,94,.10), rgba(34,197,94,.02)); margin: 0 0 14px; }
.pj-hero .puja-pcard-name { font-size: clamp(1.25rem, 6vw, 1.7rem); }
.pj-hero-stats { width: 100%; margin-top: 10px; }
.pj-hs { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--border); }
.pj-hs small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pj-hs b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.7rem; font-weight: 800; color: #22c55e; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pj-hs span { font-size: .85rem; font-weight: 600; color: var(--text); }
.bid-cta { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.bid-note, .puja-admin-note { display: flex; align-items: center; justify-content: center; gap: 6px; }
.puja-admin-t { display: flex; align-items: center; gap: 6px; }
.outbid-title { display: flex; align-items: center; gap: 6px; }
.puja-admin .btn-ghost, .share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pw-ico { display: flex; justify-content: center; color: #10b981; }
.pw-ico .ico { width: 30px; height: 30px; }

/* jugadores del mercado: tarjeta sencilla */
.mcard-avg { font-size: .72rem; font-weight: 700; color: var(--muted); }
.mcard-val { font-weight: 800; }

/* historial: una fila por subasta */
.hl2 { display: flex; flex-direction: column; gap: 8px; }
.hc2 { padding: 0 !important; gap: 0 !important; overflow: hidden; }
.hc2-row { width: 100%; display: grid; grid-template-columns: 46px 1fr auto 18px; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.hc2-ph .hist-img, .hc2-ph img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.hc2-ph .posring { padding: 2px; }
.hc2-mid { min-width: 0; }
.hc2-name { font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc2-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hc2-sub b { color: var(--text); font-weight: 700; }
.hc2-amt { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: .98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc2.winner .hc2-amt { color: #22c55e; }
.hc2-chev { color: var(--muted); display: inline-flex; transition: transform .2s ease; }
.hc2.open .hc2-chev { transform: rotate(180deg); }
.hc2-det { padding: 2px 12px 12px; border-top: 1px dashed var(--border); margin-top: 0; }
.hc2-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0 6px; font-size: .78rem; color: var(--muted); }
@media (max-width: 380px) { .hc2-row { grid-template-columns: 40px 1fr auto 16px; gap: 8px; padding: 9px 10px; } .hc2-ph .hist-img, .hc2-ph img { width: 40px; height: 40px; } }
