:root{font-family:'Nunito',sans-serif;color:#fff;background:#092b3c;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overflow:hidden}body{background:radial-gradient(ellipse at 50% 25%,#164b5d 0,#092b3c 70%);display:grid;place-items:center;padding:clamp(10px,2vw,28px);user-select:none}.shell{width:min(1160px,100%);}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font:800 13px/1 'Baloo 2',sans-serif;letter-spacing:1.5px}.brand b{color:#ffc94c}.brand-icon{width:40px;height:40px;border-radius:14px;background:#ffcc58;display:grid;place-items:center;overflow:hidden;box-shadow:0 4px 0 #d69031}.brand-icon img{width:38px;height:38px;object-fit:contain;image-rendering:pixelated}.top-actions{display:flex;gap:7px}.top-location{font:900 11px 'Nunito',sans-serif;letter-spacing:2px;color:#a6c3c6}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#83d999;margin-right:7px;box-shadow:0 0 10px #83d999}.sound-btn{font:900 11px 'Nunito';letter-spacing:1px;color:#d9eeee;background:#ffffff12;border:1px solid #ffffff2b;border-radius:999px;padding:9px 15px;cursor:pointer}.game-wrap{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(100dvh - 120px);overflow:hidden;border-radius:20px;border:2px solid #b6d5ca;box-shadow:0 14px 40px #00162090,0 0 0 6px #ffffff0a;background:#60c1d0}#game-container{position:absolute;inset:0;overflow:hidden;image-rendering:pixelated}#game-container canvas{display:block;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges}.hud-banana{width:29px;height:29px;object-fit:contain;image-rendering:pixelated}#assetError{position:absolute;z-index:8;left:8%;right:8%;bottom:12%;padding:14px 18px;border:2px solid #ff9a83;border-radius:12px;background:#401d2a;color:#fff;font-weight:900;text-align:center}.hud{position:absolute;z-index:2;left:0;right:0;top:0;padding:16px 20px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.hud-pill{display:flex;align-items:center;gap:9px;background:#072e3bbd;border:1px solid #d3f5e18a;border-radius:12px;padding:7px 13px;min-width:98px;box-shadow:0 3px 8px #00303b30}.hud-icon{font-size:20px}.hud-pill small{display:block;font-size:8px;letter-spacing:1.6px;color:#b7d8d4;font-weight:900}.hud-pill strong{display:block;font-size:16px;color:#fff;font-weight:1000;line-height:1.1}.life-pill strong{font-size:13px;letter-spacing:2px;color:#ffb193}.level-pill{margin-top:4px;background:#fff2d8dd;color:#496557;font-size:10px;font-weight:1000;letter-spacing:1.5px;border-radius:99px;padding:8px 14px;box-shadow:0 3px 8px #00303b20}.level-pill span{color:#e49a3f}.level-pill i{font-style:normal;color:#d1a35d}.progress-track{position:absolute;z-index:2;left:0;right:0;bottom:0;height:5px;background:#113d47aa}.progress-track div{height:100%;width:0;background:#ffd45b;box-shadow:0 0 9px #ffd45b;transition:width .15s}.overlay{position:absolute;inset:0;z-index:4;background:linear-gradient(90deg,#092d3c8e 0%,#092d3c2c 45%,#092d3c20 100%);display:grid;align-items:center;padding:5% 8%;transition:opacity .35s,visibility .35s}.overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}.title-card{position:relative;width:min(470px,55%);z-index:2}.eyebrow{color:#ffdb7f;font-size:10px;font-weight:1000;letter-spacing:2px;margin-bottom:10px}.eyebrow span{color:#fff0be;margin:0 5px}h1{font:800 clamp(32px,5.3vw,63px)/.92 'Baloo 2',sans-serif;letter-spacing:1px;margin:0 0 13px;color:#fff;text-shadow:0 3px 0 #31514c,0 5px 14px #002b35a0}h1 span{color:#ffd45b}.title-card p{font-size:clamp(12px,1.5vw,16px);font-weight:800;color:#e5f3e6;margin:0 0 14px}.hero-monkey{font-size:49px;line-height:1;margin:5px 0 14px;filter:drop-shadow(0 5px 3px #143b41);width:max-content;position:relative;animation:bob 2s ease-in-out infinite}.hero-monkey img{display:block;width:86px;height:86px;object-fit:contain;image-rendering:pixelated}.hero-monkey span{position:absolute;top:-8px;right:-15px;color:#ffe28b;font-size:21px}.play-btn{background:#ffd15b;border:0;border-radius:12px;padding:11px 23px;color:#543b22;font:1000 14px 'Nunito';letter-spacing:1px;box-shadow:0 5px 0 #c28736,0 7px 15px #00262c50;cursor:pointer;transition:transform .12s,filter .12s}.play-btn:hover{transform:translateY(-2px);filter:brightness(1.06)}.play-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #c28736}.play-btn span{margin-left:10px}.start-hint{margin-top:14px;color:#deebe0;font-size:8px;font-weight:1000;letter-spacing:1px}.start-hint b{color:#ffd45b;margin:0 5px}.overlay-sticker{position:absolute;border-radius:50%;width:100px;height:100px;display:grid;place-content:center;text-align:center;transform:rotate(9deg);background:#fff1c8;color:#785528;box-shadow:0 5px 0 #c58b49;font-size:27px}.overlay-sticker small{font-size:8px;font-weight:1000;letter-spacing:.8px}.sticker-left{right:16%;top:23%;transform:rotate(-12deg)}.sticker-right{right:8%;bottom:19%;transform:rotate(12deg)}.mobile-controls{display:none;position:absolute;z-index:3;bottom:18px;left:18px;right:18px;justify-content:space-between;align-items:end;pointer-events:none}.move-controls{display:flex;gap:10px}.mobile-controls button{pointer-events:auto;width:58px;height:58px;border-radius:50%;border:2px solid #ffffffaa;background:#0733458c;color:white;font-size:21px;font-weight:1000;box-shadow:0 4px 10px #00232a40;touch-action:none}.mobile-controls button:active{background:#ffcd57;color:#30463f}.mobile-controls .jump-control{width:70px;height:70px;background:#ffd15bd9;color:#543b22;border-color:#fff3ce;font-size:28px;display:grid;place-content:center}.jump-control small{font-size:8px;letter-spacing:1px}.win-card{position:absolute;z-index:5;inset:0;margin:auto;width:min(370px,85%);height:max-content;text-align:center;background:#fff7df;color:#38584e;border:4px solid #ffd15b;border-radius:24px;padding:22px;box-shadow:0 16px 35px #00313d80}.win-card[hidden]{display:none}.win-emoji{font-size:48px}.win-card h2{font:800 36px/1 'Baloo 2';color:#df8f32;margin:8px}.win-card p{margin:7px;font-weight:800}.win-score{font-weight:1000;background:#fff0c4;border-radius:99px;padding:7px;margin:13px}.win-card .play-btn{margin-top:5px}.toast{position:absolute;z-index:3;top:25%;left:50%;transform:translate(-50%,-10px);opacity:0;transition:.3s;background:#fff4cf;color:#69502a;padding:8px 15px;border-radius:30px;font-weight:1000;box-shadow:0 4px 10px #032d3870;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}.footer{height:35px;display:flex;align-items:end;justify-content:space-between;color:#a7c5c5;font-size:9px;font-weight:1000;letter-spacing:1.4px}.footer b{color:#ffb17c}@keyframes bob{50%{transform:translateY(-6px)}}@media(max-width:650px){body{padding:7px}.topbar{height:42px;margin-bottom:7px}.top-actions{gap:3px}.top-actions .sound-btn{padding:6px 8px;font-size:9px}.brand{font-size:10px}.brand-icon{width:32px;height:32px;font-size:20px;border-radius:11px}.top-location{font-size:8px;letter-spacing:1px}.sound-btn{padding:7px 10px;font-size:10px}.sound-btn span{display:none}.game-wrap{border-radius:13px;max-height:calc(100dvh - 90px)}.hud{padding:9px}.hud-pill{padding:5px 8px;gap:5px;min-width:0;border-radius:9px}.hud-icon{font-size:15px}.hud-pill small{font-size:6px}.hud-pill strong{font-size:12px}.life-pill strong{font-size:10px;letter-spacing:1px}.level-pill{font-size:7px;letter-spacing:.7px;padding:6px 9px}.title-card{width:62%}.eyebrow{font-size:7px;letter-spacing:1px}h1{font-size:clamp(27px,7vw,40px)}.title-card p{font-size:11px}.hero-monkey{font-size:37px;margin:3px 0 9px}.hero-monkey img{width:62px;height:62px}.play-btn{font-size:12px;padding:9px 17px}.start-hint{font-size:6px;margin-top:9px}.overlay-sticker{width:68px;height:68px;font-size:20px}.overlay-sticker small{font-size:6px}.sticker-left{right:12%;top:18%}.sticker-right{right:5%;bottom:16%}.mobile-controls{display:flex}.footer{height:25px;font-size:7px;letter-spacing:.5px}}@media(max-height:480px) and (orientation:landscape){body{padding:4px}.topbar{height:30px;margin-bottom:4px}.game-wrap{max-height:calc(100dvh - 58px);border-radius:10px}.footer{display:none}.mobile-controls{bottom:8px}.mobile-controls button{width:48px;height:48px}.mobile-controls .jump-control{width:58px;height:58px}.overlay-sticker{width:60px;height:60px}.title-card{width:50%}h1{font-size:36px}}
.landing-menu{display:grid;gap:9px;width:min(260px,100%);margin-top:4px}.landing-menu button{height:42px;position:relative;border-radius:999px;font:1000 13px 'Nunito';letter-spacing:.5px;box-shadow:0 4px 0 #583b2b,0 7px 12px #071b3380}.landing-menu .play-btn{height:48px;font-size:15px;background:#ffcd38;border:3px solid #fff0b1;color:#3d2b1d;box-shadow:0 5px 0 #a76020,0 7px 14px #061d4080}.landing-menu .menu-btn{background:linear-gradient(#fff6dd,#f1d7a6);border:2px solid #fff5d8;color:#422f24}.menu-icon{display:inline-block;margin-right:10px;color:#75502a}.start-hint{margin-top:10px}.settings-btn{position:absolute;z-index:6;right:15px;top:15px;width:46px;height:46px;border:3px solid #fbe7ad;border-radius:14px;background:linear-gradient(#26314f,#101a35);color:#fff3c8;font-size:25px;box-shadow:0 4px 0 #060c1c;cursor:pointer}.hero-monkey{position:absolute;left:min(320px,70%);bottom:64px;margin:0;animation:bob 2s ease-in-out infinite}.hero-monkey img{width:104px;height:104px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 3px 0 #34251b)}.hero-monkey span{top:-8px;right:-5px;text-shadow:1px 2px #a46719}.info-panel{position:absolute;z-index:7;left:50%;top:50%;transform:translate(-50%,-50%);width:min(390px,82%);padding:24px 25px 20px;border:4px solid #f5dfac;border-radius:18px;background:linear-gradient(145deg,#202b4a,#10182d);box-shadow:0 9px 0 #080e20,0 18px 35px #051026b0;color:#fff7dc;text-align:center}.info-panel[hidden]{display:none}.info-panel h2{margin:0 0 12px;color:#ffcf49;font:1000 24px 'Baloo 2';text-shadow:0 2px #885127}.info-panel p{font-size:14px;line-height:1.55;font-weight:800;margin:0}.info-close{position:absolute;right:8px;top:7px;border:0;background:none;color:#fff0ca;font-size:26px;cursor:pointer}.overlay{background:linear-gradient(90deg,#101b3ce8 0%,#172443bc 39%,#0c1c3440 63%,#092d3c08 100%);padding:3% 5%}.title-card{width:min(430px,54%)}.eyebrow{margin-bottom:5px}h1{font-size:clamp(32px,5.2vw,58px);line-height:.83;margin-bottom:9px;letter-spacing:0;text-shadow:2px 3px 0 #2c3153,3px 5px 0 #111a35,0 7px 14px #001b3c}.title-card p{font-size:clamp(11px,1.35vw,15px);line-height:1.15;margin-bottom:5px}.game-wrap{border-color:#f6d98a;box-shadow:0 0 0 4px #122340,0 14px 40px #00162090}.game-wrap:has(.overlay.hidden) .settings-btn{display:none}@media(max-width:650px){.overlay{padding:3% 5%}.title-card{width:65%}h1{font-size:clamp(28px,7vw,39px);line-height:.85}.landing-menu{width:min(210px,100%);gap:7px}.landing-menu button{height:35px;font-size:10px}.landing-menu .play-btn{height:40px;font-size:12px}.hero-monkey{left:65%;bottom:45px}.hero-monkey img{width:66px;height:66px}.settings-btn{width:38px;height:38px;right:9px;top:9px;font-size:20px}.info-panel{padding:20px 18px 17px}.info-panel p{font-size:12px}}
/* Más presencia para Milo en el menú */
.hero-monkey img{width:188px;height:188px}
@media(max-width:650px){.hero-monkey img{width:100px;height:100px}}
/* Juego panorámico a pantalla completa en móviles en horizontal */
@media(max-height:500px) and (orientation:landscape){
  html,body{width:100%;height:100%;min-height:100%;overflow:hidden}
  body{display:block;padding:0}
  .shell{position:fixed;inset:0;width:100vw;height:100dvh}
  .game-wrap{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}
  .topbar{position:absolute;z-index:10;top:4px;left:10px;right:10px;height:30px;margin:0;text-shadow:0 2px 4px #08152f}
  .brand-icon{width:27px;height:27px;border-radius:9px}
  .brand-icon img{width:27px;height:27px}
  .top-actions .sound-btn{padding:5px 8px;font-size:9px;background:#101a35c9}
  .top-location{font-size:8px;letter-spacing:1px}
  .footer{display:none}
  .hud{top:36px;padding:6px 10px}
  .mobile-controls{bottom:9px;left:12px;right:12px}
  .mobile-controls button{width:48px;height:48px}
  .mobile-controls .jump-control{width:58px;height:58px}
  .overlay{padding:4% 5%}
  .title-card{width:min(44%,430px)}
  h1{font-size:clamp(30px,7vh,48px)}
  .landing-menu{width:min(220px,100%);gap:5px}
  .landing-menu button{height:34px;font-size:10px}
  .landing-menu .play-btn{height:39px;font-size:12px}
  .hero-monkey{left:min(340px,55vw);bottom:24px}
  .hero-monkey img{width:clamp(120px,28vh,170px);height:clamp(120px,28vh,170px)}
  .settings-btn{right:10px;top:42px;width:35px;height:35px;font-size:18px}
}
@media(max-width:650px) and (orientation:portrait){
  .shell::after{content:'GIRA EL MÓVIL PARA JUGAR EN PANTALLA PANORÁMICA';position:fixed;z-index:11;bottom:9px;left:50%;transform:translateX(-50%);width:max-content;max-width:92vw;text-align:center;color:#f7e5b7;font-size:8px;font-weight:1000;letter-spacing:.6px;text-shadow:0 2px 4px #001722}
}
/* Milo grande y con anclaje visual al suelo */
.hero-monkey img{width:270px;height:270px}
@media(max-width:650px){.hero-monkey img{width:150px;height:150px}}
@media(max-height:500px) and (orientation:landscape){.hero-monkey img{width:clamp(190px,42vh,245px);height:clamp(190px,42vh,245px)}}
.fullscreen-btn{min-width:38px;padding-left:10px;padding-right:10px;font-size:18px}
.shell:fullscreen,.shell:-webkit-full-screen,.shell.pseudo-fullscreen{position:fixed;inset:0;z-index:9999;width:100vw;height:100vh;height:100dvh;max-width:none;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#092b3c}
.shell:fullscreen .topbar,.shell:-webkit-full-screen .topbar,.shell.pseudo-fullscreen .topbar{flex:0 0 50px;height:50px;margin:0 0 4px}
.shell:fullscreen .game-wrap,.shell:-webkit-full-screen .game-wrap,.shell.pseudo-fullscreen .game-wrap{flex:1 1 auto;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;border-radius:10px}
.shell:fullscreen .footer,.shell:-webkit-full-screen .footer,.shell.pseudo-fullscreen .footer{flex:0 0 22px;height:22px}
@media(max-width:650px){.fullscreen-btn{min-width:32px;padding:5px 8px;font-size:16px}}
@media(max-height:500px) and (orientation:landscape){.shell:fullscreen .topbar,.shell:-webkit-full-screen .topbar,.shell.pseudo-fullscreen .topbar{flex-basis:32px;height:32px}.shell:fullscreen .footer,.shell:-webkit-full-screen .footer,.shell.pseudo-fullscreen .footer{display:none}.shell:fullscreen .game-wrap,.shell:-webkit-full-screen .game-wrap,.shell.pseudo-fullscreen .game-wrap{border-radius:0}}
html,body,.shell,.shell *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
@media (display-mode:standalone){
  html,body{width:100%;height:100%;min-height:100dvh}
  body{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);place-items:stretch}
  .shell{width:100%;height:100%;max-width:none;display:flex;flex-direction:column}
  .topbar{flex:0 0 50px;margin:0 0 4px}
  .game-wrap{flex:1 1 auto;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;border-radius:10px}
  .footer{flex:0 0 22px;height:22px}
}
@media (display-mode:standalone) and (orientation:landscape) and (max-height:500px){
  .topbar{flex-basis:32px;height:32px}
  .footer{display:none}
  .game-wrap{border-radius:0}
}
