/* Trivial Navideño de Clase */
:root {
  --tinta: #2a2140;
  --oro: #ffd84a;
  --oro2: #e2a514;
  --crema: #fff8e8;
  --noche: #16287a;
  --rojo: #e2453a;
  --verde: #26a845;
  --lila: #a77bff;
  --alto: 100vh;
  --cat: #e2453a;
}
@supports (height: 100dvh) { :root { --alto: 100dvh; } }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1a5e; }
body { font-family: "Baloo 2", system-ui, sans-serif; color: var(--tinta); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button { font-family: inherit; color: inherit; cursor: pointer; }
input { font-family: inherit; }
[hidden] { display: none !important; }
#fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#app { position: relative; z-index: 1; height: var(--alto); max-width: 1500px; margin: 0 auto; }
.pant { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(8px + env(safe-area-inset-bottom, 0px)); animation: entra 0.35s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }
.spr { display: block; pointer-events: none; }

/* ---------- botones */
.btn { border: 0; border-radius: 999px; min-height: 52px; padding: 6px 22px; font: 800 20px/1.1 "Baloo 2", sans-serif; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5); transition: transform 0.08s; position: relative; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.btn:disabled { filter: grayscale(0.7) brightness(0.9); opacity: 0.6; cursor: default; }
.btn.oro { background: linear-gradient(180deg, #fff1a6, var(--oro) 45%, var(--oro2)); color: #5a3400; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.crema { background: linear-gradient(180deg, #fff, #f3e6c8); }
.btn.lila { background: linear-gradient(180deg, #e2d4ff, var(--lila)); color: #2a1660; }
.btn.verde { background: linear-gradient(180deg, #8ef07c, var(--verde)); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn.rojo { background: linear-gradient(180deg, #ff8f84, var(--rojo)); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn.azul { background: linear-gradient(180deg, #9cc8ff, #2f6fe0); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn.grande { min-height: 62px; font-size: 24px; }
.btn.peq { min-height: 44px; font-size: 17px; padding: 4px 14px; }
.redondo { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 3px solid var(--tinta); background: var(--crema); font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); padding: 0; }
.chip { flex: 0 0 auto; background: var(--crema); border: 3px solid var(--tinta); border-radius: 999px; padding: 2px 12px; font-weight: 800; font-size: 17px; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); }
.hueco { width: 44px; flex: 0 0 auto; }

/* ---------- barra superior */
.barra { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.barra h1 { flex: 1; margin: 0; font: 400 clamp(18px, 5vw, 28px)/1.05 "Lilita One", sans-serif; color: #fff; text-shadow: 0 2px 0 var(--tinta), 0 0 8px rgba(0, 0, 0, 0.4); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- portada */
#pMenu { justify-content: space-between; align-items: center; }
.esquina { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 2; display: flex; gap: 8px; }
.menu-logo { width: min(92%, 520px); margin-top: 18px; }
.menu-logo canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35)); }
.menu-pj { flex: 1; min-height: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; padding-bottom: 8px; }
.menu-pj .spr { filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.35)); pointer-events: auto; cursor: pointer; }
.menu-botones { width: min(100%, 420px); display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.menu-botones .fila { display: flex; gap: 10px; }
.menu-botones .fila .btn.lila { flex: 1; }
.cursos { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; color: #fff; font-weight: 800; text-shadow: 0 2px 0 var(--tinta); }
.cursos > span { background: rgba(20, 30, 70, 0.6); border-radius: 10px; padding: 0 6px; }
.cursos button { height: 40px; padding: 0 10px; border-radius: 12px; border: 3px solid var(--tinta); background: rgba(255, 248, 232, 0.9); font-weight: 800; font-size: 16px; color: var(--tinta); text-shadow: none; }
.cursos button.sel { background: var(--oro); transform: scale(1.06); box-shadow: 0 0 0 3px #fff; }

/* ---------- preparar equipos */
.prepara { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; width: min(100%, 760px); margin: 0 auto; padding: 4px 2px 16px; }
.opcion { background: rgba(255, 248, 232, 0.95); border: 3px solid var(--tinta); border-radius: 18px; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
.opcion > span { font-weight: 800; font-size: 17px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 12px; border-radius: 12px; border: 3px solid var(--tinta); background: #fff; font-weight: 800; font-size: 16px; }
.seg button.sel { background: var(--oro); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--oro2); }
.lista-equipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.eq-card { background: #fff; border: 4px solid var(--tinta); border-radius: 20px; padding: 6px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); border-top: 10px solid var(--eq); }
.eq-card canvas { width: 84px; height: 84px; }
.eq-card input { width: 100%; text-align: center; border: 3px solid var(--tinta); border-radius: 12px; padding: 4px 6px; font-size: 17px; font-weight: 800; color: var(--tinta); background: #fffdf6; user-select: text; -webkit-user-select: text; }

/* ---------- tablero */
.tablero { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.marcador { display: flex; gap: 6px; justify-content: center; }
.equipo { flex: 1 1 0; min-width: 0; max-width: 260px; background: rgba(255, 248, 232, 0.95); border: 3px solid var(--tinta); border-top: 8px solid var(--eq); border-radius: 16px; padding: 4px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); transition: transform 0.25s, box-shadow 0.25s; position: relative; }
.equipo.turno { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 4px var(--oro), 0 6px 0 rgba(0, 0, 0, 0.3); z-index: 1; }
.equipo.turno::after { content: "▼ turno"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--oro); border: 2px solid var(--tinta); border-radius: 999px; padding: 0 8px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.equipo .nom { font: 400 15px/1.1 "Lilita One", sans-serif; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipo .fila-eq { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.equipo .pts { font: 400 22px/1 "Lilita One", sans-serif; color: #8a5a00; }
.equipo .arbol { position: relative; }
.centro { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ruleta-zona { position: relative; aspect-ratio: 1; height: 100%; max-height: min(420px, 82vw); min-height: 0; flex: 0 1 auto; cursor: pointer; }
.ruleta { width: 100%; height: 100%; will-change: transform; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4)); }
.ruleta canvas { width: 100%; height: 100%; display: block; }
.aguja { position: absolute; left: 50%; top: -6%; width: 16%; transform: translateX(-50%); z-index: 2; pointer-events: none; transform-origin: 50% 20%; }
.aguja canvas { width: 100%; height: auto; display: block; }
.aguja.tic { animation: tic 0.12s; }
@keyframes tic { 50% { transform: translateX(-50%) rotate(-14deg); } }
#tGirar { width: min(100%, 360px); }
#tGirar:not(:disabled) { animation: late 1.4s infinite; }
@keyframes late { 50% { transform: scale(1.04); } }
.presenta { display: flex; align-items: flex-end; gap: 8px; min-height: 92px; }
.pj-zona { flex: 0 0 auto; width: 80px; height: 94px; margin-bottom: -6px; }
.bocadillo { position: relative; flex: 1; align-self: center; background: #fff; border: 3px solid var(--tinta); border-radius: 18px; padding: 6px 12px; font-weight: 700; font-size: clamp(15px, 3.9vw, 19px); line-height: 1.2; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); min-height: 46px; display: flex; align-items: center; }
.bocadillo::before { content: ""; position: absolute; left: -12px; bottom: 14px; border: 8px solid transparent; border-right: 12px solid var(--tinta); border-left: 0; }
.bocadillo::after { content: ""; position: absolute; left: -7px; bottom: 16px; border: 6px solid transparent; border-right: 9px solid #fff; border-left: 0; }
.bocadillo:empty { visibility: hidden; }
.bocadillo > span { display: block; }
.cat-sale { position: fixed; left: 50%; top: 50%; z-index: 22; transform: translate(-50%, -50%); background: var(--cat); color: #fff; border: 5px solid var(--tinta); border-radius: 28px; padding: 14px 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 400 clamp(26px, 6vw, 48px)/1.05 "Lilita One", sans-serif; text-shadow: 0 3px 0 var(--tinta); box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35); animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); text-align: center; }
.cat-sale canvas { width: clamp(90px, 18vw, 160px); height: auto; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3)); }

/* ---------- pregunta */
.mini-marcador { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.mini-marcador:empty { display: none; }
.mini-marcador span { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 248, 232, 0.92); border: 2px solid var(--tinta); border-left: 8px solid var(--eq); border-radius: 999px; padding: 0 10px 0 6px; font-weight: 800; font-size: 15px; }
.mini-marcador span.turno { background: var(--oro); }
.mini-marcador canvas { width: 26px; height: 26px; }
.mini-marcador .nm { font-weight: 800; margin-right: 2px; }
.mini-marcador span { white-space: nowrap; }
@media (max-width: 600px) { .mini-marcador .nm { display: none; } .mini-marcador { flex-wrap: nowrap; } .mini-marcador span { font-size: 14px; padding-right: 6px; } }
.reloj { height: 14px; border-radius: 999px; border: 3px solid var(--tinta); background: rgba(255, 255, 255, 0.3); overflow: hidden; margin: 0 auto 8px; width: min(100%, 900px); }
.reloj i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ff5a5f, #ffd84a, #7cf06b); transition: width 0.1s linear; }
.tarjeta { position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto; background: linear-gradient(180deg, #fffdf6, #fff4dc); border: 4px solid var(--tinta); border-top: 14px solid var(--cat); border-radius: 22px; padding: 12px 46px 12px 12px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); display: flex; gap: 10px; align-items: center; width: min(100%, 1100px); margin: 0 auto; }
.q-ico { flex: 0 0 auto; width: 56px; }
.q-ico canvas { width: 100%; height: auto; display: block; }
.tarjeta p { margin: 0; font-weight: 800; font-size: clamp(19px, 5vw, 24px); line-height: 1.25; }
.tarjeta .voz { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--tinta); background: #fff; font-size: 18px; padding: 0; }
.opciones { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px auto 0; width: min(100%, 1100px); }
.op { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 54px; border: 4px solid var(--tinta); border-radius: 18px; background: #fff; padding: 6px 12px 6px 6px; font-weight: 800; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.15; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); transition: transform 0.1s, opacity 0.3s; }
.op:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.op .letra { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--tinta); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 400 22px "Lilita One", sans-serif; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.op:nth-child(1) .letra { background: #e2453a; }
.op:nth-child(2) .letra { background: #2f6fe0; }
.op:nth-child(3) .letra { background: #f28a12; }
.op:nth-child(4) .letra { background: #26a845; }
.op.bien { background: #d9f8d6; border-color: #148a32; animation: pum 0.45s; }
.op.mal { background: #ffdcd6; animation: tiembla 0.4s; }
.op.fuera { opacity: 0.35; }
.op:disabled { cursor: default; }
@keyframes pum { 40% { transform: scale(1.05); } }
@keyframes tiembla { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.resultado { width: min(100%, 1100px); margin: 10px auto 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.dato { width: 100%; background: #eaf7ff; border: 3px solid #2f6fe0; border-radius: 16px; padding: 6px 12px; font-weight: 700; font-size: clamp(15px, 4vw, 19px); line-height: 1.3; }
.dato b { color: #1b4fb0; }
.resultado .btn { min-width: min(100%, 320px); }
.pie { position: relative; display: flex; align-items: flex-end; gap: 8px; min-height: 86px; margin-top: auto; padding-top: 6px; }

/* ---------- ventanas */
.velo { position: fixed; inset: 0; z-index: 20; background: rgba(15, 10, 40, 0.6); display: flex; align-items: center; justify-content: center; padding: 12px; animation: aparece 0.2s; }
@keyframes aparece { from { opacity: 0; } }
.ventana { width: min(100%, 480px); max-height: calc(var(--alto) - 24px); overflow-y: auto; background: linear-gradient(180deg, #fffdf6, #f6ead0); border: 4px solid var(--tinta); border-radius: 26px; padding: 14px 14px 16px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35); animation: pop 0.3s cubic-bezier(0.2, 1.5, 0.4, 1); text-align: center; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; } }
.ventana { animation-name: popv; }
@keyframes popv { from { transform: scale(0.7); opacity: 0; } }
.ventana h2 { margin: 0 0 4px; font: 400 24px/1.1 "Lilita One", sans-serif; }
.ventana p { margin: 4px 0 8px; font-weight: 700; font-size: 17px; line-height: 1.25; }
.ventana .fila { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.ventana .fila .btn { flex: 1; min-width: 120px; }
.ventana .ajuste { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 18px; padding: 6px 4px; border-bottom: 2px dashed #e2d4b0; }
.ventana .ajuste input { width: 26px; height: 26px; }

/* ---------- avisos */
.toast { position: fixed; left: 50%; top: 16%; z-index: 30; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: #fff; border: 4px solid var(--tinta); border-radius: 20px; padding: 8px 18px; font: 400 22px/1.2 "Lilita One", sans-serif; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); transition: opacity 0.25s, transform 0.25s; text-align: center; max-width: 90%; }
.toast.ver { opacity: 1; transform: translate(-50%, 0); }
.toast.bien { background: #e6fbe6; }
.toast.mal { background: #ffe6e2; }
.chispas { position: fixed; inset: 0; pointer-events: none; z-index: 25; }
.vuela { position: fixed; z-index: 26; pointer-events: none; transition: transform 0.8s cubic-bezier(0.5, -0.3, 0.5, 1.2); }

/* ---------- final */
.escena { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; position: relative; }
.escena .msg { background: #fff; border: 4px solid var(--tinta); border-radius: 20px; padding: 6px 16px; font: 400 clamp(20px, 5vw, 30px)/1.15 "Lilita One", sans-serif; text-align: center; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); margin-bottom: auto; margin-top: 6px; }
.podio-zona { position: relative; width: min(100%, 640px); }
.podio-zona > canvas { width: 100%; height: auto; display: block; }
.podio-zona .en-podio { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.podio-zona .en-podio .nom { background: rgba(255, 248, 232, 0.95); border: 2px solid var(--tinta); border-radius: 999px; padding: 0 8px; font-weight: 800; font-size: clamp(12px, 3vw, 16px); white-space: nowrap; }
.resumen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.resumen span { background: rgba(255, 248, 232, 0.92); border: 2px solid var(--tinta); border-left: 8px solid var(--eq); border-radius: 999px; padding: 0 10px; font-weight: 800; }
.acciones { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; width: min(100%, 420px); margin: 0 auto; }
.acciones .fila { display: flex; gap: 10px; }
.acciones .fila .btn { flex: 1; }

/* ---------- diploma para imprimir */
#imprimir { display: none; }
.diploma { font-family: "Baloo 2", system-ui, sans-serif; color: #2a2140; border: 6px double #c4202d; border-radius: 18px; padding: 10mm; text-align: center; height: 180mm; display: flex; flex-direction: column; align-items: center; justify-content: space-between; break-after: page; }
.diploma:last-child { break-after: auto; }
.diploma h2 { margin: 0; font: 400 34pt/1.1 "Lilita One", sans-serif; color: #c4202d; }
.diploma .equipo-d { font: 400 30pt/1.1 "Lilita One", sans-serif; color: #1f7a44; }
.diploma p { margin: 0; font-size: 15pt; font-weight: 700; }
.diploma .fila-d { display: flex; align-items: flex-end; justify-content: center; gap: 10mm; }
.diploma img { height: 55mm; }
.diploma .logo-d { height: 26mm; }
.diploma .firma { display: flex; justify-content: space-between; width: 100%; font-size: 12pt; }
.diploma .firma span { border-top: 1.5px solid #2a2140; padding-top: 2mm; width: 60mm; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html, body { height: auto; overflow: visible; background: #fff; }
  body > *:not(#imprimir) { display: none !important; }
  #imprimir { display: block !important; }
}

/* ---------- pizarra digital y ordenador (horizontal ancho) */
@media (min-width: 900px) and (orientation: landscape) {
  .pant { padding: 14px 22px; }
  .tablero { flex-direction: row; gap: 18px; }
  .marcador { flex-direction: column; justify-content: center; width: clamp(230px, 24vw, 340px); gap: 18px; }
  .equipo { max-width: none; flex: 0 1 auto; flex-direction: row; justify-content: space-between; padding: 6px 12px; border-top-width: 3px; border-left: 14px solid var(--eq); }
  .equipo.turno { transform: translateX(8px) scale(1.04); }
  .equipo.turno::after { content: "◀ turno"; top: 50%; left: auto; right: -84px; transform: translateY(-50%); font-size: 15px; }
  .equipo .nom { font-size: clamp(17px, 1.6vw, 24px); }
  .equipo .pts { font-size: clamp(26px, 2.4vw, 36px); }
  .centro { flex: 1; }
  .ruleta-zona { max-height: min(640px, 72vh); }
  .presenta { flex-direction: column-reverse; align-items: center; justify-content: flex-end; width: clamp(200px, 22vw, 320px); }
  .presenta .pj-zona { width: clamp(160px, 16vw, 240px); height: clamp(186px, 19vw, 280px); }
  .presenta .bocadillo { align-self: stretch; flex: 0 0 auto; font-size: clamp(18px, 1.6vw, 24px); }
  .presenta .bocadillo::before { left: 50%; bottom: -14px; border: 10px solid transparent; border-top: 14px solid var(--tinta); border-bottom: 0; }
  .presenta .bocadillo::after { left: calc(50% + 3px); bottom: -9px; border: 7px solid transparent; border-top: 10px solid #fff; border-bottom: 0; }
  .tarjeta { padding: 18px 60px 18px 18px; }
  .q-ico { width: clamp(70px, 7vw, 110px); }
  .tarjeta p { font-size: clamp(24px, 2.6vw, 42px); }
  .tarjeta .voz { width: 48px; height: 48px; font-size: 24px; }
  .opciones { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
  .op { min-height: clamp(70px, 9vh, 110px); font-size: clamp(20px, 2vw, 32px); }
  .op .letra { width: 54px; height: 54px; font-size: 30px; }
  .dato { font-size: clamp(18px, 1.6vw, 26px); }
  .mini-marcador span { font-size: clamp(15px, 1.3vw, 20px); padding: 2px 14px 2px 8px; }
  .mini-marcador canvas { width: 34px; height: 34px; }
  .pie { min-height: 110px; }
  .pie .pj-zona { width: 100px; height: 116px; }
  .barra h1 { font-size: clamp(24px, 2.4vw, 38px); }
  .redondo { width: 52px; height: 52px; font-size: 24px; }
  .menu-logo { width: min(44%, 560px); }
}
@media (max-height: 700px) {
  .menu-logo { margin-top: 4px; width: min(76%, 380px); }
  .btn.grande { min-height: 54px; font-size: 21px; }
  .btn { min-height: 46px; }
  .presenta { min-height: 70px; }
  .pj-zona { width: 60px; height: 70px; }
  .pie { min-height: 70px; }
  .op { min-height: 48px; }
}
@media (max-height: 700px) and (min-width: 900px) and (orientation: landscape) {
  .pie { min-height: 0; }
  .pie .pj-zona { width: 70px; height: 82px; }
  .op { min-height: 58px; }
  .tarjeta p { font-size: clamp(20px, 2.2vw, 32px); }
}

/* ---------- pizarra digital grande (1600×900 o más) */
@media (min-width: 1500px) and (min-height: 880px) and (orientation: landscape) {
  .menu-logo { width: min(40%, 680px); }
  .menu-botones { width: min(100%, 600px); gap: 16px; }
  .btn { min-height: 64px; font-size: 26px; }
  .btn.grande { min-height: 80px; font-size: 32px; }
  .btn.peq { min-height: 56px; font-size: 22px; }
  .cursos button { height: 52px; font-size: 22px; padding: 0 16px; }
  .cursos { font-size: 22px; }
  .prepara { width: min(100%, 1180px); gap: 14px; }
  .opcion { padding: 12px 18px; }
  .opcion > span { font-size: 26px; }
  .seg button { min-height: 56px; font-size: 24px; padding: 0 18px; }
  .eq-card canvas { width: 130px; height: 130px; }
  .eq-card input { font-size: 24px; }
  .lista-equipos { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .marcador { width: clamp(300px, 26vw, 480px); }
  .ruleta-zona { max-height: min(760px, 74vh); }
  .op { min-height: clamp(90px, 12vh, 140px); }
  .resultado .btn { min-width: 420px; }
  .ventana { width: min(100%, 640px); }
  .ventana h2 { font-size: 32px; }
  .ventana p, .ventana .ajuste { font-size: 22px; }
  .escena .msg { font-size: 40px; }
  .resumen span { font-size: 22px; }
  .podio-zona .en-podio .nom { font-size: 20px; }
}
