:root{--ink:#07172b;--navy:#0a1d37;--night:#09142a;--green:#00bb73;--red:#ed2443;--gold:#ffdc47;--text:#f8fbff;--dim:#c0d2e9;--edge:#315275}
*{box-sizing:border-box}html,body{padding:0;margin:0;min-height:100%;font-family:'Trebuchet MS',Arial,sans-serif;color:var(--text);background:var(--night)}html{scroll-behavior:smooth}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.hidden{display:none!important}.screen{min-height:100dvh}
.home-screen{position:relative;display:flex;flex-direction:column;background:radial-gradient(ellipse at 70% 35%,#1b5b7d 0%,#122e53 36%,#08172d 80%);isolation:isolate;overflow:hidden}.home-ambient{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.home-ambient:before{content:"";position:absolute;inset:0;background-image:radial-gradient(2px 2px at 9% 18%,#fff 80%,transparent),radial-gradient(2px 2px at 16% 61%,#fff9 80%,transparent),radial-gradient(2px 2px at 57% 12%,#fff 80%,transparent),radial-gradient(2px 2px at 83% 8%,#fff9 80%,transparent),radial-gradient(3px 3px at 93% 42%,#ffe6ab 80%,transparent);background-size:410px 310px;animation:twinkle 5s ease-in-out infinite alternate}.orbit{position:absolute;aspect-ratio:1;border-radius:50%;border:2px solid #57e9e81e;box-shadow:0 0 80px #1cd6d712;top:15%;right:8%;width:47%;animation:orbit 22s linear infinite}.orbit-b{right:11%;top:19%;width:39%;animation-duration:30s;animation-direction:reverse;border-style:dashed}.landscape{position:absolute;bottom:-9%;width:75%;height:29%;border-radius:50% 50% 0 0;background:linear-gradient(145deg,#0d9c7e,#0e5664);filter:drop-shadow(0 0 45px #074b6b50)}.landscape-1{left:-16%;transform:rotate(-10deg)}.landscape-2{right:-23%;transform:rotate(11deg);background:linear-gradient(160deg,#138e7b,#10455b)}.cloud{position:absolute;opacity:.28;width:200px;height:45px;filter:blur(1px);border-radius:50px;background:#a0dafa;animation:cloudmove 15s linear infinite}.cloud-one{top:33%;left:-20%}.cloud-two{top:17%;left:42%;animation-delay:-8s;animation-duration:20s}
.site-header{padding:22px clamp(22px,5.2vw,90px);display:flex;justify-content:space-between;align-items:center;gap:25px;position:relative;z-index:4}.identity{display:flex;align-items:center;gap:11px;font:700 10px/1.25 Arial,sans-serif;letter-spacing:.13em}.identity strong{font-size:14px;letter-spacing:.07em}.identity img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 5px 6px #0007)}.header-nav{display:flex;align-items:center;gap:25px}.nav-link{background:transparent;border:0;color:#d4f1f1;font-size:12px;letter-spacing:.09em;font-weight:900;padding:10px 0}.nav-link:hover,.underlined:hover{color:var(--gold)}.home-main{width:min(1450px,95vw);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);margin:auto;align-items:center;min-height:calc(100dvh - 155px);padding:8px 0 22px}.home-info{position:relative;z-index:2;padding-left:clamp(12px,3vw,52px)}.subheading{font-size:13px;font-weight:900;letter-spacing:.19em;color:#67f2ce}.main-logo{width:min(500px,100%);height:auto;max-height:196px;object-fit:contain;object-position:left;margin:7px 0 0 -15px;filter:drop-shadow(0 15px 20px #051020c7)}.home-info h1{font-family:Arial Black,Impact,Arial,sans-serif;line-height:1.03;letter-spacing:-.06em;font-size:clamp(37px,3.9vw,65px);margin:5px 0 12px}.home-info h1 em{font-style:normal;color:#ffdc4c;text-shadow:0 5px #9f5a23}.home-info>p{font-size:clamp(15px,1.4vw,18px);line-height:1.52;color:#d0e0f4;max-width:540px;margin:17px 0 22px}.player-login{border-left:4px solid #25dda8;padding:3px 0 1px 20px;margin-top:19px}.player-login label{display:block;font-weight:900;letter-spacing:.11em;font-size:11px;margin:0 0 10px;color:#b5ffda}.player-input-line{display:flex;align-items:stretch;gap:11px}.player-input-line input{min-width:0;flex:1;background:#f4ffff;border:3px solid #7cffff;color:#17344a;font-size:16px;font-weight:900;padding:13px 14px;border-radius:9px}.button-play{background:linear-gradient(#ffe968,#ffb728);border:0;border-bottom:5px solid #cf8521;color:#13283b;font-size:16px;letter-spacing:.02em;font-weight:1000;border-radius:10px;padding:13px 21px;box-shadow:0 7px 25px #0005;white-space:nowrap;transition:transform .14s,filter .14s}.button-play:hover{transform:translateY(-3px);filter:brightness(1.08)}.button-play:active{transform:translateY(2px);border-bottom-width:3px}.login-footer{margin-top:11px;display:flex;gap:12px 19px;flex-wrap:wrap;align-items:center;font-size:11px;color:#98ddd0}.underlined{background:transparent;border:0;border-bottom:2px solid #5edcbb;padding:7px 0;color:#ecffff;font-size:11px;font-weight:900;letter-spacing:.04em}.home-secondary{display:flex;align-items:center;gap:20px;margin-top:20px;flex-wrap:wrap}.home-secondary>span{color:#b3cbdd;letter-spacing:.1em;font-size:10px;font-weight:900}.big-underlined{font-size:14px}.hero-art{position:relative;align-self:end;display:grid;place-items:end center;height:100%;max-height:750px}.art-rings{position:absolute;width:80%;aspect-ratio:1;top:12%;left:8%;border-radius:50%;background:radial-gradient(circle,#3fead135 0%,#35b7d81e 45%,transparent 70%);animation:halo 5s ease-in-out infinite}.hero-art>img{position:relative;z-index:2;width:110%;max-height:78dvh;object-fit:contain;object-position:bottom center;filter:drop-shadow(0 19px 22px #01061fd0);animation:float 3.9s ease-in-out infinite alternate}.hero-platform{position:absolute;z-index:1;width:88%;height:76px;border:8px solid #33fae9;border-radius:50%;bottom:0;left:7%;box-shadow:0 0 50px #16efd88b,inset 0 0 40px #15eccc88;transform:perspective(400px) rotateX(55deg)}.flying-star{font-size:37px;position:absolute;z-index:3;animation:float 3.5s ease-in-out infinite alternate;filter:drop-shadow(0 5px 12px #041732)}.star-one{top:9%;right:17%}.star-two{left:8%;top:39%;animation-delay:-2s}.star-three{right:0;top:51%;animation-delay:-1.2s}.home-footer{padding:15px 15px 19px;position:relative;z-index:4;background:#0214274d;font-weight:700;font-size:10px;letter-spacing:.095em;color:#d3e6eb;text-align:center}.home-footer strong{color:#ffdb50}.home-footer i{font-style:normal;margin:0 13px;color:#48cfae}@keyframes twinkle{from{opacity:.25}to{opacity:1}}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes float{from{transform:translateY(0)}to{transform:translateY(-16px)}}@keyframes halo{50%{opacity:.6;transform:scale(1.09)}}@keyframes cloudmove{to{transform:translateX(125vw)}}
.map-screen{background:radial-gradient(ellipse at 55% -10%,#1a4f69 0%,#0a2542 35%,#08152b 91%);padding:25px max(20px,calc((100vw - 1400px)/2)) 65px}.map-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.nav-back{border:0;background:none;color:#fff;font-size:13px;font-weight:900;letter-spacing:.08em}.map-brand{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:900;letter-spacing:.1em}.map-brand img{width:46px;height:46px;object-fit:contain}.map-intro{text-align:center;margin:24px auto 37px}.map-intro>span,.rank-title>span{color:#79ffcf;font-size:12px;letter-spacing:.17em;font-weight:900}.map-intro h2,.rank-title h2{font:1000 clamp(39px,5.5vw,75px)/1 Arial Black,Impact,Arial,sans-serif;letter-spacing:-.05em;margin:10px 0 9px}.map-intro h2 em,.rank-title h2 em{color:#ffda4b;font-style:normal}.map-intro p,.rank-title p{color:#c3d9eb;font-size:15px;margin:12px auto 20px}.stats-inline{display:flex;justify-content:center;gap:clamp(15px,3.5vw,45px);margin-top:23px;flex-wrap:wrap}.stats-inline>div{display:flex;flex-direction:column;min-width:70px}.stats-inline strong{font:1000 27px Arial,sans-serif;color:#fff}.stats-inline small{font-size:10px;color:#a1c7d5;font-weight:900;letter-spacing:.1em;margin-top:3px}.world-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.world-card{background:linear-gradient(160deg,#153856,#0a2342);border:2px solid #315a72;border-radius:17px;overflow:hidden;min-height:270px;box-shadow:0 8px 21px #0003;transition:transform .2s,border-color .2s}.world-card:hover{transform:translateY(-6px);border-color:#61f4cc}.world-banner{height:105px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.world-banner:before{content:"";height:145px;width:220px;border:7px solid #ffffff20;position:absolute;transform:rotate(35deg);border-radius:28px}.world-emblem{font-size:68px;filter:drop-shadow(0 9px 5px #0005);animation:float 4s ease-in-out infinite alternate}.world-body{padding:15px}.world-index{font-size:10px;font-weight:900;color:#92cce0;letter-spacing:.15em}.world-body h3{font:1000 23px/1.1 Arial,sans-serif;margin:6px 0 8px}.world-body p{min-height:34px;margin:0 0 12px;font-size:12px;color:#aecbdc;line-height:1.4}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.level-tile{aspect-ratio:1;border:2px solid #50748e;background:#0a243e;color:#d8f6fe;border-radius:9px;font-weight:1000;font-size:17px;display:grid;place-items:center;transition:transform .15s}.level-tile:not(:disabled):hover{transform:scale(1.11)}.level-tile:disabled{opacity:.48;cursor:not-allowed}.level-tile.active{background:#ffe34d;border-color:#ffffce;color:#173b40;box-shadow:0 0 20px #ffe35680}.level-tile.complete{border-color:#51e5a3;color:#76ffc4;background:#123e46}.map-end{display:flex;gap:24px;align-items:center;justify-content:center;margin:35px auto;flex-wrap:wrap;color:#b5ebd8;font-weight:900}
.ranking-screen{background:linear-gradient(135deg,#0a2942,#061328);padding:25px}.rank-container{max-width:800px;margin:auto}.rank-top{display:flex;justify-content:space-between}.rank-top img{width:75px}.rank-title{text-align:center;margin:26px auto}.rank-board{background:#0a223c;border:1px solid #41617c;border-radius:18px;padding:12px;min-height:250px}.rank-row{display:grid;grid-template-columns:60px 1fr 120px;align-items:center;gap:8px;padding:16px;border-bottom:1px solid #345371}.rank-row:last-child{border:0}.rank-position{font:1000 27px Arial,sans-serif;color:#ffdf5e}.rank-row strong{font-size:17px}.rank-row small{font-size:11px;color:#9ebfd7;display:block;margin-top:4px}.rank-points{font-weight:900;text-align:right;color:#68f1c5}.rank-disclaimer{font-size:12px;color:#b5cddd;line-height:1.5;text-align:center}
.game-screen{background:#07142b;display:flex;align-items:center;justify-content:center;overflow:hidden}.game-frame{width:min(100vw,1650px);height:min(100dvh,calc(100vw * .65));min-height:390px;position:relative;overflow:hidden;background:#80dff1;touch-action:none;isolation:isolate}#gameCanvas{display:block;width:100%;height:100%;touch-action:none}.game-hud{position:absolute;top:12px;left:20px;right:20px;z-index:4;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;align-items:start;pointer-events:none;text-shadow:0 2px 5px #002945aa}.hud-left{display:flex;flex-direction:column;gap:4px}.hud-left strong{font:1000 clamp(14px,1.3vw,19px) Arial,sans-serif;letter-spacing:-.01em}.hud-left small{font-size:12px;font-weight:900;letter-spacing:.1em}.hud-center{width:min(260px,100%);justify-self:center;text-align:center}.hud-center>strong{font-size:21px}.meter{width:100%;height:8px;border-radius:15px;background:#092747a6;overflow:hidden;margin:4px auto 6px}.meter-fill{height:100%;background:linear-gradient(90deg,#e2fa63,#ffc844);transition:width .1s}.hud-powers{display:flex;align-items:center;justify-content:center;gap:9px;font-size:10px;font-weight:1000;letter-spacing:.05em;color:#fff}.fuel-meter{width:95px;height:7px;background:#042239a9;border:1px solid #a5fcfb99;border-radius:20px;overflow:hidden}.fuel-meter div{height:100%;background:linear-gradient(90deg,#44f9bb,#15baff);width:100%}.hud-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;pointer-events:auto}.hearts{white-space:nowrap;font-size:27px;color:#ff5b7c}.hud-action{width:40px;height:40px;border:2px solid #d5ffff9c;border-radius:8px;background:#092a4b9c;color:#fff;font-weight:900;font-size:20px}.toast{position:absolute;z-index:6;top:105px;left:50%;transform:translate(-50%,-11px);max-width:min(650px,87vw);min-width:200px;background:#0b2541eb;padding:12px 19px;border-left:4px solid #ffdb44;font-size:14px;font-weight:900;line-height:1.38;text-align:center;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}.interaction-hint{position:absolute;bottom:19%;left:50%;transform:translateX(-50%);z-index:5;text-shadow:0 2px 10px #081b35;color:#fff;font-weight:1000;letter-spacing:.06em;pointer-events:none;text-align:center}.bottom-guide{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#f3fbff;font-size:11px;font-weight:900;letter-spacing:.05em;text-shadow:0 2px 6px #000}.touch-controls{position:absolute;z-index:8;bottom:16px;left:12px;right:12px;display:none;justify-content:space-between;gap:6px;pointer-events:none}.touch-move,.touch-actions{display:flex;align-items:end;gap:8px;pointer-events:auto}.touch-button{width:64px;height:64px;border-radius:15px;background:#0d2a4ca8;border:3px solid #ffffffa9;color:#fff;font-size:24px;font-weight:1000;touch-action:none;-webkit-user-select:none;user-select:none;box-shadow:0 5px 0 #0a153b77}.touch-button small{display:block;font-size:9px;margin-top:-1px;letter-spacing:.04em}.touch-button.pressed{transform:translateY(4px);background:#21b6a8d9;box-shadow:none}.interact-button{background:#b74f90c9}.fly-button{background:#1581d9d9}.jump-button{width:78px;height:78px;background:#ffcb53e9;color:#17354b;border-color:#fff3a3;font-size:35px}
.overlay{position:absolute;z-index:11;inset:0;display:flex;justify-content:center;align-items:center;overflow-y:auto;background:#07162bee;padding:17px}.overlay-content{text-align:center;max-height:100%;width:min(570px,100%);display:flex;flex-direction:column;align-items:center;justify-content:center}.overlay-kicker{font-size:12px;color:#70f4d0;letter-spacing:.14em;font-weight:1000}.overlay h2{font:1000 clamp(35px,4.8vw,68px)/1.05 Arial Black,Impact,Arial,sans-serif;margin:11px 0 8px}.overlay p{font-size:16px;color:#c9ddec;line-height:1.4;max-width:430px}.overlay .button-play{min-width:225px;margin:6px auto}.alt-button{background:#143856;border:2px solid #70baca;color:#fff;padding:11px 20px;font-weight:900;border-radius:9px;margin:8px 0}.text-action{border:0;background:none;color:#d4ffed;text-decoration:underline;text-underline-offset:5px;font-size:13px;font-weight:900;padding:10px}.win-trophy{font-size:60px;animation:float 2s ease-in-out infinite alternate}.victory-stars{font-size:48px;letter-spacing:.1em;color:#ffdc53}.win-stats{font-size:22px;font-weight:1000;color:#72f9ae;margin-bottom:9px}
.modal{position:fixed;inset:0;z-index:40;background:#03101de8;display:grid;place-items:center;padding:15px}.modal-inner{background:linear-gradient(160deg,#134363,#081a33);border:2px solid #46bc9c;border-radius:18px;width:min(440px,98vw);padding:25px;position:relative;text-align:center;max-height:95dvh;overflow-y:auto}.modal-inner>img{width:100px}.modal-inner h2{font:1000 26px Arial,sans-serif}.modal-inner p{font-size:13px;color:#d2e4ef;line-height:1.6}.modal-close{position:absolute;right:13px;top:12px;background:transparent;border:0;color:white;font-size:21px}.recovery-code{display:block;overflow-wrap:anywhere;background:#03172a;padding:15px;font-weight:900;border:1px dashed #8edbc4;letter-spacing:.06em}.recovery-divider{font-size:11px;color:#8deecf;letter-spacing:.08em;margin:18px 0 9px;font-weight:900}.modal-inner input{display:block;width:100%;padding:13px;background:#e7fffa;border:0;border-radius:7px;color:#1a3240;margin-bottom:11px}.modal-inner .button-play{width:100%;font-size:14px}.certificate-screen{position:fixed;inset:0;z-index:50;background:#081a2cf5;display:flex;justify-content:center;align-items:center;overflow-y:auto;padding:22px}.certificate-sheet{background:linear-gradient(150deg,#fff7e8,#e4fff6);color:#1a444a;width:min(850px,100%);border:12px double #b79b43;padding:clamp(20px,4vw,45px);text-align:center;box-shadow:0 20px 60px #0008}.certificate-sheet>img{width:110px;height:110px;object-fit:contain}.cert-brand{font-weight:1000;letter-spacing:.17em;color:#08643b;font-size:14px}.certificate-sheet h2{font:1000 clamp(26px,4vw,49px)/1.12 Arial Black,Arial,sans-serif;margin:14px 0}.certificate-sheet h2 span{color:#c92a42}.certificate-sheet p{font-size:17px;line-height:1.6}.cert-name{border-bottom:2px solid #b59f44;font-size:clamp(25px,3vw,39px);font-weight:1000;padding:8px}.cert-mark{font-size:35px;margin-top:13px}.cert-sign{font-size:12px;font-weight:1000;letter-spacing:.15em;margin:20px auto}.certificate-sheet .button-play{margin:8px}
@media(max-width:1050px){.home-main{grid-template-columns:1.05fr .95fr}.hero-art>img{width:115%}.home-info h1{font-size:clamp(36px,4.4vw,52px)}.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-frame{height:100dvh;min-height:360px}.touch-controls{display:flex}.bottom-guide{display:none}}
@media(max-width:680px){.site-header{padding:13px 15px}.identity img{width:47px;height:47px}.identity strong{font-size:11px}.identity{font-size:9px}.header-nav{gap:9px}.nav-link{font-size:10px}.home-main{display:flex;flex-direction:column;width:100%;padding:0 19px 20px;min-height:0;flex:1}.hero-art{height:min(32dvh,310px);min-height:180px;order:0;align-self:stretch;max-height:none;flex:none}.hero-art>img{width:100%;height:100%;max-height:none;object-position:center bottom}.hero-platform{height:35px;bottom:-8px;border-width:4px}.flying-star{font-size:24px}.star-one{right:16%;top:6%}.star-two{left:12%;top:49%}.star-three{right:11%;top:46%}.home-info{order:1;padding:0;text-align:center}.subheading{font-size:10px}.main-logo{height:100px;max-height:100px;width:85%;object-position:center;margin:2px auto 0}.home-info h1{font-size:clamp(34px,8.2vw,52px);margin:1px auto}.home-info>p{font-size:13px;line-height:1.36;margin:10px auto 14px}.player-login{padding:0;border:0;margin-top:12px}.player-input-line{flex-wrap:wrap;justify-content:center}.player-input-line input{flex:1 1 100%;font-size:15px;padding:10px}.player-input-line .button-play{flex:1;max-width:450px}.login-footer{justify-content:center}.home-secondary{justify-content:center;margin-top:12px;gap:10px}.home-secondary>span{font-size:9px}.home-footer{font-size:8px;line-height:2;padding:7px 10px}.home-footer i{margin:0 5px}.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.map-screen{padding:14px 12px 35px}.map-head .map-brand span{display:none}.map-intro{margin:18px auto}.map-intro h2{font-size:41px}.stats-inline{gap:15px}.world-banner{height:75px}.world-emblem{font-size:50px}.world-body{padding:10px}.world-body h3{font-size:18px}.world-body p{font-size:11px;min-height:45px}.level-tile{font-size:14px}.game-hud{left:8px;right:8px;top:8px;gap:3px}.hud-left strong{font-size:11px}.hud-left small{font-size:9px}.hud-center{width:min(130px,100%)}.hud-center>strong{font-size:15px}.hud-powers{font-size:8px;gap:4px}.fuel-meter{width:45px}.hud-right{gap:3px}.hearts{font-size:16px}.hud-action{width:31px;height:31px;font-size:17px;border-width:1px}.touch-button{width:54px;height:54px;font-size:22px;border-width:2px}.touch-actions,.touch-move{gap:5px}.jump-button{width:67px;height:67px}.touch-controls{bottom:max(9px,env(safe-area-inset-bottom))}.toast{top:77px;font-size:12px;padding:9px 13px}.overlay h2{font-size:34px}.overlay p{font-size:13px}.overlay .button-play{font-size:14px;padding:10px}.win-trophy{font-size:45px}.victory-stars{font-size:36px}.rank-row{grid-template-columns:40px 1fr 88px;padding:12px 5px}.rank-row strong{font-size:14px}}
@media(max-width:380px){.world-grid{grid-template-columns:1fr 1fr}.home-info h1{font-size:33px}.touch-button{width:47px;height:47px}.jump-button{width:56px;height:56px}.touch-button small{font-size:8px}.hud-left strong{font-size:10px}.hud-center>strong{font-size:13px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{body{background:white!important}.screen,.modal{display:none!important}.certificate-screen{position:static;padding:0;background:white}.certificate-sheet{width:100%;border:10px double #a48e43;box-shadow:none;min-height:95vh}.no-print{display:none!important}@page{size:A4 landscape;margin:10mm}}

/* Acabado final de Mis Monachos: selección abierta, paisajes y llave de aventura. */
.world-grid{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:19px}
.world-card{--world-accent:#52edba;position:relative;display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--world-accent) 40%,#1b3857);background:linear-gradient(155deg,#153854,#091d38 75%);border-radius:19px;min-height:330px;box-shadow:0 15px 35px #0004, inset 0 1px #ffffff20;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.world-card:hover,.world-card:focus-within{transform:translateY(-5px);border-color:var(--world-accent);box-shadow:0 22px 44px #0006,0 0 22px color-mix(in srgb,var(--world-accent) 14%,transparent)}
.world-0{--world-accent:#79eda7}.world-1{--world-accent:#ff9bd2}.world-2{--world-accent:#ffe0a1}.world-3{--world-accent:#94f3da}.world-4{--world-accent:#65ebfc}.world-5{--world-accent:#c4ccff}.world-6{--world-accent:#b8ffda}
.world-banner{height:151px;flex-shrink:0;background-size:cover!important;background-position:center!important;border-bottom:1px solid #ffffff30;justify-content:flex-end;padding:15px}
.world-banner:before{content:none}
.world-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0e223560 0%,transparent 45%);pointer-events:none}
.world-emblem{position:relative;z-index:1;filter:drop-shadow(0 5px 6px #0008);font-size:61px;animation:float 3.7s ease-in-out infinite alternate}
.scene-0{background-image:url('assets/worlds/juego.svg')!important}
.scene-1{background-image:url('assets/worlds/arte.svg')!important}
.scene-2{background-image:url('assets/worlds/literatura.svg')!important}
.scene-3{background-image:url('assets/worlds/espiritualidad.svg')!important}
.scene-4{background-image:url('assets/worlds/tecnologia.svg')!important}
.scene-5{background-image:url('assets/worlds/matematicas.svg')!important}
.scene-6{background-image:url('assets/worlds/english.svg')!important}
.world-body{display:flex;flex-direction:column;flex:1;padding:17px}
.world-index{color:var(--world-accent);font-size:10px;letter-spacing:.16em}
.world-body h3{font-size:22px;margin:8px 0 3px}
.world-body p{min-height:0;font-size:12px;margin:0 0 13px;line-height:1.3;color:#c8dfea}
.world-progress{display:flex;align-items:center;gap:11px;margin:0 0 12px;justify-content:space-between}
.world-progress>span{font-size:10px;letter-spacing:.02em;color:var(--world-accent);font-weight:900;white-space:nowrap}
.world-progress-track{width:75px;height:6px;overflow:hidden;background:#264b60;border-radius:20px;flex-shrink:0}
.world-progress-track span{display:block;height:100%;background:var(--world-accent);border-radius:20px;transition:width .25s}
.world-body .level-grid{margin-bottom:13px}
.level-tile{border-color:#48617d;background:#0c213b;font-size:15px;border-radius:8px;min-width:0}
.level-tile:not(:disabled){cursor:pointer;border-color:var(--world-accent)}
.level-tile.complete{background:color-mix(in srgb,var(--world-accent) 18%,#0b243c);color:#fff}
.level-tile.active{background:var(--world-accent);color:#08233e;box-shadow:0 0 14px color-mix(in srgb,var(--world-accent) 48%,transparent)}
.level-tile:disabled{opacity:.34;filter:saturate(.5);cursor:not-allowed}
.world-enter{width:100%;border:0;border-radius:9px;padding:13px 10px;margin-top:auto;background:var(--world-accent);color:#08243a;font-family:inherit;font-weight:1000;letter-spacing:.03em;cursor:pointer;transition:filter .2s,transform .2s}
.world-enter:hover{filter:brightness(1.13);transform:translateY(-1px)}
.map-intro{margin:20px auto 20px}.map-intro h2{margin-bottom:12px}.map-intro p{max-width:625px;margin:5px auto 24px;line-height:1.5}
.map-recovery-banner{display:flex;align-items:center;gap:18px;padding:14px 22px;margin:24px auto 25px;width:min(900px,100%);background:linear-gradient(105deg,#103c4c,#123459);border:1px solid #63ebc16e;border-left:5px solid #ffde70;border-radius:12px;box-shadow:0 10px 22px #0003}
.map-key-icon{font-size:34px;flex-shrink:0}.map-key-text{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.map-key-text>span{color:#ffe895;font-weight:900;font-size:10px;letter-spacing:.1em}
.map-key-text strong{font-family:ui-monospace,Consolas,monospace;letter-spacing:.09em;font-size:clamp(13px,1.5vw,22px);overflow-wrap:anywhere;color:white}
.map-key-text small{color:#c4dfe7;font-size:11px}
.map-recovery-banner button,.recovery-highlight button{font-weight:1000;cursor:pointer;border:1px solid #ffe89e;background:#ffdc6a;color:#102e44;border-radius:8px;padding:11px 13px;font-size:11px;white-space:nowrap}
.recovery-entry{color:#ffe9a0!important;font-weight:1000!important;text-decoration-thickness:2px!important;text-underline-offset:5px!important}
.recovery-highlight{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:15px;padding:12px 14px;border:1px solid #60d7ab99;border-left:4px solid #ffe177;background:#102e48a6;border-radius:10px;box-shadow:0 10px 22px #061c3540}
.recovery-highlight>div{display:flex;flex-direction:column;min-width:0;gap:3px}
.recovery-highlight small{font-size:10px;font-weight:900;color:#ffe7a2;letter-spacing:.08em}
.recovery-highlight strong{font-family:ui-monospace,Consolas,monospace;color:#eafff3;font-size:clamp(13px,1.3vw,18px);letter-spacing:.07em;overflow-wrap:anywhere}
.recovery-highlight span{color:#bbdce0;font-size:10px}
.recovery-hero{border:1px solid #f9e6a19e;padding:12px 10px 18px;border-radius:12px;background:linear-gradient(145deg,#163f56,#0b293e);margin:16px 0 9px;box-shadow:inset 0 1px 12px #80ffe51e}
.key-symbol{font-size:39px;margin-bottom:6px;animation:float 2s ease-in-out infinite alternate}
.recovery-hero>span{display:block;font-size:11px;color:#ffe5a3;font-weight:1000;letter-spacing:.12em}
.recovery-code{font-size:clamp(13px,2.5vw,20px);line-height:1.65;letter-spacing:.08em;color:#fff2be;background:transparent!important;border:0!important;padding:10px 0 0!important;user-select:all}
.copy-key-button{width:100%;background:#ffe48c;color:#123549;border-color:#fff2bb}
.powered-by{position:fixed;bottom:10px;right:15px;z-index:30;text-decoration:none;font-size:11px;color:#d2f4ef;text-shadow:0 1px 4px #031525;letter-spacing:.01em;background:#06172abf;border-radius:6px;padding:5px 8px;transition:color .2s,background .2s}
.powered-by:hover{color:#ffe89c;background:#06213a}
.powered-by strong{font-weight:900}.powered-by span{color:#87eeba}
body:has(.game-screen:not(.hidden)) .powered-by{bottom:3px;right:50%;transform:translateX(50%);font-size:9px;padding:1px 6px;background:#09223b77;white-space:nowrap}
body:has(.certificate-screen:not(.hidden)) .powered-by{display:none}
@media(max-width:1050px){.world-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}}
@media(max-width:680px){.world-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.world-card{min-height:300px}.world-banner{height:102px}.world-emblem{font-size:47px}.world-body{padding:11px}.world-body h3{font-size:17px}.world-body p{font-size:10px;min-height:32px}.world-progress{gap:5px;flex-wrap:wrap}.world-progress>span{font-size:9px}.world-progress-track{width:100%;height:4px}.world-enter{font-size:10px;padding:11px 6px}.level-tile{font-size:13px}.map-recovery-banner{gap:9px;padding:12px;flex-wrap:wrap}.map-key-icon{font-size:25px}.map-key-text{flex:1 1 70%}.map-recovery-banner button{margin-left:auto;padding:9px 13px}.recovery-highlight{flex-wrap:wrap;justify-content:center;text-align:center}.recovery-highlight>div{align-items:center}.recovery-highlight button{width:100%}.powered-by{font-size:9px;bottom:3px;right:5px;padding:4px}}
@media(max-width:390px){.world-grid{grid-template-columns:1fr 1fr;gap:8px}.world-body{padding:9px}.world-body h3{font-size:16px}.world-banner{height:88px}.world-body p{min-height:37px}.level-grid{gap:3px}}
@media print{.powered-by{display:none!important}}
/* Juega con JALET · Edición cinematográfica: portada aprobada por Mis Monachos. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.cinematic-home{background:radial-gradient(ellipse at center,#475bae 0%,#080c2a 88%);display:grid;place-items:center;overflow:hidden;isolation:isolate}
.cinematic-home:before{content:"";position:absolute;inset:-30px;background:url('assets/portada-cinematica.webp') center/cover;filter:blur(27px) brightness(.5);z-index:-1}
.cinematic-stage{position:relative;aspect-ratio:1672/941;width:min(100vw,177.6833156dvh);max-height:100dvh;overflow:hidden;isolation:isolate;box-shadow:0 0 85px #0007}
.cinematic-image{width:100%;height:100%;object-fit:fill;display:block;user-select:none;-webkit-user-drag:none;pointer-events:none}
.cinematic-hotspot{position:absolute;z-index:4;background:transparent;border:2px solid transparent;border-radius:18px;color:transparent;cursor:pointer;touch-action:manipulation;transition:box-shadow .17s ease,transform .17s ease,filter .17s ease}
.cinematic-hotspot:hover,.cinematic-hotspot:focus-visible{box-shadow:0 0 26px 6px #f8ee926f,inset 0 0 18px #f8ee9261;transform:translateY(-2px);border-color:#ffffffa0;outline:0}
.cinematic-hotspot:active{transform:translateY(2px)}
.hotspot-play{left:49.7%;top:37.7%;width:30.9%;height:13.2%;border-radius:25px;animation:playAura 2.7s ease-in-out infinite}
.hotspot-worlds{left:45%;top:53.2%;width:13.65%;height:15.5%}
.hotspot-continue{left:58.75%;top:53.3%;width:13.25%;height:15.6%}
.hotspot-ranking{left:72.1%;top:53.3%;width:13.5%;height:15.6%}
.hotspot-recovery{left:47.4%;top:70.2%;width:33.4%;height:16.8%}
.hotspot-copy{left:73.7%;top:75.9%;width:5.0%;height:9.0%;border-radius:15px}
.hotspot-powered{left:49.6%;top:89%;width:28.3%;height:6.9%;border-radius:6px}
.poster-live-code{position:absolute;z-index:5;left:51.86%;top:77.45%;width:22.04%;height:6.3%;background:linear-gradient(#fff,#eaf2ed);border-radius:10px;color:#006b32;display:flex;align-items:center;justify-content:center;text-align:center;padding:0 6px;font-family:'Arial Black',Arial,sans-serif;font-size:clamp(10px,1.1vw,21px);font-weight:1000;letter-spacing:.008em;text-shadow:1px 2px #afdabd;box-shadow:inset 0 0 5px #0001;pointer-events:none;overflow:hidden;white-space:nowrap}
.particle-spark{position:absolute;z-index:1;pointer-events:none;color:#fff6b1;text-shadow:0 0 21px #fff487,0 0 45px #fff89c;font-size:clamp(12px,2vw,35px);animation:sparkFloat 4s ease-in-out infinite alternate}
.spark-a{left:43%;top:8%}.spark-b{left:86%;top:30%;animation-delay:-1.2s}.spark-c{left:34%;top:74%;animation-delay:-2.5s}
.desktop-coach{position:absolute;z-index:2;left:46.1%;top:95.0%;width:41%;color:#fffad8;text-align:center;text-shadow:0 2px 4px #020821,0 0 10px #070d36;font-size:clamp(6px,.65vw,11px);font-weight:1000;letter-spacing:.09em;opacity:.9}
.desktop-coach kbd{padding:2px 4px;border:1px solid #ffffff77;border-radius:3px}
@keyframes playAura{0%,100%{box-shadow:0 0 0 transparent}50%{box-shadow:0 0 30px 5px #f2ef8544}}
@keyframes sparkFloat{0%{opacity:.3;transform:translateY(0) rotate(-14deg) scale(.7)}100%{opacity:1;transform:translateY(-21px) rotate(15deg) scale(1.2)}}
.cinematic-mobile{display:none}
.cinematic-compat{display:none!important}
body:has(.cinematic-home:not(.hidden))>.app>.powered-by{display:none}
.landing-modal{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px;background:#02091dd9;backdrop-filter:blur(11px)}
.landing-modal-panel{position:relative;width:min(94vw,495px);padding:31px 35px 34px;text-align:center;border:3px solid #78edff;border-radius:22px;background:linear-gradient(150deg,#253d89,#0b1c48 55%,#102745);box-shadow:0 0 0 6px #03214888,0 28px 90px #000b,0 0 45px #29c6f766;display:flex;flex-direction:column;align-items:stretch;gap:12px;color:white}
.landing-modal-panel:before{content:"";position:absolute;inset:5px;z-index:-1;border:1px solid #ffffff21;border-radius:16px;pointer-events:none}
.landing-modal-panel>img{width:90px;height:90px;object-fit:contain;margin:-12px auto 0;filter:drop-shadow(0 6px 9px #0009)}
.landing-modal-panel .modal-kicker{font-size:10px;font-weight:1000;letter-spacing:.13em;color:#72ffde}
.landing-modal-panel h2{font:1000 clamp(28px,4vw,43px)/1.1 'Arial Black',Arial,sans-serif;margin:0;color:#ffeb78;text-shadow:0 4px #9a4a47}
.landing-modal-panel p{line-height:1.55;font-size:15px;color:#d5e8ff;margin:3px 0 7px}
.landing-modal-panel label{font-size:11px;text-align:left;font-weight:1000;letter-spacing:.13em;color:#a7ffe0}
.landing-modal-panel input{border:3px solid #55d9ff;background:#fff;color:#113555;padding:14px 16px;border-radius:11px;font-size:17px;font-weight:900;width:100%}
.landing-modal-panel .arcade-action{margin-top:5px;width:100%}
.landing-modal-close{position:absolute;right:12px;top:10px;background:transparent;color:#fff;border:0;font-size:22px;padding:8px}
.nickname-help{font-size:11px;color:#b3cbec;margin-top:5px}
.arcade-action{cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;border:3px solid #fff9e8;border-bottom:7px solid #0c403e;border-radius:15px;min-height:66px;padding:9px 16px;background:linear-gradient(#21d852,#018b35);color:#fff;font-size:19px;font-weight:1000;letter-spacing:.018em;text-shadow:0 2px 2px #063b44;box-shadow:inset 0 3px #c9ffd44d,0 7px 25px #0009;transition:transform .18s,filter .18s}
.arcade-action:hover{filter:brightness(1.12);transform:translateY(-2px)}.arcade-action:active{transform:translateY(2px)}
.arcade-primary{background:linear-gradient(180deg,#25eb50,#009632 80%);border-color:#eafde0;border-bottom-color:#006227;box-shadow:0 0 22px #07ed7287,inset 0 3px #dfffd59a,0 10px 19px #0005}
.arcade-worlds{background:linear-gradient(#238eeb,#0664be);border-color:#a1eaf8;border-bottom-color:#073e83}
.arcade-continue{background:linear-gradient(#a34bf6,#6627bd);border-color:#edbfff;border-bottom-color:#46127c}
.arcade-ranking{background:linear-gradient(#edbd3d,#a85a13);border-color:#ffe9ae;border-bottom-color:#79410a}
.flight-coach{position:absolute;z-index:10;left:50%;bottom:88px;transform:translateX(-50%);width:min(580px,72%);padding:10px 14px;border:2px solid #2ee9f7a0;border-left:6px solid #ffe24e;background:linear-gradient(100deg,#123c64e8,#11284de5);border-radius:9px;box-shadow:0 8px 22px #0007;color:#eaffff;text-align:center;font-size:13px;line-height:1.4;pointer-events:none;animation:flightCoachOut 9s forwards}
.flight-coach strong{color:#ffed6a}.flight-coach kbd{background:#e4f8ff;color:#0a2354;padding:2px 5px;border-radius:4px;font-weight:bold}
@keyframes flightCoachOut{0%,62%{opacity:1}98%,100%{opacity:0;visibility:hidden}}
@media (max-width:760px), (max-aspect-ratio: 10/12){
.cinematic-stage{display:none}
.cinematic-home{display:block;overflow:visible;min-height:100dvh;place-items:unset}
.cinematic-home:before{position:fixed;background-position:28% center;filter:blur(12px) brightness(.25)}
.cinematic-mobile{display:flex;position:relative;flex-direction:column;align-items:center;width:100%;max-width:500px;min-height:100dvh;margin:0 auto;padding:12px 20px 24px;background:linear-gradient(180deg,#0d2d65ba 0%,#16205b6e 28%,#08162c99 70%,#05172dd9 100%);isolation:isolate}
.mobile-celestial{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 38% 36%,#4e95ed68,transparent 39%),radial-gradient(circle at 85% 11%,#8f3aff30,transparent 32%),url('assets/portada-cinematica.webp') center top/auto 100% no-repeat;opacity:.42;mask-image:linear-gradient(#000 0%,transparent 62%)}
.mobile-header{display:flex;align-items:center;justify-content:space-between;width:100%;gap:9px;padding:5px 0}.mobile-header span{color:#aefce3;font-weight:1000;font-size:11px;letter-spacing:.15em;text-shadow:0 2px #001e35}.mobile-header img{height:66px;width:68px;object-fit:contain;filter:drop-shadow(0 4px 10px #000b)}
.mobile-jalet-logo{position:relative;z-index:3;width:min(95%,370px);height:auto;max-height:112px;object-fit:contain;filter:drop-shadow(0 6px 12px #000a);margin-top:2px}
.mobile-mascot-area{position:relative;display:grid;place-items:center;width:100%;height:clamp(190px,45vh,355px);flex-shrink:0;margin:-7px 0 -15px}
.mobile-mascot-area>img{width:min(100%,365px);height:100%;object-fit:contain;position:relative;z-index:2;filter:drop-shadow(0 13px 20px #000a);animation:float 3.2s ease-in-out infinite alternate}
.mobile-orbit{position:absolute;border:3px solid #26e3fc60;box-shadow:0 0 40px #2fdaff77;aspect-ratio:1;border-radius:50%;width:77%;top:10%}.orbit-one{transform:rotate(55deg) scaleY(.5);animation:mobileSpin 6s linear infinite}.orbit-two{transform:rotate(-45deg) scaleY(.5);animation:mobileSpin 8s linear infinite reverse}
@keyframes mobileSpin{to{transform:rotate(415deg) scaleY(.5)}}
.mobile-floating-star{position:absolute;z-index:5;left:11%;top:15%;font-size:39px;color:#ffe963;text-shadow:0 0 22px #fff5a5;animation:float 2.7s infinite alternate}
.mobile-callout{font-family:'Arial Black',Arial,sans-serif;color:#fff7ce;font-size:clamp(17px,4.5vw,25px);font-weight:1000;text-align:center;text-shadow:0 4px #0e2777,0 0 15px #074f84;margin-bottom:16px}
.cinematic-mobile>.arcade-primary{width:100%;min-height:72px;font-size:clamp(22px,5.5vw,29px);border-radius:18px;flex-shrink:0}
.mobile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin-top:11px}
.mobile-actions .arcade-action{font-size:clamp(10px,2.7vw,13px);min-height:70px;border-radius:12px;padding:9px 5px;border-width:2px;border-bottom-width:5px;line-height:1.2;flex-direction:column;gap:3px;white-space:normal;text-align:center}
.mobile-recovery-card{width:100%;padding:12px 13px;margin-top:16px;border:2px solid #f9d05c;background:linear-gradient(135deg,#154662d9,#0b355bcf);border-radius:13px;box-shadow:inset 0 0 10px #a8ffb51c,0 0 15px #ffd95320}
.mobile-recovery-intro{font-size:11px;font-weight:1000;letter-spacing:.05em;color:#ffe69d;margin-bottom:6px;text-align:center}
.mobile-recovery-value{display:flex;align-items:center;gap:7px}.mobile-recovery-value strong{background:#f3f9f8;flex:1;border-radius:8px;padding:9px 7px;min-width:0;overflow-wrap:anywhere;text-align:center;color:#08703b;font:1000 clamp(12px,3.7vw,18px)/1.25 Arial,sans-serif}.mobile-recovery-value button{border:1px solid #93ffac;border-bottom:4px solid #125227;background:linear-gradient(#34e16f,#078e40);padding:10px;color:white;font-size:24px;border-radius:8px;cursor:pointer}
.mobile-control-tip{color:#c7e4fb;font-size:11px;line-height:1.5;text-align:center;margin:15px auto 11px;max-width:350px}
.mobile-powered{margin-top:auto;color:#ecfff5;text-decoration:none;font-size:11px;text-align:center;padding:10px 0 0;text-shadow:0 1px 4px #000}.mobile-powered strong{color:#fff3b4}
.landing-modal-panel{padding:22px 22px 27px}.flight-coach{width:78%;bottom:112px;font-size:10px;padding:6px 8px}
}
@media(max-width:360px){.cinematic-mobile{padding:9px 11px 18px}.mobile-mascot-area{height:195px}.mobile-actions .arcade-action{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hotspot-play,.particle-spark,.mobile-mascot-area>img{animation:none}}

/* Mostrar crédito al final del mapa sin tapar mundos al desplazarse. */
body:has(.map-screen:not(.hidden)) .powered-by,
body:has(.ranking-screen:not(.hidden)) .powered-by{position:relative;bottom:auto;right:auto;transform:none;display:table;margin:0 auto 14px;padding:8px 10px;text-align:center;background:#091f38;font-size:11px}
