/* MUDA MAX chapter II: mountain game map + locally playable mystery stages */
.muda-world-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px;position:relative;z-index:11}
.muda-world-tab{border:2px solid #626d8a;background:linear-gradient(145deg,#2d315a,#1b2442);border-radius:15px;display:flex;align-items:center;gap:9px;padding:10px 14px;color:#cad2e7;text-align:left;min-width:0;box-shadow:0 5px 15px #0004}
.muda-world-tab span{font-size:25px}.muda-world-tab b{font-size:13px;white-space:nowrap}.muda-world-tab small{font-size:10px;opacity:.9;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.muda-world-tab.selected{border-color:#ffdf86;background:linear-gradient(110deg,#414671,#2d4459);color:#fff;box-shadow:inset 0 1px #fff6,0 4px 24px #caad583a}
.mountain-world-shell{position:relative;height:calc(100dvh - 185px);min-height:450px;border-radius:18px;border:3px solid #8aa08a;overflow:hidden;background:#182f38;box-shadow:0 18px 48px #0009;isolation:isolate}
.mountain-world-shell[hidden]{display:none!important}
/* Switch to full-screen when chapter II is active */
#screenRoadmap .roadmap-map-shell[hidden]{display:none!important}
.mountain-top{position:absolute;top:0;left:0;right:0;z-index:9;padding:10px 12px 12px;background:linear-gradient(180deg,#141c37fa,#1d3346e9 76%,#1d334600);pointer-events:none}
.mountain-top-line,.mountain-summary{display:flex;align-items:center;justify-content:space-between;gap:8px}.mountain-top-line>div{display:grid;min-width:0}.mountain-top-line span{font-size:10px;font-weight:1000;letter-spacing:.07em;color:#edcf94}.mountain-top-line strong{font-size:clamp(19px,3vw,27px);color:#f9f2d5;text-shadow:0 3px 7px #000;font-weight:1000}
.mountain-location-btn{border:2px solid #f0de98;border-radius:15px;background:linear-gradient(#557a68,#214b4f);padding:12px 10px;color:#fff4cd;font-size:12px;font-weight:1000;white-space:nowrap;box-shadow:0 5px 0 #112b30;pointer-events:auto}.mountain-location-btn:active{transform:translateY(3px);box-shadow:0 2px 0 #112b30}
.mountain-summary{border:1px solid #b3cfba70;border-radius:9px;margin-top:8px;background:#121d37b8;padding:6px 10px;font-size:11px;color:#d4e8e5;font-weight:850}.mountain-summary span:first-child{color:#ffe4a9;white-space:nowrap}
.mountain-scroll{width:100%;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#83af9a #182f38;touch-action:pan-y}
.mountain-track{position:relative;width:100%;height:2200px;background:#1a3b43 url('./mountain-world.svg') center/100% 100% no-repeat}
.mountain-pin{position:absolute;z-index:4;display:grid;justify-items:center;gap:6px;transform:translate(-50%,-50%);width:clamp(100px,30%,160px);padding:8px 3px;border:none;background:none;color:white;cursor:pointer;touch-action:manipulation}
.mountain-pin-core{width:clamp(67px,10vw,95px);height:clamp(67px,10vw,95px);border-radius:50%;display:grid;place-items:center;border:5px solid #c7c9d3;background:linear-gradient(140deg,#8890a0,#414b60);color:#f8f9ff;text-shadow:0 3px #172435;font-size:33px;font-weight:1000;box-shadow:0 7px 0 #1d273c,0 13px 20px #0008}
.mountain-pin.open .mountain-pin-core{color:#3a251a;background:linear-gradient(130deg,#fff5a7,#f6bc62,#db7b37);border-color:#fff8d0;box-shadow:inset 0 -7px #e19a3d,0 8px 0 #6e3d2f,0 0 26px #ffe09caa}
.mountain-pin.done .mountain-pin-core{color:#12352e;background:linear-gradient(135deg,#d9ff9f,#7bda9f,#3cbb91);border-color:#e8ffc5;box-shadow:0 8px 0 #225b47,0 0 22px #9bffca74}
.mountain-pin.now .mountain-pin-core::before{content:'◆';position:absolute;font-size:20px;color:#ffe89a;top:-15px;text-shadow:0 2px #2b1f38;animation:mountain-bounce 1.1s alternate infinite}
.mountain-pin-label{display:block;width:100%;padding:6px 5px;border-radius:9px;text-align:center;font-size:clamp(11px,1.8vw,13px);font-weight:1000;line-height:1.3;border:1px solid #d6b88f;background:#131d32ed;box-shadow:0 4px 7px #0007;text-shadow:0 1px 3px #000}
.mountain-pin.locked .mountain-pin-label{border-color:#738d9b;background:#283344ee}.mountain-pin:focus-visible{outline:4px solid #e5ffcb;border-radius:13px}
.mountain-lock{position:absolute;z-index:12;left:10px;right:10px;top:34%;background:#142236ee;border:2px solid #d6b77e;border-radius:21px;padding:28px 20px;text-align:center;box-shadow:0 20px 80px #000c;backdrop-filter:blur(8px)}.mountain-lock[hidden]{display:none}.mountain-lock-icon{font-size:54px}.mountain-lock strong{display:block;font-size:22px;color:#f5e2a5}.mountain-lock p{color:#e0e6e5;font-size:13px;line-height:1.7}.mountain-lock button,.mountain-stage-card button:not(.mountain-close){background:#d6f4ae;color:#1e3937;font-weight:1000;border:none;border-radius:12px;padding:12px 16px}
.mountain-stage-card{position:absolute;z-index:11;bottom:10px;left:10px;right:10px;background:linear-gradient(120deg,#25384cf6,#151d38fa);border:2px solid #d0c08e;border-radius:18px;padding:13px 44px 13px 15px;box-shadow:0 15px 40px #000b;display:grid;gap:7px}.mountain-stage-card[hidden]{display:none!important}.mountain-stage-card>span{font-size:11px;font-weight:1000;color:#ffe1a4}.mountain-stage-card>strong{font-size:19px;color:#fff}.mountain-stage-card>p{font-size:12px;line-height:1.5;margin:0;color:#d9e1ec}.mountain-stage-card>button:not(.mountain-close){justify-self:start}.mountain-stage-card>button:disabled{opacity:.45}.mountain-close{position:absolute;top:6px;right:9px;border:0;border-radius:8px;background:#ffffff27;color:white;min-width:32px;min-height:32px;font-size:17px}
.mountain-game{position:absolute;z-index:15;inset:7px 7px 7px 7px;border:2px solid #d7d29a;border-radius:18px;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(145deg,#263c4afa,#121a36fc);box-shadow:0 12px 65px #000c;backdrop-filter:blur(12px)}.mountain-game[hidden]{display:none!important}
.mountain-game-header{padding:14px 15px;display:flex;justify-content:space-between;align-items:center;gap:8px;background:linear-gradient(100deg,#435347,#273254);border-bottom:1px solid #879b9c8a}.mountain-game-header>div{display:grid;gap:3px}.mountain-game-header small{font-size:10px;letter-spacing:.13em;color:#e9c781;font-weight:1000}.mountain-game-header strong{font-size:18px}.mountain-game-header button{color:white;border:1px solid #e0d8bc;border-radius:9px;background:#12172ca9;width:38px;height:38px;font-size:20px}
.mountain-game-hint{margin:0;padding:12px 16px 8px;color:#bbd8cc;font-size:12px}.mountain-game-body{padding:8px 14px 20px;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;align-items:stretch}.mountain-prompt{font-size:clamp(14px,2.2vw,17px);color:#f9f5df;line-height:1.75;margin:0;font-weight:750}.mountain-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mountain-action{border:2px solid #abccbd;background:linear-gradient(125deg,#435f63,#1c3c54);color:#fffbe4;border-radius:13px;min-height:55px;padding:11px 8px;font-size:13px;font-weight:950;line-height:1.4}.mountain-action:hover{border-color:#fff29c}.mountain-action:active{transform:translateY(2px)}.mountain-action.secondary{background:#2b304a}.mountain-action:focus-visible{outline:3px solid #e7ffa0}.mountain-win-icon{text-align:center;font-size:64px}.mountain-game-body h3{text-align:center;color:#f8ec96;font-size:24px}.mountain-sequence,.mountain-clock{padding:18px;text-align:center;background:#132735;border:1px solid #557d7b;border-radius:14px;font-size:30px;word-break:break-word;font-weight:1000;letter-spacing:.12em}.mountain-clock{font-size:43px;color:#ffe3ad}.mountain-seen{padding:12px;border-radius:11px;background:#0e1d31;color:#bdecdb;font-size:12px}.mountain-lamp-grid{width:min(320px,100%);align-self:center;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mountain-lamp-grid button{min-height:70px;font-size:30px}.mountain-lamp-grid button.lit{background:linear-gradient(#ffe7ac,#b56b37);box-shadow:0 0 25px #ffcc658a}.mountain-lamp-grid button.off{background:#1c293c}.mountain-game-feedback{padding:11px 14px;border-top:1px solid #668e8e;background:#102431;color:#f1dbab;font-size:13px;line-height:1.5;min-height:54px;flex-shrink:0}
@keyframes mountain-bounce{to{transform:translateY(7px)}}
@media(max-width:650px){.muda-world-tabs{gap:6px}.muda-world-tab{padding:8px;gap:6px;border-radius:12px}.muda-world-tab span{font-size:22px}.muda-world-tab b{font-size:12px}.muda-world-tab small{font-size:10px}.mountain-world-shell{height:calc(100dvh - 174px);min-height:390px}.mountain-top{padding:9px 8px}.mountain-top-line strong{font-size:19px}.mountain-pin{width:118px}.mountain-pin-core{width:74px;height:74px;font-size:30px}.mountain-pin-label{font-size:11px}.mountain-game-body{padding:8px 11px 16px}.mountain-game-header strong{font-size:15px}.mountain-choices{grid-template-columns:1fr 1fr}.mountain-action{min-height:52px;font-size:12px}}
@media(max-height:700px){.mountain-world-shell{height:calc(100dvh - 163px)}.mountain-game-header{padding:8px}.mountain-game-hint{padding:7px}.mountain-game-feedback{padding:6px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.mountain-pin.now .mountain-pin-core::before{animation:none}}

/* Account for chapter selector above the unchanged first-world map */
#screenRoadmap .roadmap-map-shell:not([hidden]){height:calc(100dvh - 188px);min-height:390px}
@media(max-width:650px){#screenRoadmap .roadmap-map-shell:not([hidden]){height:calc(100dvh - 173px)}}

/* v5.7 narrative presentation, familiar to chapter one */
.mountain-game{background:#17263c}.mountain-game-header{padding:9px 12px;min-height:65px}.mountain-game-hint{padding:6px 14px;color:#bed9d4;font-size:11px}
.mountain-v57-scene{position:relative;min-height:clamp(118px,22vh,190px);display:flex;align-items:flex-end;gap:8px;padding:16px 14px 10px 7px;overflow:hidden;flex-shrink:0;background:radial-gradient(circle at 80% 15%,#a4e3d833,transparent 30%),linear-gradient(140deg,#152d3f,#354563 45%,#102337);border-bottom:1px solid #799c9280}
.mountain-v57-scene::before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(110deg,transparent 0 54px,#e3f5e808 55px 57px);pointer-events:none;opacity:.6}
.mountain-game[data-chapter='1'] .mountain-v57-scene{background:linear-gradient(135deg,#567d64,#2c3e5a 70%,#152333)}
.mountain-game[data-chapter='2'] .mountain-v57-scene{background:linear-gradient(145deg,#233d37,#373765 66%,#161d34)}
.mountain-game[data-chapter='3'] .mountain-v57-scene{background:linear-gradient(140deg,#5a463c,#363d53,#17232f)}
.mountain-game[data-chapter='4'] .mountain-v57-scene{background:radial-gradient(circle at 80% 0,#f1bc6470,transparent 45%),linear-gradient(135deg,#413c3a,#181f3c)}
.mountain-game[data-chapter='5'] .mountain-v57-scene{background:linear-gradient(145deg,#3a4c60,#1e3752,#131e36)}
.mountain-game[data-chapter='6'] .mountain-v57-scene{background:linear-gradient(130deg,#544865,#253146,#131d34)}
.mountain-game[data-chapter='7'] .mountain-v57-scene{background:linear-gradient(130deg,#3b5347,#283d47,#151e34)}
.mountain-game[data-chapter='8'] .mountain-v57-scene{background:linear-gradient(130deg,#626357,#33515f,#181a35)}
.mountain-v57-scene img{position:relative;z-index:1;width:clamp(78px,17vw,142px);height:clamp(105px,21vh,170px);object-fit:contain;object-position:bottom;align-self:end;filter:drop-shadow(0 5px 14px #0009);flex:none}
.mountain-v57-scene .mountain-game-story{position:relative;z-index:2;flex:1;max-width:790px;min-width:0;background:#141b36ec;border:1px solid #e4d6ac;border-radius:16px 16px 16px 4px;padding:10px 13px;box-shadow:0 9px 24px #0008;max-height:155px;overflow-y:auto}
.mountain-v57-scene .mountain-game-story span{display:inline-block;color:#fff3ba;font-size:12px;font-weight:1000;margin-bottom:4px}.mountain-v57-scene .mountain-game-story p{margin:0;color:#eff4ff;font-size:clamp(12px,1.55vw,15px);line-height:1.6}
.mountain-v57-objective{display:flex;gap:9px;align-items:center;justify-content:space-between;padding:11px 14px;background:linear-gradient(110deg,#4b414c,#292e4d);border-bottom:1px solid #b9a978;color:#fff3c6;font-size:12px;font-weight:900}.mountain-v57-objective b{white-space:nowrap;border-radius:40px;padding:6px 10px;background:#ffe9ad;color:#27314b}
.mountain-story-clues{padding:12px;border:1px solid #9dc8ab;border-radius:12px;background:#1a2b38;color:#ffe5ad;font-weight:900}.mountain-action.primary{background:linear-gradient(#e7f7b7,#91c599);color:#172d39;border-color:#e5ffbe}.mountain-action:disabled{opacity:.46}.mountain-game-body{gap:9px;padding-top:9px}.mountain-game-feedback{font-size:12px}
@media(max-width:650px){.mountain-v57-scene{min-height:118px;padding:7px 7px 6px 3px}.mountain-v57-scene img{width:85px;height:110px}.mountain-v57-scene .mountain-game-story{padding:9px}.mountain-v57-scene .mountain-game-story p{font-size:11px}.mountain-v57-objective{padding:8px 10px;font-size:11px}.mountain-game-hint{font-size:10px}}
@media(max-height:680px){.mountain-v57-scene{min-height:95px}.mountain-v57-scene img{height:94px}.mountain-v57-objective{padding:6px 9px}}
