/* ==============================================
   MISIONES 3D - Estilos
   Pensado primero para 480x600 (el tamaño del Runner) y celulares;
   crece bien en pantallas grandes.
   ============================================== */

:root {
    --tinta: #1F2A44;
    --tinta-suave: #4A5571;
    --papel: #FFF8EC;
    --papel-borde: #E9D9B8;
    --primario: #D9480F;          /* naranja aventura (texto blanco AA) */
    --primario-osc: #A8370B;
    --oro: #FFC83D;
    --ok: #2E9E5B;
    --ok-suave: #DFF3E6;
    --mal: #D32F2F;
    --mal-suave: #FDE3E3;
    --gris: #7B8494;
    --sombra: 0 6px 18px rgba(20, 25, 40, .28);
    --radio: 18px;
    --fuente-titulo: 'Carter One', 'Arial Rounded MT Bold', system-ui, sans-serif;
    --fuente: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
}

html, body { margin: 0; height: 100%; background: #1b2236; }
* { box-sizing: border-box; }

.mis-app {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--fuente);
    color: var(--tinta);
    background: var(--cielo, skyblue);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.mis-app button { font-family: inherit; }
.mis-app button:focus-visible { outline: 3px solid #1E88E5; outline-offset: 2px; }

.mis-mapa { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.mis-svg, .mis-canvas3d { display: block; width: 100%; height: 100%; }
.mis-canvas3d { cursor: grab; }

/* ---------- HUD ---------- */
.mis-hud {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 10px 18px;
    background: linear-gradient(rgba(15, 20, 35, .55), rgba(15, 20, 35, 0));
    pointer-events: none;
    z-index: 5;
    transition: opacity .3s;
}
.mis-hud > * { pointer-events: auto; }
.mis-hud.oculto, .mis-barra.oculto { opacity: 0; pointer-events: none; }
.mis-hud.oculto > *, .mis-barra.oculto > * { pointer-events: none; }
.mis-hud-titulo {
    font-family: var(--fuente-titulo);
    color: #fff;
    font-size: 17px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, .45);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    min-width: 0; flex: 1;
}
.mis-hud-der { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mis-chip {
    display: inline-flex; align-items: center; gap: 3px;
    height: 34px; padding: 0 11px;
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    font-weight: 800; font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.mis-chip-estrellas { color: #8a5a00; }
.mis-chip-estrellas b { color: var(--tinta); }
.mis-chip-estrellas.latido { animation: latido .5s; }
.mis-inventario { display: inline-flex; gap: 2px; }
.mis-inventario:empty { display: none; }
.mis-objeto {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    animation: aparecer .4s cubic-bezier(.3, 1.6, .5, 1);
}
.mis-icono-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 0; padding: 0;
    background: rgba(255, 255, 255, .94);
    font-size: 16px; font-weight: 900; color: var(--tinta);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    cursor: pointer;
}
.mis-icono-btn:hover { background: #fff; transform: translateY(-1px); }
.mis-icono-btn.activo { background: var(--oro); }
.mis-btn-vista { font-family: var(--fuente-titulo); font-size: 13px; font-weight: 400; }

/* ---------- barra inferior ---------- */
.mis-barra {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center;
    padding: 22px 12px 14px;
    background: linear-gradient(rgba(15, 20, 35, 0), rgba(15, 20, 35, .5));
    pointer-events: none;
    z-index: 5;
    transition: opacity .3s;
}
.mis-ir {
    pointer-events: auto;
    max-width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 0; border-radius: 26px;
    background: var(--primario);
    color: #fff;
    font-family: var(--fuente-titulo); font-size: 17px; letter-spacing: .2px;
    box-shadow: 0 5px 0 var(--primario-osc), var(--sombra);
    cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: transform .1s;
}
.mis-ir:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--primario-osc), var(--sombra); }
.mis-ir.entrar { background: var(--ok); box-shadow: 0 5px 0 #1d6e3d, var(--sombra); animation: invitar 1.6s infinite; }
.mis-ir.final { background: #7B3FBF; box-shadow: 0 5px 0 #55288a, var(--sombra); }
.mis-ir:disabled { background: #5c6577; box-shadow: 0 5px 0 #3e4555, var(--sombra); cursor: default; animation: none; }

/* ---------- aviso ---------- */
.mis-toast {
    position: absolute; left: 50%; top: 62px;
    transform: translate(-50%, -12px);
    max-width: calc(100% - 24px);
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(31, 42, 68, .95);
    color: #fff; font-weight: 700; font-size: 14px; line-height: 1.35;
    text-align: center;
    box-shadow: var(--sombra);
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 8;
}
.mis-toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- capa de ventanas ---------- */
.mis-capa {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: none;
    z-index: 10;
}
.mis-capa.visible { display: flex; align-items: flex-end; justify-content: center; background: rgba(15, 20, 35, .45); animation: fundido .2s; }
.mis-capa.capa-carga, .mis-capa.capa-portada { background: #1b2236; }
.mis-capa.capa-mision, .mis-capa.capa-celebracion, .mis-capa.capa-final { align-items: stretch; }

/* hoja (posta, destinos) */
.mis-hoja {
    width: 100%; max-width: 560px;
    max-height: 88%;
    display: flex; flex-direction: column;
    background: var(--papel);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .3);
    animation: subir .28s cubic-bezier(.2, .9, .3, 1.1);
    overflow: hidden;
}
@media (min-height: 700px) and (min-width: 600px) {
    .mis-capa.capa-posta, .mis-capa.capa-destinos { align-items: center; }
    .mis-hoja { border-radius: 24px; }
}
.mis-hoja-cabecera {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 16px 16px 10px 18px;
    border-bottom: 2px dashed var(--papel-borde);
    flex-shrink: 0;
}
.mis-hoja-titulos { flex: 1; min-width: 0; }
.mis-hoja-titulos small { display: block; font-weight: 800; color: var(--primario); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.mis-hoja-titulos h2 { margin: 2px 0 0; font-family: var(--fuente-titulo); font-weight: 400; font-size: 22px; line-height: 1.15; }
.mis-cerrar {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 50%; border: 2px solid var(--papel-borde);
    background: #fff; color: var(--tinta-suave);
    font-size: 16px; font-weight: 900; cursor: pointer;
}
.mis-cerrar:hover { background: #f3ead8; }
.mis-hoja-pie { padding: 12px 16px 16px; flex-shrink: 0; display: flex; justify-content: center; }
.mis-posta { overflow-y: auto; }
.mis-posta-desc { display: flex; gap: 8px; align-items: flex-start; padding: 12px 18px 0; }
.mis-posta-desc p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--tinta-suave); flex: 1; }
.mis-leer { border: 0; background: #fff; border-radius: 50%; width: 34px; height: 34px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); cursor: pointer; flex-shrink: 0; }
.mis-posta-premio { margin: 10px 18px 0; padding: 8px 12px; border-radius: 12px; background: #FFF0C2; font-size: 14px; }

.mis-mision-lista { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 2px; }
.mis-mision-fila {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--papel-borde); border-radius: 14px;
    background: #fff; text-align: left; cursor: pointer;
    color: var(--tinta);
}
.mis-mision-fila.proxima { border-color: var(--primario); box-shadow: 0 0 0 3px rgba(217, 72, 15, .15); }
.mis-mision-fila.superada { background: var(--ok-suave); border-color: #b6dfc4; }
.mis-mision-fila.cerrada { opacity: .55; cursor: default; }
.mis-mision-ico { font-size: 24px; width: 32px; text-align: center; }
.mis-mision-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mis-mision-txt strong { font-size: 16px; }
.mis-mision-txt small { font-size: 13px; color: var(--tinta-suave); }
.mis-mision-estado { font-weight: 900; color: var(--primario); white-space: nowrap; }
.mis-mision-fila.superada .mis-mision-estado { color: #c48a00; font-size: 18px; letter-spacing: 1px; }

/* destinos */
.mis-destinos { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; overflow-y: auto; }
.mis-destino {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 10px 12px;
    border: 2px solid var(--papel-borde); border-radius: 14px;
    background: #fff; text-align: left; cursor: pointer; color: var(--tinta);
}
.mis-destino-num {
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; font-family: var(--fuente-titulo); font-size: 18px;
    background: #FF8A00;
}
.mis-destino.estado-completada .mis-destino-num { background: var(--ok); }
.mis-destino.estado-bloqueada { background: #f1eee8; }
.mis-destino.estado-bloqueada .mis-destino-num { background: var(--gris); }
.mis-destino-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mis-destino-txt strong { font-size: 16px; }
.mis-destino-txt small { font-size: 13px; color: var(--tinta-suave); }
.mis-destino-aqui { font-size: 12px; font-weight: 900; color: var(--primario); }

/* ---------- botones ---------- */
.mis-boton {
    min-height: 46px; padding: 0 22px;
    border: 0; border-radius: 24px;
    font-weight: 800; font-size: 16px;
    cursor: pointer;
    background: #fff; color: var(--tinta);
    box-shadow: 0 3px 0 #d8ccb2;
}
.mis-boton.primario, .mis-boton.grande {
    background: var(--primario); color: #fff;
    box-shadow: 0 4px 0 var(--primario-osc);
}
.mis-boton.grande { font-family: var(--fuente-titulo); font-weight: 400; font-size: 18px; min-height: 52px; padding: 0 28px; }
.mis-boton.secundario { background: transparent; box-shadow: none; color: var(--tinta-suave); text-decoration: underline; text-underline-offset: 3px; }
.mis-boton:active { transform: translateY(2px); }
.mis-boton:disabled { background: #c9c3b6; box-shadow: 0 4px 0 #a9a294; cursor: default; transform: none; }
.mis-acciones { display: flex; justify-content: center; padding: 14px 0 4px; }

/* ---------- carga y portada ---------- */
.mis-carga { margin: auto; text-align: center; color: #fff; width: 80%; max-width: 320px; }
.mis-carga-titulo { font-family: var(--fuente-titulo); font-size: 24px; margin-bottom: 16px; }
.mis-carga-barra { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mis-carga-barra i { display: block; height: 100%; width: 0; background: var(--oro); border-radius: 6px; transition: width .2s; }
.mis-carga p { opacity: .8; font-size: 14px; }

.mis-portada-envoltura { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mis-portada-fondo {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover; background-position: center bottom;
    filter: saturate(1.1);
}
.mis-portada-fondo::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(rgba(15, 20, 35, .15), rgba(15, 20, 35, .55)); }
.mis-portada {
    position: relative;
    width: 100%; max-width: 440px;
    padding: 22px 22px 24px;
    background: var(--papel);
    border-radius: 26px;
    border: 3px solid #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
    text-align: center;
    animation: subir .45s cubic-bezier(.2, .9, .3, 1.15);
}
.mis-portada-sello {
    width: 64px; height: 64px; margin: -54px auto 6px;
    border-radius: 50%; background: var(--primario); border: 4px solid #fff;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    box-shadow: var(--sombra);
}
.mis-portada-titulo { margin: 0 0 8px; font-family: var(--fuente-titulo); font-weight: 400; font-size: 28px; line-height: 1.1; }
.mis-portada-intro { margin: 0 0 10px; font-size: 16px; line-height: 1.45; color: var(--tinta-suave); }
.mis-portada-datos { margin: 0 0 16px; font-weight: 800; font-size: 13px; color: var(--primario); text-transform: uppercase; letter-spacing: .6px; }
.mis-portada-elegir { margin: 0 0 10px; font-weight: 800; }
.mis-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mis-modo {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 14px 8px 12px;
    border: 3px solid var(--papel-borde); border-radius: 18px;
    background: #fff; cursor: pointer; color: var(--tinta);
    transition: transform .12s, border-color .12s;
}
.mis-modo:hover, .mis-modo:focus-visible { border-color: var(--primario); transform: translateY(-2px); }
.mis-modo-ico { font-size: 34px; }
.mis-modo strong { font-family: var(--fuente-titulo); font-weight: 400; font-size: 19px; }
.mis-modo small { font-size: 12.5px; color: var(--tinta-suave); }

/* ---------- misión ---------- */
.mis-mision {
    width: 100%; max-width: 640px; margin: 0 auto;
    display: flex; flex-direction: column;
    background: var(--papel);
    animation: fundido .2s;
    overflow: hidden;
}
@media (min-width: 680px) { .mis-mision { margin: 16px auto; border-radius: 24px; box-shadow: var(--sombra); } }
.mis-consigna {
    display: flex; gap: 8px; align-items: center;
    margin: 10px 14px 0; padding: 9px 14px;
    border-radius: 14px; background: #FFF0C2;
    flex-shrink: 0;
}
.mis-consigna p { margin: 0; flex: 1; font-weight: 700; font-size: 15px; line-height: 1.35; }
.mis-mision-cuerpo { flex: 1; overflow-y: auto; padding: 10px 14px 18px; display: flex; flex-direction: column; }

.mis-puntos { display: flex; justify-content: center; gap: 6px; padding: 4px 0 10px; }
.mis-puntos .punto { width: 10px; height: 10px; border-radius: 50%; background: #e2d6bd; transition: transform .2s; }
.mis-puntos .punto.actual { background: var(--primario); transform: scale(1.3); }
.mis-puntos .punto.ok { background: var(--ok); }
.mis-puntos .punto.mal { background: var(--mal); }

.mis-pregunta-zona { display: flex; flex-direction: column; flex: 1; animation: entrar .25s; }
.mis-pregunta-img { text-align: center; margin-bottom: 8px; }
.mis-pregunta-img img { max-width: 100%; max-height: 150px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.mis-pregunta-texto { margin: 0 0 12px; font-size: 19px; font-weight: 800; line-height: 1.3; text-align: center; }
.mis-pregunta-texto.vf { font-size: 21px; padding: 10px 4px 14px; }

.mis-opciones { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mis-opciones.con-imagenes { grid-template-columns: 1fr 1fr; }
.mis-opcion {
    display: flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 8px 12px;
    border: 3px solid #fff; border-radius: 16px;
    background: #fff; color: var(--tinta);
    font-size: 16px; font-weight: 700; text-align: left;
    box-shadow: 0 3px 0 #e2d6bd;
    cursor: pointer;
    transition: transform .1s, border-color .15s, background .15s;
}
.mis-opcion:hover:not(:disabled) { border-color: var(--primario); }
.mis-opcion .letra {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
    background: var(--tinta); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fuente-titulo); font-size: 15px;
}
.mis-opcion:disabled { cursor: default; }
.mis-opcion.correcta { background: var(--ok-suave); border-color: var(--ok); animation: festejo .4s; }
.mis-opcion.correcta .letra { background: var(--ok); }
.mis-opcion.incorrecta { background: var(--mal-suave); border-color: var(--mal); animation: sacudir .4s; }
.mis-opcion.incorrecta .letra { background: var(--mal); }
.respondida .mis-opcion:not(.correcta):not(.incorrecta) { opacity: .55; }

.mis-contenido { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mis-contenido.con-imagen { flex-direction: column; gap: 4px; text-align: center; }
.mis-contenido img { max-width: 100%; max-height: 90px; border-radius: 8px; pointer-events: none; }
.mis-opciones.con-imagenes .mis-opcion { flex-direction: column; justify-content: center; }

.mis-vf-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-bottom: 6px; }
.mis-vf-boton {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 14px 8px; border: 3px solid transparent; border-radius: 18px;
    font-family: var(--fuente-titulo); font-size: 19px; color: #fff; cursor: pointer;
    transition: transform .1s;
}
.mis-vf-boton .ico { font-size: 30px; line-height: 1; }
.mis-vf-boton.verdadero { background: #1565C0; box-shadow: 0 4px 0 #0d47a1; }
.mis-vf-boton.falso { background: #6A1B9A; box-shadow: 0 4px 0 #4a148c; }
.mis-vf-boton:active:not(:disabled) { transform: translateY(3px); }
.mis-vf-boton:disabled { cursor: default; }
.respondida .mis-vf-boton:not(.correcta):not(.incorrecta) { opacity: .45; }
.mis-vf-boton.correcta { border-color: #fff; box-shadow: 0 0 0 4px var(--ok); }
.mis-vf-boton.incorrecta { border-color: #fff; box-shadow: 0 0 0 4px var(--mal); animation: sacudir .4s; }
.mis-explicacion { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.4; }
.mis-explicacion.ok { background: var(--ok-suave); }
.mis-explicacion.mal { background: var(--mal-suave); }
.mis-pregunta-zona > .mis-boton { align-self: center; margin-top: 12px; }

/* memoria */
.mis-memoria-info { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; padding: 0 2px 8px; color: var(--tinta-suave); }
.mis-memoria-info .errores { color: var(--mal); }
.mis-memoria { display: grid; gap: 8px; }
.mis-carta {
    position: relative; aspect-ratio: 3 / 3.4;
    border: 0; padding: 0; background: none; cursor: pointer;
    perspective: 600px;
}
.mis-carta .giro { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: transform .35s; transform-style: preserve-3d; }
.mis-carta.abierta .giro { transform: rotateY(180deg); }
.mis-carta .cara {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    padding: 6px; overflow: hidden;
}
.mis-carta .dorso {
    background: var(--primario);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 8px, transparent 8px 16px);
    border: 3px solid #fff; box-shadow: 0 3px 0 var(--primario-osc);
    color: #fff; font-family: var(--fuente-titulo); font-size: 28px;
}
.mis-carta .frente {
    background: #fff; border: 3px solid #e2d6bd;
    transform: rotateY(180deg);
    font-weight: 800; font-size: 14px; line-height: 1.2; text-align: center; color: var(--tinta);
}
.mis-carta .frente img { max-height: 70px; }
.mis-carta.encontrada .frente { border-color: var(--ok); background: var(--ok-suave); animation: festejo .4s; }
.mis-carta.encontrada { cursor: default; }

/* ordenar */
.mis-ordenar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mis-ordenar-fila {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 8px 6px;
    border: 3px solid #fff; border-radius: 14px;
    background: #fff; box-shadow: 0 3px 0 #e2d6bd;
    font-weight: 700; font-size: 15.5px;
    touch-action: none; cursor: grab;
    position: relative;
}
.mis-ordenar-fila .asa { color: #b3a68a; font-size: 20px; width: 18px; text-align: center; }
.mis-ordenar-fila .num {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    background: var(--tinta); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fuente-titulo); font-size: 14px;
}
.mis-ordenar-fila .mis-contenido { flex: 1; }
.mis-ordenar-fila .mis-contenido img { max-height: 50px; }
.mis-ordenar-fila .flechas { display: flex; flex-direction: column; gap: 2px; }
.mis-ordenar-fila .flecha {
    width: 34px; height: 24px; border: 0; border-radius: 8px;
    background: #f1e9d8; color: var(--tinta-suave); font-size: 11px; cursor: pointer;
}
.mis-ordenar-fila .flecha:hover { background: #e6d9bd; }
.mis-ordenar-fila.arrastrando { z-index: 2; cursor: grabbing; box-shadow: 0 10px 22px rgba(0, 0, 0, .25); border-color: var(--primario); }
.mis-ordenar-fila.ok { border-color: var(--ok); background: var(--ok-suave); }
.mis-ordenar-fila.ok .num { background: var(--ok); }
.mis-ordenar-fila.mal { border-color: var(--mal); background: var(--mal-suave); animation: sacudir .4s; }
.mis-ordenar-fila.mal .num { background: var(--mal); }

/* unir */
.mis-unir { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18%; }
.mis-unir .col { display: flex; flex-direction: column; gap: 10px; justify-content: space-around; position: relative; z-index: 1; }
.mis-unir-lineas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.mis-unir-lineas path { fill: none; stroke-width: 4; stroke-linecap: round; }
.mis-unir-lineas path.mal { stroke-dasharray: 6 6; }
.mis-unir-item {
    position: relative;
    display: flex; align-items: center; gap: 6px;
    min-height: 50px; padding: 8px 10px;
    border: 3px solid #fff; border-radius: 14px;
    background: #fff; box-shadow: 0 3px 0 #e2d6bd;
    font-weight: 700; font-size: 15px; color: var(--tinta); text-align: left;
    cursor: pointer;
}
.mis-unir .izquierda .mis-unir-item { justify-content: space-between; }
.mis-unir .derecha .mis-unir-item { justify-content: flex-start; }
.mis-unir-item .conector {
    width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%;
    border: 3px solid #c9bb9b; background: #fff;
}
.mis-unir-item.unido { border-color: var(--color-union); }
.mis-unir-item.unido .conector { background: var(--color-union); border-color: var(--color-union); }
.mis-unir-item.elegido { border-color: var(--primario); box-shadow: 0 0 0 4px rgba(217, 72, 15, .2); transform: scale(1.03); }
.mis-unir-item.ok { border-color: var(--ok); background: var(--ok-suave); }
.mis-unir-item.mal { border-color: var(--mal); background: var(--mal-suave); animation: sacudir .4s; }

/* resultado */
.mis-resultado-cuerpo { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 20px 24px; }
.mis-resultado-ico { font-size: 56px; animation: aparecer .5s cubic-bezier(.3, 1.6, .5, 1); }
.mis-resultado-cuerpo h2 { font-family: var(--fuente-titulo); font-weight: 400; font-size: 27px; margin: 4px 0 6px; }
.mis-resultado-cuerpo > p { font-size: 16px; color: var(--tinta-suave); margin: 4px 0 16px; }
.mis-resultado-estrellas { display: flex; gap: 6px; }
.mis-resultado-estrellas .estrella { width: 54px; height: 54px; display: block; }
.mis-resultado-estrellas .estrella svg { width: 100%; height: 100%; fill: #e8dcc3; stroke: #d6c7a6; stroke-width: 1; stroke-linejoin: round; }
.mis-resultado-estrellas .estrella.ganada { animation: estrella .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.mis-resultado-estrellas .estrella.ganada svg { fill: var(--oro); stroke: #c48a00; filter: drop-shadow(0 3px 0 #c48a00); }
.mis-resultado-estrellas .estrella:nth-child(2) { transform: translateY(-8px); }
.mis-resultado-estrellas .estrella.ganada:nth-child(2) { animation-name: estrella2; }
.mis-resultado-botones { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* celebración y final */
.mis-celebra { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.mis-celebra-tarjeta {
    position: relative; z-index: 1;
    width: 100%; max-width: 420px;
    padding: 24px 22px;
    background: var(--papel); border-radius: 26px; border: 3px solid #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
    text-align: center;
    animation: aparecer .45s cubic-bezier(.3, 1.4, .5, 1);
}
.mis-celebra-ico { font-size: 54px; line-height: 1.1; }
.mis-celebra-tarjeta h2 { font-family: var(--fuente-titulo); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 6px 0 10px; }
.mis-celebra-relato { font-size: 15.5px; line-height: 1.45; color: var(--tinta-suave); margin: 0 0 12px; }
.mis-celebra-bloque { margin: 0 0 14px; }
.mis-celebra-bloque small { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; font-size: 12px; color: var(--primario); margin-bottom: 6px; }
.mis-celebra-objetos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mis-celebra-objeto {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px 6px 8px; border-radius: 22px;
    background: #FFF0C2; font-weight: 800;
    animation: aparecer .5s .3s cubic-bezier(.3, 1.6, .5, 1) both;
}
.mis-celebra-objeto b { font-size: 26px; }
.mis-celebra-destinos { margin: 0; font-weight: 800; font-size: 16px; }
.mis-final-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 18px; }
.mis-final-datos div { background: #fff; border-radius: 14px; padding: 10px 4px; box-shadow: 0 2px 0 #e2d6bd; }
.mis-final-datos b { display: block; font-family: var(--fuente-titulo); font-weight: 400; font-size: 21px; }
.mis-final-datos small { color: var(--tinta-suave); font-weight: 700; }

.mis-confeti { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.mis-confeti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confeti linear forwards; }

/* error */
.mis-error { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--papel); text-align: center; padding: 24px; }
.mis-error .ico { font-size: 54px; }
.mis-error p { font-size: 18px; font-weight: 700; }
.mis-error-mision { color: var(--mal); font-weight: 700; text-align: center; }

/* ---------- mapa 2D ---------- */
.m2d-camino-borde { fill: none; stroke: rgba(40, 28, 10, .38); stroke-linecap: round; }
.m2d-camino { fill: none; stroke-linecap: round; }
.m2d-camino-huella { fill: none; stroke: rgba(255, 255, 255, .75); stroke-linecap: round; }
.m2d-arbol, .m2d-edificio { pointer-events: none; }
.m2d-edificio.estado-bloqueada { opacity: .6; filter: grayscale(.7); }
.m2d-posta, .m2d-inicio { cursor: pointer; outline: none; }
.m2d-posta-sombra { fill: rgba(0, 0, 0, .25); }
.m2d-posta-base { fill: #fff; }
.m2d-posta-centro { fill: #FF8A00; stroke: #c25e00; stroke-width: 2; }
.estado-completada .m2d-posta-centro { fill: var(--ok); stroke: #1d6e3d; }
.estado-bloqueada .m2d-posta-centro { fill: var(--gris); stroke: #5d6573; }
.m2d-numero { fill: #fff; font-family: var(--fuente-titulo); }
.m2d-emoji { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.m2d-estrellas { fill: var(--oro); stroke: #7a5200; stroke-width: .8px; paint-order: stroke; font-weight: 900; letter-spacing: 1px; }
.m2d-check { fill: #fff; stroke: var(--ok); stroke-width: 2; }
.m2d-check-txt { fill: var(--ok); font-weight: 900; }
.m2d-etiqueta rect { fill: rgba(31, 42, 68, .9); }
.m2d-etiqueta.estado-completada rect { fill: rgba(29, 110, 61, .92); }
.m2d-etiqueta.estado-bloqueada rect { fill: rgba(60, 66, 78, .82); }
.m2d-etiqueta.estado-inicio rect { fill: rgba(150, 30, 30, .85); }
.m2d-etiqueta-txt { fill: #fff; font-weight: 800; font-family: var(--fuente); }
.m2d-inicio-base { fill: #fff; stroke: #c62828; stroke-width: 2.5; }
.m2d-pulso { fill: none; stroke: var(--oro); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: pulso 1.5s ease-out infinite; }
.m2d-flecha { fill: var(--oro); stroke: #7a5200; stroke-width: 1px; paint-order: stroke; animation: rebote 1s ease-in-out infinite; }
.m2d-posta:hover .m2d-posta-base, .m2d-posta:focus-visible .m2d-posta-base { stroke: #1E88E5; stroke-width: 3; }
.m2d-posta-sacudir.sacude { animation: sacudir .45s; }
.m2d-pj-sombra { fill: rgba(0, 0, 0, .3); }
.m2d-pj-offset { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.m2d-pj-offset.en-reposo { transform: translate(-34px, 18px); animation: respirar 2.4s ease-in-out infinite; }

/* ---------- animaciones ---------- */
@keyframes fundido { from { opacity: 0; } to { opacity: 1; } }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes entrar { from { transform: translateX(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aparecer { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes estrella { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes estrella2 { from { transform: translateY(-8px) scale(0) rotate(-40deg); } to { transform: translateY(-8px); } }
@keyframes festejo { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes sacudir { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes latido { 50% { transform: scale(1.2); } }
@keyframes invitar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes pulso { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes rebote { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes respirar { 0%, 100% { transform: translate(-34px, 18px); } 50% { transform: translate(-34px, 16.5px); } }
@keyframes confeti { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* pantallas muy chicas (320x400 del Runner móvil) */
@media (max-width: 360px) {
    .mis-hud-titulo { font-size: 14px; }
    .mis-chip, .mis-icono-btn, .mis-objeto { height: 30px; }
    .mis-icono-btn, .mis-objeto { width: 30px; }
    .mis-ir { font-size: 15px; min-height: 44px; }
    .mis-pregunta-texto { font-size: 17px; }
}

/* ==============================================
   v2 — mapa de niveles, controles de sonido, celebración sobre el 3D
   ============================================== */
.mis-capa.capa-niveles { align-items: center; padding: 12px; background: rgba(15, 20, 35, .55); }
.mis-niveles {
    width: 100%; max-width: 680px; height: 100%; max-height: 860px;
    display: flex; flex-direction: column;
    background: var(--papel);
    border-radius: 24px; border: 3px solid #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    overflow: hidden;
    animation: aparecer .3s cubic-bezier(.3, 1.3, .5, 1);
}
.mis-niveles-mapa { position: relative; flex: 1; min-height: 0; margin: 0 10px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .08); }
.mis-niveles-mapa .mis-svg { position: absolute; top: 0; left: 0; }
.mis-niveles-leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 16px 14px; font-size: 13px; font-weight: 800; color: var(--tinta-suave); }
.mis-niveles-leyenda span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.mis-niveles-leyenda .disp::before { background: #FF8A00; }
.mis-niveles-leyenda .comp::before { background: var(--ok); }
.mis-niveles-leyenda .bloq::before { background: var(--gris); }
.mis-niveles-leyenda small { margin-left: auto; font-weight: 700; }

.mis-icono-btn.apagado { opacity: .55; text-decoration: line-through; }
.mis-btn-mapa { width: 40px; font-size: 19px; }

/* la celebración deja ver los fuegos artificiales del 3D */
.mis-capa.capa-celebracion, .mis-capa.capa-final { background: rgba(15, 20, 35, .22); }
.mis-capa.capa-celebracion .mis-celebra-tarjeta, .mis-capa.capa-final .mis-celebra-tarjeta { animation-delay: .35s; animation-fill-mode: both; }

/* mochila: los objetos no se confunden con los botones */
.mis-inventario:not(:empty) {
    display: inline-flex; align-items: center; gap: 2px;
    height: 34px; padding: 0 8px 0 6px; border-radius: 17px;
    background: #FFF0C2; border: 2px solid var(--oro);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.mis-inventario .mis-objeto { width: auto; height: auto; background: none; box-shadow: none; font-size: 18px; }
.mis-mochila { font-size: 15px; margin-right: 2px; opacity: .85; }

/* ==============================================
   v4 — Picoteo, Juntar objetos y misiones "en el mundo"
   ============================================== */

/* misión sobre el 3D: tarjeta compacta arriba, el resto deja tocar el mundo */
.mis-capa.capa-mision-mundo { background: transparent; pointer-events: none; align-items: flex-start; padding: 8px; }
.mis-capa.capa-mision-mundo .mis-mision-mundo {
    pointer-events: auto; margin: 0 auto; max-width: 520px; height: auto;
    border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    background: rgba(255, 248, 236, .96);
}
.mis-mision-mundo .mis-hoja-cabecera { padding: 10px 12px 8px 14px; }
.mis-mision-mundo .mis-hoja-titulos h2 { font-size: 18px; }
.mis-mision-mundo .mis-consigna { margin: 8px 10px 0; padding: 7px 12px; }
.mis-mision-mundo .mis-mision-cuerpo { padding: 6px 12px 10px; overflow: visible; }
.mis-app.en-mundo .mis-hud, .mis-app.en-mundo .mis-barra { opacity: 0; pointer-events: none; }
.mis-app.en-mundo .mis-hud > *, .mis-app.en-mundo .mis-barra > * { pointer-events: none; }

/* ---------- juntar ---------- */
.jun-marcador { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 900; }
.jun-canasta { font-size: 26px; }
.jun-fallos { margin-left: auto; color: var(--mal); font-size: 16px; }
.jun-mensaje { margin: 4px 0 0; min-height: 1.3em; font-weight: 700; font-size: 14.5px; color: var(--tinta-suave); line-height: 1.35; }
.jun-campo {
    position: relative; flex: 1; min-height: 300px; margin-top: 10px;
    border-radius: 18px; overflow: hidden;
    background: radial-gradient(circle at 50% 120%, #9ccc65, #7cb342 60%, #558b2f);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, .2);
}
.jun-objeto {
    position: absolute; transform: translate(-50%, -50%);
    width: 84px; padding: 6px 4px 6px; border: 4px solid #FFC83D; border-radius: 50% 50% 22px 22px;
    background: #fff; box-shadow: 0 6px 10px rgba(0, 0, 0, .25);
    display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
    animation: jun-flotar 2.4s ease-in-out infinite;
}
.jun-objeto .jun-emoji { font-size: 38px; line-height: 1.1; }
.jun-objeto img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.jun-objeto small { font-weight: 800; font-size: 12px; color: var(--tinta); line-height: 1.1; text-align: center; }
.jun-objeto.tomado { animation: jun-tomado .6s forwards; }
.jun-objeto.equivocado { animation: jun-equivocado .7s forwards; border-color: var(--mal); }
@keyframes jun-flotar { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -58%); } }
@keyframes jun-tomado { to { transform: translate(-50%, -160%) scale(.3); opacity: 0; } }
@keyframes jun-equivocado { 0% { transform: translate(-50%, -50%); } 20% { transform: translate(-58%, -50%) rotate(-8deg); } 40% { transform: translate(-42%, -50%) rotate(8deg); } 100% { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

/* ---------- picoteo ---------- */
.pic-ayuda { margin: 0 0 6px; text-align: center; font-weight: 700; color: var(--tinta-suave); font-size: 14px; }
.pic-herramientas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.pic-herr {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 14px; border-radius: 22px;
    border: 3px solid #fff; background: #fff; box-shadow: 0 3px 0 #e2d6bd;
    font-weight: 800; font-size: 15px; color: var(--tinta); cursor: pointer;
}
.pic-herr__ico { font-size: 22px; }
.pic-herr.activa { border-color: var(--primario); background: #FFF0C2; box-shadow: 0 0 0 3px rgba(217, 72, 15, .2); }
.pic-herramientas.sacude { animation: sacudir .4s; }

.pic-zona { display: grid; gap: 12px; justify-content: center; margin: 4px 0 8px; }
.pic-zona.cant-1 { grid-template-columns: minmax(0, 240px); }
.pic-zona.cant-2, .pic-zona.cant-3, .pic-zona.cant-4 { grid-template-columns: repeat(2, minmax(0, 170px)); }
.pic-parcela {
    position: relative; aspect-ratio: 1; width: 100%;
    border: 0; border-radius: 28px; padding: 0; cursor: pointer;
    background: radial-gradient(circle at 50% 35%, #ffffff, #FFF0C2);
    box-shadow: 0 6px 0 #e2c98f, 0 10px 20px rgba(0, 0, 0, .15);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: visible; touch-action: manipulation;
}
.pic-parcela:active { transform: translateY(2px); }
.pic-anillo { position: absolute; inset: 6%; width: 88%; height: 88%; transform: rotate(-90deg); pointer-events: none; }
.pic-anillo circle { fill: none; stroke-width: 6; }
.pic-anillo .fondo { stroke: rgba(0, 0, 0, .07); }
.pic-anillo .avance { stroke: var(--primario); stroke-linecap: round; transition: stroke-dashoffset .15s; }
.pic-parcela.lista .pic-anillo .avance { stroke: var(--ok); stroke-dashoffset: 0 !important; }
.pic-cara { position: relative; display: flex; align-items: center; justify-content: center; width: 62%; height: 58%; pointer-events: none; }
.pic-cara img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.pic-emoji { font-size: clamp(52px, 13vw, 92px); line-height: 1; }
.cant-2 .pic-emoji, .cant-3 .pic-emoji, .cant-4 .pic-emoji { font-size: clamp(40px, 10vw, 64px); }
.pic-txt { font-family: var(--fuente-titulo); font-size: 22px; text-align: center; color: var(--tinta); }
.pic-txt.chico { font-size: 13px; }
.pic-nombre { position: relative; margin-top: 4px; font-weight: 900; font-size: 15px; color: var(--tinta); pointer-events: none; max-width: 90%; text-align: center; line-height: 1.15; }
.pic-parcela.golpe .pic-cara { animation: pic-golpe .18s; }
.pic-parcela.transforma .pic-cara { animation: pic-transforma .55s cubic-bezier(.3, 1.6, .5, 1); }
.pic-parcela.sacude { animation: sacudir .4s; }
.pic-parcela.rebote .pic-cara { animation: festejo .4s; }
.pic-parcela.lista { background: radial-gradient(circle at 50% 35%, #ffffff, var(--ok-suave)); box-shadow: 0 6px 0 #9fd9b4, 0 10px 20px rgba(0, 0, 0, .15); }
.pic-chispa { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--oro); pointer-events: none; animation: pic-chispa .6s ease-out forwards; }
@keyframes pic-golpe { 0% { transform: scale(1); } 40% { transform: scale(.88, .8); } 100% { transform: scale(1); } }
@keyframes pic-transforma { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes pic-chispa { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.pic-mensaje { margin: 2px 0 8px; min-height: 1.4em; text-align: center; font-weight: 800; font-size: 15px; color: var(--tinta); }
.pic-camino { list-style: none; margin: auto 0 0; padding: 8px 4px 2px; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pic-etapa { display: flex; flex-direction: column; align-items: center; width: 62px; opacity: .45; position: relative; }
.pic-etapa:not(:last-child)::after { content: '›'; position: absolute; right: -8px; top: 8px; font-weight: 900; color: var(--tinta-suave); }
.pic-etapa__ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #e2d6bd; overflow: hidden; }
.pic-etapa__ico .pic-emoji { font-size: 22px; }
.pic-etapa__ico img { width: 100%; height: 100%; object-fit: cover; }
.pic-etapa small { font-size: 10.5px; font-weight: 800; text-align: center; line-height: 1.1; margin-top: 2px; }
.pic-etapa.hecha, .pic-etapa.actual { opacity: 1; }
.pic-etapa.actual .pic-etapa__ico { box-shadow: 0 0 0 3px var(--primario); }
.pic-etapa.hecha .pic-etapa__ico { box-shadow: 0 0 0 3px var(--ok); }

/* ==============================================
   v5 — Carrera (juntar en el camino) y parcela 3D (picoteo estilo Minecraft)
   ============================================== */

/* marco de las misiones en el mundo: tarjeta arriba, franja de botones abajo; el medio deja tocar el 3D */
.mis-mundo-marco {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    pointer-events: none;
}
.mis-mundo-marco > .mis-mision-mundo { width: 100%; flex: 0 0 auto; }
.mis-mundo-pie {
    margin-top: auto; width: 100%; max-width: 560px;
    display: flex; justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mis-mundo-pie > * { pointer-events: auto; }
.mis-mundo-pie:empty { display: none; }

/* velo blanco para pasar del mapa a la pista */
.mis-fundido {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5;
    background: #fffaf0; opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.mis-fundido.visible { opacity: 1; }

/* contadores por objeto (carrera) */
.jun-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.jun-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px 3px 4px; border-radius: 999px;
    background: #fff; box-shadow: 0 2px 0 #e2d6bd;
    font-weight: 900; font-size: 16px; color: var(--tinta);
    font-variant-numeric: tabular-nums;
    transition: background .2s, transform .2s;
}
.jun-chip__ico { font-size: 22px; line-height: 1; }
.jun-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.jun-chip.completo { background: var(--ok-suave, #dff3e6); box-shadow: 0 2px 0 #9fd9b4; animation: festejo .4s; }
.jun-chip.completo::after { content: '✔'; color: var(--ok); margin-left: 2px; }
.jun-chips .jun-fallos { margin-left: auto; }

/* botones de carril */
.jun-carriles {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 8px 10px 12px;
}
.jun-carril {
    width: 76px; height: 64px; border: 0; border-radius: 20px;
    background: rgba(255, 248, 236, .94); color: var(--primario);
    font-size: 28px; font-weight: 900; cursor: pointer;
    box-shadow: 0 5px 0 rgba(0, 0, 0, .18), 0 8px 18px rgba(0, 0, 0, .2);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.jun-carril:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.jun-carril:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.jun-carril__ayuda {
    padding: 5px 12px; border-radius: 999px;
    background: rgba(15, 20, 35, .55); color: #fff;
    font-weight: 800; font-size: 13px; text-align: center;
    pointer-events: none !important;
}

/* barra de herramientas estilo Minecraft */
.pic3-barra {
    display: flex; gap: 4px; padding: 5px; margin: 0 8px 12px;
    background: rgba(40, 32, 26, .82); border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    max-width: 100%; overflow-x: auto;
}
.pic3-barra.sacude { animation: sacudir .4s; }
.pic3-slot {
    position: relative; flex: 0 0 auto;
    width: 72px; min-height: 66px; padding: 6px 4px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 3px solid #6b5b4b; border-radius: 6px;
    background: #a08c76; color: #fff; cursor: pointer;
    image-rendering: pixelated;
    box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .25);
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.pic3-slot__ico { font-size: 28px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.pic3-slot small { font-size: 10.5px; font-weight: 900; line-height: 1.05; text-align: center; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.pic3-slot i { position: absolute; top: 1px; left: 4px; font-style: normal; font-size: 10px; font-weight: 900; opacity: .75; }
.pic3-slot.activa { border-color: #fff; background: #c9b08f; transform: translateY(-4px); box-shadow: 0 0 0 2px var(--oro), inset -3px -3px 0 rgba(0, 0, 0, .25); }
.pic3-slot:focus-visible { outline: 3px solid var(--oro); outline-offset: 1px; }
.pic3-listos { font-size: 13px; color: var(--tinta-suave); font-weight: 800; }
.pic3-golpes { margin-left: auto; font-size: 16px; color: var(--primario); font-variant-numeric: tabular-nums; }
.pic-camino--chico { margin: 4px 0 0; padding: 4px 0 0; gap: 2px; }
.pic-camino--chico .pic-etapa { width: 50px; }
.pic-camino--chico .pic-etapa__ico { width: 30px; height: 30px; }
.pic-camino--chico .pic-etapa__ico .pic-emoji { font-size: 17px; }
.pic-camino--chico .pic-etapa small { font-size: 9.5px; }
.pic-camino--chico .pic-etapa:not(:last-child)::after { top: 4px; right: -6px; }

@media (max-width: 380px) {
    .pic3-slot { width: 60px; min-height: 58px; }
    .pic3-slot__ico { font-size: 24px; }
    .jun-carril { width: 64px; height: 56px; }
}

/* ==============================================
   v6 — tarjeta compacta en el mundo, pantalla completa, cuenta regresiva, tramos y rachas
   ============================================== */

/* tarjeta del mundo: más baja; la consigna se pliega sola y el mensaje es un globito */
.mis-capa.capa-mision-mundo .mis-mision-mundo { position: relative; overflow: visible; border-radius: 16px; }
.mis-mision-mundo .mis-hoja-cabecera { padding: 7px 8px 6px 14px; align-items: center; border-bottom-width: 0; }
.mis-mision-mundo .mis-hoja-titulos h2 { font-size: 17px; line-height: 1.15; }
.mis-mision-mundo .mis-hoja-titulos small { font-size: 11px; }
.mis-mision-mundo .mis-cerrar { width: 32px; height: 32px; font-size: 14px; }
.mis-mision-mundo .mis-consigna {
    margin: 0 10px 4px; padding: 6px 12px; font-size: 14.5px;
    max-height: 10em; overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease, margin .35s ease, padding .35s ease;
}
.mis-mision-mundo .mis-mision-cuerpo { padding: 2px 10px 8px; }
.mis-mision-mundo.plegada .mis-consigna { max-height: 0; opacity: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
.mis-mision-mundo.plegada .mis-hoja-titulos small { display: none; }
.mis-hoja-titulos.desplegable { cursor: pointer; }
.mis-mision-mundo.plegada .mis-hoja-titulos.desplegable h2::after {
    content: 'ⓘ'; display: inline-block; margin-left: 6px; font-size: .78em; opacity: .55; vertical-align: 1px;
}
.mis-hoja-titulos.desplegable:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 8px; }

.mis-mision-mundo .jun-mensaje {
    position: absolute; left: 50%; top: calc(100% + 8px); z-index: 2;
    width: max-content; max-width: min(92vw, 500px); margin: 0; min-height: 0;
    padding: 7px 14px; border-radius: 14px;
    background: rgba(20, 26, 44, .84); color: #fff; font-size: 14px; line-height: 1.3; text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    opacity: 0; transform: translate(-50%, -6px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.mis-mision-mundo .jun-mensaje.visible { opacity: 1; transform: translate(-50%, 0); }
.mis-mision-mundo .jun-mensaje:empty { display: none; }

/* parcela: marcador y camino de etapas en una sola franja cuando se puede */
.mis-mision-mundo.tipo-picoteo .mis-mision-cuerpo, .mis-mision-mundo .tipo-picoteo { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.mis-mision-mundo .tipo-picoteo .jun-marcador { font-size: 18px; }
.mis-mision-mundo .tipo-picoteo .pic-camino--chico { flex: 1 1 auto; margin: 0; padding: 0; justify-content: flex-end; }
.mis-mision-mundo.plegada .pic-camino--chico .pic-etapa small { display: none; }
.mis-mision-mundo.plegada .pic3-listos { display: none; }
.mis-mision-mundo .pic-camino--chico .pic-etapa { width: 44px; }

/* chips de la carrera */
.mis-mision-mundo .jun-chips { gap: 5px; }
.mis-mision-mundo .jun-chip { font-size: 15px; padding: 2px 9px 2px 3px; }
.jun-chip.pulso { animation: chip-pulso .32s cubic-bezier(.3, 1.8, .5, 1); }
.jun-fallos.pulso { animation: sacudir .35s; }
@keyframes chip-pulso { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }
.jun-tramo {
    padding: 3px 9px; border-radius: 999px; background: var(--primario); color: #fff;
    font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums;
}

/* botones de carril: más chicos y translúcidos; la ayuda se va sola */
.jun-carriles { padding: 6px 10px 10px; }
.jun-carril { width: 66px; height: 56px; border-radius: 18px; background: rgba(255, 248, 236, .82); font-size: 24px; }
.jun-carril__ayuda { animation: desvanecer .8s 6s forwards; }
@keyframes desvanecer { to { opacity: 0; visibility: hidden; } }

/* capa de efectos sobre el 3D (cuenta regresiva, anuncios, rachas) */
.mis-mundo-marco { position: relative; }
.mis-mundo-escena {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none !important; overflow: hidden;
}
.mis-mundo-escena > * { position: absolute; }
.mis-cuenta {
    font-family: var(--fuente-titulo); font-size: clamp(84px, 26vw, 160px); line-height: 1;
    color: #fff; -webkit-text-stroke: 4px #1F2A44; paint-order: stroke fill;
    text-shadow: 0 8px 0 #1F2A44, 0 14px 30px rgba(0, 0, 0, .35);
    animation: cuenta-pop .78s cubic-bezier(.2, 1.5, .4, 1) forwards;
}
.mis-cuenta.ya { color: var(--oro); font-size: clamp(64px, 20vw, 120px); }
@keyframes cuenta-pop {
    0% { transform: scale(.3); opacity: 0; }
    30% { transform: scale(1.12); opacity: 1; }
    70% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}
.mis-anuncio {
    top: 32%; max-width: min(86vw, 420px);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 14px 22px; border-radius: 22px;
    background: rgba(255, 248, 236, .96); box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
    text-align: center;
    animation: anuncio 2.8s cubic-bezier(.2, 1.3, .4, 1) forwards;
}
.mis-anuncio b { font-family: var(--fuente-titulo); font-weight: 400; font-size: 28px; color: var(--primario); }
.mis-anuncio span { font-weight: 800; font-size: 15px; color: var(--tinta); line-height: 1.3; }
@keyframes anuncio {
    0% { transform: translateY(-30px) scale(.7); opacity: 0; }
    12% { transform: translateY(0) scale(1.04); opacity: 1; }
    20%, 82% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-16px) scale(.96); opacity: 0; }
}
.mis-racha {
    top: 30%; font-family: var(--fuente-titulo); font-size: 40px;
    color: var(--oro); -webkit-text-stroke: 2px #1F2A44; paint-order: stroke fill;
    text-shadow: 0 4px 0 #1F2A44;
    animation: racha .9s ease-out forwards;
}
@keyframes racha {
    0% { transform: translateY(20px) scale(.5); opacity: 0; }
    25% { transform: translateY(0) scale(1.15); opacity: 1; }
    100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

/* pantalla completa */
.mis-btn-pantalla { display: inline-flex; align-items: center; justify-content: center; color: var(--tinta); }

@media (prefers-reduced-motion: reduce) {
    .mis-cuenta, .mis-anuncio, .mis-racha, .jun-chip.pulso { animation-duration: .01s; }
}

/* v7: medidor de rendimiento (?fps=1) */
.mis-medidor {
    position: absolute; left: 6px; bottom: 84px; z-index: 30; pointer-events: none;
    padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .65); color: #7CFC9A;
    font: 700 11px/1.3 ui-monospace, Menlo, Consolas, monospace;
}
.mis-error p { max-width: 30em; line-height: 1.4; }
.mis-error-detalle { max-width: 34em; color: var(--tinta-suave); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-word; }

/* v9: botón de salto de la carrera */
.jun-salto { width: auto; min-width: 96px; padding: 0 16px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1; }
.jun-salto b { font-size: 24px; }
.jun-salto small { font-size: 11px; font-weight: 900; color: var(--tinta-suave); margin-top: 2px; }

/* =====================================================================
   v25: desafíos STEAM (programar, completar, clasificar, calcular, balanza)
   ===================================================================== */
/* programar */
.mis-prog { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) { .mis-prog { flex-direction: row; align-items: flex-start; } .mis-prog-tablero { flex: 0 0 min(46%, 380px); } .mis-prog-lado { flex: 1; } }
.mis-prog-tablero { position: relative; display: grid; width: 100%; max-width: min(380px, calc(34vh * var(--prop, 1))); margin: 0 auto; flex: 0 0 auto; border-radius: 14px; overflow: hidden; border: 3px solid #3d4a63; background: #3d4a63; gap: 2px; }
.mis-prog-celda { position: relative; background: #e9f3dc; display: flex; align-items: center; justify-content: center; font-size: clamp(16px, 5vw, 28px); }
.mis-prog-celda.impar { background: #dfeccd; }
.mis-prog-celda.pared { background: #6b5a4f; background-image: linear-gradient(90deg, rgba(0,0,0,.18) 2px, transparent 2px), linear-gradient(rgba(0,0,0,.18) 2px, transparent 2px); background-size: 50% 33%; }
.mis-prog-celda.pisada { background: #fff6c8; }
.mis-prog-celda.choque { background: var(--mal-suave); }
.mis-prog-estrella { transition: transform .3s, opacity .3s; }
.mis-prog-estrella.juntada { transform: scale(1.8) translateY(-30%); opacity: 0; }
.mis-prog-meta { animation: flotar 1.6s ease-in-out infinite; }
.mis-prog-robot { position: absolute; display: flex; align-items: center; justify-content: center; transition: left .38s ease, top .38s ease; z-index: 2; pointer-events: none; }
.mis-prog-robot .cara { font-size: clamp(20px, 6.5vw, 34px); filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.mis-prog-robot .dir { position: absolute; inset: 0; transition: transform .3s; }
.mis-prog-robot .dir:after { content: ""; position: absolute; right: 2px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 10px solid var(--primario); }
.mis-prog-robot.choca .cara { animation: sacudir .4s; }
.mis-prog-robot.festeja .cara { animation: festejo .5s 2; }
.mis-prog-cab { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.mis-prog-contador { font-weight: 800; color: var(--tinta-suave); font-size: 13px; }
.mis-prog-programa { list-style: none; margin: 6px 0 10px; padding: 8px; min-height: 58px; display: flex; flex-wrap: wrap; gap: 6px; background: #fff; border: 2px dashed var(--papel-borde); border-radius: 14px; counter-reset: paso; }
.mis-prog-paso { position: relative; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.25); counter-increment: paso; }
.mis-prog-paso:before { content: counter(paso); position: absolute; top: -6px; left: -6px; background: #fff; color: var(--tinta); border-radius: 50%; font-size: 10px; font-weight: 900; width: 16px; height: 16px; line-height: 16px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.mis-prog-paso.activo { outline: 3px solid var(--oro); transform: translateY(-3px); }
.mis-prog-vacio { color: var(--gris); font-size: 14px; align-self: center; padding: 0 4px; }
.mis-prog-paleta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mis-prog-bloque { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 70px; padding: 8px 6px; border: 0; border-radius: 14px; color: #fff; cursor: pointer; font-family: var(--fuente); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.mis-prog-bloque .ico { font-size: 26px; line-height: 1; }
.mis-prog-bloque small { font-weight: 800; font-size: 11px; }
.mis-prog-bloque:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.b-ar, .b-ab, .b-iz, .b-de, .b-av { background: #3a86ff; }
.b-gi, .b-gd { background: #7b4fd6; }
.mis-prog-aviso { min-height: 1.4em; margin: 10px 0 0; text-align: center; font-weight: 800; color: var(--tinta-suave); }
.mis-prog-acciones { flex-wrap: wrap; gap: 6px; }

/* completar */
.mis-completar { display: flex; flex-direction: column; gap: 12px; }
.mis-completar-parrafo { background: #fff; border: 2px solid var(--papel-borde); border-radius: 14px; padding: 12px 14px; }
.mis-completar-parrafo p { margin: 0; font-size: 18px; line-height: 2.1; }
.mis-completar-img { float: right; max-width: 34%; max-height: 110px; margin: 0 0 6px 10px; border-radius: 10px; }
.mis-hueco { display: inline-block; min-width: 74px; margin: 0 3px; padding: 0 10px; border: 0; border-bottom: 3px solid var(--primario); border-radius: 10px 10px 4px 4px; background: #fff1de; color: var(--primario-osc); font: inherit; font-weight: 900; line-height: 1.6; cursor: pointer; }
.mis-hueco.activo { background: var(--oro); color: var(--tinta); }
.mis-hueco.lleno { background: #e8f0ff; color: #1d4ed8; border-color: #1d4ed8; }
.mis-hueco.ok { background: var(--ok-suave); color: var(--ok); border-color: var(--ok); }
.mis-hueco.mal { background: var(--mal-suave); color: var(--mal); border-color: var(--mal); animation: sacudir .4s; }
.mis-pregunta-zona, .mis-completar { position: relative; }
.mis-hueco-menu { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; padding: 10px; background: #fff; border: 2px solid var(--oro); border-radius: 14px; box-shadow: var(--sombra); }
.mis-hueco-menu[hidden] { display: none; }
.mis-hueco-menu-tit { flex-basis: 100%; text-align: center; font-size: 13px; font-weight: 800; color: var(--tinta-suave); }
.mis-hueco-op { padding: 8px 12px; border: 2px solid var(--papel-borde); border-radius: 999px; background: var(--papel); font: inherit; font-weight: 800; cursor: pointer; }
.mis-hueco-op:hover, .mis-hueco-op:focus { border-color: var(--primario); outline: none; }
.mis-hueco-op.elegida { background: var(--oro); }
.mis-completar-info, .mis-clas-info { text-align: center; font-weight: 800; color: var(--tinta-suave); margin: 10px 0 0; }

/* clasificar */
.mis-clas-bandeja { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 52px; }
.mis-clas-ficha { position: relative; padding: 8px 12px; border: 3px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--papel-borde), 0 4px 10px rgba(0,0,0,.12); font: inherit; font-weight: 800; cursor: grab; touch-action: none; }
.mis-clas-ficha .mis-contenido img { max-height: 54px; }
.mis-clas-ficha.elegida { border-color: var(--oro); transform: translateY(-4px) scale(1.04); }
.mis-clas-ficha.arrastrando { z-index: 10; cursor: grabbing; box-shadow: 0 12px 22px rgba(0,0,0,.3); }
.mis-clas-ficha.mal { animation: sacudir .4s; border-color: var(--mal); }
.mis-clas-ficha.ubicada { cursor: default; padding: 4px 8px; font-size: 13px; box-shadow: none; border-width: 2px; border-color: var(--ok); }
.mis-clas-ficha.ubicada .mis-contenido img { max-height: 30px; }
.mis-clas-grupos { display: grid; gap: 8px; margin-top: 12px; }
@media (max-width: 520px) { .mis-clas-grupos { grid-template-columns: repeat(2, 1fr) !important; } }
.mis-clas-grupo { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 120px; padding: 8px; border: 3px dashed rgba(0,0,0,.18); border-radius: 16px; font: inherit; cursor: pointer; text-align: center; transition: transform .15s, border-color .15s; }
.mis-clas-grupo.c0 { background: #e3f0ff; } .mis-clas-grupo.c1 { background: #fff1d6; } .mis-clas-grupo.c2 { background: #e6f6e6; } .mis-clas-grupo.c3 { background: #f6e6f6; }
.mis-clas-grupo.destino { border-color: var(--primario); border-style: solid; }
.mis-clas-grupo.festejo { animation: festejo .4s; }
.mis-clas-grupo.no { animation: sacudir .4s; border-color: var(--mal); }
.mis-clas-titulo { font-family: var(--fuente-titulo); font-size: 16px; color: var(--tinta); }
.mis-clas-titulo .ico { margin-right: 4px; }
.mis-clas-lista { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* calcular */
.mis-calc-iconos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 28px; margin: 4px 0 8px; }
.mis-calc-iconos span { animation: aparecer .3s both; }
.mis-calc-fila { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 10px; }
.mis-calc-pantalla { min-width: 160px; padding: 8px 16px; border-radius: 12px; background: #1f2a44; color: #9ff2c9; font: 900 30px/1.1 'DejaVu Sans Mono', ui-monospace, monospace; text-align: right; box-shadow: inset 0 3px 8px rgba(0,0,0,.4); }
.mis-calc-pantalla.vacia { color: #55607a; }
.mis-calc-pantalla.ok { background: var(--ok); color: #fff; }
.mis-calc-pantalla.mal { background: var(--mal); color: #fff; animation: sacudir .4s; }
.mis-calc-unidad { font-weight: 900; font-size: 20px; }
.mis-calc-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; margin: 0 auto; }
.mis-calc-tecla { min-height: 48px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 4px 0 var(--papel-borde); font: 900 22px var(--fuente); color: var(--tinta); cursor: pointer; }
.mis-calc-tecla:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--papel-borde); }
.mis-calc-tecla.borrar, .mis-calc-tecla.menos { background: #ece4d4; }
.mis-calc-tecla.listo { grid-column: span 2; background: var(--primario); color: #fff; box-shadow: 0 4px 0 var(--primario-osc); font-size: 18px; }
.mis-calc-teclado.respondido { opacity: .5; pointer-events: none; }

/* balanza */
.mis-bal { position: relative; width: 100%; height: 200px; margin: 8px auto 0; max-width: 360px; flex: 0 0 auto; }
.mis-bal-pie { position: absolute; left: 50%; bottom: 0; width: 18px; height: 150px; margin-left: -9px; background: linear-gradient(90deg, #8a6a4c, #b08a5a 40%, #6e5238); border-radius: 6px 6px 0 0; }
.mis-bal-pie:after { content: ""; position: absolute; left: -40px; right: -40px; bottom: 0; height: 14px; background: #6e5238; border-radius: 8px; }
.mis-bal-barra { position: absolute; left: 6%; right: 6%; top: 44px; height: 10px; background: #c9a227; border-radius: 6px; box-shadow: 0 3px 0 #9a7a18; transition: transform .6s cubic-bezier(.3,1.4,.5,1); z-index: 1; }
.mis-bal-barra:before { content: ""; position: absolute; left: 50%; top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #e8c547; box-shadow: 0 0 0 3px #9a7a18; }
.mis-bal-cuelga { position: absolute; top: 5px; width: 120px; margin-left: -60px; transform-origin: 50% 0; transition: transform .6s cubic-bezier(.3,1.4,.5,1); display: flex; flex-direction: column; align-items: center; }
.mis-bal-cuelga.izq { left: 4%; } .mis-bal-cuelga.der { left: 96%; }
.mis-bal-cuelga .hilo { width: 70%; height: 46px; border: 2px solid #7a6a5a; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: transparent; }
.mis-bal-plato { position: relative; width: 120px; min-height: 54px; padding: 4px 4px 18px; display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: center; gap: 2px; background: linear-gradient(#e2e6ec, #b8c0cc); border-radius: 0 0 60px 60px / 0 0 26px 26px; border-top: 3px solid #8a94a3; }
.mis-bal-objeto { font-size: 40px; line-height: 1; }
.mis-bal-plato img { max-width: 70px; max-height: 50px; }
.mis-bal-etiqueta { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--tinta); color: #fff; font-weight: 900; font-size: 13px; padding: 2px 8px; border-radius: 999px; }
.mis-bal-puesta { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px 6px 4px 4px; background: #5a6370; color: #fff; font: 900 12px var(--fuente); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.mis-bal-lectura { text-align: center; font-weight: 900; margin: 30px 0 8px; color: var(--tinta-suave); min-height: 1.4em; }
.mis-bal-lectura.ok { color: var(--ok); }
.mis-bal-pesas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mis-bal-pesa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 64px; height: 66px; padding: 0 0 8px; border: 0; background: none; cursor: pointer; font-family: var(--fuente); }
.mis-bal-pesa .aro { position: absolute; top: 0; left: 50%; width: 22px; height: 16px; margin-left: -11px; border: 4px solid #3d4550; border-bottom: 0; border-radius: 12px 12px 0 0; }
.mis-bal-pesa:before { content: ""; position: absolute; left: 6px; right: 6px; top: 14px; bottom: 0; background: linear-gradient(90deg, #4a5260, #6b7484 45%, #3d4550); border-radius: 10px 10px 8px 8px; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); box-shadow: 0 4px 0 #2b313a; }
.mis-bal-pesa b, .mis-bal-pesa small { position: relative; color: #fff; line-height: 1; }
.mis-bal-pesa b { font-size: 20px; } .mis-bal-pesa small { font-size: 10px; font-weight: 800; }
.mis-bal-pesa:active { transform: translateY(3px); }
@keyframes aparecer { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12%); } }
