/* HL90 · estilo «revista deportiva» para computador (>= 1024 px).
   Portada con foto B/N y trazo lima, titulares enormes, números gigantes, notas a mano. */
@media (min-width: 1024px) {
  :root { --r-display: "Plus Jakarta Sans", system-ui, sans-serif; --r-hand: "Caveat", cursive; }

  /* En el panel la portada reemplaza a la foto de arriba */
  body.dash-on .jobhero { display: none; }
  body.dash-on .jobtabs { margin-top: 4px; }

  /* ---------- Portada ---------- */
  .rcover { position: relative; height: 380px; border-radius: 28px; overflow: hidden; margin: 6px 0 22px; background: #0b0b0b; isolation: isolate; }
  .rcimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.8); }
  .rcover::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(8,8,8,.94) 0%, rgba(8,8,8,.75) 42%, rgba(8,8,8,.15) 75%), linear-gradient(0deg, rgba(8,8,8,.85), transparent 45%); }
  .rbrush { position: absolute; z-index: 2; right: -30px; top: 120px; width: 40%; height: 100px; fill: var(--lime); opacity: .9; transform: rotate(-7deg); }
  .rctx { position: absolute; z-index: 3; left: 48px; bottom: 40px; right: 40%; }
  .rkick { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
  .rctx h1 { margin: 10px 0 18px; font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 4.4vw, 4.4rem);
    line-height: .92; letter-spacing: -.045em; color: #fff; }
  .rscore { display: inline-flex; align-items: center; gap: 14px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14);
    border-radius: 99px; padding: 8px 18px; color: #fff; font-weight: 800; backdrop-filter: blur(6px); }
  .rscore span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
  .rscore i { width: 12px; height: 12px; border-radius: 3px; }
  .rscore b { font-size: 1.7rem; letter-spacing: -.03em; }
  .rscore b small { font-size: .9rem; color: #bdbdb7; margin-left: 1px; }
  .rscore em { font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #bdbdb7; }
  .rhand { position: absolute; z-index: 3; right: 48px; top: 30px; font-family: var(--r-hand); font-size: 2rem; line-height: 1; color: var(--lime);
    transform: rotate(-6deg); text-align: right; }

  /* ---------- Cifras de portada: números gigantes ---------- */
  .rbig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 22px; border-top: 2px solid var(--lime); }
  .rbig > div { padding: 18px 24px 6px 0; }
  .rbig > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
  .rbig b { display: block; font-family: var(--r-display); font-weight: 800; font-size: clamp(3.2rem, 5.6vw, 5.4rem); line-height: .95; letter-spacing: -.06em; color: var(--text); }
  .rbig b small { font-size: .32em; letter-spacing: 0; margin-left: 6px; color: var(--lime); font-weight: 800; }
  .rbig span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; font-weight: 600; }

  /* ---------- La figura ---------- */
  .rfig { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; margin: 0 0 26px; padding: 22px;
    border-radius: 28px; text-decoration: none; color: var(--text); overflow: hidden;
    background: radial-gradient(500px 260px at 0% 0%, rgba(212,245,60,.18), transparent 70%), var(--card); border: 1px solid rgba(212,245,60,.35); }
  .rfig:hover { border-color: var(--lime); }
  .rfimg { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #0e0e0e; transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
  .rfimg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); }
  .rfimg.nophoto { display: grid; place-items: center; background: linear-gradient(160deg, #1b2a06, #0e0e0e 70%); }
  #dashboard .rfpitch { width: 70% !important; height: auto !important; fill: none; stroke: rgba(212,245,60,.35); stroke-width: 1.2; }
  .rfimg.nophoto .rfnum { right: auto; bottom: auto; position: absolute; inset: 0; display: grid; place-items: center; font-size: 8rem; }
  .rfnum { position: absolute; right: -8px; bottom: -10px; font-family: var(--r-display); font-weight: 800; font-size: 5.4rem; line-height: 1; color: var(--lime);
    letter-spacing: -.06em; text-shadow: 0 6px 24px rgba(0,0,0,.6); }
  .rftx h2 { margin: 6px 0 4px; font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 3.4rem; line-height: .95; letter-spacing: -.045em; }
  .rftx p { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
  .rfst { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; }
  .rfst > div { padding: 0 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line); }
  .rfst > div:last-child { border-right: 0; }
  .rfst b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
  .rfst small { color: var(--muted); font-size: .8rem; font-weight: 700; }
  .rhand.r2 { top: 20px; right: 30px; font-size: 1.8rem; transform: rotate(5deg); }

  /* ---------- Secciones numeradas, como en una revista ---------- */
  #dashboard .dgrid { counter-reset: sec; }
  #dashboard .dc { counter-increment: sec; border-radius: 24px; padding: 22px 24px; }
  #dashboard .dc h3 { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: -.02em; }
  #dashboard .dc h3::before { content: counter(sec, decimal-leading-zero); display: inline-block; margin-right: 10px; color: var(--lime);
    font-family: var(--r-hand); font-size: 1.6rem; font-weight: 700; text-transform: none; transform: rotate(-6deg) translateY(2px); }
  #dashboard .dk { border-radius: 18px; }
  #dashboard .dk b { font-family: var(--r-display); }
}

@media (min-width: 1024px) { #dashboard .dgrid > .dk { display: none; } }

@media (min-width: 1024px) {
  .dmore { display: block; margin: 14px auto 0; height: 40px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line);
    background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; width: auto; min-height: 0; }
  .dmore:hover { background: var(--card-2, #1f1f1f); border-color: var(--lime); }
  /* «¿Quién es quién?» sola: todo el ancho, foto a la izquierda y opciones a la derecha */
  body.dash-on main:has(#doubtcard[hidden]) > #rostercard { grid-column: 1 / -1; }
  body.dash-on #rostercard #roster { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 6px 28px; align-items: start; }
  body.dash-on #rostercard #roster > .qref { grid-row: 1 / span 6; margin: 0; }
  body.dash-on #rostercard #roster > :not(.qref) { grid-column: 2; }
  body.dash-on #rostercard #roster > .qdone { grid-column: 1 / -1; }
}

/* ---------- Inicio en estilo revista ---------- */
@media (min-width: 1024px) {
  #webhome .wkick { margin: 0 0 6px; color: var(--lime); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
  #webhome .wkick span::first-letter { text-transform: uppercase; }
  #webhome .wtop h1 { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 3.6rem; line-height: .9; letter-spacing: -.05em; }
  #webhome .wk b { font-family: var(--r-display); font-size: 2rem; letter-spacing: -.04em; }
  #webhome .wlhead { height: 300px; padding: 30px 30px 26px; }
  #webhome .wlhead img { opacity: .7; filter: grayscale(1) contrast(1.2); }
  #webhome .wlshade { background: linear-gradient(90deg, rgba(8,8,8,.92), rgba(8,8,8,.55) 55%, rgba(8,8,8,.2)), linear-gradient(0deg, rgba(20,20,20,.95), transparent 55%); }
  #webhome .wltx h2 { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 2.6rem; line-height: .92; letter-spacing: -.045em; max-width: 520px; }
  #webhome .wbrush { position: absolute; z-index: 1; right: -30px; top: 96px; width: 40%; height: 90px; fill: var(--lime); opacity: .9; transform: rotate(-7deg); }
  #webhome .whand { position: absolute; z-index: 2; right: 28px; top: 22px; font-family: var(--r-hand); font-size: 1.9rem; line-height: 1; color: var(--lime); transform: rotate(-6deg); text-align: right; }
  #webhome .wlstats b { font-family: var(--r-display); font-size: 2rem; letter-spacing: -.04em; }
  #webhome .wcard h3, #webhome .wtable h3 { font-family: var(--r-display); text-transform: uppercase; font-size: 1.1rem; letter-spacing: -.01em; }
}

/* ---------- Titulares de revista en todas las pantallas ---------- */
@media (min-width: 1024px) {
  body .bigt, body .sqtitle, body #pfname, body .login > .hero h1 {
    font-family: var(--r-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.05em; line-height: .9; }
  body .bigt em, body .sqtitle em { font-style: normal; color: var(--lime); }

  /* Secciones de tarjeta: mayúsculas y número escrito a mano */
  body:has(#kpis) main.player, body .pfwrap > main { counter-reset: sec; }
  body:has(#kpis) main.player > section.card h2, body .pfwrap h2.sect, body .webrec h2 {
    font-family: var(--r-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.35rem; }
  body:has(#kpis) main.player > section.card:not(.more) { counter-increment: sec; }
  body:has(#kpis) main.player > section.card:not(.more) h2::before, body .pfwrap h2.sect::before {
    content: counter(sec, decimal-leading-zero); display: inline-block; margin-right: 10px; color: var(--lime); font-family: var(--r-hand);
    font-size: 1.6rem; font-weight: 700; text-transform: none; transform: rotate(-6deg) translateY(2px); }
  body .pfwrap h2.sect { counter-increment: sec; }

  /* ---------- Ficha del jugador ---------- */
  body:has(#kpis) .bigt { font-size: clamp(3.6rem, 6vw, 5.6rem); margin: 0 0 4px; }
  body:has(#kpis) .phead .photo { transform: rotate(-2deg); box-shadow: 0 22px 50px rgba(0,0,0,.55); filter: grayscale(1) contrast(1.15); }
  body:has(#kpis) .phead .blob { transform: rotate(6deg) scale(1.15); }
  /* Cifras como números de portada: sin cajas, raya lima arriba, divisores finos */
  body:has(#kpis) .kpis { gap: 0; border-top: 2px solid var(--lime); margin-top: 8px; }
  body:has(#kpis) .kpis .kpi, body:has(#kpis) .kpis .kpi.big { background: none !important; border: 0; border-radius: 0; min-height: 0;
    padding: 16px 20px 8px 0; }
  body:has(#kpis) .kpis .kpi + .kpi { padding-left: 20px; border-left: 1px solid var(--line); }
  body:has(#kpis) .kpis .kpi b, body:has(#kpis) .kpis .kpi.big b { font-family: var(--r-display); font-size: clamp(2.6rem, 3.6vw, 3.6rem);
    letter-spacing: -.06em; line-height: .95; color: var(--text); }
  body:has(#kpis) .kpis .kpi.big b { color: var(--lime); }
  body:has(#kpis) .kpis .kpi b small { font-size: .32em; letter-spacing: 0; color: var(--lime); }
  body:has(#kpis) .kpis .kpi span { order: 2; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  body:has(#kpis) .kpis.unreliable .kpi { opacity: .55; filter: none; }

  /* ---------- Plantel ---------- */
  body .sqwrap .sqtitle { font-size: clamp(3.4rem, 6.4cqw, 5.4rem); }
  body .sqstats { background: none; border-top: 2px solid var(--lime); border-radius: 0; }
  body .sqstats > div { padding: 16px 0 6px; text-align: left; }
  body .sqstats > div + div { padding-left: 22px; }
  body .sqstats b { font-family: var(--r-display); font-size: 3rem; font-weight: 800; letter-spacing: -.06em; }
  body .listhead h2 { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; letter-spacing: -.03em; }
  body .card9:not(.add) { transform: rotate(var(--tilt, 0deg)) !important; transition: transform .2s; }
  body .card9:nth-child(4n+1) { --tilt: -1.5deg; } body .card9:nth-child(4n+2) { --tilt: 1deg; }
  body .card9:nth-child(4n+3) { --tilt: -.8deg; } body .card9:nth-child(4n+4) { --tilt: 1.3deg; }
  body .card9:not(.add):hover { transform: rotate(0) translateY(-4px) scale(1.02) !important; }

  /* ---------- Perfil ---------- */
  body .pfwrap #pfname { font-size: 3rem; }
  body .pfwrap .idcard { border-radius: 30px; padding: 30px 34px; }
  body .pfwrap .pfstats { gap: 0 !important; border-top: 2px solid var(--lime); margin-top: 18px; }
  body .pfwrap .pfstats div { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 16px 20px 6px 0; }
  body .pfwrap .pfstats div + div { padding-left: 20px; border-left: 1px solid var(--line) !important; }
  body .pfwrap .pfstats div b { font-family: var(--r-display); font-size: 3.4rem; letter-spacing: -.06em; line-height: .95; }
  body .pfwrap .pfstats div:first-child b { color: var(--lime); }
  body .pfwrap .pfstats div:not(:first-child) b { color: var(--text); }

  /* ---------- Grabar ---------- */
  body #setupwrap .bigt { font-size: clamp(3rem, 6cqw, 5.4rem); line-height: .92; height: auto; margin-bottom: 18px; }
  body .tipcards > div { transform: rotate(var(--tilt, 0deg)) !important; }
  body .tipcards > div:nth-child(1) { --tilt: -1.2deg; } body .tipcards > div:nth-child(2) { --tilt: .8deg; } body .tipcards > div:nth-child(3) { --tilt: -.6deg; }
  body .webrec { border-top: 2px solid var(--lime); }
  body .wrqr { transform: rotate(-2deg); }

  /* ---------- Entrar ---------- */
  body .login > .hero h1 { font-size: 4.6rem; }
}
@media (min-width:1024px){ body #setupwrap > main > .titlerow { top: 9cqw; } body #setupwrap > main > .lead { top: 27cqw; } }
/* Inicio: cabecera y cifras como portada de revista */
@media (min-width:1024px){
  body #webhome .wtop { align-items: flex-end; padding-bottom: 18px; margin-bottom: 0; }
  body #webhome .wtop h1 { font-size: 5.2rem; line-height: .85; }
  body #webhome .wkpis { gap: 0; border-top: 3px solid var(--lime); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
  body #webhome .wk { background: none; border: 0; border-radius: 0; padding: 18px 24px 16px; display: block; }
  body #webhome .wk + .wk { border-left: 1px solid var(--line); }
  body #webhome .wk:first-child { padding-left: 0; }
  body #webhome .wki { display: none; }
  body #webhome .wk small { display: block; order: -1; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
  body #webhome .wk > div { display: flex; flex-direction: column-reverse; }
  body #webhome .wk b { font-family: var(--r-display); font-weight: 800; font-size: 3.6rem; letter-spacing: -.06em; line-height: .9; }
  body #webhome .wk:first-child b { color: var(--lime); }
  body #webhome .wk:last-child b { font-size: 2.4rem; text-transform: uppercase; padding-top: 14px; }
}
#account .accrow[hidden], #delacc[hidden] { display: none !important; }
/* ---------- Menú lateral estilo revista (índice) ---------- */
@media (min-width:1024px){
  :root { --side: 256px; }
  body nav.tabbar { padding: 118px 20px 22px; gap: 0; counter-reset: nav;
    background: linear-gradient(180deg, #121212, #0c0c0c); border-right: 1px solid var(--line); overflow: hidden; }
  body nav.tabbar::before { content: "HL90"; top: 24px; left: 22px; padding: 0 10px; font-family: var(--r-display); font-weight: 800;
    font-size: 2.5rem; letter-spacing: -.06em; line-height: 1; color: #111; background: var(--lime);
    clip-path: polygon(2% 8%, 100% 0, 97% 92%, 0 100%); transform: rotate(-3deg); }
  body nav.tabbar .navtag { position: absolute; top: 76px; left: 30px; font-family: var(--r-hand); font-size: 1.15rem; color: var(--lime); transform: rotate(-3deg); }
  body nav.tabbar .navidx { order: 0; margin: 22px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--lime);
    font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  body nav.tabbar a.plus { order: -1; margin: 0 0 4px; padding: 14px 16px; border-radius: 4px; justify-content: center;
    clip-path: polygon(0 10%, 4% 0, 100% 6%, 97% 100%, 3% 92%); transform: rotate(-1deg); font-weight: 800; transition: transform .15s; }
  body nav.tabbar a.plus:hover { transform: rotate(0) scale(1.03); }
  body nav.tabbar a:not(.plus):not(.navme):not(.navlast) { order: 1; counter-increment: nav; position: relative; background: none !important;
    border-radius: 0; padding: 13px 4px 13px 0; gap: 12px; border-bottom: 1px solid var(--line); color: var(--muted);
    font-family: var(--r-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.15rem; }
  body nav.tabbar a:not(.plus):not(.navme):not(.navlast)::before { content: counter(nav, decimal-leading-zero); width: 30px; flex: none;
    font-family: var(--r-hand); font-size: 1.25rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #555; transform: rotate(-6deg); }
  body nav.tabbar a:not(.plus):not(.navme):not(.navlast) svg { order: 2; margin-left: auto; width: 20px; height: 20px; opacity: .35; }
  body nav.tabbar a:not(.plus):not(.navme):not(.navlast):hover { color: var(--text); }
  body nav.tabbar a:not(.plus):not(.navme):not(.navlast):hover::before { color: var(--lime); }
  body nav.tabbar a.on:not(.plus) { color: var(--text) !important; font-size: 1.45rem; }
  body nav.tabbar a.on:not(.plus)::before { color: var(--lime) !important; font-size: 1.5rem; }
  body nav.tabbar a.on:not(.plus) svg { opacity: 1; color: var(--lime); }
  body nav.tabbar a.on:not(.plus)::after { content: ""; position: absolute; left: -20px; top: 10px; bottom: 10px; width: 5px; background: var(--lime); border-radius: 0 4px 4px 0; }
  /* Último partido: mini portada */
  body nav.tabbar a.navlast { order: 2; margin-top: auto; position: relative; display: block; height: 128px; padding: 12px 14px;
    border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; transform: rotate(-1.5deg); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
  body nav.tabbar a.navlast img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .6; }
  body nav.tabbar a.navlast::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.9)); }
  body nav.tabbar a.navlast > span, body nav.tabbar a.navlast > b { position: relative; z-index: 1; display: block; }
  body nav.tabbar .nlk { display: inline-block !important; background: var(--lime); color: #111; font-size: .62rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
  body nav.tabbar a.navlast b { margin-top: 30px; font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: .95rem;
    line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body nav.tabbar .nlgo { font-size: .76rem; font-weight: 700; color: var(--lime); margin-top: 3px; }
  body nav.tabbar a.navlast:hover { transform: rotate(0) translateY(-2px); }
  body nav.tabbar a.navme { order: 3; margin-top: 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; }
  body nav.tabbar a.navme:hover { background: none; }
  body nav.tabbar a.navlast ~ a.navme, body nav.tabbar a.navme { margin-top: 16px; }
  body nav.tabbar:not(:has(.navlast)) a.navme { margin-top: auto; }
  body nav.tabbar .navav { border-radius: 50%; transform: rotate(-4deg); font-family: var(--r-display); }
  :root[data-theme="light"] body nav.tabbar { background: #f7f7f2; }
}
/* Inicio: cifras y ranking del último partido */
@media (min-width:1024px){
  body #webhome .wlstats { border-top: 3px solid var(--lime); }
  body #webhome .wlstats > div { padding: 18px 22px 16px; }
  body #webhome .wlstats b { display: block; margin-top: 6px; font-family: var(--r-display); font-weight: 800; font-size: 2.8rem; letter-spacing: -.06em; line-height: .9; }
  body #webhome .wlstats > div:first-child b { color: var(--lime); }
  body #webhome .wlstats b i { font-family: var(--r-hand); font-size: 1.3rem; letter-spacing: 0; color: var(--lime); margin-left: 2px; }
  body #webhome .wspark { padding: 22px; }
  body #webhome .wsvg { height: 190px !important; }
  body #webhome .wrank { padding: 22px; }
  body #webhome .wr1 { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 10px 0 8px; padding: 14px 16px;
    background: var(--lime); color: #111; border-radius: 14px; transform: rotate(-1deg); }
  body #webhome .wr1n { font-family: var(--r-display); font-weight: 800; font-size: 3rem; line-height: .8; letter-spacing: -.06em; }
  body #webhome .wr1nm { display: block; font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; letter-spacing: -.02em; }
  body #webhome .wr1 small { font-size: .78rem; font-weight: 700; opacity: .75; }
  body #webhome .wr1 small i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; border: 1.5px solid #111; }
  body #webhome .wr1 b { font-family: var(--r-display); font-weight: 800; font-size: 2rem; letter-spacing: -.05em; }
  body #webhome .wr1 b i { font-family: var(--r-hand); font-style: normal; font-size: 1.1rem; margin-left: 2px; }
  body #webhome .wrank li { grid-template-columns: 26px 1fr auto; row-gap: 6px; padding: 9px 0; }
  body #webhome .wrank .n { font-family: var(--r-hand); font-size: 1.2rem; color: var(--lime); transform: rotate(-6deg); }
  body #webhome .wrank .bar { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
  body #webhome .wrank .bar i { display: block; height: 100%; border-radius: 4px; }
}
@media (min-width:1024px){ body #webhome .wlstats b { white-space: nowrap; font-size: clamp(1.9rem, 2.6vw, 2.8rem); } }
@media (min-width:1024px){ body #webhome .wspark { display: flex; flex-direction: column; } body #webhome .wspark .wsvg { flex: 1; height: auto !important; min-height: 220px; } body #webhome .wleg { margin-top: 14px; } }
/* Inicio: gráfico de ritmo legible y ranking compacto */
@media (min-width:1024px){
  body #webhome .wsum { margin: 8px 0 14px; font-size: .95rem; color: var(--muted); }
  body #webhome .wsum b { font-family: var(--r-display); text-transform: uppercase; }
  body #webhome .wplot { position: relative; flex: 1; min-height: 200px; margin-left: 44px; }
  body #webhome .wplot .wsvg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0; margin: 0; overflow: visible; }
  body #webhome .wgl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed rgba(255,255,255,.08); }
  body #webhome .wgl em { position: absolute; right: calc(100% + 8px); top: -.6em; font-style: normal; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
  body #webhome .wend { position: absolute; right: -5px; width: 10px; height: 10px; margin-bottom: -5px; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); }
  body #webhome .wx { display: flex; justify-content: space-between; margin: 8px 0 0 44px; font-size: .72rem; color: var(--muted); }
  body #webhome .wrank li { padding: 8px 0; row-gap: 5px; }
  body #webhome .wr1 { padding: 12px 16px; margin-bottom: 4px; }
}
/* Tamaños más contenidos en el Inicio */
@media (min-width:1024px){
  body #webhome .wtop h1 { font-size: 3.6rem; }
  body #webhome .wk b { font-size: 2.6rem; }
  body #webhome .wk:last-child b { font-size: 1.8rem; padding-top: 10px; }
  body #webhome .wltx h2 { font-size: 2rem; }
  body #webhome .wlstats b { font-size: clamp(1.6rem, 2vw, 2.1rem); }
  body #webhome .wr1n { font-size: 2.3rem; }
  body #webhome .wr1nm { font-size: 1rem; }
  body #webhome .wr1 b { font-size: 1.6rem; }
  body #webhome .wcard h3, body #webhome .wtip h3 { font-size: 1.05rem; }
  body nav.tabbar a:not(.plus):not(.navme):not(.navlast) { font-size: 1rem; }
  body nav.tabbar a.on:not(.plus) { font-size: 1.15rem; }
  body nav.tabbar::before { font-size: 2.1rem; }
}
/* Inicio: columna derecha (acciones y consejo) */
@media (min-width:1024px){
  body #webhome .wquick { padding: 20px 20px 10px; counter-reset: q; }
  body #webhome .wquick h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 4px;
    border-bottom: 2px solid var(--lime); font-family: var(--r-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
  body #webhome .whnd { font-family: var(--r-hand); font-size: 1.05rem; color: var(--lime); text-transform: none; letter-spacing: 0; transform: rotate(-3deg); }
  body #webhome .wq { counter-increment: q; grid-template-columns: 30px 1fr 22px; margin: 0; width: 100%; padding: 14px 4px; border-radius: 0;
    border-bottom: 1px solid var(--line); }
  body #webhome .wq:last-child { border-bottom: 0; }
  body #webhome .wq:hover { background: none; }
  body #webhome .wq .wqi { display: none; }
  body #webhome .wq::before { content: counter(q, decimal-leading-zero); font-family: var(--r-hand); font-size: 1.3rem; color: var(--lime); transform: rotate(-6deg); }
  body #webhome .wq b { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: .98rem; letter-spacing: -.02em; transition: color .15s; }
  body #webhome .wq small { display: block; margin-top: 2px; line-height: 1.35; }
  body #webhome .wq > svg { width: 20px; height: 20px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--card-2, #222); transition: background .15s, color .15s; }
  body #webhome .wq:hover b { color: var(--lime); }
  body #webhome .wq:hover > svg { background: var(--lime); color: #111; }
  /* Consejo: la foto llena la tarjeta y el texto va encima */
  body #webhome .wtip { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; overflow: hidden;
    text-decoration: none; color: var(--text); background: #0d0d0d; }
  body #webhome .wtip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 20%; transition: transform .4s; }
  body #webhome .wtip:hover img { transform: scale(1.04); }
  body #webhome .wtip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 15%, rgba(10,10,10,.85) 50%, #0d0d0d 75%); }
  body #webhome .wtipx { position: relative; z-index: 1; padding: 20px; }
  body #webhome .wtipx h3 { margin: 10px 0 12px; font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: .95; letter-spacing: -.04em; }
  body #webhome .wtipx ol { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: t; }
  body #webhome .wtipx li { counter-increment: t; display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: .86rem; color: #cfcfca; border-top: 1px solid rgba(255,255,255,.08); }
  body #webhome .wtipx li::before { content: counter(t); font-family: var(--r-display); font-weight: 800; color: var(--lime); }
  body #webhome .wtipx li b { color: #fff; }
  body #webhome .wtgo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .86rem; color: var(--lime); }
  body #webhome .wtgo svg { width: 16px; height: 16px; }
}
@media (min-width:1024px){ body #webhome .wtipx li { display: block; } body #webhome .wtipx li::before { display: inline-block; width: 18px; } }
/* ---------- Plantel (computador): portada corta + panel lateral + álbum ---------- */
@media (min-width:1024px){
  body .sqwrap { max-width: 1240px; margin: 0 auto; padding: 24px 36px 56px; }
  body .sqwrap > .sqhero { height: 330px; min-height: 0; margin-bottom: 26px; border-radius: 28px; overflow: hidden;
    background: radial-gradient(circle at 78% 40%, rgba(212,245,60,.10), transparent 55%), #121212; }
  body .sqwrap > .sqhero .photo { object-fit: contain; object-position: right bottom; }
  body .sqwrap > main > .titlerow { top: 92px; left: 44px; width: 46%; }
  body .sqwrap > main > .titlerow::before { content: "Tu equipo · temporada 2026"; display: block; margin-bottom: 10px;
    font-family: inherit; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
  body .sqwrap .sqtitle { font-size: 4.2rem; }
  body .sqwrap > main > .sqsub { top: 205px; left: 44px; width: 40%; font-size: .98rem; }
  body .sqwrap .titlerow .scribble { top: auto; bottom: -150px; left: 0; right: auto; }
  body .sqwrap > .sqhero .blob { right: 26px; bottom: 22px; }

  body .sqwrap > main.player { display: grid; grid-template-columns: 270px minmax(0, 1fr); column-gap: 34px; align-items: start; max-width: none; padding: 0; }
  body .sqwrap > main > .people, body .sqwrap > main > .sqstats, body .sqwrap > main > .savebar { grid-column: 1; }
  body .sqwrap > main > .listhead, body .sqwrap > main > #squad { grid-column: 2; }
  body .sqwrap > main > .people { grid-row: 1; margin: 0 0 14px; }
  body .sqwrap > main > .sqstats { grid-row: 2; }
  body .sqwrap > main > .savebar { grid-row: 3; margin-top: 18px; }
  body .sqwrap > main > .listhead { grid-row: 1; margin: 0 0 14px; align-self: end; }
  body .sqwrap > main > #squad { grid-row: 2 / span 3; }

  /* Cifras en columna, como ficha técnica */
  body .sqwrap .sqstats { display: block; position: sticky; top: 24px; margin: 0; padding: 0; border-top: 3px solid var(--lime); }
  body .sqwrap .sqstats > div { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 !important; border-left: 0 !important;
    border-bottom: 1px solid var(--line); }
  body .sqwrap .sqstats b { font-size: 2.6rem; order: 2; line-height: .9; }
  body .sqwrap .sqstats > div:first-child b { color: var(--lime); }
  body .sqwrap .sqstats span { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  body .sqwrap .listhead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--lime); }
  body .sqwrap .listhead h2 { font-size: 1.4rem; }
  body .sqwrap #squad { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; padding-top: 6px; }

  /* Plantel vacío: una invitación grande en vez de una lámina sola */
  body .sqwrap #squad:has(> .card9.add:only-child) { grid-template-columns: 1fr; }
  body .sqwrap #squad > .card9.add:only-child { aspect-ratio: auto; min-height: 260px; flex-direction: row; gap: 22px; justify-content: center;
    font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1;
    border: 2px dashed rgba(212,245,60,.45); border-radius: 26px; background: radial-gradient(circle at 20% 50%, rgba(212,245,60,.08), transparent 60%) !important; }
  body .sqwrap #squad > .card9.add:only-child i { width: 74px; height: 74px; background: var(--lime); font-size: 2rem; }
  body .sqwrap #squad > .card9.add:only-child:hover { border-color: var(--lime); transform: translateY(-2px) !important; }
  body .sqwrap .savebar .primary { width: 100%; }
}
/* ---------- Grabar (computador): portada corta, 3 reglas y QR protagonista ---------- */
@media (min-width:1024px){
  body #setupwrap { max-width: 1240px; margin: 0 auto; padding: 24px 36px 56px; }
  body #setupwrap > .phead .top .roundbtn { display: none; }
  body #setupwrap > .phead { height: 330px; min-height: 0; margin-bottom: 30px; border-radius: 28px; overflow: hidden;
    background: radial-gradient(circle at 78% 40%, rgba(212,245,60,.10), transparent 55%), #121212; }
  body #setupwrap > .phead .photo { object-fit: contain; object-position: right bottom; }
  body #setupwrap > main > .titlerow { top: 82px; left: 44px; width: 50%; }
  body #setupwrap > main > .titlerow::before { content: "Guía · antes del partido"; display: block; margin-bottom: 10px; font-size: .74rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
  body #setupwrap .bigt { font-size: 4rem; margin: 0; }
  body #setupwrap .bigt em { display: inline; }
  body #setupwrap > main > .lead { top: 200px; left: 44px; width: 40%; font-size: .98rem; }
  body #setupwrap .titlerow .scribble { top: auto; bottom: -165px; left: auto; right: -20%; }
  body #setupwrap > .phead .blob { right: 26px; bottom: 22px; }
  body #setupwrap > main#setup { max-width: none; padding: 0; display: flex; flex-direction: column; }

  /* 3 reglas: columnas de revista, sin tarjetas de colores */
  body #setupwrap .tipcards { order: 2; gap: 0; margin-top: 34px; border-top: 3px solid var(--lime); counter-reset: none; }
  body #setupwrap .tipcards::before { content: "Las 3 reglas de oro"; grid-column: 1 / -1; padding: 14px 0 4px; font-family: var(--r-display); font-weight: 800;
    text-transform: uppercase; font-size: 1.4rem; letter-spacing: -.03em; }
  body #setupwrap .tipcards > div { background: none !important; color: var(--text) !important; border-radius: 0; box-shadow: none; transform: none !important;
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 24px 8px; border-left: 1px solid var(--line); }
  body #setupwrap .tipcards > div:nth-child(1) { padding-left: 0; border-left: 0; }
  body #setupwrap .tipcards .tipart { order: 2; width: 120px; height: 80px; stroke: var(--text); opacity: .85; }
  body #setupwrap .tipcards .tipart .fill { fill: var(--lime); }
  body #setupwrap .tipcards > div > div { order: 1; display: flex; gap: 14px; align-items: baseline; }
  body #setupwrap .tipcards > div > div b { width: auto; height: auto; background: none; color: var(--lime); font-family: var(--r-display); font-weight: 800;
    font-size: 3rem; line-height: .8; letter-spacing: -.06em; }
  body #setupwrap .tipcards p { color: #cfcfca; font-size: .95rem; line-height: 1.45; margin: 0; }
  body #setupwrap .tipcards p strong { color: #fff; }
  body #setupwrap .tipcards .hand { position: static; order: 3; background: none; color: var(--lime); padding: 0; font-size: 1.2rem; box-shadow: none; transform: rotate(-4deg); }

  /* Graba con tu celular: el QR como protagonista */
  body #setupwrap .webrec { order: 1; margin: 0; padding: 30px; border: 0; border-radius: 28px; grid-template-columns: 260px minmax(0, 1fr); gap: 40px;
    align-items: center; background: linear-gradient(120deg, rgba(212,245,60,.10), transparent 45%), var(--card); }
  body #setupwrap .wrqr { transform: rotate(-3deg); border-radius: 22px; box-shadow: 10px 12px 0 var(--lime); }
  body #setupwrap .wrtx h2 { font-size: 2.2rem; line-height: .95; letter-spacing: -.05em; margin-bottom: 10px; }
  body #setupwrap .wrtx h2::before { display: none; }
  body #setupwrap .wrtx .hint { font-size: .95rem; max-width: 560px; }
  body #setupwrap .wrtx h3 { font-family: var(--r-hand); font-size: 1.35rem; color: var(--lime); font-weight: 700; transform: rotate(-2deg); display: inline-block; }
  body #setupwrap .wrlist { gap: 0 24px; }
  body #setupwrap .wrlist li { background: none; border-radius: 0; padding: 10px 0; border-top: 1px solid var(--line); }
}
@media (min-width:1024px){ body #setupwrap > .phead { width: 100%; max-width: none; margin-left: 0; margin-right: 0; } body #setupwrap > main > .titlerow { top: 96px; } body #setupwrap > main > .lead { top: 210px; } }
@media (min-width:1024px){ body #setupwrap .titlerow .scribble { display: none; } }
@media (min-width:1024px){ body #setupwrap .wrqr { transform: none; } }
/* ---------- Perfil (computador): portada de carné + índice de ajustes ---------- */
@media (min-width:1024px){
  body .pfwrap { max-width: 1240px; margin: 0 auto; padding: 24px 36px 56px; }
  body .pfwrap .idcard { position: relative; min-height: 250px; padding: 40px 44px !important; border-radius: 28px !important; overflow: hidden;
    background: radial-gradient(circle at 85% 30%, rgba(212,245,60,.16), transparent 50%), #141414 !important; color: var(--text) !important;
    border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: end; }
  body .pfwrap .idcard::before { content: "Ficha del entrenador"; position: absolute; top: 34px; left: 44px; font-size: .74rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
  body .pfwrap .idcard .stroke { position: absolute; right: -20px; top: -10px; width: 420px; height: 280px; opacity: .9; }
  body .pfwrap .idcard .stroke path { fill: var(--lime) !important; }
  body .pfwrap .idcard .row1 { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
  body .pfwrap .idcard .avatar { width: 128px !important; height: 128px !important; border-radius: 50% !important; background: var(--lime) !important;
    color: #111 !important; font-family: var(--r-display); font-size: 3rem !important; transform: rotate(-4deg); box-shadow: 8px 8px 0 #000; }
  body .pfwrap #pfname { font-size: 4.2rem; color: var(--text) !important; }
  body .pfwrap .idcard .club { color: var(--muted) !important; font-size: 1rem; margin-top: 8px; }
  body .pfwrap .idcard .tags { position: relative; z-index: 1; grid-column: 1; margin-top: 18px; }
  body .pfwrap .idcard .tags > * { background: var(--lime) !important; color: #111 !important; }
  body .pfwrap .idcard .hand { position: absolute; right: 40px; bottom: 30px; color: #111 !important; font-size: 1.5rem; z-index: 1; transform: rotate(-6deg); }
  body .pfwrap .idcard .edit { z-index: 2; top: 28px; right: 28px; width: 46px; height: 46px; background: #111 !important; color: var(--lime) !important; }

  /* Secciones como índice: filas con líneas, sin cajas */
  body .pfwrap > main { column-gap: 56px; }
  body .pfwrap > main .menu { background: none !important; border-radius: 0; gap: 0; display: block; }
  body .pfwrap > main .menu > a, body .pfwrap > main .menu > button, body .pfwrap > main .menu > .accrow {
    background: none !important; border-radius: 0 !important; padding: 14px 4px !important; margin: 0 !important; width: 100%;
    border-bottom: 1px solid var(--line) !important; }
  body .pfwrap > main .menu > :first-child { border-top: 2px solid var(--lime) !important; }
  body .pfwrap > main .menu i { width: 40px !important; height: 40px !important; border-radius: 50% !important; }
  body .pfwrap > main .menu .ml { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 1rem; transition: color .15s; }
  body .pfwrap > main .menu .ml small { font-family: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; }
  body .pfwrap > main .menu > a:hover .ml, body .pfwrap > main .menu > button:hover .ml { color: var(--lime); }
  body .pfwrap > main .menu .chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2, #222); transition: background .15s, color .15s; }
  body .pfwrap > main .menu > a:hover .chev, body .pfwrap > main .menu > button:hover .chev { background: var(--lime); color: #111; }
  body .pfwrap > main h2.sect { margin: 30px 0 12px; }
  body .pfwrap #delacc .ml { color: #ff8a73; }
}
@media (min-width:1024px){
  body .pfwrap > header { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; max-width: none !important; }
  body .pfwrap .idcard { margin: 0 !important; }
  body .pfwrap .idcard .stroke { display: none; }
  body .pfwrap .idcard .hand { color: var(--lime) !important; }
  body .pfwrap .idcard::after { content: ""; position: absolute; right: -60px; top: -40px; width: 380px; height: 380px; border-radius: 50%;
    border: 40px solid rgba(212,245,60,.10); }
  body .pfwrap > main .menu > a, body .pfwrap > main .menu > button { background-color: transparent !important; box-shadow: none !important; }
  body .pfwrap > main .menu > a:hover, body .pfwrap > main .menu > button:hover { background-color: rgba(255,255,255,.03) !important; }
}
@media (min-width:1024px){ body .pfwrap > main { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; } body .pfwrap > main .menu, body .pfwrap > main .menu * { background-color: transparent; } body .pfwrap > main .menu i { background-color: revert-layer; } }
@media (min-width:1024px){ body .pfwrap > main .menu i { background: rgba(212,245,60,.12) !important; color: var(--lime) !important; } body .pfwrap > main .menu i svg { color: var(--lime); } body .pfwrap > main .menu > *::before, body .pfwrap > main .menu > *::after { display: none !important; } }
/* ---------- Perfil v2: carné fijo a la izquierda + ajustes a la derecha ---------- */
@media (min-width:1024px){
  body .pfwrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0 44px; align-items: start; }
  body .pfwrap > header { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 24px; }
  body .pfwrap > header > .top { position: absolute; right: 16px; top: 16px; z-index: 3; padding: 0 !important; }
  body .pfwrap > header > .top .brand { display: none; }
  body .pfwrap > main { grid-column: 2; column-count: 1 !important; }
  body .pfwrap .idcard { display: flex !important; flex-direction: column; align-items: center; text-align: center; min-height: 0;
    padding: 56px 28px 30px !important; background: linear-gradient(180deg, rgba(212,245,60,.14), transparent 55%), #141414 !important; }
  body .pfwrap .idcard::before { left: 0; right: 0; top: 24px; text-align: center; }
  body .pfwrap .idcard::after { display: none; }
  body .pfwrap .idcard .row1 { flex-direction: column; gap: 18px; margin-top: 14px; }
  body .pfwrap .idcard .avatar { width: 140px !important; height: 140px !important; font-size: 2.6rem !important; box-shadow: 0 0 0 6px #141414, 0 0 0 8px var(--lime); transform: none; }
  body .pfwrap #pfname { font-size: 2.4rem; line-height: .95; }
  body .pfwrap .idcard .club { margin-top: 6px; }
  body .pfwrap .idcard .tags { justify-content: center; display: flex; flex-wrap: wrap; gap: 6px; }
  body .pfwrap .idcard .hand { position: static; margin-top: 16px; font-size: 1.35rem; }
  body .pfwrap .idcard .edit { position: static !important; order: 9; width: 100% !important; height: 46px !important; margin-top: 20px; border-radius: 12px !important;
    background: var(--lime) !important; color: #111 !important; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
  body .pfwrap .idcard .edit::after { content: "Editar perfil"; font-size: .92rem; }
  body .pfwrap .idcard .edit svg { width: 18px; height: 18px; }
  /* Cifras arriba del índice */
  body .pfwrap .pfstats { margin-top: 0 !important; border-top-width: 3px !important; }
  body .pfwrap .pfstats div b { font-size: 2.8rem; }
  body .pfwrap .pfstats div span { font-size: .74rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  /* Índice en 2 columnas ordenadas por filas */
  body .pfwrap > main { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-content: start; }
  body .pfwrap > main > .pfstats, body .pfwrap > main > p, body .pfwrap > main > footer { grid-column: 1 / -1; }
  body .pfwrap > main h2.sect { margin: 30px 0 10px; }
}
@media (min-width:1024px){ body .pfwrap > main { display: block; } }
@media (min-width:1024px){ body .pfwrap > header > .top { display: none; } body .pfwrap #account .menu:has(> .accrow[hidden]) > #logout { border-top: 2px solid var(--lime) !important; } }
/* ---------- Partido v2: cabecera tipo marcador, letras contenidas ---------- */
@media (min-width:1024px){
  body:has(#dashboard) .top > a.iconbtn, body:has(#dashboard) .top > .brand { visibility: hidden; }
  #dashboard .rcover { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; gap: 0;
    padding: 0; border-radius: 24px; overflow: hidden; background: #121212; border: 1px solid var(--line); }
  #dashboard .rcover .rcimg { left: 30%; width: 70%; opacity: .35; mask-image: linear-gradient(90deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); }
  #dashboard .rcover .rbrush, #dashboard .rcover > .rhand { display: none; }
  #dashboard .rctx { position: relative; display: contents; }
  #dashboard .rctx > .rkick, #dashboard .rctx > h1 { grid-column: 1; position: relative; z-index: 1; margin-left: 32px; }
  #dashboard .rctx > .rkick { margin-top: 30px; }
  #dashboard .rctx > h1 { font-size: 2.3rem !important; line-height: 1 !important; letter-spacing: -.04em; margin: 10px 32px 30px; max-width: 640px; }
  /* Marcador de posesión a la derecha */
  #dashboard .rscore { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; margin: 0; border-radius: 0; border: 0; border-left: 1px solid var(--line);
    background: rgba(10,10,10,.75); backdrop-filter: blur(6px); display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto auto;
    align-content: center; justify-items: center; gap: 4px 10px; padding: 24px; }
  #dashboard .rscore > em { grid-column: 1 / -1; grid-row: 1; font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
  #dashboard .rscore > span:first-of-type { grid-column: 1; grid-row: 3; }
  #dashboard .rscore > span:last-of-type { grid-column: 3; grid-row: 3; }
  #dashboard .rscore > b:first-of-type { grid-column: 1; grid-row: 2; }
  #dashboard .rscore > b:last-of-type { grid-column: 3; grid-row: 2; }
  #dashboard .rscore > b { font-family: var(--r-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.06em; line-height: 1; }
  #dashboard .rscore > b small { font-size: .45em; color: var(--muted); }
  #dashboard .rscore > span { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
  #dashboard .rscore::after { content: "–"; grid-column: 2; grid-row: 2; font-size: 1.6rem; color: var(--muted); }
  #dashboard .rpbar { grid-column: 1 / -1; grid-row: 4; display: flex; gap: 3px; width: 100%; height: 8px; margin-top: 10px; }
  #dashboard .rpbar i { display: block; height: 100%; border-radius: 4px; }
  /* Tres cifras: más chicas, con su etiqueta arriba */
  #dashboard .rbig { margin: 18px 0; }
  #dashboard .rbig > div { padding: 16px 22px 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
  #dashboard .rbig > div:first-child { padding-left: 0; }
  #dashboard .rbig b { font-size: 2.4rem !important; line-height: 1 !important; }
  #dashboard .rbig b small { font-size: .42em !important; }
  #dashboard .rbig span { font-size: .74rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  /* La figura: tarjeta compacta horizontal */
  #dashboard .rfig { min-height: 0; padding: 18px 22px; gap: 24px; align-items: center; }
  #dashboard .rfig .rfimg { width: 120px !important; height: 140px !important; flex: none; }
  #dashboard .rfig h2 { font-size: 1.8rem !important; line-height: 1 !important; margin: 4px 0 2px; }
  #dashboard .rfig .rfst b { font-size: 1.6rem !important; }
  #dashboard .rfig .rhand.r2 { font-size: 1.15rem; top: 14px; right: 20px; }
  body:has(#dashboard) .jobtabs .segs button { padding: 8px 18px; font-size: .88rem; }
}
@media (min-width:1024px){
  body:has(#dashboard) .topline > a.iconbtn, body:has(#dashboard) .topline > .brand { visibility: hidden; }
  #dashboard .rcover::after { background: linear-gradient(90deg, #121212 35%, rgba(18,18,18,.4)); }
  #dashboard .rctx > .rkick, #dashboard .rctx > h1, #dashboard .rscore { z-index: 3; }
  #dashboard .rfig { grid-template-columns: 120px 1fr; }
  #dashboard .rfig .rfnum { font-size: 3rem !important; }
}
/* ---------- Ficha del jugador v2: cabecera de cromo + 3 tarjetas en fila ---------- */
@media (min-width:1024px){
  body:has(#kpis) .albumwrap { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; max-width: 1240px; margin: 0 auto; padding: 24px 36px 56px; }
  body:has(#kpis) main.player { display: contents; }
  body:has(#kpis) .phead { grid-column: 1; grid-row: 1 / span 3; position: relative; top: 0; align-self: stretch; }
  body:has(#kpis) .phead .top { display: none; }
  body:has(#kpis) .phead .photo { width: 100%; height: 100%; max-height: 300px; aspect-ratio: auto !important; object-fit: cover !important; border-radius: 22px;
    transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--lime); }
  body:has(#kpis) .phead .blob { right: -12px; bottom: -6px; transform: scale(.8) rotate(6deg); }
  body:has(#kpis) .titlerow { grid-column: 2 / 4; grid-row: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
  body:has(#kpis) .titlerow::before { content: "Ficha del jugador"; position: absolute; margin-top: -24px; font-size: .74rem; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--lime); }
  body:has(#kpis) .titlerow { position: relative; padding-top: 24px; }
  body:has(#kpis) .bigt { font-size: 3rem !important; line-height: .95; }
  body:has(#kpis) .titlerow .scribble { position: static; transform: rotate(-4deg); font-size: 1.15rem; }
  body:has(#kpis) #ptags { grid-column: 2 / 4; grid-row: 2; margin: 10px 0 14px !important; }
  body:has(#kpis) #photo { display: none !important; }
  body:has(#kpis) .kpis { grid-column: 2 / 4; grid-row: 3; align-self: end; margin: 0 !important; }
  body:has(#kpis) .kpis .kpi b, body:has(#kpis) .kpis .kpi.big b { font-size: 2.3rem !important; }
  body:has(#kpis) .kpis .approxnote { margin-top: 8px; }
  /* Tarjetas: tres en fila, mismo alto */
  body:has(#kpis) main.player > section.card { grid-row: 4; margin: 30px 0 0 !important; padding: 22px; border-radius: 20px; }
  body:has(#kpis) main.player > section.card:nth-of-type(2) { grid-column: 1; }
  body:has(#kpis) main.player > section.card:nth-of-type(3) { grid-column: 2; }
  body:has(#kpis) main.player > section.card:nth-of-type(4) { grid-column: 3; }
  body:has(#kpis) main.player > section.card h2 { font-size: 1.1rem !important; }
  body:has(#kpis) .pitchwrap { border-radius: 14px; }
  /* Más cifras: franja horizontal al final */
  body:has(#kpis) main.player > section.card.more { grid-column: 1 / -1; grid-row: 5; margin-top: 18px !important; padding: 0; background: none; border: 0;
    border-top: 3px solid var(--lime); border-radius: 0; }
  body:has(#kpis) .morestats { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 0 !important; }
  body:has(#kpis) .morestats > * { padding: 16px 18px 6px; border-left: 1px solid var(--line); background: none !important; }
  body:has(#kpis) .morestats > :first-child { border-left: 0; padding-left: 0; }
  body:has(#kpis) .morestats b { font-family: var(--r-display); font-size: 1.6rem; letter-spacing: -.04em; }
  body:has(#kpis) #foot { grid-column: 1 / -1; grid-row: 6; margin-top: 22px; }
}
@media (min-width:1024px){ body:has(#kpis) .titlerow::before { display: none; } body:has(#kpis) .titlerow { padding-top: 6px; } body:has(#kpis) main.player > section.card { align-self: stretch; height: auto !important; } }
@media (min-width:1024px){ html, body { overflow-x: hidden; } }

/* ---------- «Ayúdanos a corregir» y «¿Quién es quién?»: mesa de trabajo de revista ---------- */
@media (min-width: 1024px) {
  body.dash-on main:has(#results) > #doubtcard, body.dash-on main:has(#results) > #rostercard,
  body.dash-on main > #doubtcard, body.dash-on main > #rostercard { grid-column: 1 / -1; position: relative; overflow: hidden;
    padding: 30px 36px 28px; border-radius: 28px; margin-top: 18px; }
  body.dash-on .qcard::after { position: absolute; right: -10px; top: -34px; font-family: var(--r-display); font-weight: 800;
    font-size: 11rem; line-height: 1; letter-spacing: -.08em; color: rgba(212,245,60,.05); pointer-events: none; }
  body.dash-on #doubtcard::after { content: "¿?"; }
  body.dash-on #rostercard::after { content: "#"; }
  body.dash-on .qcard .qhead { position: relative; z-index: 1; }
  body.dash-on .qcard .qcount { font-family: var(--r-hand); font-size: 1.7rem; color: var(--lime); transform: rotate(-4deg); }
  body.dash-on .qcard .qbar { height: 3px; margin: 6px 0 18px; max-width: 340px; }
  body.dash-on .qcard > h2 { font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 2.3rem;
    line-height: .92; letter-spacing: -.045em; margin: 0 0 6px; }
  body.dash-on .qcard > .hint { max-width: 620px; margin-bottom: 22px; }
  body.dash-on .qask { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
  body.dash-on .qnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
  body.dash-on .qnav .chip { width: auto; }

  /* Ayúdanos a corregir: «se perdió aquí» → «¿volvió aquí?» como fotos sobre la mesa */
  body.dash-on #doubts { display: grid; grid-template-columns: 250px 70px minmax(0, 1fr); align-items: start; }
  body.dash-on #doubts > .qref { grid-column: 1; grid-row: 1 / span 3; margin: 0; position: relative; }
  body.dash-on #doubts > .qref::before { content: "se perdió aquí"; position: absolute; z-index: 2; left: -6px; top: -16px;
    font-family: var(--r-hand); font-size: 1.6rem; color: var(--lime); transform: rotate(-6deg); text-shadow: 0 2px 8px #000; }
  body.dash-on #doubts > .qref::after { content: "→"; position: absolute; right: -58px; top: 90px; font-family: var(--r-display);
    font-weight: 800; font-size: 2.8rem; color: var(--lime); }
  body.dash-on #doubts > .qref img { width: 100%; aspect-ratio: 1; object-fit: cover; transform: rotate(-2.5deg);
    box-shadow: 10px 12px 0 var(--lime), 0 20px 40px rgba(0,0,0,.5); border: 0; }
  body.dash-on #doubts > .qref span { display: block; margin-top: 20px; text-align: left; }
  body.dash-on #doubts > :not(.qref) { grid-column: 3; }
  body.dash-on #doubts > .qnav, body.dash-on #doubts > .qdone { grid-column: 1 / -1; }
  body.dash-on #doubts .qopts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 210px)); gap: 22px; }
  body.dash-on #doubts .qopt { padding: 10px 10px 4px; background: #f4f1e8; border: 0; border-radius: 6px; color: #111;
    box-shadow: 0 14px 30px rgba(0,0,0,.45); transition: transform .2s; }
  body.dash-on #doubts .qopt:nth-child(odd) { transform: rotate(1.6deg); }
  body.dash-on #doubts .qopt:nth-child(even) { transform: rotate(-1.4deg); }
  body.dash-on #doubts .qopt:hover, body.dash-on #doubts .qopt.on { transform: rotate(0) translateY(-6px); box-shadow: 0 0 0 4px var(--lime), 0 18px 34px rgba(0,0,0,.5); }
  body.dash-on #doubts .qopt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
  body.dash-on #doubts .qopt span { display: block; padding: 6px 0 2px; font-family: var(--r-hand); font-size: 1.5rem; font-weight: 700; color: #111; }
  body.dash-on #doubts .qopt span::after { content: "?"; }
  body.dash-on #doubts .qopt span::before { content: "¿"; }

  /* ¿Quién es quién?: explicación a la izquierda, lámina al centro y dorsal gigante a la derecha */
  body.dash-on #rostercard { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 44px; }
  body.dash-on #rostercard > * { grid-column: 1 / -1; }
  body.dash-on #rostercard > .qwhy { grid-column: 1; grid-row: 4 / span 3; align-self: start; margin: 0; padding: 0 0 0 18px;
    background: none; border: 0; border-left: 2px solid var(--lime); border-radius: 0; }
  body.dash-on #rostercard > .qwhy p { font-size: .88rem; }
  body.dash-on #rostercard > .qwhy p + p { margin-top: 14px; }
  body.dash-on #rostercard > .qwhy b:first-child { display: block; margin-bottom: 2px; font-family: var(--r-display); text-transform: uppercase;
    font-size: .95rem; letter-spacing: -.01em; color: var(--lime); }
  body.dash-on #rostercard > h2 { margin-bottom: 22px; }
  body.dash-on #rostercard > #roster, body.dash-on #rostercard > .actions, body.dash-on #rostercard > #rmsg { grid-column: 2; }
  body.dash-on #rostercard #roster { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 6px 40px; align-items: start; }
  body.dash-on #rostercard #roster > .qref { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
  body.dash-on #rostercard #roster > .qref img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid #f4f1e8;
    border-radius: 8px; transform: rotate(-2deg); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  body.dash-on #rostercard #roster > .qref span { display: block; margin-top: 14px; text-align: left; }
  body.dash-on #rostercard #roster > :not(.qref) { grid-column: 2; }
  body.dash-on #rostercard #roster > .qdone { grid-column: 1 / -1; }
  body.dash-on #rostercard .qnewrow { display: grid; grid-template-columns: 130px minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 16px; }
  body.dash-on #rostercard .qnewrow #rnum { grid-row: 1 / span 2; width: 100%; height: 130px; font-family: var(--r-display); font-size: 4.2rem;
    letter-spacing: -.06em; color: var(--lime); background: rgba(212,245,60,.06); border: 2px dashed rgba(212,245,60,.5); border-radius: 18px; }
  body.dash-on #rostercard .qnewrow #rnum::-webkit-inner-spin-button { display: none; }
  body.dash-on #rostercard .qnewrow #rname { height: 56px; font-size: 1rem; }
  body.dash-on #rostercard .qnewrow #rok { height: 58px; font-size: 1rem; justify-content: center; }
}

/* ---------- Aviso «cámara se movió»: nota de editor ---------- */
@media (min-width: 1024px) {
  body #dashboard .dalert { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; gap: 0 34px; align-items: center;
    padding: 26px 30px 22px; margin-top: 10px; border: 0; border-left: 6px solid #ff6b4f; border-radius: 6px 22px 22px 6px;
    background: repeating-linear-gradient(135deg, rgba(255,107,79,.07) 0 12px, transparent 12px 24px), #1c1715; }
  body #dashboard .dalert .dahand { position: absolute; top: -16px; left: 18px; font-family: var(--r-hand); font-style: normal; font-size: 1.7rem;
    font-weight: 700; color: #ff8a73; background: var(--bg, #0e0e0e); padding: 0 10px; transform: rotate(-3deg); }
  body #dashboard .dalert .datx b { display: block; font-family: var(--r-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem;
    letter-spacing: -.04em; line-height: 1; color: var(--text); white-space: normal; margin-bottom: 6px; }
  body #dashboard .dalert .datx span { color: var(--muted); font-size: .9rem; }
  body #dashboard .dalert .dacol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-left: 26px; border-left: 1px solid var(--line); max-width: 300px; }
  body #dashboard .dalert .dacol em { flex-basis: 100%; font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
  body #dashboard .dalert .dano em { color: #ff8a73; }
  body #dashboard .dalert .dasi em { color: var(--lime); }
  body #dashboard .dalert .dacol s, body #dashboard .dalert .dacol u { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
  body #dashboard .dalert .dano s { color: #ff8a73; background: rgba(255,107,79,.12); text-decoration: line-through 2px; }
  body #dashboard .dalert .dasi u { color: #111; background: var(--lime); }
}
