/**
 * smgr/css/pages/j340.css — estilos de '34-0' portados al chrome 'Foco'.
 * NOTA: '.j-toast' se crea por JS y se anexa a document.body (fuera de .game-scope),
 * por eso se deja SIN scope. El resto va prefijado con .game-scope.
 */
:root {
        --j-navy:#1e3a5f; --j-navy2:#2c5282; --j-orange:#ed8936; --j-green:#22c55e;
        --j-red:#ef4444; --j-gold:#facc15; --j-bg:#f0f4f9; --j-surface:#fff;
        --j-border:#e2e8f0; --j-muted:#64748b; --j-ink:#0f172a; --j-court:#101826;
    }

/* ===== Reset de aislamiento (contrarresta rincon.css dentro del juego) ===== */
.game-scope img { max-width: none; }
.game-scope button { font: inherit; }

    .game-scope { background: var(--j-bg); }
    
    .game-scope #j340-app { max-width: 1040px; margin: 22px auto 36px; padding: 0 14px; font-family: Roboto, sans-serif; }
    .game-scope .j-hidden { display:none !important; }

    /* ---------- lockup ---------- */
    .game-scope .j-lockup { font-family:'Space Grotesk',system-ui,sans-serif; font-weight:700; letter-spacing:-0.03em;
        line-height:1; display:inline-flex; align-items:center; }
    .game-scope .j-lockup .j-34 { color:#fff; } .game-scope .j-lockup .j-dash { color:var(--j-orange); margin:0 .04em; } .game-scope .j-lockup .j-0 { color:var(--j-orange); }

    /* ---------- landing ---------- */
    .game-scope .j-card { background:var(--j-surface); border-radius:14px; box-shadow:0 4px 14px rgba(15,23,42,.06),0 1px 2px rgba(15,23,42,.04); overflow:hidden; }
    .game-scope .j-hero { background:linear-gradient(135deg,var(--j-navy) 0%,var(--j-navy2) 100%); color:#fff; padding:34px 28px 28px; text-align:center; position:relative; }
    .game-scope .j-hero::after { content:''; position:absolute; right:-60px; top:-60px; width:200px; height:200px; border-radius:50%;
        background:radial-gradient(circle,rgba(237,137,54,.22) 0%,transparent 70%); pointer-events:none; }
    .game-scope .j-hero .j-lockup { font-size:clamp(44px,9vw,68px); margin-bottom:8px; }
    .game-scope .j-hero-badge { display:block; margin:0 auto 12px; height:128px; width:auto; position:relative;
        filter:drop-shadow(0 6px 14px rgba(0,0,0,.28)); }
    .game-scope .j-hero .subtitle { color:rgba(255,255,255,.82); font-size:15px; max-width:540px; margin:0 auto; }
    .game-scope .j-landing-body { padding:22px 26px 28px; }
    .game-scope .j-challenge-badge { display:inline-block; background:var(--j-orange); color:#fff; font-weight:700; font-size:12px;
        letter-spacing:1px; padding:4px 12px; border-radius:20px; margin-bottom:10px; }
    .game-scope .j-challenge-rec { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:34px; margin:4px 0; }
    .game-scope .j-challenge-pct { color:rgba(255,255,255,.85); font-size:14px; font-weight:600; margin:-2px 0 4px; }
    .game-scope .j-chal-team { background:#f8fafc; border:1px solid var(--j-border); border-radius:12px; padding:16px 18px; margin:0 0 20px; }
    .game-scope .j-chal-team h3 { margin:0 0 12px; font-size:14px; font-weight:700; color:var(--j-ink); }
    .game-scope .j-chal-team h3 span { font-weight:700; }
    .game-scope .j-chal-roster { display:flex; flex-direction:column; gap:7px; }
    .game-scope .j-chal-cta { margin:12px 0 0; font-size:13.5px; color:var(--j-muted); text-align:center; }
    /* keep the name column shrinkable so the stats never get pushed off-screen */
    .game-scope .j-chal-team .j-rrow > div:nth-child(2) { flex:1 1 auto; min-width:0; }
    .game-scope .j-chal-team .j-rrow .nm, .game-scope .j-chal-team .j-rrow .mt { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .game-scope .j-chal-team .j-rrow .rst { flex-shrink:0; }

    .game-scope .j-rules { display:flex; flex-wrap:wrap; gap:9px; justify-content:center; margin:2px 0 20px; }
    .game-scope .j-pill { display:inline-flex; align-items:center; gap:7px; padding:7px 13px; background:#f1f5f9; border:1px solid var(--j-border);
        border-radius:10px; font-size:13px; color:#334155; }
    .game-scope .j-pill i { color:var(--j-navy2); }

    .game-scope .j-guest { background:#f8fafc; border:1px solid var(--j-border); border-radius:10px; padding:12px 14px; margin:0 0 16px; text-align:left;
        display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
    .game-scope .j-guest label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--j-navy2); margin:0; }
    .game-scope .j-guest input { flex:1; min-width:160px; font-size:15px; padding:8px 12px; border:1px solid var(--j-border); border-radius:8px; background:#fff; outline:none; }
    .game-scope .j-guest.error input { border-color:var(--j-red); box-shadow:0 0 0 3px rgba(239,68,68,.18); }
    .game-scope .j-guest-hint { flex-basis:100%; font-size:12px; color:var(--j-muted); }
    .game-scope .j-guest.error .j-guest-hint { color:var(--j-red); }

    .game-scope .j-modes { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
    .game-scope .j-mode { background:#f8fafc; border:2px solid var(--j-border); border-radius:12px; padding:20px 18px; text-align:left;
        cursor:pointer; font-family:inherit; color:inherit; display:flex; flex-direction:column; gap:10px; transition:transform .12s,border-color .12s,box-shadow .12s,background .12s; }
    .game-scope .j-mode:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(30,58,95,.12); background:#fff; }
    .game-scope .j-mode.m-classic:hover { border-color:var(--j-navy2); } .game-scope .j-mode.m-memoria:hover { border-color:var(--j-orange); }
    .game-scope .j-mode-h { display:flex; align-items:center; gap:10px; font-weight:700; color:var(--j-ink); font-size:17px; }
    .game-scope .j-mode-h i { font-size:18px; width:30px; height:30px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; }
    .game-scope .m-classic .j-mode-h i { background:#dbeafe; color:var(--j-navy2); } .game-scope .m-memoria .j-mode-h i { background:#fed7aa; color:#c2410c; }
    .game-scope .j-mode-d { font-size:13.5px; color:#475569; line-height:1.45; }
    .game-scope .j-mode-pb { font-size:12.5px; color:#475569; padding:6px 10px; background:#fff; border-radius:6px; border:1px dashed #cbd5e1; }
    .game-scope .j-mode-pb strong { color:var(--j-navy2); } .game-scope .m-memoria .j-mode-pb strong { color:#c2410c; }
    .game-scope .j-mode-go { margin-top:auto; align-self:stretch; text-align:center; font-weight:700; font-size:14px; color:#fff;
        padding:10px 12px; border-radius:9px; background:linear-gradient(135deg,var(--j-navy2),var(--j-navy)); }
    .game-scope .m-memoria .j-mode-go { background:linear-gradient(135deg,var(--j-orange),#dd6b20); }
    .game-scope .j-mode-go i { margin-left:6px; }
    .game-scope .j-mode:hover .j-mode-go { filter:brightness(1.06); }

    /* ---------- reto del día (headline card) ---------- */
    .game-scope .j-daily { display:flex; align-items:center; gap:15px; background:linear-gradient(135deg,#fff7ed,#ffedd5); border:2px solid #fed7aa; border-radius:14px; padding:15px 18px; margin:0 0 16px; }
    .game-scope .j-daily .di { width:46px; height:46px; flex:0 0 46px; border-radius:11px; background:linear-gradient(135deg,var(--j-orange),#dd6b20); color:#fff; display:flex; align-items:center; justify-content:center; font-size:22px; }
    .game-scope .j-daily .dx { flex:1; min-width:0; }
    .game-scope .j-daily .dt { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:17px; color:var(--j-ink); display:flex; align-items:center; gap:8px; }
    .game-scope .j-daily .dtag { font-size:10px; font-weight:700; letter-spacing:.06em; background:var(--j-orange); color:#fff; padding:2px 8px; border-radius:999px; text-transform:uppercase; }
    .game-scope .j-daily .dsub { font-size:13px; color:#92400e; margin-top:3px; }
    .game-scope .j-daily .dgo { flex:0 0 auto; font-weight:700; font-size:14px; color:#fff; padding:11px 18px; border-radius:10px; border:none; cursor:pointer; background:linear-gradient(135deg,var(--j-orange),#dd6b20); }
    .game-scope .j-daily.done { background:#f1f5f9; border-color:#cbd5e1; }
    .game-scope .j-daily.done .di { background:#dcfce7; color:var(--j-green); }
    .game-scope .j-daily.done .dtag { background:var(--j-green); }
    .game-scope .j-daily.done .dsub { color:var(--j-muted); }
    .game-scope .j-daily.done .dgo { background:#e2e8f0; color:var(--j-navy); cursor:default; }
    .game-scope .j-round-ctx .ctx-role { color:var(--j-muted); font-weight:600; }
    @media(max-width:560px) { .game-scope .j-daily { flex-wrap:wrap; } .game-scope .j-daily .dgo { width:100%; } }

    /* ---------- draft ---------- */
    .game-scope .j-draft-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
    .game-scope .j-round { font-weight:700; font-size:18px; color:var(--j-ink); display:flex; align-items:center; gap:10px; }
    .game-scope .j-round .j-dot { display:inline-flex; gap:4px; }
    .game-scope .j-round .j-dot span { width:9px; height:9px; border-radius:50%; background:#cbd5e1; }
    .game-scope .j-round .j-dot span.on { background:var(--j-orange); } .game-scope .j-round .j-dot span.cur { background:var(--j-navy2); }
    .game-scope .j-round-ctx { display:inline-flex; align-items:center; gap:6px; margin-left:10px; padding:4px 10px; border-radius:20px;
        background:#fff; border:1px solid var(--j-border); font-size:14px; font-weight:600; color:var(--j-ink); }
    .game-scope .j-round-ctx img { height:20px; } .game-scope .j-round-ctx .ctx-era { color:#7c3aed; }
    .game-scope .j-skips { display:flex; gap:8px; align-items:center; }
    .game-scope .j-comodin { font-size:12.5px; font-weight:600; color:#7c3aed; display:inline-flex; align-items:center; gap:5px; padding:6px 10px; background:#f5f3ff; border:1px solid #e9d5ff; border-radius:8px; }
    .game-scope .j-comodin b { font-variant-numeric:tabular-nums; }
    .game-scope .j-skip { font-size:12.5px; font-weight:600; padding:6px 11px; border-radius:8px; border:1px solid var(--j-border);
        background:#fff; color:var(--j-navy2); cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
    .game-scope .j-skip:disabled { opacity:.4; cursor:not-allowed; }
    .game-scope .j-skip.era { color:#7c3aed; }

    .game-scope .j-draft-grid { display:grid; grid-template-columns:1fr 420px; gap:18px; align-items:start; }

    /* left panel: slot machine OR player list */
    .game-scope .j-panel { background:var(--j-surface); border-radius:14px; box-shadow:0 4px 14px rgba(15,23,42,.06); padding:18px; min-height:380px; }
    .game-scope .j-slot { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding:36px 10px; }
    .game-scope .j-reels { display:flex; gap:16px; }
    .game-scope .j-reel { width:150px; border-radius:12px; border:3px solid var(--j-border); background:#fff; padding:14px 10px; text-align:center; }
    .game-scope .j-reel.team { border-color:var(--j-orange); } .game-scope .j-reel.era { border-color:#7c3aed; }
    .game-scope .j-reel-k { font-size:11px; font-weight:700; letter-spacing:1px; color:var(--j-muted); } .game-scope .j-reel.team .j-reel-k { color:var(--j-orange); } .game-scope .j-reel.era .j-reel-k { color:#7c3aed; }
    .game-scope .j-reel-v { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:38px; color:var(--j-ink); line-height:1.1; min-height:46px; }
    .game-scope .j-reel-v img { height:40px; display:block; margin:0 auto 4px; }
    .game-scope .j-spin { font-size:18px; font-weight:700; letter-spacing:.5px; padding:13px 44px; border:none; border-radius:10px; cursor:pointer; color:#fff;
        background:linear-gradient(135deg,var(--j-orange) 0%,#dd6b20 100%); box-shadow:0 4px 12px rgba(237,137,54,.35); }
    .game-scope .j-spin:disabled { opacity:.7; cursor:default; }

    .game-scope .j-filters { display:flex; gap:8px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
    .game-scope .j-pos-tabs { display:flex; gap:4px; flex-wrap:wrap; }
    .game-scope .j-pos-tabs button { padding:5px 9px; }
    .game-scope .j-pos-tabs button { border:1px solid var(--j-border); background:#fff; border-radius:8px; padding:5px 11px; font-weight:600; font-size:13px; color:#475569; cursor:pointer; }
    .game-scope .j-pos-tabs button.active { background:var(--j-orange); border-color:var(--j-orange); color:#fff; }
    .game-scope .j-search { flex:1; min-width:120px; padding:6px 11px; border:1px solid var(--j-border); border-radius:8px; font-size:14px; outline:none; }
    .game-scope .j-count { font-size:12px; color:var(--j-muted); margin-bottom:8px; }
    .game-scope .j-list { max-height:420px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; }
    .game-scope .j-prow { display:flex; align-items:center; gap:10px; padding:9px 11px; border:1px solid var(--j-border); border-radius:10px; cursor:pointer; background:#fff; transition:border-color .1s,background .1s; }
    .game-scope .j-prow:hover { border-color:var(--j-navy2); background:#f8fafc; }
    .game-scope .j-prow.sel { border-color:var(--j-orange); background:#fff7ed; box-shadow:0 0 0 2px rgba(237,137,54,.25); }
    .game-scope .j-prow .j-pname { font-weight:700; color:var(--j-ink); font-size:14px; }
    .game-scope .j-prow .j-pmeta { font-size:11.5px; color:var(--j-muted); }
    .game-scope .j-prow .j-pmeta .pos { font-weight:700; }
    .game-scope .pos-B { color:#2563eb; } .game-scope .pos-E { color:#0891b2; } .game-scope .pos-A { color:#16a34a; } .game-scope .pos-AP { color:#d97706; } .game-scope .pos-P { color:#dc2626; }
    .game-scope .j-pstats { margin-left:auto; display:flex; gap:9px; text-align:center; }
    .game-scope .j-pstats .st { min-width:30px; } .game-scope .j-pstats .st b { display:block; font-size:13px; color:var(--j-ink); font-variant-numeric:tabular-nums; }
    .game-scope .j-pstats .st span { font-size:9px; color:#94a3b8; }
    .game-scope .j-list.memoria .j-pstats { visibility:hidden; }
    .game-scope .j-pick-hint { font-size:13px; font-weight:600; color:var(--j-navy2); margin-bottom:8px; }

    /* leaderboards on the landing */
    .game-scope .j-boards { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:24px; }
    .game-scope .j-board { background:#f8fafc; border:1px solid var(--j-border); border-radius:10px; padding:14px 16px; text-align:left; }
    .game-scope .j-board h3 { font-size:11px; color:var(--j-muted); text-transform:uppercase; letter-spacing:.8px; margin:0 0 10px; font-weight:700; }
    .game-scope .j-board h3 i { color:var(--j-gold); margin-right:5px; }
    .game-scope .j-board-list { list-style:none; margin:0; padding:0; counter-reset:bl; }
    .game-scope .j-board-list li { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid #eef2f7; font-size:13.5px; }
    .game-scope .j-board-list li:last-child { border-bottom:none; }
    .game-scope .j-board-list li.you { background:#fff7ed; margin:0 -8px; padding:6px 8px; border-radius:6px; border-bottom:none; }
    .game-scope .j-board .rk { width:18px; color:var(--j-muted); font-weight:700; font-variant-numeric:tabular-nums; }
    .game-scope .j-board .nm { flex:1; font-weight:600; color:var(--j-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .game-scope .j-board .rec { font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--j-navy2); font-variant-numeric:tabular-nums; }
    .game-scope .j-board-empty { color:#94a3b8; font-style:italic; font-size:12.5px; }
    .game-scope .j-board-all { display:inline-block; margin-top:8px; font-size:12px; font-weight:700; color:var(--j-navy2); text-decoration:none; }
    .game-scope .j-board-all:hover { color:var(--j-orange); }

    /* court */
    .game-scope .j-court { position:relative; aspect-ratio:1/0.92; background:var(--j-court); border-radius:16px; overflow:hidden;
        background-image:radial-gradient(circle at 50% 6%, rgba(255,255,255,.05) 0 70px, transparent 71px); }
    .game-scope .j-court svg.lines { position:absolute; inset:0; width:100%; height:100%; }
    .game-scope .j-spot { position:absolute; transform:translate(-50%,-50%); width:86px; min-height:64px; border-radius:12px; border:2px dashed rgba(255,255,255,.22);
        display:flex; flex-direction:column; align-items:center; justify-content:center; color:rgba(255,255,255,.55); font-weight:700; font-size:15px;
        background:rgba(255,255,255,.03); text-align:center; padding:5px; transition:border-color .15s,background .15s,box-shadow .15s; }
    .game-scope .j-spot.glow { border-color:var(--j-orange); border-style:solid; background:rgba(237,137,54,.12); box-shadow:0 0 0 4px rgba(237,137,54,.18); cursor:pointer; }
    .game-scope .j-spot.filled { border-style:solid; border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.08); color:#fff; }
    .game-scope .j-spot .sp-pos { font-family:'Space Grotesk',sans-serif; font-size:16px; }
    .game-scope .j-spot .sp-init { font-family:'Space Grotesk',sans-serif; font-size:15px; line-height:1.05; }
    .game-scope .j-spot .sp-sub { font-size:9px; font-weight:500; color:rgba(255,255,255,.6); margin-top:2px; }
    .game-scope .j-spot img { height:22px; margin-bottom:2px; }

    /* ---------- live "team by category" tracker ---------- */
    .game-scope .j-stats { background:var(--j-surface); border-radius:12px; box-shadow:0 4px 14px rgba(15,23,42,.06); padding:12px 16px 14px; margin-top:16px; }
    .game-scope .j-stats-title { font-size:11.5px; font-weight:700; color:var(--j-muted); text-transform:uppercase; letter-spacing:.6px; margin-bottom:10px; display:flex; align-items:center; gap:8px; }
    .game-scope .j-stats-title .hint { font-weight:600; text-transform:none; letter-spacing:0; color:var(--j-orange); font-size:12px; }
    .game-scope .j-stats-row { display:flex; gap:14px; }
    .game-scope .j-stat { flex:1; min-width:0; }
    .game-scope .j-stat-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:4px; }
    .game-scope .j-stat-k { font-size:12px; font-weight:700; color:#475569; letter-spacing:.5px; }
    .game-scope .j-stat-v { font-size:12px; font-weight:700; color:var(--j-ink); font-variant-numeric:tabular-nums; }
    .game-scope .j-stat-bar { height:8px; background:#e2e8f0; border-radius:5px; overflow:hidden; }
    .game-scope .j-stat-bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--j-navy2),var(--j-orange)); border-radius:5px; transition:width .3s ease; }
    .game-scope .j-stat.weak .j-stat-k { color:var(--j-red); }
    .game-scope .j-stat.weak .j-stat-v { color:var(--j-red); }
    .game-scope .j-stat.weak .j-stat-bar i { background:linear-gradient(90deg,#dc2626,#f97316); }
    .game-scope #stat-tracker-mobile { display:none; }   /* desktop shows the full-width one only */

    /* mobile sticky roster strip (hidden on desktop; shown instead of the court) */
    .game-scope .j-strip { display:none; }
    .game-scope .j-chip { display:flex; flex-direction:column; align-items:center; gap:3px; flex:1; min-width:0; }
    .game-scope .j-chip .ci { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
        font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; }
    .game-scope .j-chip .ci.empty { border:2px dashed rgba(255,255,255,.3); color:rgba(255,255,255,.5); }
    .game-scope .j-chip.filled .ci { background:linear-gradient(135deg,var(--j-orange),#dd6b20); color:#fff; }
    .game-scope .j-chip .cl { font-size:9.5px; color:rgba(255,255,255,.6); font-weight:600; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

    /* ---------- results ---------- */
    .game-scope .j-res { text-align:center; }
    .game-scope .j-res-head { padding:8px 0 4px; }
    .game-scope .j-res .lbl { font-size:12px; letter-spacing:1.5px; color:var(--j-muted); text-transform:uppercase; }
    .game-scope .j-rec { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(56px,14vw,92px); line-height:1; color:var(--j-ink); }
    .game-scope .j-rec .w { } .game-scope .j-rec .sep { color:#cbd5e1; margin:0 .12em; } .game-scope .j-rec .l { color:var(--j-muted); }
    .game-scope .j-grade { font-size:18px; font-weight:700; margin-top:4px; }
    .game-scope .grade-S { color:#7c3aed; } .game-scope .grade-A { color:#16a34a; } .game-scope .grade-B { color:#2563eb; } .game-scope .grade-C { color:#0891b2; } .game-scope .grade-D { color:#d97706; } .game-scope .grade-F { color:#dc2626; }
    .game-scope .j-grade .pts { color:var(--j-muted); font-weight:500; }
    .game-scope .j-perfect { background:linear-gradient(135deg,#7c3aed,#ec4899); color:#fff; border-radius:10px; padding:10px 16px; font-weight:700; display:inline-block; margin-top:8px; }
    .game-scope .j-res-actions { display:flex; gap:10px; justify-content:center; margin:18px 0 6px; flex-wrap:wrap; }
    .game-scope .j-btn { font-size:15px; font-weight:600; padding:11px 22px; border-radius:10px; cursor:pointer; border:1px solid var(--j-border); background:#fff; color:var(--j-ink); display:inline-flex; align-items:center; gap:8px; }
    .game-scope .j-btn.primary { background:linear-gradient(135deg,var(--j-orange),#dd6b20); color:#fff; border:none; box-shadow:0 4px 12px rgba(237,137,54,.3); }
    .game-scope .j-pct { font-size:14px; color:var(--j-ink); font-weight:600; margin-top:8px; }
    .game-scope .j-pct b { color:var(--j-navy2); }
    .game-scope .j-pb-note { font-size:13px; color:var(--j-muted); margin-top:4px; }

    .game-scope .j-roster { margin-top:18px; display:flex; flex-direction:column; gap:8px; text-align:left; }
    .game-scope .j-rrow { display:flex; align-items:center; gap:11px; padding:11px 13px; border-radius:10px; background:#f8fafc; border-left:4px solid var(--j-navy2); }
    .game-scope .j-rrow .av { width:34px; height:34px; border-radius:8px; background:var(--j-navy); color:#fff; font-weight:700; font-size:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
    .game-scope .j-rrow .nm { font-weight:700; color:var(--j-ink); } .game-scope .j-rrow .mt { font-size:11.5px; color:var(--j-muted); }
    .game-scope .j-rrow .rst { margin-left:auto; display:flex; gap:11px; text-align:center; }
    .game-scope .j-rrow .rst .st b { display:block; font-size:13px; color:var(--j-ink); } .game-scope .j-rrow .rst .st span { font-size:9px; color:#94a3b8; }
    .game-scope .j-totals { display:flex; justify-content:space-around; gap:8px; margin-top:14px; padding:14px 0; border-top:1px solid var(--j-border); text-align:center; }
    .game-scope .j-totals .tt { flex:1; min-width:0; }
    .game-scope .j-totals .tt b { display:block; font-family:'Space Grotesk',sans-serif; font-size:22px; color:var(--j-ink); } .game-scope .j-totals .tt span { font-size:10px; color:#94a3b8; letter-spacing:.5px; }
    /* thin percentile indicator under each total — readable even on small screens
       where the full category bars below are off-frame */
    .game-scope .j-totals .tt .tbar { height:5px; background:#e2e8f0; border-radius:3px; overflow:hidden; margin:5px 4px 0; }
    .game-scope .j-totals .tt .tbar i { display:block; height:100%; background:linear-gradient(90deg,var(--j-navy2),var(--j-orange)); }
    .game-scope .j-cats { margin-top:16px; text-align:left; }
    .game-scope .j-cat { display:flex; align-items:center; gap:10px; margin-bottom:6px; font-size:12.5px; }
    .game-scope .j-cat .cn { width:42px; font-weight:700; color:#475569; } .game-scope .j-cat .cv { width:34px; text-align:right; color:var(--j-muted); }
    .game-scope .j-cat .bar { flex:1; height:8px; background:#e2e8f0; border-radius:5px; overflow:hidden; }
    .game-scope .j-cat .bar i { display:block; height:100%; background:linear-gradient(90deg,var(--j-navy2),var(--j-orange)); }

    /* ---------- share modal ---------- */
    .game-scope .j-modal { position:fixed; inset:0; background:rgba(15,23,42,.6); display:flex; align-items:center; justify-content:center; z-index:2000; padding:16px; }
    .game-scope .j-modal-box { background:#fff; border-radius:14px; max-width:420px; width:100%; padding:18px; max-height:92vh; overflow-y:auto; }
    .game-scope .j-modal-h { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
    .game-scope .j-modal-h h3 { margin:0; font-size:18px; font-weight:700; } .game-scope .j-modal-close { border:none; background:none; font-size:22px; cursor:pointer; color:var(--j-muted); }
    .game-scope .j-share-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:6px; }
    .game-scope .j-share-native { display:flex; flex-direction:column; gap:9px; margin-top:6px; }
    .game-scope .j-share-native .j-sbtn { width:100%; padding:14px; font-size:15px; }
    .game-scope #btn-share-native { background:linear-gradient(135deg,var(--j-orange),#dd6b20); color:#fff; }
    .game-scope #btn-share-native-link { background:#fff; color:var(--j-ink); border:1px solid var(--j-border); }
    .game-scope .j-sbtn { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border-radius:10px; border:none; cursor:pointer; color:#fff; font-weight:600; font-size:14px; }
    .game-scope .j-sbtn.x { background:#000; } .game-scope .j-sbtn.wa { background:#25d366; } .game-scope .j-sbtn.tg { background:#0088cc; } .game-scope .j-sbtn.fb { background:#1877f2; }
    .game-scope .j-sbtn.copy { background:#475569; } .game-scope .j-sbtn.dl { background:#0f766e; }
    .game-scope .j-sbtn.full { grid-column:1/3; background:#fff; color:var(--j-ink); border:1px solid var(--j-border); }
    .j-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--j-ink); color:#fff; padding:11px 18px; border-radius:10px; font-size:14px; opacity:0; transition:opacity .2s; z-index:2200; pointer-events:none; }
    .j-toast.show { opacity:1; }

    /* how-to guide */
    .game-scope .j-howto-link { font-size:13.5px; color:var(--j-navy2); font-weight:600; cursor:pointer; text-decoration:none; }
    .game-scope .j-howto-link:hover { text-decoration:underline; }
    .game-scope .j-modal-box.howto { max-width:500px; text-align:left; }
    .game-scope .howto-sub { color:var(--j-muted); font-size:14px; margin:0 0 18px; line-height:1.5; }
    .game-scope .howto-sec { margin-bottom:16px; }
    .game-scope .howto-sec h4 { margin:0 0 7px; font-size:15px; font-weight:700; color:var(--j-ink); }
    .game-scope .howto-sec h4 i { color:var(--j-navy2); margin-right:7px; width:16px; text-align:center; }
    .game-scope .howto-sec ul { margin:0; padding-left:20px; }
    .game-scope .howto-sec li { font-size:13.5px; color:#475569; line-height:1.55; margin-bottom:3px; }
    .game-scope .howto-sec li .pos-B, .game-scope .howto-sec li .pos-E, .game-scope .howto-sec li .pos-A, .game-scope .howto-sec li .pos-AP, .game-scope .howto-sec li .pos-P { font-weight:700; }
    .game-scope .howto-ask { text-align:center; font-weight:700; color:var(--j-orange); font-size:16px; margin:18px 0 16px; padding-top:14px; border-top:1px solid var(--j-border); }
    .game-scope .howto-actions { display:flex; gap:10px; justify-content:flex-end; }

    /* offscreen share card */
    .game-scope #share-card { position:fixed; left:-20000px; top:0; width:1200px; height:675px; background:#0f1a2e; color:#fff;
        font-family:'Space Grotesk',Roboto,sans-serif; padding:54px 60px; box-sizing:border-box; display:flex; flex-direction:column; }
    .game-scope #share-card .sc-top { display:flex; justify-content:space-between; align-items:flex-start; }
    .game-scope #share-card .sc-lbl { font-size:20px; letter-spacing:3px; color:#7f9bc0; text-transform:uppercase; }
    .game-scope #share-card .sc-rec { font-size:92px; font-weight:700; line-height:.9; margin-top:4px; }
    .game-scope #share-card .sc-rec .l { color:#7f9bc0; }
    .game-scope #share-card .sc-grade { font-size:34px; font-weight:700; letter-spacing:-0.01em; } .game-scope #share-card .sc-pts { font-size:22px; color:#7f9bc0; text-align:right; margin-top:2px; }
    /* category gauges — make the balance (or lack of it) visible at a glance */
    .game-scope #share-card .sc-cats { display:flex; gap:12px; margin-top:18px; }
    .game-scope #share-card .sc-cat { flex:1; background:rgba(255,255,255,.05); border-radius:9px; padding:9px 14px; }
    .game-scope #share-card .sc-cat .k { font-size:13px; letter-spacing:1.5px; color:#7f9bc0; }
    .game-scope #share-card .sc-cat .v { font-size:23px; font-weight:700; line-height:1.1; }
    .game-scope #share-card .sc-cat .bar { height:6px; background:rgba(255,255,255,.13); border-radius:4px; margin-top:6px; overflow:hidden; }
    .game-scope #share-card .sc-cat .bar i { display:block; height:100%; background:linear-gradient(90deg,#2c5282,#ed8936); }
    .game-scope #share-card .sc-roster { margin-top:16px; display:flex; flex-direction:column; gap:7px; flex:1; }
    .game-scope #share-card .sc-r { display:flex; align-items:center; gap:14px; background:rgba(255,255,255,.05); border-radius:9px; padding:8px 16px; }
    .game-scope #share-card .sc-r .av { width:32px; height:32px; border-radius:7px; background:#2c5282; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
    .game-scope #share-card .sc-r .nm { font-size:20px; font-weight:700; } .game-scope #share-card .sc-r .mt { font-size:13px; color:#7f9bc0; }
    .game-scope #share-card .sc-r .sct { margin-left:auto; font-size:14px; color:#cbd5e1; }
    .game-scope #share-card .sc-foot { display:flex; justify-content:space-between; align-items:center; margin-top:18px; font-size:22px; }
    .game-scope #share-card .sc-foot .ask { font-weight:700; } .game-scope #share-card .sc-foot .url { color:var(--j-orange); }
    .game-scope #share-card .sc-logo { height:52px; width:auto; }

    /* ---------- responsive ---------- */
    @media (max-width: 860px) {
        .game-scope .j-draft-grid { grid-template-columns:1fr; }
        /* Court replaced by a fixed bottom DOCK (category tracker + 5-slot strip) so
           the player list fills the screen and your category status is always in view. */
        .game-scope .j-court { display:none; }
        .game-scope #stat-tracker-desktop { display:none; }
        .game-scope .j-dock { position:fixed; left:0; right:0; bottom:0; z-index:600;
            background:var(--j-court); border-top:1px solid rgba(255,255,255,.12); box-shadow:0 -4px 14px rgba(0,0,0,.2);
            padding-bottom:env(safe-area-inset-bottom); }
        .game-scope #stat-tracker-mobile { display:block; background:transparent; box-shadow:none; border-radius:0; margin:0; padding:8px 11px 2px; }
        .game-scope #stat-tracker-mobile .j-stats-title { color:rgba(255,255,255,.6); margin-bottom:6px; }
        .game-scope #stat-tracker-mobile .j-stat-k { color:rgba(255,255,255,.78); }
        .game-scope #stat-tracker-mobile .j-stat-v { color:#fff; }
        .game-scope #stat-tracker-mobile .j-stat-bar { background:rgba(255,255,255,.16); }
        .game-scope #stat-tracker-mobile .j-stat.weak .j-stat-k, .game-scope #stat-tracker-mobile .j-stat.weak .j-stat-v { color:#fca5a5; }
        .game-scope .j-strip { display:flex; position:static; justify-content:space-around; align-items:flex-start; gap:6px; padding:6px 8px 9px; }
        .game-scope #state-draft { padding-bottom:168px; }   /* clear the fixed dock (tracker + strip) */
        .game-scope .j-list { max-height:none; }             /* page scrolls; no nested scroll */
        .game-scope .j-panel { min-height:0; padding:14px; }
        .game-scope .j-rules { display:none; }               /* rules live in the "Cómo jugar" guide */
        .game-scope .j-boards { grid-template-columns:1fr; }
        /* Mode picker stays side-by-side (82-0 style), just more compact. */
        .game-scope .j-modes { gap:10px; }
        .game-scope .j-mode { padding:16px 13px; gap:8px; }
        .game-scope .j-mode-h { font-size:15px; } .game-scope .j-mode-d { font-size:12.5px; }
        .game-scope .j-pstats .st { min-width:26px; } .game-scope .j-pstats { gap:6px; }
        .game-scope .j-landing-body { padding:18px 14px; }
        .game-scope .j-chal-team { padding:13px 11px; }
        .game-scope .j-chal-team .j-rrow { padding:9px 10px; gap:9px; }
        .game-scope .j-chal-team .j-rrow .rst { gap:8px; }
        .game-scope .j-chal-team .j-rrow .nm { font-size:14px; }
        .game-scope .j-chal-team .st-x { display:none; }           /* ROB/TAP per-player: desktop only */
        .game-scope .j-chal-totals { gap:4px; padding:11px 0; }
        .game-scope .j-chal-totals .tt b { font-size:15px; }
    }
