/**
 * smgr/css/pages/vestuarios.css — estilos de 'Vestuarios' portados al chrome 'Foco'.
 * :root sin scope; body -> .game-scope; resto prefijado con .game-scope; .logo-main descartado.
 */
:root { --v-navy:#1e3a5f; --v-navy2:#2c5282; --v-orange:#ed8936; --v-gold:#f59e0b; --v-green:#16a34a;
        --v-red:#ef4444; --v-bg:#eef2f8; --v-surface:#fff; --v-border:#e2e8f0; --v-muted:#64748b; --v-ink:#0f172a; }

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

    .game-scope { background:var(--v-bg); }
    
    .game-scope #vt-app { max-width:680px; margin:16px auto 40px; padding:0 12px; font-family:Roboto,sans-serif; color:var(--v-ink); }

    /* landing */
    .game-scope .vt-landing { background:var(--v-surface); border-radius:16px; overflow:hidden; box-shadow:0 4px 16px rgba(15,23,42,.07); }
    .game-scope .vt-hero { background:linear-gradient(135deg,var(--v-navy),var(--v-navy2)); color:#fff; padding:26px 22px 22px; text-align:center; }
    .game-scope .vt-hero .lk { display:inline-flex; align-items:center; gap:11px; }
    .game-scope .vt-hero .lk img { width:44px; height:44px; }
    .game-scope .vt-hero h1 { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:clamp(1.7rem,6vw,2.3rem); margin:0; }
    .game-scope .vt-hero .sub { margin:12px auto 0; max-width:460px; opacity:.92; font-size:14.5px; line-height:1.45; }
    .game-scope .vt-hero .cbadge { display:inline-block; background:var(--v-gold); color:#1f2937; font-weight:700; font-size:12px; letter-spacing:.08em; padding:4px 12px; border-radius:999px; margin-bottom:10px; }
    .game-scope .vt-hero .csum b { font-size:2rem; font-family:'Space Grotesk',sans-serif; }
    .game-scope .self-notice { margin:12px auto 0; max-width:460px; background:rgba(255,255,255,.12); border-radius:10px; padding:8px 12px; font-size:13px; }
    .game-scope .vt-body { padding:20px; }
    .game-scope .guest-block { margin:0 auto 16px; max-width:340px; text-align:left; }
    .game-scope .guest-block label { font-size:13px; font-weight:700; color:var(--v-muted); display:block; margin-bottom:4px; }
    .game-scope .guest-block input { width:100%; padding:11px 13px; border:2px solid var(--v-border); border-radius:10px; font-size:16px; }
    .game-scope .guest-block input:focus { outline:none; border-color:var(--v-navy2); }
    .game-scope .guest-hint { font-size:12px; color:var(--v-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(--v-border); border-radius:14px; padding:16px 14px; text-align:left; cursor:pointer; transition:.15s; display:flex; flex-direction:column; gap:9px; }
    .game-scope .mode-card:active { transform:scale(.99); }
    .game-scope .mode-daily:hover { border-color:var(--v-orange); } .game-scope .mode-libre:hover { border-color:var(--v-navy2); }
    .game-scope .mc-head { display:flex; align-items:center; gap:9px; font-weight:700; font-size:16px; }
    .game-scope .mc-ico { width:32px; height:32px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; font-size:16px; flex:0 0 32px; }
    .game-scope .mode-daily .mc-ico { background:#fed7aa; color:#c2410c; } .game-scope .mode-libre .mc-ico { background:#dbeafe; color:var(--v-navy2); }
    .game-scope .mc-desc { font-size:13px; color:#475569; line-height:1.4; }
    .game-scope .mc-rec { font-size:12px; color:#475569; padding:5px 9px; background:#fff; border-radius:6px; border:1px dashed #cbd5e1; }
    .game-scope .mc-cta { margin-top:auto; 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(--v-orange),#dd6b20); } .game-scope .mode-libre .mc-cta { background:linear-gradient(135deg,var(--v-navy2),var(--v-navy)); }
    .game-scope .mc-cta.ghost { background:#e2e8f0; color:var(--v-navy); }
    .game-scope .mode-card.done { background:#f1f5f9; border-color:#cbd5e1; } .game-scope .mode-card.done .mc-ico { background:#dcfce7; color:var(--v-green); } .game-scope .mode-card.highlight { border-color:var(--v-navy2); }

    .game-scope .vt-boards { display:grid; grid-template-columns:1fr 1fr; gap:11px; margin-top:18px; }
    .game-scope .board { background:#f8fafc; border:1px solid var(--v-border); border-radius:12px; padding:11px 13px; }
    .game-scope .board h4 { margin:0 0 2px; font-size:12.5px; font-weight:700; color:var(--v-navy); text-transform:uppercase; letter-spacing:.04em; }
    .game-scope .board-sub { font-size:10.5px; color:var(--v-muted); margin:0 0 7px; }
    .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(--v-muted); }
    .game-scope .board li .st { font-weight:700; color:var(--v-orange); font-family:'Space Grotesk',sans-serif; } .game-scope .board .nm-sub { color:var(--v-muted); font-weight:400; }
    .game-scope .board .empty { font-size:12px; color:var(--v-muted); padding:6px 0; }
    .game-scope .board-all { display:inline-block; margin-top:8px; font-size:12px; font-weight:700; color:var(--v-navy2); text-decoration:none; }
    .game-scope .vt-hub { text-align:center; margin-top:14px; } .game-scope .vt-hub a { color:var(--v-muted); font-weight:600; font-size:13px; text-decoration:none; }

    /* game */
    .game-scope #state-game { display:none; }
    .game-scope .vt-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
    .game-scope .vt-streak { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:17px; } .game-scope .vt-streak b { font-size:25px; color:var(--v-orange); }
    .game-scope .vt-modepill { font-size:12px; font-weight:700; color:#fff; background:var(--v-navy2); padding:4px 11px; border-radius:999px; } .game-scope .vt-modepill.daily { background:var(--v-gold); color:#1f2937; }
    .game-scope .vt-lives { display:flex; gap:5px; align-items:center; } .game-scope .vt-life { width:13px; height:13px; border-radius:50%; background:var(--v-green); } .game-scope .vt-life.lost { background:#e2e8f0; }
    .game-scope .vt-prompt { text-align:center; font-size:13.5px; color:var(--v-muted); margin:4px 0 12px; }
    .game-scope .vt-prompt b { color:var(--v-ink); }

    /* the 8-player board: 2 columns on mobile, 4 on wide. Big tap targets. */
    .game-scope .vt-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    .game-scope .vt-tile { position:relative; background:var(--v-surface); border:2px solid var(--v-border); border-radius:14px; padding:13px 12px; min-height:64px;
        display:flex; flex-direction:column; justify-content:center; cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent; transition:transform .08s, border-color .12s, background .12s; }
    .game-scope .vt-tile:active { transform:scale(.97); }
    .game-scope .vt-tile .tn { font-weight:700; font-size:15px; line-height:1.15; color:var(--v-ink); }
    .game-scope .vt-tile .te { font-size:11.5px; color:var(--v-muted); margin-top:2px; }
    .game-scope .vt-tile.sel { border-color:var(--v-orange); background:#fff7ed; box-shadow:0 0 0 3px rgba(237,137,54,.2); }
    .game-scope .vt-tile.bad { animation:vshake .35s; border-color:var(--v-red); background:#fef2f2; }
    @keyframes vshake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-6px);} 40%{transform:translateX(6px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} }
    .game-scope .vt-tile.locked { cursor:default; } .game-scope .vt-tile.locked:active { transform:none; }
    /* solved-pair colours (4) so each pair is visually grouped */
    .game-scope .vt-tile.p0 { background:#dcfce7; border-color:#86efac; } .game-scope .vt-tile.p1 { background:#dbeafe; border-color:#93c5fd; }
    .game-scope .vt-tile.p2 { background:#fef3c7; border-color:#fcd34d; } .game-scope .vt-tile.p3 { background:#ede9fe; border-color:#c4b5fd; }
    .game-scope .vt-tile.locked .tn { color:#0f172a; }
    .game-scope .vt-tile .rev { display:none; align-items:center; gap:5px; margin-top:5px; font-size:11px; font-weight:600; color:#334155; }
    .game-scope .vt-tile.locked .rev { display:flex; } .game-scope .vt-tile .rev img { width:16px; height:16px; object-fit:contain; }

    .game-scope .vt-feedback { min-height:18px; text-align:center; font-size:13px; font-weight:600; margin:10px 0 0; }
    .game-scope .vt-feedback.ok { color:var(--v-green); } .game-scope .vt-feedback.bad { color:var(--v-red); }
    .game-scope .vt-flash { position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:1500; pointer-events:none; }
    .game-scope .vt-flash.show { display:flex; } .game-scope .vt-flash span { background:rgba(22,163,74,.95); color:#fff; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:26px; padding:14px 28px; border-radius:14px; animation:vpop .3s; }
    @keyframes vpop { from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }

    /* over */
    .game-scope #state-over { display:none; }
    .game-scope .over-card { background:var(--v-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(--v-orange); }
    .game-scope .over-card .res-label { font-size:15px; color:var(--v-muted); }
    .game-scope .over-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:16px; }
    .game-scope .vt-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 .vt-btn.primary { background:var(--v-navy2); color:#fff; } .game-scope .vt-btn.ghost { background:#eef2f8; color:var(--v-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(--v-muted); margin-top:8px; } .game-scope .vuelve { font-size:13px; color:var(--v-muted); margin-top:10px; display:none; }

    /* offscreen share card */
    .game-scope .share-card { position:fixed; left:-20000px; top:0; width:1200px; height:675px; background:linear-gradient(135deg,#1e3a5f,#2c5282); color:#fff; font-family:'Space Grotesk',Roboto,sans-serif; padding:56px 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:46px; height:46px; }
    .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:150px; font-weight:700; line-height:1; margin-top:30px; color:#fdba74; }
    .game-scope .share-card .sc-label { font-size:30px; opacity:.9; margin-top:-4px; }
    .game-scope .share-card .sc-grid { font-size:40px; letter-spacing:6px; margin-top:26px; }
    .game-scope .share-card .sc-cta { position:absolute; bottom:54px; left:64px; right:64px; display:flex; justify-content:space-between; align-items:flex-end; }
    .game-scope .share-card .sc-cta .l1 { font-size:34px; font-weight:700; } .game-scope .share-card .sc-cta .l2 { font-size:22px; opacity:.85; }

    @media (max-width:560px) {
        .game-scope #vt-app { margin-top:10px; }
        .game-scope .vt-boards { grid-template-columns:1fr; }
        .game-scope .vt-tile { padding:12px 11px; min-height:60px; } .game-scope .vt-tile .tn { font-size:14.5px; }
        .game-scope .over-card .res-score { font-size:54px; }
    }
    /* wide: 4 across so the board reads as 8 cards */
    @media (min-width:620px) { .game-scope .vt-grid { grid-template-columns:repeat(4,1fr); } }
