/* Kermillitas · Portal v11-2 · juegos con niveles y 3D */
.ap-rompe{background:linear-gradient(150deg,#3C93DB,#1B4F86)}.ap-laberinto{background:linear-gradient(150deg,#37A777,#17573F)}.ap-parcela{background:linear-gradient(150deg,#EBA01C,#A85E08)}
.tab11 .nuevo12{min-height:290px}.tab11 .nuevo12 .ilus{width:136px!important;height:150px!important;top:22px;right:2px!important;object-position:100% 50%}
.tab11 .nuevo12::after{content:"";position:absolute;inset:0;z-index:0;opacity:.16;background-repeat:no-repeat;background-position:-18px 60px;background-size:150px;pointer-events:none;-webkit-mask:none;padding:0;animation:none}
.ap-rompe::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23fff' d='M10 30h22c5 0 2-5 2-9a10 10 0 0 1 20 0c0 4-3 9 2 9h20v20c0 5 5 2 9 2a10 10 0 0 1 0 20c-4 0-9-3-9 2v16H10z'/%3E%3C/svg%3E")!important}
.ap-laberinto::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='7' stroke-linecap='round' d='M8 8h84v84H8V30h62v42H30V52h20M50 8v8'/%3E%3C/svg%3E")!important}
.ap-parcela::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23fff'%3E%3Crect x='6' y='8' width='26' height='26' rx='6'/%3E%3Crect x='6' y='37' width='26' height='26' rx='6'/%3E%3Crect x='35' y='37' width='26' height='26' rx='6'/%3E%3Crect x='35' y='66' width='26' height='26' rx='6'/%3E%3Crect x='64' y='66' width='26' height='26' rx='6'/%3E%3C/g%3E%3C/svg%3E")!important}
.niv12{display:flex;align-items:center;gap:4px;margin-bottom:6px}.niv12 i{width:13px;height:7px;border-radius:9px;background:rgba(255,255,255,.34)}.niv12 i.si{background:#FFD34D}.niv12 i.ahora{background:#fff;width:20px}.niv12 small{font:700 12.5px var(--display);margin-left:4px;color:#fff}
@media(max-width:699px){.tab11 .juego:last-child:nth-child(odd){grid-column:1/-1;min-height:160px}.tab11 .juego:last-child:nth-child(odd) .ilus{top:18px;right:22px!important}.tab11 .nuevo12:nth-child(3){grid-column:auto}}
@media(min-width:1000px){.r-jugar .tab11 .nuevo12 .ilus{width:170px!important;height:176px!important}}
/* Escena */
.e12 .cab .ib{flex:none}.e12 .cuerpo{max-width:720px;padding:16px 16px calc(24px + env(safe-area-inset-bottom))}
.port12{width:100%;display:flex;flex-direction:column;gap:14px}
.hero12{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(140deg,var(--c),var(--c2));color:#fff;display:flex;align-items:center;gap:14px;padding:18px;min-height:210px}
.hero12 span[class^=b]{position:absolute;border-radius:50%;background:rgba(255,255,255,.13)}.hero12 .b1{width:220px;height:220px;left:-50px;bottom:-70px}.hero12 .b2{width:120px;height:120px;right:-30px;top:-40px}.hero12 .b3{width:46px;height:46px;right:26%;bottom:14px}
.pj12{position:relative;width:130px;height:130px;object-fit:contain;flex:none;filter:drop-shadow(0 10px 10px rgba(0,0,0,.25));animation:flota11 3.200s ease-in-out infinite}.pj12.alto{width:140px;height:196px}
.hero12 .txt{position:relative;flex:1;min-width:0}.hero12 p{font:600 18px/1.35 var(--display)}
.fila12{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip12{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 14px;border:0;border-radius:99px;background:#fff;color:var(--c2,var(--choco));font:700 15px var(--display);cursor:pointer;white-space:nowrap}
.chip12 svg{flex:none}.chip12.pts{background:rgba(255,255,255,.2);color:#fff;cursor:default}.chip12 img{width:24px;height:24px;object-fit:contain}
.aviso12{text-align:center;font-size:16px;color:var(--suave)}.aviso12 b{color:var(--azul2)}
.niveles12{display:grid;gap:12px}
.nivel12{display:flex;align-items:center;gap:14px;width:100%;padding:12px 16px;border-radius:20px;border:2px solid var(--linea2);background:#fff;text-align:left;cursor:pointer;box-shadow:0 4px 0 var(--linea2);transition:transform .12s,box-shadow .12s}
.nivel12:active{transform:translateY(4px);box-shadow:none}.nivel12.actual{border-color:var(--c);box-shadow:0 4px 0 var(--c)}
.nivel12 .num{width:54px;height:54px;flex:none;border-radius:17px;display:grid;place-items:center;background:linear-gradient(150deg,var(--c),var(--c2));color:#fff;font:700 27px var(--display)}
.nivel12 .d{flex:1;min-width:0}.nivel12 b{display:block;font:600 19px var(--display)}.nivel12 small{font-size:14.500px;color:var(--suave);line-height:1.25;display:block}
.nivel12.cerrado{background:#F6F1E9}.nivel12.cerrado .num{background:#CFC3B2}.nivel12 .req{max-width:96px;text-align:right}
.nivel12.tiembla{animation:sacude .4s}
.tres12{display:inline-flex;gap:3px;flex:none}.tres12 i{width:24px;height:24px;color:#D8CBB8}.tres12 svg{width:24px;height:24px;display:block}.tres12 i.si{color:#E0A100}.tres12 i.si svg{fill:#FFC93C}
.hud12{display:flex;align-items:center;gap:10px;padding:8px 14px;flex-wrap:wrap;background:#fff;border-bottom:1px solid var(--linea)}
.hud12 .chip12{min-height:42px;background:var(--c);color:#fff}.hud12 .chip12:last-child:not(.nv){background:#FFF1CF;color:#7A4E00}.info12{flex:1;text-align:right;font:700 15px var(--display);color:var(--tinta);min-width:0}
.e12.jugando12 .cuerpo{max-width:none;padding:0;overflow:hidden;gap:0;min-height:0}
.lema12{padding:10px 14px 2px;text-align:center;font:600 17px var(--display)}
/* Memorama */
.mm12{flex:1;min-height:0;align-content:center;padding:8px 14px calc(12px + env(safe-area-inset-bottom));--alto:calc((100dvh - 190px)/var(--f) - 8px);grid-template-columns:repeat(4,min(calc((100vw - 52px)/4),calc(var(--alto)*.98),128px));justify-content:center;max-width:none}
.mm12 .mm-carta{aspect-ratio:auto;height:min(var(--alto),calc((100vw - 52px)/4*1.3),164px)}
.mm12 .mm-carta .a{background:linear-gradient(145deg,#F6A13B,#E2338A)}.mm12 .mm-carta .a img{width:auto;max-width:84%;height:auto;max-height:84%;opacity:1;filter:drop-shadow(0 3px 5px rgba(80,10,40,.3))}
.mm12 .mm-carta .b img{min-height:0;min-width:0}.mm12 .mm-carta{min-width:0}.mm12 .mm-carta .a,.mm12 .mm-carta .b{overflow:hidden;grid-template:minmax(0,1fr)/minmax(0,1fr);align-items:center;justify-items:center}
/* Lienzo 3D */
.lienzo12{position:relative;flex:1;width:100%;min-height:0;overflow:hidden;background:radial-gradient(circle at 50% 20%,#FFFDF6,#FDE9C6 70%,#F7D9A4)}
.jugando12 .lienzo12{background:linear-gradient(180deg,#CFEBFB,#F3F9E4 55%,#DDF0C2)}
.lienzo12 canvas{position:absolute;inset:0;display:block;touch-action:none;cursor:grab}.lienzo12 canvas:active{cursor:grabbing}
.espera12{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center;font:600 18px var(--display)}.espera12 img{height:180px;width:auto;object-fit:contain;animation:flota11 1.600s ease-in-out infinite}
.ayuda12{position:absolute;top:10px;left:50%;translate:-50% 0;width:max-content;max-width:calc(100% - 24px);padding:9px 16px;border-radius:16px;background:rgba(255,255,255,.95);box-shadow:0 6px 18px rgba(60,40,10,.16);font:600 16px/1.3 var(--display);text-align:center;transition:opacity .4s;pointer-events:none}.ayuda12.va{opacity:0}
.cruz12{position:absolute;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));display:grid;grid-template:repeat(3,50px)/repeat(3,50px);opacity:.92}
.cruz12 button{border:0;border-radius:16px;background:#fff;color:var(--c2);display:grid;place-items:center;box-shadow:0 4px 0 rgba(20,70,50,.25);cursor:pointer;touch-action:manipulation}.cruz12 button:active{transform:translateY(3px);box-shadow:none}
.c-a{grid-area:1/2}.c-i{grid-area:2/1}.c-d{grid-area:2/3}.c-b{grid-area:3/2}.c-i svg{rotate:-90deg}.c-d svg{rotate:90deg}.c-b svg{rotate:180deg}
/* Panel de resultado */
.panel12{position:absolute;inset:0;z-index:5;background:rgba(43,29,16,.5);display:grid;place-items:center;padding:16px;overflow:auto;animation:aparece .25s}
.panel12 .in{position:relative;overflow:hidden;width:min(100%,400px);background:#fff;border-radius:28px;padding:22px 20px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;animation:salta-in .5s var(--resorte)}
.panel12 .in>*{position:relative}.panel12 .luz12{position:absolute;top:-90px;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,#FFE9A8,rgba(255,255,255,0) 66%)}
.panel12 .in>img{height:150px;width:auto;object-fit:contain}.panel12 h2{font-size:26px}.panel12 .btn{width:100%}
.medalla12{width:220px;height:190px}.medalla12 canvas{display:block}
.estr12{display:flex;gap:8px}.estr12 i{color:#DCCFBC}.estr12 svg{width:44px;height:44px}.estr12 i.si{color:#E0A100;animation:salta-in .5s var(--resorte) both}.estr12 i.si svg{fill:#FFC93C}
.premios12{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.premios12 span{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:99px;background:#FFF1CF;color:#7A4E00;font:700 17px var(--display)}.premios12 .az{background:var(--suave-az);color:var(--azul2)}.premios12 img{width:22px}
.prog12{display:flex;flex-direction:column;align-items:center;gap:4px}.prog12 small{font-size:14.500px;color:var(--suave)}.nota12{font:600 19px var(--display);color:#95560A}
@media(max-width:430px){.hero12{padding:14px;gap:8px}.pj12.alto{width:112px;height:172px}.hero12 p{font-size:16.500px}.hud12{gap:7px;padding:7px 10px}.hud12 .chip12{padding:0 11px;font-size:14px}.info12{order:5;flex-basis:100%;text-align:center;font-size:14.500px}.tres12 i,.tres12 svg{width:21px;height:21px}.jugando12 .mm12{--alto:calc((100dvh - 226px)/var(--f) - 8px)}}
@media(prefers-reduced-motion:reduce){.pj12,.espera12 img{animation:none}}
@media(max-width:699px){.tab11 .nuevo12 .ilus{top:46px!important}}
