/**
 * smgr/css/pages/doble_camiseta.css — estilos del mini-juego "Doble Camiseta"
 * portado al chrome "Foco". Mismo recipe que masomenos.css:
 *   · :root con las variables --dc-* SIN scope (custom props globales).
 *   · body { background } del original → .game-scope { background }.
 *   · TODO el resto de selectores prefijado con ".game-scope " para aislar el
 *     juego de rincon.css y viceversa.
 *   · Reset de aislamiento arriba (img, button) que rincon.css distorsionaría.
 *   · Reglas de menú/logo del sitio clásico (.logo-main) eliminadas.
 */

/* ===== Variables del juego (globales, sin scope) ===== */
:root {
    --dc-navy:#1e3a5f; --dc-navy2:#2c5282; --dc-orange:#ed8936; --dc-gold:#f59e0b;
    --dc-green:#16a34a; --dc-red:#ef4444; --dc-bg:#eef2f8; --dc-surface:#fff;
    --dc-border:#e2e8f0; --dc-muted:#64748b; --dc-ink:#0f172a;
}

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

/* Fondo inmersivo del juego (antes en body). Solo cubre el área de juego. */
.game-scope { background: var(--dc-bg); }

.game-scope #dc-app { max-width: 720px; margin: 18px auto 40px; padding: 0 12px; font-family: Roboto, sans-serif; color: var(--dc-ink); }

/* ===== Landing ===== */
.game-scope .dc-landing { background:var(--dc-surface); border-radius:16px; overflow:hidden;
    box-shadow:0 4px 16px rgba(15,23,42,.07),0 1px 2px rgba(15,23,42,.04); }
.game-scope .dc-hero { background:linear-gradient(135deg,var(--dc-navy) 0%,var(--dc-navy2) 100%); color:#fff; padding:28px 24px 24px; text-align:center; }
.game-scope .dc-hero .lk { display:inline-flex; align-items:center; gap:12px; }
.game-scope .dc-hero .lk img { width:46px; height:46px; }
.game-scope .dc-hero h1 { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(1.7rem,5.5vw,2.4rem); margin:0; letter-spacing:-.02em; }
.game-scope .dc-hero .sub { margin:13px auto 0; max-width:480px; opacity:.92; font-size:15px; line-height:1.45; }
.game-scope .dc-hero .challenge-badge { display:inline-block; background:var(--dc-gold); color:#1f2937; font-weight:700; font-size:12px; letter-spacing:.08em; padding:4px 12px; border-radius:999px; margin-bottom:10px; }
.game-scope .dc-hero .challenge-summary { font-family:'Space Grotesk',sans-serif; margin-top:6px; }
.game-scope .dc-hero .challenge-summary b { font-size:2.1rem; }
.game-scope .self-notice { margin:12px auto 0; max-width:480px; background:rgba(255,255,255,.12); border-radius:10px; padding:8px 12px; font-size:13px; }

.game-scope .dc-body { padding:22px; }
.game-scope .guest-block { margin:0 auto 18px; max-width:340px; text-align:left; }
.game-scope .guest-block label { font-size:13px; font-weight:700; color:var(--dc-muted); display:block; margin-bottom:4px; }
.game-scope .guest-block input { width:100%; padding:11px 13px; border:2px solid var(--dc-border); border-radius:10px; font-size:16px; }
.game-scope .guest-block input:focus { outline:none; border-color:var(--dc-navy2); }
.game-scope .guest-hint { font-size:12px; color:var(--dc-muted); margin-top:4px; }
.game-scope .guest-err { display:none; font-size:12px; color:#dc2626; font-weight:600; margin-top:4px; }
.game-scope .guest-block.error input { border-color:#dc2626; box-shadow:0 0 0 3px rgba(220,38,38,.15); }
.game-scope .guest-block.error .guest-hint { display:none; }
.game-scope .guest-block.error .guest-err { display:block; }

.game-scope .mode-picker { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.game-scope .mode-card { background:#f8fafc; border:2px solid var(--dc-border); border-radius:14px; padding:18px 16px; text-align:left; cursor:pointer; transition:.15s; display:flex; flex-direction:column; gap:11px; }
.game-scope .mode-card:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(30,58,95,.12); background:#fff; }
.game-scope .mode-daily:hover { border-color:var(--dc-orange); } .game-scope .mode-libre:hover { border-color:var(--dc-navy2); }
.game-scope .mc-head { display:flex; align-items:center; gap:10px; font-weight:700; font-size:17px; color:var(--dc-ink); }
.game-scope .mc-ico { width:34px; height:34px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; font-size:18px; flex:0 0 34px; }
.game-scope .mode-daily .mc-ico { background:#fed7aa; color:#c2410c; }
.game-scope .mode-libre .mc-ico { background:#dbeafe; color:var(--dc-navy2); }
.game-scope .mc-desc { font-size:13.5px; color:#475569; line-height:1.45; }
.game-scope .mc-rec { font-size:12.5px; color:#475569; padding:6px 10px; background:#fff; border-radius:6px; border:1px dashed #cbd5e1; }
.game-scope .mc-rec strong { color:#c2410c; } .game-scope .mode-libre .mc-rec strong { color:var(--dc-navy2); }
.game-scope .mc-cta { margin-top:auto; align-self:stretch; text-align:center; font-weight:700; font-size:14px; color:#fff; padding:11px; border-radius:10px; }
.game-scope .mode-daily .mc-cta { background:linear-gradient(135deg,var(--dc-orange),#dd6b20); }
.game-scope .mode-libre .mc-cta { background:linear-gradient(135deg,var(--dc-navy2),var(--dc-navy)); }
.game-scope .mc-cta.ghost { background:#e2e8f0; color:var(--dc-navy); }
.game-scope .mc-cta i { margin-left:6px; }
.game-scope .mode-card:hover .mc-cta { filter:brightness(1.06); }
.game-scope .mode-card.done { background:#f1f5f9; border-color:#cbd5e1; }
.game-scope .mode-card.done .mc-ico { background:#dcfce7; color:var(--dc-green); }
.game-scope .mode-card.highlight { border-color:var(--dc-navy2); box-shadow:0 4px 14px rgba(44,82,130,.14); }

.game-scope .dc-boards { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }
.game-scope .board { background:#f8fafc; border:1px solid var(--dc-border); border-radius:12px; padding:12px 14px; }
.game-scope .board h4 { margin:0 0 2px; font-size:13px; font-weight:700; color:var(--dc-navy); text-transform:uppercase; letter-spacing:.04em; }
.game-scope .board-sub { font-size:11px; color:var(--dc-muted); margin:0 0 8px; }
.game-scope .board .nm-sub { color:var(--dc-muted); font-weight:400; }
.game-scope .board-all { display:inline-block; margin-top:9px; font-size:12.5px; font-weight:700; color:var(--dc-navy2); text-decoration:none; }
.game-scope .board-all:hover { text-decoration:underline; } .game-scope .board-all i { font-size:11px; margin-left:3px; }
.game-scope .dc-hub { text-align:center; margin-top:16px; }
.game-scope .dc-hub a { color:var(--dc-muted); font-weight:600; font-size:13.5px; text-decoration:none; }
.game-scope .dc-hub a:hover { text-decoration:underline; } .game-scope .dc-hub i { margin-right:5px; }
.game-scope .board ol { margin:0; padding-left:0; list-style:none; counter-reset:r; }
.game-scope .board li { display:flex; justify-content:space-between; font-size:13px; padding:3px 0; border-bottom:1px dashed #e8edf3; counter-increment:r; }
.game-scope .board li:last-child { border-bottom:none; }
.game-scope .board li .nm::before { content:counter(r) ". "; color:var(--dc-muted); }
.game-scope .board li .st { font-weight:700; color:var(--dc-orange); font-family:'Space Grotesk',sans-serif; }
.game-scope .board .empty { font-size:12px; color:var(--dc-muted); padding:6px 0; }

/* ===== Game ===== */
.game-scope #state-game { display:none; }
.game-scope .dc-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.game-scope .dc-score { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:17px; }
.game-scope .dc-score b { font-size:25px; color:var(--dc-orange); }
.game-scope .dc-modepill { font-size:12px; font-weight:700; color:#fff; background:var(--dc-navy2); padding:4px 11px; border-radius:999px; }
.game-scope .dc-modepill.daily { background:var(--dc-gold); color:#1f2937; }
.game-scope .dc-best-mini { font-size:12px; color:var(--dc-muted); }

.game-scope .dc-timer { height:7px; background:#e2e8f0; border-radius:999px; overflow:hidden; margin:2px 0 12px; }
.game-scope .timer-bar { height:100%; width:100%; background:var(--dc-green); border-radius:999px; }
.game-scope .timer-bar.low { background:var(--dc-red); }

.game-scope .dc-matchup { display:flex; align-items:stretch; gap:10px; }
.game-scope .team-side { flex:1 1 0; min-width:0; background:var(--dc-surface); border:2px solid var(--dc-border); border-radius:14px; padding:14px 10px; text-align:center; box-shadow:0 2px 8px rgba(15,23,42,.05); }
.game-scope .team-side img { width:54px; height:54px; object-fit:contain; }
.game-scope .team-side .tn { font-weight:700; font-size:14px; margin-top:6px; line-height:1.2; color:var(--dc-ink); }
.game-scope .dc-amp { align-self:center; font-family:'Space Grotesk',sans-serif; font-weight:700; color:var(--dc-muted); font-size:22px; flex:0 0 auto; }

.game-scope .dc-progress { text-align:center; margin:14px 0 8px; font-size:15px; color:var(--dc-muted); }
.game-scope .dc-progress b { color:var(--dc-ink); font-family:'Space Grotesk',sans-serif; }
.game-scope .dc-progress .pp { color:var(--dc-orange); font-weight:700; }

.game-scope .dc-input-wrap { position:relative; }
.game-scope .dc-input-wrap input { width:100%; padding:13px 15px; border:2px solid var(--dc-border); border-radius:12px; font-size:16px; }
.game-scope .dc-input-wrap input:focus { outline:none; border-color:var(--dc-navy2); }
.game-scope .dc-suggest { position:absolute; left:0; right:0; top:calc(100% + 4px); background:#fff; border:1px solid var(--dc-border); border-radius:12px; box-shadow:0 8px 24px rgba(15,23,42,.14); z-index:50; overflow:hidden; display:none; }
.game-scope .dc-suggest.open { display:block; }
.game-scope .dc-sug { display:flex; justify-content:space-between; gap:10px; padding:10px 13px; cursor:pointer; font-size:14px; border-bottom:1px solid #f1f5f9; }
.game-scope .dc-sug:last-child { border-bottom:none; }
.game-scope .dc-sug.active, .game-scope .dc-sug:hover { background:#f0f5fb; }
.game-scope .dc-sug .era { color:var(--dc-muted); font-size:12px; white-space:nowrap; }

.game-scope .dc-feedback { min-height:20px; text-align:center; font-size:13.5px; font-weight:600; margin:8px 0 2px; }
.game-scope .dc-feedback.ok { color:var(--dc-green); } .game-scope .dc-feedback.bad { color:var(--dc-red); } .game-scope .dc-feedback.warn { color:#b45309; }

.game-scope .dc-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; min-height:10px; }
.game-scope .chip { display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; padding:6px 11px; border-radius:999px; animation:pop .2s ease; }
@keyframes pop { from { transform:scale(.7); opacity:0; } to { transform:scale(1); opacity:1; } }
.game-scope .chip .pt { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:11px; border-radius:6px; padding:0 5px; }
.game-scope .chip.t1 { background:#e0e7ff; color:#3730a3; } .game-scope .chip.t1 .pt { background:#c7d2fe; }
.game-scope .chip.t2 { background:#ccfbf1; color:#115e59; } .game-scope .chip.t2 .pt { background:#99f6e4; }
.game-scope .chip.t3 { background:#fef3c7; color:#92400e; } .game-scope .chip.t3 .pt { background:#fde68a; }

.game-scope .dc-actions { display:flex; justify-content:center; margin-top:16px; }
.game-scope .dc-skip { background:#eef2f8; color:var(--dc-navy); border:none; border-radius:11px; padding:11px 20px; font-weight:700; font-size:14px; cursor:pointer; }
.game-scope .dc-skip:hover { background:#e2e8f0; } .game-scope .dc-skip i { margin-left:6px; }

/* pair-end reveal overlay */
.game-scope .dc-reveal { display:none; position:fixed; inset:0; background:rgba(15,23,42,.55); z-index:9998; align-items:center; justify-content:center; padding:14px; }
.game-scope .dc-reveal.open { display:flex; }
.game-scope .reveal-card { background:#fff; border-radius:16px; width:100%; max-width:520px; max-height:88vh; display:flex; flex-direction:column; overflow:hidden; }
.game-scope .reveal-head { background:linear-gradient(135deg,var(--dc-navy),var(--dc-navy2)); color:#fff; padding:16px 18px; }
.game-scope .reveal-head .rh-teams { display:flex; align-items:center; justify-content:center; gap:10px; font-weight:700; font-size:15px; }
.game-scope .reveal-head .rh-teams img { width:30px; height:30px; }
.game-scope .reveal-head .rh-score { text-align:center; margin-top:8px; font-family:'Space Grotesk',sans-serif; }
.game-scope .reveal-head .rh-score b { font-size:26px; } .game-scope .reveal-head .rh-bonus { color:#fde68a; font-weight:700; font-size:13px; }
.game-scope .reveal-body { padding:12px 16px; overflow-y:auto; }
.game-scope .reveal-body .rl-title { font-size:12px; color:var(--dc-muted); text-transform:uppercase; letter-spacing:.04em; margin-bottom:8px; }
.game-scope .rl { display:flex; flex-wrap:wrap; gap:7px; }
.game-scope .rl-item { font-size:13px; padding:5px 10px; border-radius:8px; font-weight:600; }
.game-scope .rl-item.got { background:#dcfce7; color:#166534; }
.game-scope .rl-item.miss { background:#f1f5f9; color:#64748b; }
.game-scope .reveal-foot { padding:14px 16px; border-top:1px solid var(--dc-border); }
.game-scope .reveal-foot button { width:100%; background:linear-gradient(135deg,var(--dc-orange),#dd6b20); color:#fff; border:none; border-radius:11px; padding:13px; font-weight:700; font-size:15px; cursor:pointer; }

/* ===== Game over ===== */
.game-scope #state-over { display:none; }
.game-scope .over-card { background:var(--dc-surface); border-radius:16px; box-shadow:0 4px 16px rgba(15,23,42,.07); padding:26px 22px; text-align:center; }
.game-scope .over-card .res-msg { font-weight:700; font-size:18px; margin-bottom:4px; }
.game-scope .over-card .res-score { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:64px; line-height:1; color:var(--dc-orange); }
.game-scope .over-card .res-label { font-size:15px; color:var(--dc-muted); margin-top:2px; }
.game-scope .over-review { margin:16px 0 6px; text-align:left; }
.game-scope .ov-row { display:flex; align-items:center; gap:10px; padding:8px 6px; border-bottom:1px solid #f1f5f9; font-size:14px; }
.game-scope .ov-row:last-child { border-bottom:none; }
/* Las filas del resumen enlazan a /jugadores-en-comun: mismo aspecto que un div. */
.game-scope a.ov-row { color:inherit; text-decoration:none; }
.game-scope a.ov-row:hover { background:#f8fafc; }
.game-scope .over-explora { margin:10px 0 0; font-size:12.5px; color:var(--dc-muted); text-align:center; }
.game-scope .over-explora a { color:var(--dc-orange); }
.game-scope .ov-row img { width:26px; height:26px; object-fit:contain; }
.game-scope .ov-row .vs { color:var(--dc-muted); font-size:12px; }
.game-scope .ov-row .frac { margin-left:auto; font-family:'Space Grotesk',sans-serif; font-weight:700; }
.game-scope .ov-row .pp { color:var(--dc-orange); font-weight:700; font-family:'Space Grotesk',sans-serif; min-width:54px; text-align:right; }
.game-scope .ov-row .star { color:var(--dc-gold); }
.game-scope .over-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:16px; }
.game-scope .dc-btn { border:none; border-radius:11px; padding:12px 18px; font-weight:700; font-size:15px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
.game-scope .dc-btn.primary { background:var(--dc-navy2); color:#fff; }
.game-scope .dc-btn.ghost { background:#eef2f8; color:var(--dc-navy); }
.game-scope .share-grid { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:14px; }
.game-scope .share-grid button { width:46px; height:46px; border-radius:50%; border:none; color:#fff; font-size:18px; cursor:pointer; }
.game-scope .sh-x{background:#000}.game-scope .sh-wa{background:#25d366}.game-scope .sh-tg{background:#229ed9}.game-scope .sh-fb{background:#1877f2}.game-scope .sh-copy{background:#64748b}
.game-scope .share-hint { font-size:12px; color:var(--dc-muted); margin-top:8px; }
.game-scope .vuelve-manana { font-size:13px; color:var(--dc-muted); margin-top:10px; }

/* ===== Offscreen share card (1200x675) ===== */
.game-scope .share-card { position:fixed; left:-20000px; top:0; width:1200px; height:675px; background:linear-gradient(135deg,#1e3a5f 0%,#2c5282 100%); color:#fff; font-family:'Space Grotesk',Roboto,sans-serif; padding:54px 64px; box-sizing:border-box; }
.game-scope .share-card .sc-top { display:flex; align-items:center; gap:14px; font-size:30px; font-weight:700; }
.game-scope .share-card .sc-top img { width:48px; height:48px; }
.game-scope .share-card .sc-mode { margin-left:auto; font-size:18px; background:rgba(255,255,255,.15); padding:6px 16px; border-radius:999px; }
.game-scope .share-card .sc-score { font-size:120px; font-weight:700; line-height:1; margin-top:26px; color:#fdba74; }
.game-scope .share-card .sc-label { font-size:28px; opacity:.9; margin-top:-4px; }
.game-scope .share-card .sc-rows { margin-top:24px; display:flex; flex-direction:column; gap:10px; }
.game-scope .share-card .sc-pair { display:flex; align-items:center; gap:12px; font-size:26px; }
.game-scope .share-card .sc-pair img { width:38px; height:38px; }
.game-scope .share-card .sc-pair .fr { margin-left:auto; font-weight:700; }
.game-scope .share-card .sc-cta { position:absolute; bottom:50px; left:64px; right:64px; display:flex; justify-content:space-between; align-items:flex-end; }
.game-scope .share-card .sc-cta .l1 { font-size:32px; font-weight:700; }
.game-scope .share-card .sc-cta .l2 { font-size:21px; opacity:.85; }

@media (max-width:560px) {
    .game-scope .dc-boards { grid-template-columns:1fr; }
    .game-scope .mode-picker { gap:10px; }
    .game-scope .mode-card { padding:14px 11px; gap:9px; }
    .game-scope .mc-head { font-size:15px; gap:8px; }
    .game-scope .team-side img { width:46px; height:46px; }
    .game-scope .team-side .tn { font-size:12.5px; }
    .game-scope .over-card .res-score { font-size:54px; }
}
