/* Concurso en clase: la página del alumno (/sala/) y la pantalla grande del profe (/profesor/sala/) */
.sl-main [hidden], .sp-main [hidden] { display: none !important; }
.sl-main, .sp-main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; font-family: var(--font, "Outfit Local", system-ui, sans-serif); color: #1d1410; }
.sl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sl-volver, .sl-yo { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; background: #fffaf0; color: #1d1410; font-weight: 800; text-decoration: none; box-shadow: 0 2px 0 rgba(60, 25, 5, .25); }
.sl-yo:empty { display: none; }
.sl-card { background: #fffaf0; border-radius: 18px; padding: 28px 22px; text-align: center; box-shadow: 0 6px 22px rgba(40, 15, 0, .22); }
.sl-card h1 { margin: 0 0 8px; font-size: clamp(26px, 6vw, 40px); line-height: 1.1; }
.sl-card p { margin: 6px 0; font-size: clamp(17px, 3.6vw, 21px); line-height: 1.35; }
.sl-grande { font-size: 64px !important; margin: 0 0 8px !important; line-height: 1 !important; }
.sl-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.sl-input { width: 5.2ch; padding: 8px 12px; border: 3px solid #1d1410; border-radius: 14px; background: #fff; font-family: inherit; font-size: 48px; font-weight: 900; line-height: 1; letter-spacing: .12em; text-align: center; color: #1d1410; }
.sl-input:focus { outline: 4px solid #f2c94c; outline-offset: 2px; }
.sl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 26px; border: 0; border-radius: 14px; background: #d8682a; color: #fff; font-family: inherit; font-size: 22px; font-weight: 900; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 rgba(60, 25, 5, .35); }
.sl-btn:disabled { opacity: .5; cursor: default; }
.sl-btn.sec { background: #fffaf0; color: #1d1410; }
.sl-error { min-height: 1.4em; color: #b3261e; font-weight: 800; }
.sl-pts { font-size: clamp(22px, 5vw, 30px) !important; font-weight: 900; }
.sl-red { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 16px; border-radius: 12px; background: #1d1410; color: #fff; font-weight: 800; }

/* Pregunta en el aparato del alumno: botones grandes de colores */
.sl-barra { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sl-pill { padding: 6px 14px; border-radius: 12px; background: #fffaf0; font-weight: 900; font-size: 18px; box-shadow: 0 2px 0 rgba(60, 25, 5, .25); }
.sl-prompt { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: #fffaf0; font-size: clamp(18px, 3.8vw, 24px); font-weight: 800; line-height: 1.3; text-align: center; }
.sl-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sl-opciones.n3 { grid-template-columns: 1fr; }
.sl-op { display: flex; align-items: center; gap: 12px; min-height: clamp(96px, 28vh, 300px); padding: 14px; border: 0; border-radius: 18px; background: var(--c); color: #fff; font-family: inherit; text-align: left; cursor: pointer; box-shadow: 0 5px 0 rgba(0, 0, 0, .28); touch-action: manipulation; }
.sl-op:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.sl-op:disabled { opacity: .35; cursor: default; }
.sl-op.elegida { opacity: 1; outline: 5px solid #1d1410; outline-offset: 3px; }
.sl-op-letra { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 26px; font-weight: 900; }
.sl-op-txt { font-size: clamp(18px, 3.6vw, 26px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.fantasmas .sl-op { justify-content: center; gap: 8px; }
.sl-op-fantasma { font-size: clamp(40px, 9vw, 70px); line-height: 1; }
.sl-op-num { font-size: clamp(44px, 10vw, 80px); font-weight: 900; line-height: 1; }

/* ---------- Pantalla grande (profe) ---------- */
.sp-main { max-width: 1500px; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sp-head h1 { margin: 0; font-size: clamp(24px, 2.6vw, 38px); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.sp-panel { background: #fffaf0; border-radius: 18px; padding: 22px 24px; box-shadow: 0 6px 22px rgba(40, 15, 0, .22); }
.sp-panel h2 { margin: 0 0 10px; font-size: 22px; }
.sp-opciones-prep { display: grid; gap: 16px; }
.sp-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-fila > span:first-child { min-width: 150px; font-weight: 800; }
.sp-seg { min-height: 44px; padding: 6px 14px; border: 2px solid #1d1410; border-radius: 12px; background: #fff; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1; color: #1d1410; cursor: pointer; }
.sp-seg.on { background: #1d1410; color: #fff; }
.sp-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sp-error { color: #b3261e; font-weight: 800; min-height: 1.3em; }

.sp-sala { text-align: center; }
.sp-instr { font-size: clamp(20px, 2vw, 28px); font-weight: 700; margin: 0; }
.sp-codigo { margin: 10px 0 6px; font-size: clamp(110px, 16vw, 240px); font-weight: 900; line-height: 1; letter-spacing: .08em; }
.sp-jugadores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 6px; min-height: 52px; }
.sp-chip { padding: 8px 16px; border-radius: 999px; background: #f2c94c; font-size: clamp(18px, 1.6vw, 24px); font-weight: 900; animation: sp-entra 300ms ease-out both; }
.sp-chip.ya { background: #2f9e57; color: #fff; }
.sp-chip.no { background: #e9dfd3; color: #7a6a60; }
@keyframes sp-entra { from { transform: scale(.6); opacity: 0; } }

.sp-q-barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sp-pill { padding: 8px 16px; border-radius: 12px; background: #fffaf0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 900; box-shadow: 0 2px 0 rgba(60, 25, 5, .25); }
.sp-reloj { font-size: clamp(28px, 3vw, 46px); min-width: 3ch; text-align: center; }
.sp-reloj.poco { background: #e2483d; color: #fff; }
.sp-tag { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 8px; background: #f2c94c; font-weight: 800; }
.sp-prompt { margin: 4px 0 10px; font-size: clamp(28px, 3.4vw, 54px); font-weight: 900; line-height: 1.15; text-align: center; }
.sp-visual { display: flex; justify-content: center; margin: 4px auto 10px; padding: 10px 24px; width: fit-content; max-width: 100%; border-radius: 18px; background: #fffaf0; color: #1d1410; box-shadow: 0 6px 22px rgba(40, 15, 0, .22); }
/* con o sin modo Halloween, la nota se ve siempre oscura sobre papel claro */
html.halloween .sp-visual { background: #fffaf0; color: #1d1410; }

.sp-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.sp-op { position: relative; display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 14px 18px; border-radius: 16px; background: var(--c); color: #fff; font-size: clamp(22px, 2.3vw, 36px); font-weight: 800; transition: opacity .3s; }
.sp-op b { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 30px; }
.sp-op .sp-cuenta { margin-left: auto; padding: 2px 12px; border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: .8em; }
.sp-op.mal { opacity: .3; }
.sp-op.bien { outline: 6px solid #1d1410; outline-offset: 3px; }
.sp-op.bien::after { content: "✓"; position: absolute; right: -10px; top: -16px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #1d1410; color: #fff; font-size: 30px; }
.sp-respondidos { margin-top: 12px; text-align: center; font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; }
.sp-listen { margin: 0 auto 6px; }

/* Fantasmas en la pantalla grande */
.sp-fantasmas { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 34px); margin-top: 8px; }
.sp-fantasma { position: relative; width: clamp(150px, 17vw, 260px); aspect-ratio: 160 / 190; transition: opacity .3s; animation: sp-flota 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.sp-fantasma .ghost-body { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sp-fantasma .ghost-body path { fill: #f7f3ff; }
.sp-fantasma .ghost-body .pj-ghost-sh { fill: rgba(6, 0, 18, .35); }
.sp-fantasma .ghost-body .pj-tissue-back { fill: #e6dcff; opacity: .6; }
.sp-fantasma .ghost-body .pj-tissue-edge, .sp-fantasma .ghost-body .pj-crease, .sp-fantasma .ghost-body .pj-grain { fill: none; stroke: none; }
.sp-fantasma .ghost-body .pj-eye, .sp-fantasma .ghost-body .pj-eye-sh { fill: #1b1030; }
.sp-fantasma .ghost-body .pj-eye-hi { fill: #fff; }
.sp-fantasma .sp-pentagrama { position: absolute; left: 10%; right: 10%; top: 30%; padding: 2px 4px; border-radius: 8px; background: #fffaf0; color: #1d1410; }
.sp-fantasma .sp-pentagrama svg { display: block; width: 100%; height: auto; }
.sp-fantasma .sp-pentagrama .hole { fill: #fffaf0; }
.sp-num { position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 12px; border-radius: 29px; white-space: nowrap; background: var(--c); color: #fff; font-size: 34px; font-weight: 900; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.sp-fantasma .sp-cuenta { position: absolute; right: 0; top: 0; padding: 2px 10px; border-radius: 10px; background: #1d1410; color: #fff; font-weight: 900; font-size: 22px; }
.sp-fantasma .elf-body { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sp-duende .sp-pentagrama { top: 53%; left: 15%; right: 15%; }
.sp-fantasma.mal { opacity: .25; }
.sp-fantasma.bien { animation: none; filter: drop-shadow(0 0 18px #ffe27a); }
@keyframes sp-flota { 50% { transform: translateY(-8px); } }

/* Resultado de la pregunta y final */
.sp-rapido { margin: 14px 0 0; text-align: center; font-size: clamp(24px, 2.6vw, 40px); font-weight: 900; }
.sp-tabla { list-style: none; margin: 14px auto 0; padding: 0; max-width: 820px; display: grid; gap: 8px; }
.sp-tabla li { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 14px; background: #fffaf0; font-size: clamp(20px, 2vw, 30px); font-weight: 800; box-shadow: 0 2px 0 rgba(60, 25, 5, .2); }
.sp-tabla .p { width: 2.2ch; font-weight: 900; }
.sp-tabla .n { flex: 1; }
.sp-tabla .g { color: #2f9e57; font-size: .8em; }
.sp-tabla .t { font-weight: 900; }
.sp-tabla li:nth-child(1) { background: #f2c94c; }
.sp-podio { text-align: center; font-size: clamp(34px, 4vw, 64px); font-weight: 900; margin: 6px 0; }
.sp-revelada .sp-respondidos, .sp-revelada #sp-chips, .sp-revelada .sp-listen, .sp-revelada .sp-visual:not(.sp-iv) { display: none !important; }
.sp-revelada .sp-teclado { width: min(700px, 100%); }
@media (max-width: 700px) { .sp-opciones { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sp-fantasma, .sp-chip { animation: none; } }

/* Pentagramas y figuras (como en los juegos) */
:is(.sp-main, .sl-main) .staff { display: block; width: 100%; height: auto; color: #1d1410; }
:is(.sp-main, .sl-main) .staff .lines line, :is(.sp-main, .sl-main) .staff .sharp line { stroke: currentColor; stroke-width: 1.4; }
:is(.sp-main, .sl-main) .staff .lines .bar { stroke-width: 1.8; }
:is(.sp-main, .sl-main) .staff .sharp .thick { stroke-width: 3; }
:is(.sp-main, .sl-main) .staff .clef circle, :is(.sp-main, .sl-main) .staff .head { fill: currentColor; }
:is(.sp-main, .sl-main) .staff .clef path { stroke: currentColor; }
:is(.sp-main, .sl-main) .staff .hole { fill: #fffaf0; }
.sp-visual .staff { width: min(340px, 30vw); }
.sp-main .rhythm { display: block; height: clamp(90px, 18vh, 170px); width: auto; color: #1d1410; overflow: visible; }
.sp-main .rhythm .staff-line, .sp-main .rhythm .bar, .sp-main .rhythm .stem { stroke: currentColor; stroke-width: 1.4; }
.sp-main .rhythm .stem { stroke-width: 1.6; }
.sp-main .rhythm .head, .sp-main .rhythm .head-hollow, .sp-main .rhythm .fill { fill: currentColor; }
.sp-main .rhythm .hole { fill: #fffaf0; }
.sp-main .rhythm .flag, .sp-main .rhythm .rest-q, .sp-main .rhythm .rest-e path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-main .rhythm .rest-q { stroke-width: 3; }
.sp-main .rhythm .tira-papel, .sp-main .rhythm .hole { fill: #faf3e3; }
.sp-main .rhythm .tira-fibra { fill: #fffefa; }
.sp-main .rhythm .tira-sombra { fill: rgba(45, 18, 4, 0.34); }
.sp-main .rhythm .tira-celo { fill: rgba(255, 246, 214, 0.62); stroke: rgba(120, 90, 50, 0.22); stroke-width: 0.6; }

/* Intervalos: editor de las dos notas y teclado */
.sp-nota { margin: 4px 0 10px; font-size: 18px; font-weight: 600; }
.sp-ed-pentagrama, .sp-visual .sp-pentagrama-grande { display: flex; justify-content: center; }
.sp-pentagrama-grande { width: min(480px, 90%) !important; height: auto; }
.sp-visual .sp-pentagrama-grande { width: min(400px, 50vw) !important; }
.sp-pentagrama-grande .sp-vacia { display: none; }
.sp-zona { fill: transparent; cursor: pointer; }
.sp-zona:hover { fill: rgba(242, 201, 76, .25); }
:is(.sp-main, .sl-main) .staff .flat line, :is(.sp-main, .sl-main) .staff .dsharp line { stroke: currentColor; stroke-width: 1.4; }
:is(.sp-main, .sl-main) .staff .flat .thick, :is(.sp-main, .sl-main) .staff .flat path, :is(.sp-main, .sl-main) .staff .dsharp .thick { stroke: currentColor; stroke-width: 2.4; fill: none; }
:is(.sp-main, .sl-main) .staff .cut-sh, :is(.sp-main, .sl-main) .staff .cut-m { display: none; }
.sp-ed-alts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin: 6px 0 12px; }
.sp-ed-alts .sp-seg { min-width: 52px; font-size: 24px; }
#sp-ed-que { justify-content: center; margin-bottom: 10px; }
#sp-ed-que > span:first-child { min-width: 0; }
.sp-teclado { display: block; width: min(900px, 100%); height: auto; margin: 8px auto 0; }
.sp-teclado .tk-b { fill: #fff; stroke: #1d1410; stroke-width: 1.2; }
.sp-teclado .tk-n { fill: #1d1410; }
.sp-teclado .tk-on.tk-0 { fill: #e2483d; }
.sp-teclado .tk-on.tk-1 { fill: #2f6fd6; }
.sp-teclado .tk-central { fill: #e0a91b; stroke: #1d1410; stroke-width: 1; }
.sp-teclado .tk-central-txt { font-size: 13px; font-weight: 800; fill: #1d1410; }
.sp-teclado .tk-txt { font-size: 15px; font-weight: 900; fill: #1d1410; paint-order: stroke; stroke: #fffaf0; stroke-width: 4px; }
.sp-pentagrama-grande .sn[data-k="0"], .sp-col-0 { color: #e2483d; fill: #e2483d; }
.sp-pentagrama-grande .sn[data-k="1"], .sp-col-1 { color: #2f6fd6; fill: #2f6fd6; }
.sp-col { font-size: 13px; font-weight: 900; }
#sp-juego .sp-teclado { width: min(640px, 100%); margin-top: 0; }
#sp-juego .sp-visual .sp-pentagrama-grande { width: min(330px, 40vw) !important; }
#sp-juego .sp-prompt { margin-bottom: 4px; }

/* Intervalos en el iPad: pentagrama y teclado encima de los botones */
.sl-dibujo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto 12px; width: min(760px, 100%); padding: 8px 10px; border-radius: 14px; background: #fffaf0; }
.sl-dibujo .sp-pentagrama-grande { width: min(440px, 92%) !important; }
.sl-dibujo .sp-teclado { width: 100%; margin: 0; }
/* Con dibujo todo cabe en una pantalla: en vertical, botones algo más bajos; en horizontal, dibujo a la izquierda y botones a la derecha */
.sl-main.sl-ancho { max-width: 1400px; }
.con-dibujo .sl-op { min-height: clamp(80px, 15vh, 200px); }
@media (orientation: landscape) and (min-width: 800px) {
  .sl-main.sl-ancho { padding-bottom: 12px; }
  .sl-ancho .sl-head { margin-bottom: 8px; }
  #sl-pregunta.con-dibujo { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto 1fr; gap: 0 14px; min-height: calc(100vh - 92px); min-height: calc(100dvh - 92px); }
  .con-dibujo .sl-barra, .con-dibujo .sl-prompt { grid-column: 1 / -1; }
  .con-dibujo .sl-prompt { margin-bottom: 10px; padding: 10px 16px; }
  .con-dibujo .sl-dibujo { width: auto; margin: 0; justify-content: center; }
  .con-dibujo .sl-dibujo .sp-pentagrama-grande { width: min(420px, 80%) !important; }
  .con-dibujo .sl-opciones { grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 10px; }
  .con-dibujo .sl-op-txt { overflow-wrap: normal; }
  .con-dibujo .sl-op { min-height: 0; }
}

/* Bombardeo en clase: clasificación en directo en la pizarra */
.sp-car-tabla { max-width: 980px; }
.sp-car-tabla li { font-size: clamp(22px, 2.6vw, 36px); transition: transform .3s; }
.sp-car-tabla .v { font-size: .7em; letter-spacing: 2px; }
.sp-car-tabla .g { color: #6b5a4e; min-width: 6.5em; text-align: right; }
.sp-car-tabla li.acabado { opacity: .75; }
.sp-car-tabla .t { min-width: 4ch; text-align: right; }
.sp-alumno { display: inline-flex; align-items: center; gap: 8px; padding-right: 6px; }
.sp-dif, .sp-compas { min-height: 40px; padding: 4px 12px; border: 0; border-radius: 999px; font: inherit; font-size: .85em; color: #fff; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.sp-compas { background: #fffaf0; color: #1d1410; }
.sp-dif.easy { background: #d8682a; }
.sp-dif.medium { background: #6f3f1f; }
.sp-dif.hard { background: #161211; }
.sp-dif:not(.easy):not(.medium):not(.hard) { background: #8a5a2b; }
.sp-car-tabla .g { min-width: 11em; }

/* Matemáticas musicales: las figuras de la suma */
.sl-dibujo.sl-suma { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; color: #2b1d16; }
.sl-suma .fig { height: clamp(80px, 22vh, 180px); width: auto; }
.sl-suma .sl-mas { font-size: 32px; font-weight: 900; }
.sp-suma { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.sp-suma .fig { height: clamp(90px, 20vh, 190px); width: auto; }
.sp-suma span { font-size: clamp(36px, 7vh, 72px); font-weight: 900; }
.sp-revelada .sp-visual:has(.sp-suma) { display: flex !important; }

/* Tanda de penaltis: los dos equipos en la sala de espera */
.sp-jugadores.sp-equipos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sp-equipo { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 10px; min-height: 120px; padding: 12px; border-radius: 18px; background: rgba(226, 72, 61, .12); border: 3px solid #e2483d; }
.sp-equipo.eq1 { background: rgba(47, 111, 214, .12); border-color: #2f6fd6; }
.sp-equipo h3 { flex-basis: 100%; margin: 0 0 4px; text-align: center; font-size: clamp(20px, 2vw, 28px); color: #e2483d; }
.sp-equipo.eq1 h3 { color: #2f6fd6; }
.sp-equipo .sp-chip { border: 0; font-family: inherit; color: #fff; background: #e2483d; cursor: pointer; }
.sp-equipo.eq1 .sp-chip { background: #2f6fd6; }
/* el alumno: los siete botones de las notas cuando le toca parar */
.sl-opciones.notas { grid-template-columns: repeat(4, 1fr); }
.notas .sl-op { justify-content: center; min-height: clamp(96px, 30vh, 340px); }
.notas .sl-op-txt { font-size: clamp(26px, 6vw, 46px); font-weight: 900; }
.sl-equipo-0 { color: #e2483d; } .sl-equipo-1 { color: #2f6fd6; }
/* dos niños en un iPad */
.sl-compa { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(0, 0, 0, .15); }
.sl-compa-ayuda { font-size: 15px; opacity: .8; }
.sl-compa-form { display: grid; gap: 10px; max-width: 320px; margin: 12px auto 0; }
.sl-compa-in { width: 100%; font-size: 22px; letter-spacing: normal; }

/* Duelo de penaltis: la nota del balón en su pentagrama, bien grande */
.sl-dibujo.sl-nota .staff { width: min(360px, 80%); height: auto; color: #2b1d16; }
.sl-dibujo.sl-nota .staff .lines line { stroke: currentColor; }

/* Entrar tocando cuatro notas (1 = Do … 7 = Si) */
.sl-notas { --cn-fondo: #fffaf0; max-width: 420px; margin: 10px auto 4px; color: #1d1410; }
.sl-notas .cn-svg { display: block; width: 100%; height: auto; }
.sl-teclas { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 560px; margin: 12px auto 8px; padding: 8px; border-radius: 14px; background: #1d1410; }
.sl-tecla { min-height: clamp(120px, 26vw, 190px); padding: 0 0 12px; display: flex; align-items: flex-end; justify-content: center; border: 0; border-radius: 0 0 10px 10px; background: linear-gradient(#fff 70%, #f1e9dd); box-shadow: inset 0 -6px 0 #d9cdbd; font-family: inherit; font-size: clamp(16px, 3.6vw, 24px); font-weight: 900; color: #1d1410; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .08s; }
.sl-tecla:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 #d9cdbd; background: #f2c94c; }
.sl-tecla:focus-visible { outline: 4px solid #f2c94c; outline-offset: -4px; }
.sl-borrar { margin-top: 6px; min-height: 48px; font-size: 19px; }
/* La procesión de los faroles: los matices, hasta 7 */
.sl-opciones.matices { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.matices .sl-op { flex-direction: column; justify-content: center; gap: 2px; text-align: center; min-height: clamp(90px, 22vh, 260px); }
.sl-mat-signo { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: clamp(30px, 5.6vw, 52px); line-height: 1; }
.sl-mat-nombre { font-size: clamp(14px, 2.4vw, 20px); font-weight: 800; }
.sl-opciones.matices.n5 .sl-op, .sl-opciones.matices.n7 .sl-op { min-height: clamp(80px, 16vh, 180px); }
