/**
 * smgr/css/pages/hoopster.css — Hoopster, la línea temporal de la ACB.
 * Portada y resultado heredados de masomenos.css (prefijo --hs-/.hs-); lo propio es la
 * línea temporal vertical con huecos para tocar y la barra inferior con la carta en juego.
 * Todo bajo .game-scope para aislarlo de rincon.css.
 */
/* ===== Variables del juego (globales, sin scope) ===== */
:root {
    --hs-navy:#1e3a5f; --hs-navy2:#2c5282; --hs-mas:#16a34a; --hs-menos:#ef4444;
    --hs-orange:#ed8936; --hs-gold:#f59e0b; --hs-bg:#eef2f8; --hs-surface:#fff; --hs-border:#e2e8f0;
    --hs-muted:#64748b; --hs-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(--hs-bg); }

.game-scope #hs-app { max-width: 860px; margin: 18px auto 40px; padding: 0 12px; font-family: Roboto, sans-serif; color: var(--hs-ink); }
/* La landing (hero + modos + clasificaciones) aprovecha todo el ancho; el juego y el
   resultado se mantienen centrados y enfocados, sin estirarse. */
.game-scope #state-game, .game-scope #state-over { max-width: 720px; margin-left: auto; margin-right: auto; }

/* lockup */
.game-scope .hs-lockup { display:inline-flex; align-items:center; gap:.4em; font-family:'Space Grotesk',system-ui,sans-serif; font-weight:700; }
.game-scope .hs-lockup img { width:1.15em; height:1.15em; vertical-align:middle; }
.game-scope .hs-lockup .w-mas { color:#bbf7d0; } .game-scope .hs-lockup .w-menos { color:#fecaca; }

/* ===== Landing ===== */
.game-scope .hs-landing { background:var(--hs-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 .hs-hero { background:linear-gradient(135deg,var(--hs-navy) 0%,var(--hs-navy2) 100%); color:#fff; padding:30px 24px 26px; text-align:center; position:relative; }
.game-scope .hs-hero .hs-lockup { font-size:clamp(1.9rem,6vw,2.6rem); }
.game-scope .hs-hero-lockup { display:block; margin:0 auto; height:clamp(64px,15vw,96px); width:auto; max-width:92%; }
.game-scope .hs-hero .sub { margin:14px auto 0; max-width:480px; opacity:.92; font-size:15px; line-height:1.45; }
.game-scope .hs-hero .challenge-badge { display:inline-block; background:var(--hs-gold); color:#1f2937; font-weight:700; font-size:12px; letter-spacing:.08em; padding:4px 12px; border-radius:999px; margin-bottom:10px; }
.game-scope .hs-hero .challenge-summary { font-family:'Space Grotesk',sans-serif; margin-top:6px; }
.game-scope .hs-hero .challenge-summary b { font-size:2.2rem; }
.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 .hs-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(--hs-muted); display:block; margin-bottom:4px; }
.game-scope .guest-block input { width:100%; padding:11px 13px; border:2px solid var(--hs-border); border-radius:10px; font-size:16px; }
.game-scope .guest-block input:focus { outline:none; border-color:var(--hs-navy2); }
.game-scope .guest-hint { font-size:12px; color:var(--hs-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(--hs-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(--hs-orange); } .game-scope .mode-libre:hover { border-color:var(--hs-navy2); }
.game-scope .mc-head { display:flex; align-items:center; gap:10px; font-weight:700; font-size:17px; color:var(--hs-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(--hs-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(--hs-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(--hs-orange),#dd6b20); }
.game-scope .mode-libre .mc-cta { background:linear-gradient(135deg,var(--hs-navy2),var(--hs-navy)); }
.game-scope .mc-cta.ghost { background:#e2e8f0; color:var(--hs-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(--hs-mas); }
.game-scope .mode-card.highlight { border-color:var(--hs-navy2); box-shadow:0 4px 14px rgba(44,82,130,.14); }
.game-scope .vuelve-manana { font-size:13px; color:var(--hs-muted); margin-top:10px; }

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

.game-scope .hs-rules { list-style:none; margin:0 0 18px; padding:12px 14px; background:#f8fafc; border:1px dashed #cbd5e1; border-radius:12px; font-size:13.5px; color:#475569; line-height:1.5; }
.game-scope .hs-rules li { padding-left:22px; position:relative; }
.game-scope .hs-rules li + li { margin-top:4px; }
.game-scope .hs-rules li i { position:absolute; left:0; top:3px; color:var(--hs-orange); width:16px; text-align:center; }

/* ===== Game ===== */
.game-scope #state-game { display:none; }
.game-scope .hs-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.game-scope .hs-score { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:16px; }
.game-scope .hs-score b { font-size:26px; color:var(--hs-mas); }
.game-scope .hs-modepill { font-size:12px; font-weight:700; color:#fff; background:var(--hs-navy2); padding:4px 11px; border-radius:999px; }
.game-scope .hs-modepill.daily { background:var(--hs-gold); color:#1f2937; }
.game-scope .hs-lives { font-size:18px; letter-spacing:2px; white-space:nowrap; }
.game-scope .hs-lives .off { filter:grayscale(1); opacity:.3; }
.game-scope .hs-axis { font-family:'JetBrains Mono',ui-monospace,monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--hs-muted); text-align:center; margin:4px 0; }

.game-scope .hs-line { position:relative; display:flex; flex-direction:column; }
.game-scope .hs-tcard { display:flex; align-items:center; gap:12px; background:var(--hs-surface); border:2px solid var(--hs-border); border-radius:12px; padding:8px 12px; box-shadow:0 1px 4px rgba(15,23,42,.05); }
.game-scope .hs-tcard .yr { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:19px; color:var(--hs-navy); flex:0 0 74px; letter-spacing:-.02em; }
.game-scope .hs-tcard .sh { width:34px; height:34px; object-fit:contain; flex:0 0 34px; }
.game-scope .hs-tcard .who { min-width:0; flex:1 1 auto; }
.game-scope .hs-tcard .nm { font-weight:700; font-size:15px; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-scope .hs-tcard .cl { font-size:12.5px; color:var(--hs-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-scope .hs-tcard.anchor { border-color:#cbd5e1; background:#f8fafc; }
.game-scope .hs-tcard.new { border-color:var(--hs-mas); box-shadow:0 0 0 3px rgba(22,163,74,.18); animation:hs-pop .35s ease-out; }
.game-scope .hs-tcard.ghost { border-color:var(--hs-menos); border-style:dashed; background:#fef2f2; box-shadow:0 0 0 3px rgba(239,68,68,.15); animation:hs-pop .35s ease-out; }
.game-scope .hs-tcard.ghost .yr { color:#b91c1c; }
@keyframes hs-pop { from { transform:scale(.94); opacity:.4; } to { transform:none; opacity:1; } }

/* Huecos: finos en reposo, crecen al elegirlos. */
.game-scope .hs-slot { display:block; width:100%; border:none; background:none; padding:3px 0; cursor:pointer; }
.game-scope .hs-slot span { display:flex; align-items:center; justify-content:center; gap:6px; height:26px; border:2px dashed #cbd5e1; border-radius:10px; color:#94a3b8; font-size:12.5px; font-weight:700; transition:.12s; }
.game-scope .hs-slot:hover span { border-color:var(--hs-orange); color:#c2410c; background:#fff7ed; }
.game-scope .hs-slot.sel span { height:44px; border-style:solid; border-color:var(--hs-orange); background:#fff7ed; color:#c2410c; font-size:14px; }
.game-scope .hs-slot.bad span { border-color:var(--hs-menos); background:#fef2f2; color:#b91c1c; }
/* Hueco compacto entre dos cartas: 14 px de raya + «+», pero 24 px de zona de toque. */
.game-scope .hs-slot.mid { padding:5px 0; }
.game-scope .hs-slot.mid span { height:14px; border:none; background:none; position:relative; }
.game-scope .hs-slot.mid span::before { content:''; position:absolute; left:14px; right:14px; top:50%; border-top:2px dashed #cbd5e1; }
.game-scope .hs-slot.mid span i { position:relative; z-index:1; width:20px; height:20px; border-radius:50%; background:#fff; border:2px solid #cbd5e1; display:flex; align-items:center; justify-content:center; font-size:9px; }
.game-scope .hs-slot.mid span b { display:none; }
.game-scope .hs-slot.mid:hover span { background:none; }
.game-scope .hs-slot.mid:hover span::before { border-top-color:var(--hs-orange); }
.game-scope .hs-slot.mid:hover span i { border-color:var(--hs-orange); color:#c2410c; background:#fff7ed; }
.game-scope .hs-slot.mid.sel span { height:44px; border:2px solid var(--hs-orange); background:#fff7ed; }
.game-scope .hs-slot.mid.sel span::before { display:none; }
.game-scope .hs-slot.mid.sel span i { width:auto; height:auto; border:none; background:none; font-size:inherit; }
.game-scope .hs-slot.mid.sel span b { display:inline; }
.game-scope .hs-line.locked .hs-slot { pointer-events:none; }
.game-scope .hs-line.locked .hs-slot:not(.sel):not(.bad) span { opacity:.35; }

/* Barra inferior: la carta en juego + el botón. Zona del pulgar en móvil.
   Sticky y no fixed: se pega al borde de la pantalla mientras la línea es larga, pero
   nunca sale del bloque del juego (con fixed tapaba el footer al bajar del todo). */
.game-scope .hs-dock { position:sticky; bottom:0; z-index:250; margin-top:14px; background:rgba(255,255,255,.97); border:1px solid var(--hs-border); border-bottom:0; border-radius:14px 14px 0 0; box-shadow:0 -6px 20px rgba(15,23,42,.08); padding:8px 12px calc(10px + env(safe-area-inset-bottom)); }
.game-scope .hs-dock-in { max-width:720px; margin:0 auto; }
.game-scope .hs-timer { height:6px; background:#e2e8f0; border-radius:999px; overflow:hidden; margin-bottom:8px; }
.game-scope .timer-bar { height:100%; width:100%; background:var(--hs-mas); border-radius:999px; }
.game-scope .timer-bar.low { background:var(--hs-menos); }
.game-scope .hs-dock-row { display:flex; align-items:center; gap:12px; }
.game-scope .hs-cur { flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:10px; background:var(--hs-navy); color:#fff; border-radius:12px; padding:8px 12px; }
.game-scope .hs-cur .sh { width:40px; height:40px; object-fit:contain; flex:0 0 40px; background:#fff; border-radius:8px; padding:2px; }
.game-scope .hs-cur .who { min-width:0; }
.game-scope .hs-cur .nm { font-weight:700; font-size:16px; line-height:1.15; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-scope .hs-cur .cl { font-size:12.5px; opacity:.85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.game-scope .hs-cur .q { margin-left:auto; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; color:#fbd38d; flex:0 0 auto; }
.game-scope .hs-cur.ok { background:var(--hs-mas); } .game-scope .hs-cur.ok .q { color:#fff; }
.game-scope .hs-cur.bad { background:var(--hs-menos); } .game-scope .hs-cur.bad .q { color:#fff; }
.game-scope .hs-place { flex:0 0 auto; border:none; border-radius:12px; padding:14px 16px; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:16px; color:#fff; background:linear-gradient(135deg,var(--hs-orange),#dd6b20); cursor:pointer; min-width:116px; }
.game-scope .hs-place:disabled { background:#cbd5e1; color:#64748b; cursor:default; }
.game-scope .hs-msg { font-size:13px; color:var(--hs-muted); margin-top:6px; min-height:18px; text-align:center; }
.game-scope .hs-msg b { color:var(--hs-ink); }
.game-scope .hs-msg.ok { color:#15803d; } .game-scope .hs-msg.bad { color:#b91c1c; }

/* ===== Game over ===== */
.game-scope #state-over { display:none; }
.game-scope .over-card { background:var(--hs-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-streak { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:64px; line-height:1; color:var(--hs-mas); }
.game-scope .over-card .res-label { font-size:15px; color:var(--hs-muted); margin-top:2px; }
.game-scope .over-card .res-grid { font-size:22px; letter-spacing:2px; margin:14px 0; word-break:break-word; }
.game-scope .over-card .res-msg { font-weight:700; font-size:18px; margin-bottom:4px; }
.game-scope .over-card .res-fail { font-size:14px; color:var(--hs-muted); margin-top:8px; }
.game-scope .over-card .res-fail b { color:var(--hs-ink); }
.game-scope .over-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:18px; }
.game-scope .hs-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 .hs-btn.primary { background:var(--hs-navy2); color:#fff; }
.game-scope .hs-btn.ghost { background:#eef2f8; color:var(--hs-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(--hs-muted); margin-top:8px; }

/* ===== 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: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:56px; height:56px; }
.game-scope .share-card .sc-top .w-mas{color:#bbf7d0} .game-scope .share-card .sc-top .w-menos{color:#fecaca}
.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-streak { font-size:170px; font-weight:700; line-height:1; margin-top:40px; color:#86efac; }
.game-scope .share-card .sc-label { font-size:30px; opacity:.9; margin-top:-6px; }
.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; }

.game-scope .over-card .res-streak { color:var(--hs-navy2); }
.game-scope .over-line { text-align:left; margin:18px auto 0; max-width:460px; max-height:340px; overflow:auto; padding:2px 4px; display:flex; flex-direction:column; gap:6px; }
.game-scope .over-line .hs-tcard { padding:6px 10px; }
.game-scope .over-line .hs-tcard .yr { font-size:16px; flex-basis:64px; }

/* ===== Share card (1200x675, offscreen) ===== */
.game-scope .share-card .sc-top .w-hs { letter-spacing:-.03em; }
.game-scope .share-card .sc-streak { color:#fbd38d; font-size:150px; line-height:1.05; margin-top:30px; }
.game-scope .share-card .sc-label { margin-top:22px; }
.game-scope .share-card .sc-range { font-size:26px; opacity:.85; margin-top:10px; font-family:'Space Grotesk',sans-serif; }

@media (max-width:560px) {
    .game-scope .hs-boards { grid-template-columns:minmax(0, 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 .mc-ico { width:30px; height:30px; flex-basis:30px; font-size:15px; }
    .game-scope .mc-desc { font-size:12.5px; }
    .game-scope .mc-rec { font-size:11.5px; padding:5px 8px; }
    .game-scope .mc-cta { font-size:13px; padding:10px; }
    .game-scope .hs-tcard .yr { font-size:17px; flex-basis:66px; }
    .game-scope .hs-place { min-width:96px; padding:13px 12px; font-size:15px; }
    .game-scope .hs-cur .q { display:none; }
    .game-scope .over-card .res-streak { font-size:54px; }
}
.game-scope .hs-msg .hint { color:var(--hs-muted, #64748b); font-weight:400; }
