/* Crimen a Cuadros a dos · estilos del tablero (va después de /dos/dos.css). Prefijo .c2- */
.c2 { width: 100%; }
.c2 h2 { margin: 0; }
.c2 h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 21px/1.1 var(--cq-head); }
.c2-tarjeta, .c2-elige, .c2-prep, .c2-caso, .c2-pistas, .c2-herr, .c2-acusa {
  background: #fff; border: 3px solid var(--cq-ink); border-radius: var(--cq-r-lg); box-shadow: var(--cq-sh); }

/* ---------- elegir caso ---------- */
.c2-elige { padding: 22px; max-width: 980px; margin: 0 auto; }
.c2-elige-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.c2-elige-cab p { margin: 4px 0 0; color: var(--cq-ink2); font-size: 17px; }
.c2-escenas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.c2-escena { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: center; text-align: left;
             padding: 10px; border: 3px solid var(--cq-ink); border-radius: 16px; background: var(--cq-bg); color: var(--cq-ink); font: inherit; cursor: pointer;
             box-shadow: 3px 3px 0 var(--cq-ink); transition: transform .12s, box-shadow .12s, background .12s; }
.c2-escena-arte { grid-row: 1 / span 2; line-height: 0; border: 3px solid var(--cq-ink); border-radius: 10px; overflow: hidden; }
.c2-escena-arte svg { width: 144px; height: 72px; }
.c2-escena b { font: 800 20px/1.1 var(--cq-head); align-self: end; }
.c2-escena small { color: var(--cq-ink2); font-size: 14px; align-self: start; }
.c2-escena:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--cq-ink); }
.c2-escena.on { background: var(--cq-yellow-l); box-shadow: 5px 5px 0 var(--cq-yellow-d); outline: 3px solid var(--cq-yellow); outline-offset: -8px; }
.c2-niveles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.c2-nivel { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; text-align: center; cursor: pointer;
            border: 3px solid var(--cq-ink); border-radius: 16px; background: #fff; color: var(--cq-ink); font: inherit; box-shadow: 3px 3px 0 var(--cq-ink);
            transition: transform .12s, box-shadow .12s, background .12s; }
.c2-nivel-arte { height: 64px; display: grid; place-items: center; }
.c2-nivel b { font: 800 19px/1.1 var(--cq-head); }
.c2-nivel small { color: var(--cq-ink2); font-size: 13.5px; line-height: 1.3; }
.c2-mejor { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 13.5px; color: var(--cq-ink2); margin-top: 2px; }
.c2-nivel:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--cq-ink); }
.c2-nivel.on { background: var(--cq-mint-l); box-shadow: 5px 5px 0 var(--cq-mint-d); }
.c2-nivel.on::after { content: ""; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--cq-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' stroke='white' stroke-width='3' fill='none'/%3E%3C/svg%3E") center/14px no-repeat; border: 3px solid var(--cq-ink); }
.c2-nivel.bloq { background: #f1ece2; color: var(--cq-muted); cursor: not-allowed; box-shadow: none; }
.c2-nivel.bloq:hover { transform: none; }
.c2-est { display: inline-block; line-height: 0; }
.c2-est.off { filter: grayscale(1); opacity: .35; }
.c2-elige-pie { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 18px 0 0; }
.c2-abrir { font-size: 20px; padding-left: 26px; padding-right: 26px; }
.c2-stats { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--cq-ink2); }
.c2-elige button:focus-visible, .c2 button:focus-visible { outline: 3px solid var(--cq-blue); outline-offset: 2px; }

/* ---------- preparando ---------- */
.c2-prep { max-width: 560px; margin: 0 auto; padding: 28px 22px; text-align: center; }
.c2-prep p { color: var(--cq-ink2); font-size: 17px; }
.c2-sobres { display: flex; justify-content: center; gap: 22px; margin: 10px 0; }
.c2-sobres > * { animation: c2-bote 1.2s steps(2) infinite; }
.c2-sobres > *:nth-child(2) { animation-delay: .3s; }

/* ---------- juego ---------- */
.c2-juego { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.c2-izq, .c2-der { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.c2-caso { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.c2-caso-arte { flex: none; line-height: 0; }
.c2-caso-t { min-width: 0; flex: 1; }
.c2-caso-t b { font: 800 16px/1.15 var(--cq-head); color: var(--cq-ink2); }
.c2-caso-t p { margin: 2px 0 0; font-size: 16px; line-height: 1.35; }
.c2-caso-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.c2-vidas { display: flex; gap: 2px; line-height: 0; }
.c2-reloj { display: inline-flex; align-items: center; gap: 4px; font: 800 16px/1 var(--cq-head); font-variant-numeric: tabular-nums; }
.c2-plano-caja { line-height: 0; border-radius: 16px; background: #fbf8f2; border: 3px solid var(--cq-ink); box-shadow: var(--cq-sh-lg); overflow: hidden;
                 cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.c2-plano-caja:focus-visible { outline: 4px solid var(--cq-blue); outline-offset: 3px; }
.c2-plano-caja svg { width: 100%; height: auto; display: block; }
@media (min-width: 981px) { .c2-plano-caja { width: min(100%, max(440px, calc(100vh - 250px))); align-self: center; } }
.c2-plano .ficha.mal { animation: c2-tiembla .5s steps(2) 2; }
.c2-gente { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.c2-per { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 7px; min-height: 44px; cursor: pointer;
          border: 3px solid var(--cq-ink); border-radius: 14px; background: #fff; color: var(--cq-ink); font: inherit; box-shadow: 3px 3px 0 var(--cq-ink);
          transition: transform .1s, box-shadow .1s, background .1s; }
.c2-per:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cq-ink); }
.c2-per.on { background: var(--cq-yellow); transform: translateY(-3px); box-shadow: 3px 6px 0 var(--cq-ink); }
.c2-per.puesto:not(.on) { background: #f4efe5; }
.c2-per.fijo::after { content: ""; position: absolute; top: 3px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cq-red); border: 2px solid var(--cq-ink); }
.c2-cara { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--pc); border: 3px solid var(--cq-ink); line-height: 0; }
.c2-cara svg { width: 44px; height: 44px; }
.c2-cara i { position: absolute; left: -7px; bottom: -6px; min-width: 20px; height: 20px; font: 800 13px/16px var(--cq-head); font-style: normal; color: var(--cq-ink);
             background: #fff; border: 2px solid var(--cq-ink); border-radius: 7px; }
.c2-per b { font: 800 15px/1.1 var(--cq-head); }
.c2-per small { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; color: var(--cq-ink2); line-height: 1.1; text-align: center; }
.c2-per.vict .c2-cara { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--cq-ink2); }
.c2-guia { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--cq-ink2); font-size: 15px; }

.c2-pistas, .c2-herr, .c2-acusa { padding: 14px 16px; }
.c2-sobre { border: 3px solid var(--cq-ink); border-radius: 14px; margin-top: 10px; overflow: hidden; }
.c2-sobre1 { --j: var(--cq-coral); --j-l: var(--cq-coral-l); --j-d: var(--cq-coral-d); }
.c2-sobre2 { --j: var(--cq-blue); --j-l: var(--cq-blue-l); --j-d: var(--cq-blue-d); }
.c2-sobre-b { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; text-align: left; background: var(--j-l); color: var(--cq-ink);
              border: 0; font: inherit; line-height: 1.25; }
button.c2-sobre-b { cursor: pointer; min-height: 60px; }
button.c2-sobre-b:hover { filter: brightness(1.03); }
.c2-sobre-b b { display: block; font: 800 17px/1.15 var(--cq-head); }
.c2-sobre-b small { color: var(--cq-ink2); font-size: 14px; font-weight: 600; }
.c2-sobre.cerrado .c2-sobre-b { background: repeating-linear-gradient(-45deg, var(--j-l) 0 12px, #fff 12px 16px); }
.c2-lista { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; background: #fff; border-top: 3px solid var(--cq-ink); counter-reset: p; }
.c2-pista { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; min-height: 44px; text-align: left; cursor: pointer; font: inherit; font-size: 16px;
            line-height: 1.35; color: var(--cq-ink); background: var(--cq-bg); border: 2px solid var(--cq-line2); border-left: 6px solid var(--j); border-radius: 10px; }
.c2-pista:hover { border-color: var(--j); border-left-color: var(--j); }
.c2-pista.hecha { opacity: .55; text-decoration: line-through; text-decoration-thickness: 2px; background: #f1ece2; }
.c2-caras { display: flex; flex: none; }
.c2-caras .c2-mini + .c2-mini { margin-left: -8px; }
.c2-mini { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--pc); border: 2px solid var(--cq-ink); line-height: 0; flex: none; }
.c2-nota { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; font-weight: 700; color: var(--cq-ink2); background: #fff; border-top: 3px solid var(--cq-ink); }

.c2-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.c2-botones .cq-btn { flex: 1 1 140px; justify-content: center; gap: 6px; }
.c2-botones em { font-style: normal; background: var(--cq-yellow); border: 2px solid var(--cq-ink); border-radius: 8px; padding: 0 6px; font-size: 13px; }
.c2-chk { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; border: 3px solid var(--cq-ink); font-weight: 800; }
.c2-chk.mal { background: var(--cq-coral-l); color: #6d1f0c; }
.c2-chk.bien { background: var(--cq-mint-l); color: var(--cq-mint-d); }

.c2-nota-a { margin: -4px 0 10px; color: var(--cq-ink2); font-size: 14.5px; }
.c2-sosp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c2-sosp li { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 6px; border: 2px solid var(--cq-line2); border-radius: 12px; background: var(--cq-bg); min-width: 0; }
.c2-sosp li b { flex: 1; min-width: 0; font: 800 15px/1.1 var(--cq-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-sosp li.falla { opacity: .6; }
.c2-sosp li.falla b { text-decoration: line-through; }
.c2-sosp li.cul { background: var(--cq-yellow-l); border-color: var(--cq-yellow-d); }
.c2-falla { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 800; color: var(--cq-ink2); }
.c2-manos { display: flex; gap: 4px; flex: none; }
.c2-mano { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 11px; border: 2px dashed #b9b2a3; background: #fff; cursor: pointer; line-height: 0; }
.c2-mano svg { opacity: .45; transition: opacity .1s; }
.c2-mano:not(:disabled):hover svg { opacity: .8; }
.c2-mano:disabled:not(.on) svg { opacity: .2; filter: grayscale(1); }
.c2-mano.on { border: 3px solid var(--cq-ink); }
.c2-mano1.on { background: var(--cq-coral-l); box-shadow: 2px 2px 0 var(--cq-coral-d); }
.c2-mano2.on { background: var(--cq-blue-l); box-shadow: 2px 2px 0 var(--cq-blue-d); }
.c2-mano.on svg { opacity: 1; filter: none; }
.c2-mano:disabled { cursor: default; }
.c2-pide-ac { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--cq-yellow-l); border: 3px solid var(--cq-ink); font-weight: 700; }

/* reglas */
.c2-reglas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.c2-reglas figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 15px; line-height: 1.35; }
.c2-reglas .cq-px { line-height: 0; }

/* final */
.dosd-fin-extra { margin: 8px 0 4px; }
.c2-fin-est { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.c2-fin-datos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.c2-fin-datos li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 2px solid var(--cq-ink); border-radius: 10px; background: #fff; font-weight: 800; }
.c2-fin-sig { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--cq-mint-d) !important; }

@keyframes c2-bote { 50% { transform: translateY(-5px); } }
@keyframes c2-tiembla { 50% { transform: translateX(3px); } }

@media (max-width: 980px) {
  .c2-juego { grid-template-columns: minmax(0, 1fr); }
  .c2-niveles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .c2-elige { padding: 16px 12px; }
  .c2-elige-cab { gap: 10px; }
  .c2-elige-cab .cq-px, .c2-elige-cab > svg { width: 56px; height: auto; }
  .c2-elige-cab p { font-size: 15px; }
  .c2-escenas { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .c2-escena-arte svg { width: 112px; height: 56px; }
  .c2-niveles { gap: 10px; }
  .c2-caso { padding: 8px 10px; gap: 8px; align-items: flex-start; }
  .c2-caso-arte svg { width: 40px; height: 40px; }
  .c2-caso-t p { font-size: 14.5px; }
  .c2-vidas svg { width: 22px; height: 22px; }
  .c2-plano-caja { border-radius: 12px; box-shadow: var(--cq-sh); }
  .c2-gente { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; }
  .c2-per { padding: 5px 2px 6px; border-radius: 12px; }
  .c2-per .c2-papel { display: none; }
  .c2-per b { font-size: 13.5px; }
  .c2-cara { width: 44px; height: 44px; }
  .c2-cara svg { width: 36px; height: 36px; }
  .c2-per small { font-size: 11.5px; }
  .c2-pistas, .c2-herr, .c2-acusa { padding: 12px; }
  .c2-pista { font-size: 15px; }
  .c2-sosp { grid-template-columns: minmax(0, 1fr); }
  .c2-reglas { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .c2-sobres > *, .c2-plano .ficha.mal { animation: none !important; }
  .c2 * { transition: none !important; }
}
