.moon-rescue-game{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:1100px;margin:20px auto;color:#fff}
.mr-shell{background:#111827;border-radius:24px;padding:14px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}
.mr-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 10px 14px}
.mr-brand{display:flex;align-items:center;gap:10px}.mr-logo{font-size:32px}.mr-brand strong{display:block;letter-spacing:.08em}.mr-brand small{opacity:.65}
.mr-stats{display:flex;gap:12px;flex-wrap:wrap}.mr-stats span{background:#1f2937;border:1px solid #334155;border-radius:999px;padding:8px 12px;font-size:14px}
.mr-stage-wrap{position:relative;border-radius:18px;overflow:hidden;background:#0b1220}
.mr-canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;image-rendering:auto}
.mr-overlay{position:absolute;inset:0;display:grid;place-items:center;background:rgba(7,11,20,.48);backdrop-filter:blur(3px);transition:.2s}
.mr-overlay.hidden{opacity:0;pointer-events:none}.mr-card{width:min(620px,90%);padding:28px;border-radius:22px;background:rgba(17,24,39,.94);border:1px solid rgba(255,255,255,.12);text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.mr-title{font-size:clamp(28px,5vw,48px);font-weight:900;letter-spacing:-.04em}.mr-subtitle{color:#cbd5e1;font-size:16px}
.mr-worlds{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0}.mr-world{cursor:pointer;border:1px solid #334155;background:#111827;color:#fff;border-radius:15px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:3px}.mr-world span{font-size:25px}.mr-world small{color:#94a3b8}.mr-world.is-active{border-color:#f5d45c;background:#243047;box-shadow:0 0 0 2px rgba(245,212,92,.15)}
.mr-start{cursor:pointer;border:0;border-radius:999px;padding:13px 28px;background:#f5d45c;color:#171717;font-weight:900;font-size:16px;box-shadow:0 8px 25px rgba(245,212,92,.2)}.mr-help{font-size:12px;color:#94a3b8;line-height:1.6;margin-bottom:0}
.mr-controls{display:flex;justify-content:center;gap:12px;padding:14px 0 8px}.mr-controls button{width:76px;height:52px;border:1px solid #334155;background:#1f2937;color:#fff;border-radius:14px;font-size:23px;touch-action:none}.mr-controls button.pressed{transform:translateY(2px);background:#334155}
.mr-progress{padding:4px 8px 10px}.mr-progress-label{display:flex;justify-content:space-between;font-size:13px;color:#cbd5e1;margin-bottom:7px}.mr-progress-track{height:10px;background:#273244;border-radius:999px;overflow:hidden}.mr-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#8b5cf6,#f5d45c);border-radius:inherit;transition:width .25s}
.mr-footer{display:flex;justify-content:space-between;color:#94a3b8;font-size:12px;padding:8px}.mr-toast{position:absolute;left:50%;top:18px;transform:translate(-50%,-20px);opacity:0;background:#111827;border:1px solid #475569;padding:9px 15px;border-radius:999px;font-weight:800;transition:.2s;pointer-events:none}.mr-toast.show{opacity:1;transform:translate(-50%,0)}
.mr-result{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:18px 0}.mr-result span{padding:9px 12px;background:#1f2937;border-radius:999px}
@media(max-width:620px){.mr-topbar{align-items:flex-start;flex-direction:column}.mr-stats{width:100%;justify-content:space-between}.mr-stats span{flex:1;text-align:center;padding:7px 5px}.mr-worlds{grid-template-columns:1fr}.mr-world{flex-direction:row;justify-content:center}.mr-footer{flex-direction:column;gap:4px}.mr-controls button{width:30%;}}

.mr-location{display:inline-block;margin:2px 0 4px;padding:6px 12px;border-radius:999px;background:#263247;color:#f5d45c;font-weight:800;font-size:13px}

/* v1.3 */
.mr-canvas{background:#0b1220;touch-action:none;-webkit-tap-highlight-color:transparent}
.mr-stats{align-items:center}
.mr-sound{cursor:pointer;border:1px solid #334155;background:#1f2937;color:#fff;border-radius:999px;padding:6px 11px;font-size:15px;line-height:1}
.mr-controls button{user-select:none;-webkit-user-select:none}
.mr-start.mr-alt{background:#334155;color:#fff;box-shadow:none;margin-left:6px}
.mr-card .mr-start{margin-top:6px}

/* v1.4 — celular y pantalla completa */
.mr-fs-tools{display:none}
html.mr-noscroll,html.mr-noscroll body{overflow:hidden!important;overscroll-behavior:none}
.mr-controls button{-webkit-touch-callout:none}
.moon-rescue-game.mr-fs{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;max-width:none;z-index:2147483000;background:#000;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.moon-rescue-game.mr-fs .mr-shell{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:0;padding:0;display:flex;flex-direction:column;box-shadow:none;background:#000}
.mr-fs .mr-topbar,.mr-fs .mr-progress,.mr-fs .mr-footer{display:none}
.mr-fs .mr-stage-wrap{flex:1;min-height:0;border-radius:0;background:#000}
.mr-fs .mr-canvas{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
.mr-fs .mr-fs-tools{display:flex;position:absolute;top:8px;left:50%;transform:translateX(-50%);gap:8px;z-index:6}
.mr-fs .mr-fs-tools .mr-sound{background:rgba(17,24,39,.65)}
.mr-fs .mr-controls{position:absolute;left:0;right:0;bottom:0;padding:0 16px 10px;justify-content:flex-start;gap:14px;pointer-events:none;z-index:5}
.mr-fs .mr-controls button{pointer-events:auto;width:72px;height:72px;border-radius:50%;background:rgba(17,24,39,.38);border:2px solid rgba(255,255,255,.35);font-size:30px}
.mr-fs .mr-controls [data-key="left"]{order:1}
.mr-fs .mr-controls [data-key="right"]{order:2}
.mr-fs .mr-controls [data-key="jump"]{order:3;margin-left:auto;width:88px;height:88px}
.mr-fs .mr-card{padding:14px 18px;max-height:96%;overflow:auto}
.mr-fs .mr-title{font-size:26px}
.mr-fs .mr-subtitle{margin:4px 0}
.mr-fs .mr-worlds{grid-template-columns:repeat(3,1fr);margin:10px 0}
.mr-fs .mr-world{flex-direction:column;padding:8px 6px}
.mr-fs .mr-help{display:none}
.mr-fs .mr-start.mr-alt{margin-left:0}

/* menú usable en celular vertical (sin pantalla completa) */
@media(max-width:620px) and (orientation:portrait){
  .mr-stage-wrap{min-height:430px;display:flex;align-items:center;background:#0b1220}
  .mr-canvas{width:100%;height:auto}
  .mr-card{padding:18px 14px}
  .mr-worlds{grid-template-columns:repeat(3,1fr)}
  .mr-world{flex-direction:column;padding:10px 4px}
  .mr-help{display:none}
  .mr-start{margin-top:4px}
  .mr-start.mr-alt{margin-left:0}
}
