/* Pizarra táctica ([nsb_pizarra], assets/pizarra.js) */
.nsb-pz { --pz-azul: #072564; --pz-azul2: #1D3D91; --pz-amarillo: #FFA900; --pz-gris: #E2E7F0; font-size: .92rem; }
.nsb-pz button { font: inherit; cursor: pointer; }
.nsb-pz button:disabled { opacity: .4; cursor: default; }
.nsb-pz__cargando { color: var(--wp--preset--color--accent-4); }

/* Nombre, tipo y guardar */
.nsb-pz__cab { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.nsb-pz__nombre { flex: 1 1 260px; padding: .6rem .8rem; border: 2px solid var(--pz-gris); border-radius: 10px; font: inherit; }
.nsb-pz__tipo { padding: .55rem .6rem; border: 2px solid var(--pz-gris); border-radius: 10px; font: inherit; background: #fff; }
.nsb-pz__guardar { padding: .55rem 1.3rem; border: 0; border-radius: 10px; background: var(--pz-azul); color: #fff; font-weight: 700 !important; }
.nsb-pz__guardar.is-sucio { background: var(--pz-amarillo); color: var(--pz-azul); }
.nsb-pz__guardar.is-sucio::after { content: " •"; }

/* Herramientas */
.nsb-pz__herr, .nsb-pz__pasos { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .5rem; }
.nsb-pz__herr button, .nsb-pz__pasos button, .nsb-pz__bib button, .nsb-pz__repro button {
	padding: .45rem .75rem; border: 2px solid var(--pz-gris); border-radius: 999px; background: #fff; color: var(--pz-azul); font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.nsb-pz__herr button span { font-weight: 400; }
.nsb-pz button.is-activa { background: var(--pz-azul); border-color: var(--pz-azul); color: #fff; }
.nsb-pz__sep { width: 1px; height: 1.6rem; background: var(--pz-gris); margin: 0 .25rem; }
.nsb-pz__defensa { display: inline-flex; align-items: center; gap: .3rem; margin-left: .25rem; font-weight: 700; color: var(--pz-azul); }
.nsb-pz__pasos small { font-weight: 400; opacity: .7; }
.nsb-pz__pasos .nsb-pz__mas { border-style: dashed; }
.nsb-pz__pasos .nsb-pz__menos { border: 0; background: none; color: #b42318; font-weight: 600; }
.nsb-pz__aviso { min-height: 1.4em; margin: .1rem 0 .6rem !important; color: var(--wp--preset--color--accent-4); font-size: .85rem; }
.nsb-pz__aviso.is-error { color: #b42318; font-weight: 600; }

/* Pista y panel lateral */
.nsb-pz__cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; align-items: start; }
.nsb-pz.is-completa .nsb-pz__cuerpo { grid-template-columns: 1fr; }
.nsb-pz__lienzo { background: #0b1530; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(7, 37, 100, .18); }
.nsb-pz__svg { display: block; width: 100%; height: auto; max-height: 78vh; touch-action: none; user-select: none; -webkit-user-select: none; }
.nsb-pz__svg text { font-family: inherit; pointer-events: none; }
.nsb-pz__ficha { cursor: grab; }
.nsb-pz.is-animando .nsb-pz__svg { cursor: default; }

.nsb-pz__lado h3 { margin: 1.1rem 0 .5rem; font-size: 1rem; }
.nsb-pz__repro { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .8rem; border-radius: 12px; background: var(--wp--preset--color--accent-5); }
.nsb-pz__repro .nsb-pz__play { background: var(--pz-amarillo); border-color: var(--pz-amarillo); }
.nsb-pz__repro label { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; }
.nsb-pz__repro select { padding: .25rem; border-radius: 8px; border: 1px solid var(--pz-gris); }
.nsb-pz__estado { flex-basis: 100%; margin: 0 !important; font-weight: 700; color: var(--pz-azul); min-height: 1.2em; }
.nsb-pz__bib { display: flex; flex-wrap: wrap; gap: .35rem; }
.nsb-pz__bib .nsb-pz__borrar { color: #b42318; }
.nsb-pz__lista { list-style: none; margin: .6rem 0 0; padding: 0; max-height: 40vh; overflow: auto; }
.nsb-pz__lista li { margin: 0; }
.nsb-pz__lista button { width: 100%; text-align: left; padding: .45rem .6rem; border: 0; border-radius: 8px; background: none; color: var(--pz-azul); font-weight: 600; }
.nsb-pz__lista button:hover { background: var(--wp--preset--color--accent-5); }
.nsb-pz__grupo { margin-top: .5rem !important; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.nsb-pz__vacio { color: var(--wp--preset--color--accent-4); font-size: .85rem; }
.nsb-pz__leyenda { margin-top: 1rem; font-size: .85rem; }
.nsb-pz__leyenda summary { cursor: pointer; font-weight: 700; color: var(--pz-azul); }
.nsb-pz__leyenda ul { padding-left: 1rem; }

/* Mientras se representa, nada de editar */
.nsb-pz.is-animando .nsb-pz__herr, .nsb-pz.is-animando .nsb-pz__pasos, .nsb-pz.is-animando .nsb-pz__cab { opacity: .45; pointer-events: none; }

@media (max-width: 900px) {
	.nsb-pz__cuerpo { grid-template-columns: 1fr; }
	.nsb-pz__herr { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; }
	.nsb-pz__sep { display: none; }
}

/* Panel de marcas (sin bote, hacia dónde mira) */
.nsb-pz__lienzo { position: relative; }
.nsb-pz__marca {
	position: absolute; z-index: 5; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
	max-width: 260px; padding: .6rem .7rem; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.nsb-pz__marca[hidden] { display: none; }
.nsb-pz__marca-tit { flex-basis: 100%; margin: 0 1.4rem .15rem 0 !important; font-weight: 800; font-size: .85rem; color: var(--pz-azul); }
.nsb-pz__marca-sub { flex-basis: 100%; margin-top: .2rem; font-size: .75rem; font-weight: 700; color: var(--wp--preset--color--accent-4); }
.nsb-pz__marca button { padding: .35rem .6rem; border: 2px solid var(--pz-gris); border-radius: 999px; background: #fff; color: var(--pz-azul); font-weight: 700; font-size: .8rem; }
.nsb-pz__marca button.is-activa { background: var(--pz-azul); border-color: var(--pz-azul); color: #fff; }
.nsb-pz__marca .nsb-pz__marca-cerrar { position: absolute; top: .3rem; right: .3rem; padding: .1rem .4rem; border: 0; color: var(--wp--preset--color--accent-4); }

/* Casilla "Visible para el equipo" (editor) y ojo en la biblioteca */
.nsb-pz__equipo { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .4rem; font-weight: 700; color: var(--pz-azul); }
.nsb-pz__ojo { font-size: .8rem; opacity: .8; }

/* ---------- Visor de los jugadores ([nsb_jugadas]) ---------- */
.nsb-pz--ver { max-width: 640px; margin: 0 auto; }
.nsb-pz--ver .nsb-pz__ficha { cursor: default; }
.nsb-pz__elige { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .8rem; font-weight: 800; color: var(--pz-azul); }
.nsb-pz__elige span { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.nsb-pz__sel { width: 100%; padding: .7rem .8rem; border: 2px solid var(--pz-gris); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--pz-azul); }
.nsb-pz--ver .nsb-pz__svg { max-height: 70vh; }
.nsb-pz__mando { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: .5rem; margin-top: .8rem; }
.nsb-pz__mando button { padding: .85rem .5rem; border: 2px solid var(--pz-gris); border-radius: 14px; background: #fff; color: var(--pz-azul); font-weight: 800; font-size: 1rem; }
.nsb-pz__mando .nsb-pz__play { border-color: var(--pz-amarillo); background: var(--pz-amarillo); font-size: 1.05rem; }
.nsb-pz__mando2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .6rem; margin-top: .6rem; }
.nsb-pz__mando2 .nsb-pz__repetir { margin-left: auto; }
.nsb-pz__mando2 .nsb-pz__estado { flex-basis: auto; font-size: .95rem; }
.nsb-pz__inicio { padding: .35rem .6rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--accent-5); color: var(--pz-azul); font-weight: 700; font-size: .8rem; }
.nsb-pz--ver .nsb-pz__repetir { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .85rem; color: var(--pz-azul); }
.nsb-pz--ver .nsb-pz__leyenda { margin-top: 1.2rem; }

/* ---------- Vista en 3D ---------- */
.nsb-pz.is-3d .nsb-pz__svg { display: none; }
.nsb-pz__3d { position: relative; }
.nsb-pz__3d canvas { display: block; width: 100% !important; touch-action: none; }
.nsb-pz__vistas { position: absolute; top: .6rem; right: .6rem; display: flex; gap: .3rem; }
.nsb-pz__vistas button { padding: .35rem .6rem; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--pz-azul); font-weight: 700; font-size: .75rem; }
.nsb-pz__3d-ayuda { position: absolute; left: 0; right: 0; bottom: .4rem; margin: 0 !important; text-align: center; font-size: .72rem; color: rgba(255, 255, 255, .75); pointer-events: none; }
.nsb-pz__b3d { margin-top: .8rem; width: 100%; padding: .7rem; border: 2px solid var(--pz-azul2) !important; border-radius: 14px; background: #fff; color: var(--pz-azul2); font-weight: 800; font-size: .95rem; }
.nsb-pz__repro .nsb-pz__b3d { margin-top: 0; width: auto; padding: .45rem .75rem; border-radius: 999px; font-size: .85rem; }
.nsb-pz.is-3d .nsb-pz__b3d { background: var(--pz-azul2); color: #fff; }

/* ---------- Puerta de /jugadas/ para quien no está invitado o no ha entrado (inc/jugadas-acceso.php) ---------- */
.nsb-ja { max-width: 440px; margin: 1.5rem auto; padding: 2rem 1.5rem 1.6rem; border-radius: 20px; background: #072564; color: #fff; text-align: center; box-shadow: 0 18px 40px rgba(7, 37, 100, .25); border-bottom: 5px solid #FFA900; }
.nsb-ja__icono { font-size: 2.2rem; line-height: 1; margin-bottom: .6rem; }
.nsb-ja h2 { margin: 0 0 .6rem !important; color: #fff !important; font-size: 1.45rem !important; }
.nsb-ja p { margin: 0 0 1.1rem !important; color: #d6def0; line-height: 1.5; }
.nsb-ja__form { text-align: left; }
.nsb-ja label { display: block; margin-bottom: .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #d6def0; }
.nsb-ja input[type=email] { width: 100%; box-sizing: border-box; padding: .9rem 1rem; border: 2px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 1.05rem; outline: none; }
.nsb-ja input[type=email]::placeholder { color: rgba(255,255,255,.4); }
.nsb-ja input[type=email]:focus { border-color: #FFA900; }
.nsb-ja__boton { width: 100%; margin-top: .9rem; padding: .95rem; border: 0; border-radius: 999px; background: #FFA900; color: #072564; font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; }
.nsb-ja__nota { margin: 1rem 0 0 !important; font-size: .85rem; color: #9fb0d4 !important; }
.nsb-ja__nota a { color: #FFA900; }
.nsb-ja__boton--otro { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.nsb-ja__codigo { margin: .2rem 0 1rem !important; font-size: 2.2rem; font-weight: 800; letter-spacing: .25em; color: #FFA900 !important; }
.nsb-ja__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem; margin: 1.4rem 0 0; font-size: .85rem; color: #5c6578; }
.nsb-ja__pie button { padding: .35rem .8rem; border: 2px solid #E2E7F0; border-radius: 999px; background: #fff; color: #072564; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }

/* ---------- Textos de la jugada: explicación general y nota de cada paso (se pueden escuchar) ---------- */
.nsb-pz__textos { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; align-items: end; margin: 0 0 .8rem; }
.nsb-pz__textos label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 700; color: var(--pz-azul); }
.nsb-pz__textos textarea { width: 100%; box-sizing: border-box; padding: .5rem .65rem; border: 2px solid var(--pz-gris); border-radius: 10px; font: inherit; font-size: .88rem; font-weight: 500; color: #14213d; resize: vertical; }
.nsb-pz__textos textarea:focus { outline: none; border-color: var(--pz-azul2); }
@media (max-width: 760px) { .nsb-pz__textos { grid-template-columns: 1fr; } }
.nsb-pz__expl { margin: 0 0 .8rem; padding: .8rem 1rem; border-left: 5px solid var(--pz-amarillo); border-radius: 10px; background: #f6f8fb; }
.nsb-pz__expl p { margin: 0 0 .5rem !important; color: #14213d; line-height: 1.5; }
.nsb-pz__expl button { padding: .35rem .8rem; border: 0; border-radius: 999px; background: var(--pz-azul); color: #fff; font-weight: 700; font-size: .8rem; cursor: pointer; }
.nsb-pz__nota { margin: .6rem 0 0 !important; padding: .65rem .9rem; border-radius: 10px; background: var(--pz-azul); color: #fff; line-height: 1.45; font-size: .95rem; }
.nsb-pz__nota b { display: inline-block; margin-right: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--pz-amarillo); color: var(--pz-azul); font-size: .78rem; }
.nsb-pz__voz { padding: .35rem .7rem; border: 2px solid var(--pz-gris); border-radius: 999px; background: #fff; color: var(--pz-azul); font-weight: 700; font-size: .8rem; cursor: pointer; }
.nsb-pz__voz.is-activa { background: var(--pz-azul); border-color: var(--pz-azul); color: #fff; }

/* ---------- Visor: apartados («¿Qué quieres entrenar?») y jugadas de cada uno ---------- */
.nsb-pz__pregunta { margin: 0 0 .5rem !important; font-weight: 800; color: var(--pz-azul); font-size: 1.05rem; }
.nsb-pz__secciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: .9rem; }
.nsb-pz__secciones button { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .75rem .85rem; border: 2px solid var(--pz-gris); border-radius: 14px; background: #fff; color: var(--pz-azul); text-align: left; cursor: pointer; transition: border-color .15s, transform .12s; }
.nsb-pz__secciones button:hover:not(:disabled) { border-color: var(--pz-azul2); transform: translateY(-1px); }
.nsb-pz__secciones button.is-activa { background: var(--pz-azul); border-color: var(--pz-azul); color: #fff; box-shadow: 0 6px 16px rgba(7, 37, 100, .25); }
.nsb-pz__secciones button:disabled { opacity: .45; cursor: default; }
.nsb-pz__sec-ico { font-size: 1.3rem; line-height: 1; }
.nsb-pz__sec-nom { font-weight: 800; font-size: .95rem; }
.nsb-pz__sec-n { font-size: .75rem; font-weight: 600; opacity: .75; }
.nsb-pz__secciones button.is-activa .nsb-pz__sec-n { color: var(--pz-amarillo); opacity: 1; }
.nsb-pz__jugadas-sec { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; padding: .7rem; border-radius: 14px; background: #f6f8fb; }
.nsb-pz__jugadas-sec button { padding: .5rem .85rem; border: 2px solid var(--pz-gris); border-radius: 999px; background: #fff; color: var(--pz-azul); font-weight: 700; font-size: .85rem; text-align: left; cursor: pointer; }
.nsb-pz__jugadas-sec button.is-activa { background: var(--pz-amarillo); border-color: var(--pz-amarillo); color: var(--pz-azul); }
@media (max-width: 560px) { .nsb-pz__secciones { grid-template-columns: repeat(2, 1fr); } }
