/* Actividad «Adivina el porcentaje»: estilos propios (copiados de design-ejemplos/actividad-porcentajes-boceto.html, con las rutas de las imágenes desde la raíz).
   Esta actividad lleva todos sus estilos aquí (no usa actividad.css). Lo común de las subpáginas (espirales del fondo, logo, firma) está en subpagina.css. */
:root {
  --negro: #101010; --blanco: #F5F5F0; --morado: #6B2D8C; --oro: #C9A24B; --oro-claro: #E8CE86; --rosa: #C2386E; --verdeazul: #127C86; --naranja: #E8762B;
  --fondo: #101010; --panel: #17121f; --linea: rgba(201, 162, 75, .35); --suave: #b9b1c9;
  --bien: #3fbf7a; --alerta: #e8762b; --mal: #e0524b;
  --fuente-titulos: "Cinzel Decorative", Georgia, serif; --fuente-nombres: "Cinzel", Georgia, serif;
  --fuente-texto: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --cinta-colores: linear-gradient(90deg, #8a6a24, #E8CE86 55%, #C9A24B); /* una sola línea dorada, sin franjas de colores */
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fondo); color: var(--blanco); font-family: var(--fuente-texto); font-size: 1rem; line-height: 1.5; }
/* Foco con teclado: brillo dorado detrás, no un cuadrado. drop-shadow sigue la forma real (también en botones con borde de imagen y en SVG).
   Los campos de texto y los contenedores con scroll llevan un brillo normal (box-shadow), para no iluminar todo su contenido. */
html :focus-visible { outline: none; }
html :focus-visible:not([tabindex="-1"]) { filter: drop-shadow(0 0 5px rgba(232, 206, 134, .95)) drop-shadow(0 0 12px rgba(201, 162, 75, .75)); }
html input:focus-visible, html select:focus-visible, html textarea:focus-visible, html [tabindex="0"]:not(a):not(button):not(summary):not(svg):not(g):not(path):focus-visible { filter: none; box-shadow: 0 0 12px 3px rgba(232, 206, 134, .7); }
a { color: var(--oro-claro); }
.envoltorio { width: min(1040px, 100% - 32px); margin-inline: auto; }
header.cab { padding: 18px 0 4px; }
.logo { display: block; width: fit-content; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.4rem; color: var(--blanco); text-decoration: none; }
h1 { display: inline-block; margin: 22px 0 8px; padding: .25em .7em; background: var(--morado); color: var(--blanco); transform: rotate(-1.2deg); box-shadow: 5px 5px 0 var(--blanco);
  font-family: var(--fuente-titulos); font-weight: 700; font-size: clamp(1.4rem, 5vw, 2.2rem); line-height: 1.25; }
.sub { max-width: 62ch; color: #e6e0f0; margin: 6px 0 0; }
main { padding-bottom: 36px; }
.pantalla { padding: 22px 0 8px; }
[hidden] { display: none !important; }
h2 { font-family: var(--fuente-nombres); font-weight: 700; font-size: 1.25rem; margin: 0 0 12px; color: var(--oro-claro); }
/* botones: las pastillas rayadas de la UI del videojuego (naranja = principal, verde azulado = secundario) con sus estados */
.btn { font: inherit; font-family: var(--fuente-nombres); font-weight: 700; letter-spacing: .04em; cursor: pointer; min-height: 64px; min-width: 130px; padding: 0 6px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); touch-action: manipulation;
  border: 20px solid transparent; border-width: 20px 24px; background: none; border-image: url("/img/opt/boton-verde.webp") 30% 26% fill / 20px 24px stretch; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: translateY(2px) scale(.97); filter: brightness(.85); }
.btn:disabled { filter: grayscale(.85) brightness(.65); cursor: default; }
.btn.primario { color: #2b1805; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); border-image-source: url("/img/opt/boton-naranja.webp"); }
.btn.grande { font-size: 1.25rem; border-width: 26px 30px; border-image-width: 26px 30px; min-width: 190px; }
/* caja de introducción común a todas las actividades: panel con borde plateado fino y la corona de rosas con espiral de Mireia (img/opt/espiral.webp).
   Escritorio: corona a la izquierda; título y texto a la derecha. Móvil: título, corona y texto, uno debajo de otro y centrados. */
.caja-mensaje { margin: 14px 0 20px; max-width: none; padding: 22px 30px; border: 2px solid rgba(185, 177, 201, .55); border-radius: 18px; background: linear-gradient(180deg, #1b1426, #120d1a);
  box-shadow: inset 0 0 0 5px #120d1a, inset 0 0 0 6px rgba(185, 177, 201, .25); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; grid-template-areas: "corona titulo" "corona texto"; gap: 2px 32px; align-items: center; }
.caja-mensaje .corona { grid-area: corona; width: clamp(110px, 24vw, 190px); height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.caja-mensaje h2 { grid-area: titulo; align-self: end; margin: 0; font-size: clamp(1.35rem, 4vw, 1.6rem); }
.caja-mensaje h2::after { content: ""; display: block; height: 26px; width: min(220px, 70%); background: url("/img/opt/adorno-dorado-2.webp") left center / contain no-repeat; }
.caja-mensaje #introTxt { grid-area: texto; align-self: start; }
.caja-mensaje p { margin: 0 0 10px; font-size: clamp(1rem, 3.3vw, 1.15rem); line-height: 1.45; } .caja-mensaje p:last-child { margin: 0; }
.caja-mensaje .grande { font-family: var(--fuente-nombres); font-weight: 700; font-size: clamp(1.1rem, 3.6vw, 1.25rem); color: var(--oro-claro); }
@media (max-width: 560px) {
  .caja-mensaje { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "titulo" "corona" "texto"; justify-items: center; text-align: center; }
  .caja-mensaje .corona { width: 130px; } .caja-mensaje h2 { align-self: auto; } .caja-mensaje h2::after { margin-inline: auto; background-position: center; width: min(220px, 100%); }
}
.guia { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; list-style: none; }
.guia li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--linea); border-radius: 14px; background: var(--panel); }
.guia .ico { font-size: 3.6rem; grid-row: span 2; }
.guia strong { font-family: var(--fuente-nombres); font-size: 1.25rem; color: var(--oro-claro); }
@media (max-width: 640px) { .guia { grid-template-columns: 1fr; } }
#btnEmpezar { display: block; margin: 28px auto 0; }
.guia small { font-size: 1rem; color: var(--suave); line-height: 1.35; }

/* ---------- marcador y ruleta ---------- */
.marcador { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: var(--suave); }
.etq { display: inline-block; padding: 2px 10px; border: 1px solid currentColor; border-radius: 99px; font-size: .85rem; }
.barra { height: 8px; border-radius: 99px; background: #2a2236; overflow: hidden; margin-bottom: 16px; }
.barra i { display: block; height: 100%; width: 0; background: var(--cinta-colores); transition: width .4s; }
.ruleta-caja { display: grid; justify-items: center; gap: 22px; padding: 60px 30px 64px; border: 2px solid var(--linea); border-radius: 20px; background: var(--panel); text-align: center; }
/* la ruleta (ilustración de Mireia): gira solo el disco; la aguja y el Play del centro (que es el botón) se quedan quietos */
.ruleta { position: relative; width: clamp(250px, min(78vw, 56vh), 460px); aspect-ratio: 1; }
.ruleta::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; box-shadow: 0 0 40px rgba(138, 76, 194, .5), 0 14px 28px rgba(0, 0, 0, .7); }   /* sombra fija: el disco gira */
.ruleta .disco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; user-select: none; -webkit-user-drag: none; }
.ruleta .aguja { position: absolute; z-index: 3; top: -1.2%; left: 50%; width: 7.6%; height: auto; transform: translateX(-50%); transform-origin: 50% 12%; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.ruleta .aguja.tic { animation: tic .2s ease-out; }   /* golpecito al pasar de un sector a otro */
@keyframes tic { 0% { transform: translateX(-50%) rotate(0); } 35% { transform: translateX(-50%) rotate(-17deg); } 100% { transform: translateX(-50%) rotate(0); } }
.ruleta .play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 35%; aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; cursor: pointer; font-size: 0; touch-action: manipulation;
                background: url("/img/opt/play-normal.webp") center / contain no-repeat; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); animation: latido 1.2s ease-in-out infinite; }
.ruleta .play:hover { background-image: url("/img/opt/play-hover.webp"); }
.ruleta .play:active:not(:disabled) { background-image: url("/img/opt/play-pulsado.webp"); }
.ruleta .play:disabled { background-image: url("/img/opt/play-apagado.webp"); animation: none; cursor: default; }
@keyframes latido { 50% { transform: translate(-50%, -50%) scale(1.07); } }
/* KAN-2 2.1: los logos de mecánica van solos, sin círculo; todos caben en una caja del mismo tamaño (object-fit: contain) */
.ico-img { width: 1.75em; height: 1.75em; box-sizing: border-box; object-fit: contain; vertical-align: -.45em; }
.guia .ico .ico-img { width: 5.2rem; height: 5.2rem; }
.ruleta-texto { margin: 0; min-height: 3em; font-family: var(--fuente-nombres); font-size: 1.25rem; color: var(--oro-claro); }
.ruleta-texto small { display: block; font-family: var(--fuente-texto); font-size: .9rem; color: var(--suave); margin-top: 2px; }

/* ---------- tablero ---------- */
.tablero { padding: 14px 30px 64px; border: 2px solid var(--linea); border-radius: 20px; background: var(--panel); }
/* cajas con el mismo marco: borde fino plateado + cuatro esquineras de rosas de Mireia (una por esquina) */
.ruleta-caja, .tablero { position: relative; border-color: rgba(185, 177, 201, .5); }
.ruleta-caja::before, .tablero::before { content: ""; position: absolute; inset: -14px; pointer-events: none; z-index: 2; --esq: clamp(96px, 26vw, 136px);
  background: url("/img/opt/esquina-rosas-tl.webp") left top / var(--esq) auto no-repeat, url("/img/opt/esquina-rosas-tr.webp") right top / var(--esq) auto no-repeat,
              url("/img/opt/esquina-rosas-bl.webp") left bottom / var(--esq) auto no-repeat, url("/img/opt/esquina-rosas-br.webp") right bottom / var(--esq) auto no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .6)); }
/* separador dorado de hojas bajo la cabecera y bajo el texto de la ruleta */
.tablero .cabeza::after { content: ""; flex: 0 0 100%; height: 30px; background: url("/img/opt/adorno-dorado-2.webp") center / min(240px, 62%) auto no-repeat; }
.ruleta-texto::before { content: ""; display: block; height: 36px; margin-bottom: 4px; background: url("/img/opt/adorno-dorado-2.webp") center / 220px auto no-repeat; }
.tablero.sacude { animation: sacude .45s; }
@keyframes sacude { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.cabeza { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tema { display: inline-flex; align-items: center; font-family: var(--fuente-nombres); font-weight: 700; font-size: 1.35rem; color: var(--oro-claro); }
.tablero .cabeza { padding-inline: clamp(58px, 15vw, 112px); }
.mec { font-size: 1.35rem; font-family: var(--fuente-nombres); font-weight: 700; color: #e6e0f0; }
.mec .ico-img { width: 2.8rem; height: 2.8rem; }
.tema .emo { font-size: 1.4rem; margin-right: 6px; }
.tema-img { width: 4.6rem; height: 4.6rem; object-fit: contain; vertical-align: middle; margin-right: 8px; }   /* KAN-1 1.3: más grande */
.mec { display: inline-flex; align-items: center; gap: 8px; color: var(--suave); font-size: .9rem; }   /* KAN-1 1.3: texto centrado con su icono (antes quedaba más bajo) */
.mec .ico-img { vertical-align: middle; flex: none; }   /* flex: none = el círculo no se estrecha cuando el texto es largo */
.tema-img { flex: none; }
.pregunta { font-family: var(--fuente-nombres); font-weight: 700; font-size: clamp(1.15rem, 3.8vw, 1.5rem); line-height: 1.3; margin: 6px 0 16px; }
.pregunta small { display: block; margin-top: 6px; font-family: var(--fuente-texto); font-weight: 400; font-size: .9rem; color: var(--suave); }
.escena { display: grid; justify-items: center; gap: 14px; min-height: 220px; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* contador */
/* contador loco: marco ilustrado de Mireia con el pulsador rojo; la cifra va dentro de la pantalla */
.atril { position: relative; width: min(100%, 560px); container-type: inline-size; }
.atril-img { display: block; width: 100%; height: auto; }
.pulsador { position: absolute; left: 40%; top: 4%; width: 20%; height: 26%; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; border-radius: 40%; }
.pulsador .luz { position: absolute; left: 49%; top: 47%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.pulsador:disabled { cursor: default; }
.pulsador.listo .luz { animation: late .45s ease-in-out infinite alternate; }
@keyframes late { to { box-shadow: 0 0 22px 8px rgba(224, 48, 43, .75); } }
.pulsador:not(:disabled):active .luz { background: rgba(255, 255, 255, .22); }
.atril-pantalla { position: absolute; inset: 33% 15% 20% 15%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; text-align: center; }
.atril-rotulo { margin: 0; font-family: var(--fuente-nombres); font-weight: 700; font-size: clamp(.95rem, 3.6cqw, 1.35rem); letter-spacing: .14em; color: var(--oro-claro); }
.cifra { font-family: var(--fuente-titulos); font-weight: 900; font-size: clamp(3rem, 15cqw, 6.4rem); line-height: 1; color: var(--oro-claro); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(232, 206, 134, .45); }
.cifra.parada { color: var(--oro-claro); }
/* KAN-2 2.8: el número parado se pinta según el resultado (verde = acierto, dorado = cerca, rojo = lejos) */
.cifra.parada.bien { color: var(--bien); text-shadow: 0 0 18px rgba(63, 191, 122, .5); }
.cifra.parada.cerca { color: var(--oro-claro); }
.cifra.parada.mal { color: var(--mal); text-shadow: 0 0 18px rgba(224, 82, 75, .45); text-decoration: line-through; text-decoration-thickness: .08em; }
.atril-pantalla .btn { min-height: 40px; padding: 4px 18px; }

/* aguja: reloj ilustrado con la aguja encima; el botón STOP del dibujo hace de «Fijar» */
.reloj-img { position: relative; width: min(100%, 520px); container-type: inline-size; }
.reloj-fondo { display: block; width: 100%; height: auto; }
.reloj-aguja { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6)); }
.reloj-lectura { position: absolute; left: 15.1%; top: 74.8%; width: 15.4%; height: 8.2%; display: grid; place-items: center; font-family: var(--fuente-nombres); font-weight: 700; font-size: 4.8cqw; line-height: 1; color: #2a2236; background: linear-gradient(#d9d0b9, #bdb399); border: 1px solid #5a4a38; border-radius: 3px; box-shadow: inset 0 0 6px rgba(60, 45, 25, .45); }
.reloj-stop { position: absolute; left: 70.7%; top: 25.3%; width: 17%; height: 27.8%; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.reloj-stop:hover { box-shadow: 0 0 0 4px rgba(232, 206, 134, .55); }
.reloj-stop:active { background: rgba(255, 255, 255, .14); }
.reloj-stop:disabled { cursor: default; box-shadow: none; }
.pedales { position: relative; width: min(100%, 420px); }
.pedales img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-select: none; }
.pedal { position: absolute; top: 0; bottom: 0; border: 0; background: transparent; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 14px; }
.pedal-acel { left: 0; width: 52%; } .pedal-freno { left: 52%; right: 0; }
.pedal-acel.activo { background: radial-gradient(circle at 59% 48%, rgba(63, 191, 122, .5), transparent 40%); }
.pedal-freno.activo { background: radial-gradient(circle at 43% 49%, rgba(224, 82, 75, .55), transparent 40%); }

/* deslizador (alternativa sin movimiento) */
.desliza { display: grid; gap: 10px; width: min(100%, 420px); justify-items: center; }
.desliza input[type=range] { width: 100%; height: 40px; accent-color: var(--oro); }
.desliza output { font-family: var(--fuente-titulos); font-size: 2.6rem; color: var(--oro-claro); }

/* pintar */
.cuadro { display: grid; gap: 3px; width: min(100%, calc((100svh - 330px) / 1.45), 440px); min-width: 200px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: url("/img/opt/cursor-pincel.png") 75 5, crosshair;   /* el pincel de Mireia; el punto de pintar es la punta (arriba a la derecha) */ }
.per { aspect-ratio: 3 / 4.2; border: 0; padding: 1px; background: transparent; color: #4a4258; cursor: inherit; border-radius: 6px; touch-action: none; }
.per svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.per.on { color: var(--rosa); }
/* KAN-2 2.7: al comprobar, los muñecos que SÍ cumplen el dato se pintan de verde (con borde dorado), estén o no pintados por ti;
   los que pintaste de más se ven en rojo */
.per.real { color: var(--bien); } .per.real svg { filter: drop-shadow(0 0 3px rgba(232, 206, 134, .95)) drop-shadow(0 0 7px rgba(201, 162, 75, .8)); }
.per.real:not(.on) { opacity: .7; }
.per.sobra { color: var(--mal); }
.cuenta { margin: 0; color: var(--suave); }

/* cara a cara: cartas ilustradas (dorso y frente con hueco para el texto) */
.cartas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(100%, 480px); perspective: 1000px; }
.carta { position: relative; aspect-ratio: 538 / 800; padding: 0; border: 0; background: none; color: var(--blanco); font: inherit; cursor: pointer; container-type: inline-size; touch-action: manipulation; transition: transform .25s; }
.carta:not(:disabled):hover { transform: translateY(-6px); }
.carta .cara { position: absolute; inset: 0; display: grid; align-content: end; justify-items: center; gap: 2px; padding: 0 13% 17%; text-align: center; background-size: 100% 100%; background-repeat: no-repeat; backface-visibility: hidden; transition: transform .6s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.carta .tapa { background-image: url("/img/opt/carta-dorso-2.webp"); }
.carta .dentro { background-image: url("/img/opt/carta-frente-texto.webp"); transform: rotateY(180deg); }
.carta.vuelta .tapa { transform: rotateY(180deg); }
.carta.vuelta .dentro { transform: rotateY(0); }
.carta .etq-carta { font-family: var(--fuente-nombres); font-weight: 700; font-size: 9cqw; letter-spacing: .06em; color: var(--oro-claro); }
.carta .dentro strong { font-family: var(--fuente-titulos); font-size: 10cqw; line-height: 1.1; color: var(--oro-claro); }
.carta .dentro .etq-carta { font-size: 6.5cqw; color: var(--suave); }
.carta.correcta .dentro { filter: drop-shadow(0 0 14px rgba(63, 191, 122, .95)); }
.carta.fallo .dentro { filter: grayscale(.7) brightness(.75) drop-shadow(0 0 12px rgba(224, 82, 75, .7)); }
.carta.elegida { transform: translateY(-6px) scale(1.03); }
.carta:disabled { cursor: default; }
/* cartas «La chica» / «El chico» (ellas / ellos): el dibujo se ve siempre y el dato aparece debajo al contestar */
.carta.persona { aspect-ratio: auto; display: grid; gap: 8px; align-content: start; }
.carta.persona .foto { display: block; padding: 3.4%; background: #e9e1cf; border-radius: 6cqw; box-shadow: 0 6px 12px rgba(0, 0, 0, .6); transition: filter .4s, box-shadow .4s; }
.carta.persona .foto img { display: block; width: 100%; height: auto; border-radius: 3.4cqw; }
.carta.persona .pie { display: grid; gap: 2px; justify-items: center; min-height: 3.1em; }
.carta.persona .pie .etq-carta { font-size: 8.5cqw; }
.carta.persona .val { font-family: var(--fuente-titulos); font-size: 11cqw; line-height: 1.1; color: var(--oro-claro); opacity: 0; transform: scale(.7); transition: opacity .4s .25s, transform .4s .25s; }
.carta.persona.vuelta .val { opacity: 1; transform: none; }
.carta.persona.correcta .foto { box-shadow: 0 0 0 3px var(--bien), 0 0 18px rgba(63, 191, 122, .9); }
.carta.persona.fallo .foto { filter: grayscale(.7) brightness(.75); box-shadow: 0 0 0 3px var(--mal, #e0524b), 0 0 14px rgba(224, 82, 75, .7); }

/* resultado */
/* al dar la respuesta, la escena se encoge y el resultado aparece en la misma pantalla (sin scroll) */
.tablero.resuelto .escena { zoom: .6; min-height: 0; }
.tablero.resuelto .escena .btn, .tablero.resuelto .acciones, .tablero.resuelto .pedales, .tablero.resuelto .cuenta { display: none; }
.tablero.resuelto .resultado { margin-top: 10px; }
.pregunta-sorpresa { margin: 10px 0 12px; font-style: italic; color: var(--oro-claro); }
@media (min-width: 860px) {
  .tablero.resuelto { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-items: center; }
  .tablero.resuelto .cabeza, .tablero.resuelto .pregunta { grid-column: 1 / -1; }
  .tablero.resuelto .escena { zoom: .85; }
  .tablero.resuelto .resultado { margin-top: 0; }
}
.resultado { margin-top: 18px; padding: 16px; border-left: 6px solid var(--oro); border-radius: 0 14px 14px 0; background: #120d1a; }
.resultado .real { font-family: var(--fuente-titulos); font-weight: 900; font-size: clamp(2rem, 9vw, 3rem); color: var(--oro-claro); line-height: 1.1; margin: 0; }
.resultado .que { margin: 2px 0 10px; font-size: 1.05rem; }
.resultado .tu { margin: 0 0 6px; color: var(--suave); }
.veredicto { font-family: var(--fuente-nombres); font-weight: 700; font-size: 1.15rem; margin: 0 0 12px; }
.veredicto.bien { color: var(--bien); } .veredicto.cerca { color: var(--oro-claro); } .veredicto.mal { color: var(--alerta); }
.anio { color: var(--suave); font-size: .85rem; margin: 0 0 12px; }

.final { max-width: 60ch; }
.final .puntos { font-family: var(--fuente-titulos); font-size: 2.2rem; color: var(--oro-claro); margin: 0 0 8px; }
.final details { margin: 18px 0; color: var(--suave); font-size: .9rem; }
.final summary { cursor: pointer; color: var(--oro-claro); }
.final ul { padding-left: 1.2em; margin: 8px 0; } .final li { margin: 4px 0; }

.confeti { position: fixed; top: -14px; width: 10px; height: 16px; z-index: 50; pointer-events: none; animation: cae-conf 1.8s ease-in forwards; }
@keyframes cae-conf { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

footer { margin-top: auto; background: #000; border-top: 2px solid rgba(185, 177, 201, .35); }
footer .envoltorio { padding: 20px 0 26px; }
.firma { margin: 0; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.05rem; color: var(--oro-claro); }
.fuente-pie { margin: 10px 0 0; font-size: .85rem; color: var(--suave); }
.ref-enlace a { color: var(--oro-claro); }

@media (prefers-reduced-motion: reduce) {
  .ruleta .aguja.tic, .ruleta .play, .pulsador.listo .luz, .tablero.sacude, .confeti, .esp { animation: none; }
  .carta .cara, .carta, .barra i { transition: none; }
}
header.cab, main, footer { position: relative; z-index: 1; }
/* botón «Parar efectos»: detiene el giro de las espirales y los movimientos decorativos (ruleta, Play, confeti, sacudida) */
header.cab .envoltorio { position: relative; }
.btn-efectos { position: absolute; right: 0; top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; min-height: 40px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--blanco); background: rgba(23, 18, 31, .85); border: 1px solid rgba(185, 177, 201, .5); border-radius: 99px; cursor: pointer; }
.btn-efectos:hover { border-color: var(--oro-claro); color: var(--oro-claro); }
body.sin-efectos .esp, body.sin-efectos .ruleta .aguja, body.sin-efectos .ruleta .play, body.sin-efectos .pulsador .luz, body.sin-efectos .tablero, body.sin-efectos .confeti { animation: none !important; }
