/* Completa la canción: encima de ../adivina.css (pantallas, botones, opciones) */
:root { --cp-verde: #2f7d6d; --cp-hueco: #e8f4f1; }
.cp-setup { max-width: 820px; }
.cp-grupo { margin: 10px 0 6px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cp-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 3px; }
.cp-cancion { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 9px 12px; border-radius: 14px; background: #fff; color: var(--ink); text-align: left; box-shadow: inset 0 0 0 2.5px var(--line); }
.cp-cancion b { font-size: 16px; font-weight: 800; line-height: 1.15; }
.cp-cancion small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cp-cancion.on { background: #fff3e0; box-shadow: inset 0 0 0 3px var(--orange-ink); }

.cp-progreso { font-size: 20px; font-weight: 900; padding: 0 18px; font-variant-numeric: tabular-nums; }

/* la hoja (con scroll si la canción es larga) y debajo el panel para responder */
.cp-escena { flex: 1; min-height: 0; width: 100%; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 2px clamp(8px, 1.6vw, 18px) calc(8px + env(safe-area-inset-bottom)); }
.cp-papel { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fffdf7; color: var(--ink); border-radius: 22px; padding: 6px 10px 4px; box-shadow: var(--shadow); }
.cp-cabecera { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 8px 0; }
.cp-cabecera b { font-size: clamp(16px, 2vw, 22px); font-weight: 900; line-height: 1.15; }
.cp-cabecera span { font-size: clamp(13px, 1.5vw, 16px); font-weight: 600; font-style: italic; color: var(--muted); text-align: right; }
.cp-hoja { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cp-panel { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cp-mensaje { min-height: 1.3em; margin: 0; font-size: clamp(16px, 2vw, 20px); font-weight: 800; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cp-mensaje.bien { color: #e9ffe8; } .cp-mensaje.mal { color: #fff1c9; } .cp-mensaje.ayuda { color: #ffe3cf; }
.cp-nombres { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 820px; }
.cp-nom { min-height: 60px; border-radius: 16px; background: #fff; color: var(--ink); font-size: clamp(20px, 3vw, 28px); font-weight: 900; box-shadow: var(--shadow-sm), inset 0 -4px 0 var(--line); transition: transform .12s; }
.cp-nom:active { transform: scale(.95); }
.cp-pent { display: flex; gap: 10px; align-items: center; }
.cp-flecha { width: 64px; height: 60px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 26px; font-weight: 900; box-shadow: var(--shadow-sm), inset 0 -4px 0 var(--line); }
.cp-poner { min-height: 60px; }
.cp-fin { width: 100%; max-width: 820px; text-align: center; }
.cp-fin-texto { margin: 0 0 8px; font-size: clamp(17px, 2.2vw, 22px); font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cp-fin-botones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 600px) {
  .cp-nombres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cp-fin-botones { grid-template-columns: 1fr; }
}

/* partitura */
.cp-partitura { display: block; width: 100%; height: auto; }
.cp-linea, .cp-barra, .cp-adic { stroke: currentColor; stroke-width: 1.6; }
.cp-barra.final { stroke-width: 4; }
.cp-partitura .clef path { stroke: currentColor; } .cp-partitura .clef circle, .cp-partitura .clef rect { fill: currentColor; }
.cp-plica { stroke: currentColor; stroke-width: 2.4; }
.cp-cabeza ellipse.llena, .cp-cabeza ellipse.abierta { fill: currentColor; } .cp-cabeza ellipse.hueco { fill: #fffdf7; }
.cp-corchete, .cp-puntillo, .cp-silencio { fill: currentColor; }
.cp-sil-negra { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.cp-sost path { stroke: currentColor; fill: none; }
.cp-ligadura { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cp-compas { font: 900 44px Outfit, sans-serif; fill: currentColor; }
.cp-num { font: italic 600 14px Outfit, sans-serif; fill: var(--muted); }
.cp-tresillo { font: italic 800 17px Outfit, sans-serif; fill: currentColor; }
.cp-tresillo-c { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* huecos */
.cp-caja { fill: var(--cp-hueco); stroke: var(--cp-verde); stroke-width: 2.5; stroke-dasharray: 7 5; }
.cp-caja.elegida { fill: #fff1dc; stroke: var(--orange-ink); stroke-width: 3.5; stroke-dasharray: none; }
.cp-caja.mal { fill: #ffe0dc; stroke: #c0392b; animation: cp-temblor .3s; }
.cp-caja.hecha { fill: #e3f5e1; stroke: none; }
.cp-caja.hecha.ayuda { fill: #fde9d6; }
@keyframes cp-temblor { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.cp-toque { fill: transparent; cursor: pointer; }
.cp-interroga { font: 900 30px Outfit, sans-serif; fill: var(--cp-verde); pointer-events: none; }
.cp-fantasma { color: var(--orange-ink); opacity: .85; }
.cp-bien { color: #23794a; } .cp-ayudada { color: var(--orange-ink); }
.cp-nombre { font: 800 18px Outfit, sans-serif; fill: currentColor; }
.cp-nota.suena { color: #d35400; }
.cp-nota { transition: color .1s; }
