/* Map-only layout. Keep all art and labels inside their clickable node boxes. */
.interface-root .if-page-map .hf-map-node{width:18cqw;height:17.5cqw;display:block;z-index:2}
.interface-root .if-page-map .hf-map-node>img{position:absolute;left:50%;top:0;transform:translateX(-50%);width:15cqw;height:11cqw;margin:0}
.interface-root .if-page-map .hf-map-node.is-current>img{width:17cqw;height:13cqw;top:-1.5cqw;margin:0}
.interface-root .if-page-map .hf-node-label{position:absolute;left:50%;top:10.7cqw;transform:translateX(-50%);min-width:9cqw;max-width:14cqw;height:4.1cqw;padding:.45cqw 1.4cqw;margin:0;font-size:3.1cqw;line-height:1;white-space:nowrap;z-index:2}
.interface-root .if-page-map .hf-node-stars{position:absolute;left:50%;bottom:.15cqw;transform:translateX(-50%);height:2.2cqw;margin:0;gap:.15cqw}
.interface-root .if-page-map .hf-node-stars>img{width:2.2cqw;height:2.2cqw}
.interface-root .if-page-map .hf-map-node.is-boss{width:30cqw;height:29.5cqw;z-index:3}
.interface-root .if-page-map .hf-map-node.is-boss>img{left:50%;top:0;width:29cqw;height:21cqw;margin:0;transform:translateX(-50%)}
.interface-root .if-page-map .hf-map-node.is-boss .hf-boss-ribbon{position:absolute;left:50%;top:18cqw;transform:translateX(-50%);width:20cqw;height:4.3cqw;display:flex;align-items:center;justify-content:center;padding:.3cqw 2cqw;margin:0;font-size:3.1cqw;line-height:1;letter-spacing:.03em;font-weight:750;text-shadow:none}
.interface-root .if-page-map .hf-map-node.is-boss .hf-node-label{top:22.4cqw;width:12cqw;height:4cqw;font-size:3.3cqw}
.interface-root .if-page-map .hf-map-node.is-boss .hf-node-stars{bottom:.2cqw}
.interface-root .if-page-map .hf-map-current{left:46%;right:2%;bottom:1%;width:auto;height:11cqw;min-height:11cqw;max-height:11cqw;padding:1cqw 1.3cqw;gap:1cqw;z-index:4}
.interface-root .if-page-map .hf-map-current>img{width:5.8cqw;height:5.8cqw;flex:none}
.interface-root .if-page-map .hf-map-current>div{min-width:0;flex:1}
.interface-root .if-page-map .hf-map-current strong{display:block;font-size:2.9cqw;font-weight:650;line-height:1.45;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.interface-root .if-page-map .hf-map-current small{display:block;font-size:max(10px,2.5cqw);font-weight:500;line-height:1.45;letter-spacing:0;white-space:nowrap;margin-top:.3cqw}
.interface-root .if-page-map .if-title{font-weight:700;letter-spacing:.02em;text-shadow:none!important}
.interface-root .if-page-map .hf-map-chapter{font-size:3.3cqw!important;font-weight:650;letter-spacing:.02em;text-shadow:none!important;-webkit-text-stroke:0}
.interface-root .if-page-map .hf-map-modes>strong,.interface-root .if-page-map .hf-map-modes>span{font-weight:600;letter-spacing:0;line-height:1.3;text-shadow:none!important;-webkit-text-stroke:0}

/* Selected screen_map_B composition: independent scene and real interactive state. */
.interface-root .if-page-map{padding:0;background:#100d26;overflow:hidden}
.interface-root .rm-map{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;background:url('./assets/map-b/scene.png') center/100% 100% no-repeat;color:#fff4df}
.rm-map .rm-logo{position:absolute;left:1%;top:.6%;width:27%;height:7.5%;object-fit:contain;z-index:5}
.interface-root .rm-map .if-resources{position:absolute;left:29%;top:1%;width:70%;height:4%;min-height:0;padding:0;gap:1cqw;z-index:5;background:none}
.interface-root .rm-map .if-resource{min-width:0;min-height:0;height:100%;padding:.3cqw .7cqw;gap:.3cqw;border:1px solid #ac83b8;border-radius:4cqw;background:linear-gradient(#382544,#1d132a);box-shadow:inset 0 0 0 .35cqw #1b092b}
.interface-root .rm-map .if-resource>img{width:4.4cqw;height:4.8cqw;flex:none}
.interface-root .rm-map .if-resource-value{font-size:2.8cqw;letter-spacing:0;min-width:0;flex:1}
.interface-root .rm-map .if-resource-plus{width:3.2cqw;height:3.2cqw;min-width:0;font-size:3cqw;line-height:1;background:linear-gradient(#8ae443,#2c8611);border:1px solid #d5ffa9}
.rm-map .rm-shortcuts{position:absolute;left:26%;right:1%;top:5.5%;height:5.7%;display:grid;grid-template-columns:repeat(6,1fr);z-index:5}
.interface-root .rm-shortcut{display:flex;flex-direction:column;justify-content:center;gap:0;padding:0;min-height:0;background:none;border:0}
.rm-shortcut img{width:7.5cqw;height:7cqw;object-fit:contain;filter:drop-shadow(0 .5cqw .3cqw #12091c)}
.rm-shortcut strong{font-size:2.5cqw;line-height:1.1;font-weight:800;text-shadow:0 .3cqw #210e2b}
.interface-root .rm-chapter{position:absolute;left:23%;width:74%;top:11.5%;height:4.5%;margin:0;display:flex;align-items:center;justify-content:center;background:url('./assets/fidelity/button-purple.svg') center/100% 100%;font-size:3.8cqw;font-weight:800;color:#fff4d0;text-shadow:0 .35cqw #26142b;z-index:5}
.rm-modes{position:absolute;left:0;top:10%;width:19%;display:grid;gap:1.3cqw;z-index:5}
.interface-root .rm-mode{height:8.5cqw;min-height:0;padding:.8cqw;display:flex;gap:.6cqw;background:url('./assets/fidelity/button-purple.svg') center/100% 100%;font-size:3cqw;font-weight:800}
.rm-mode img{width:3.5cqw;height:3.5cqw;object-fit:contain}.rm-mode.is-active{color:#ffe779}
.rm-route{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.rm-route path{fill:none;stroke:#fff4b4;stroke-width:.9;stroke-linecap:round;stroke-dasharray:.01 2.6;filter:drop-shadow(0 0 .7px #ffaf16) drop-shadow(0 0 2px #ffb213)}
.interface-root .rm-node{position:absolute;width:14cqw;height:13cqw;min-height:0;padding:0;transform:translate(-50%,-50%);border:0;background:none;display:block;z-index:2;filter:drop-shadow(0 .5cqw .3cqw #170a29)}
.rm-node .rm-node-art{position:absolute;left:7%;top:0;width:86%;height:9cqw;object-fit:contain;max-width:none}
.rm-node .rm-number{position:absolute;top:8cqw;left:10%;width:80%;height:3.9cqw;display:flex;align-items:center;justify-content:center;border:1px solid #e5b35f;border-radius:2cqw;background:linear-gradient(#4c295e,#23152e);font-size:3cqw;line-height:1;z-index:4}
.rm-stars{position:absolute;left:0;right:0;top:11.9cqw;display:flex;justify-content:center;gap:.3cqw}.rm-stars img{width:2.8cqw;height:2.8cqw}
.rm-node.is-available .rm-node-art{filter:drop-shadow(0 0 .6cqw #e3ac3c)}
.rm-node.is-current{z-index:4}.rm-node.is-current .rm-node-art{filter:brightness(1.2)}
.rm-node .rm-hero{position:absolute;left:0;top:-4cqw;width:14cqw;height:14cqw;object-fit:contain;z-index:3;filter:drop-shadow(0 0 .8cqw #ffdd39)}
.rm-halo{position:absolute;left:-15%;top:-1.8cqw;width:130%;height:12cqw;border:.6cqw solid #fff6a0;border-radius:50%;box-shadow:0 0 1.1cqw #fff,0 0 3cqw #ffc000,inset 0 0 2cqw #ffce00;background:radial-gradient(ellipse,#ffe74755,transparent 65%);animation:rm-glow 1.7s ease-in-out infinite;z-index:1;pointer-events:none}
.rm-current-tag{position:absolute;left:20%;top:-6.7cqw;width:60%;font-size:2.1cqw;line-height:1.4;border-radius:1cqw;background:#ffd95b;color:#562313;font-weight:800;z-index:5}
.interface-root .rm-node.is-boss{width:28cqw;height:26cqw;z-index:3}.rm-node.is-boss .rm-node-art{left:0;width:100%;height:22cqw;top:-2cqw}
.rm-boss-banner{position:absolute;left:6%;width:88%;top:16cqw;height:5cqw;background:linear-gradient(#f3443c,#8b122b);border:.5cqw solid #ffe493;box-shadow:0 .5cqw #52203e;display:flex;align-items:center;justify-content:center;font-size:3.6cqw;font-weight:900;color:#fff5be;z-index:3}
.rm-node.is-boss .rm-number{left:25%;width:50%;top:21.5cqw}.rm-node.is-boss .rm-stars{top:25.7cqw}
.rm-node.is-boss .rm-hero{left:-20%;top:6cqw;width:12cqw;height:12cqw}.rm-node.is-boss .rm-halo{top:12cqw;height:12cqw}.rm-node.is-boss .rm-current-tag{top:-3cqw}
.rm-nav{position:absolute;left:0;right:0;bottom:0;height:10.2%;display:grid;grid-template-columns:repeat(5,1fr);gap:.3cqw;padding:.6cqw .4cqw;z-index:6;background:linear-gradient(transparent,#180e28)}
.interface-root .rm-nav-item{position:relative;min-height:0;padding:0;border:.5cqw solid #ffc454;border-radius:4cqw 4cqw 1.8cqw 1.8cqw;background:linear-gradient(135deg,#63368a,#331b4e 65%);box-shadow:inset 0 0 0 .5cqw #230c3b;display:flex;flex-direction:column;justify-content:center;gap:.4cqw}
.rm-nav-item img{height:9cqw;width:12cqw;object-fit:contain;filter:drop-shadow(0 .5cqw .2cqw #1c0b28)}.rm-nav-item strong{font-size:3.8cqw;line-height:1.2;font-weight:800;text-shadow:0 .35cqw #23112b}
.interface-root .rm-nav-item.is-active{transform:translateY(-1cqw);background:radial-gradient(ellipse at 50% 70%,#be3ae8,#69318c 70%);border-color:#fff493;box-shadow:0 0 2cqw #ffc52a,inset 0 0 1.4cqw #ffcf56}.rm-nav-item.is-active img{height:10cqw}.rm-nav-item.is-active strong{font-size:4.5cqw;color:#fff39a}
.ui-interaction-ready .ui-feedback-control.rm-node{--ui-rest-transform:translate(-50%,-50%)}
@keyframes rm-glow{50%{opacity:.72;box-shadow:0 0 1.6cqw #fff,0 0 4cqw #ffc000,inset 0 0 3cqw #ffce00}}
@media(prefers-reduced-motion:reduce){.rm-halo{animation:none}}
.interface-root .rm-chapter{background-image:url('./assets/map-b/chapter.svg');left:23%;width:74%;height:5%;top:11.2%}
.rm-node .rm-hero{left:-2cqw;top:-5cqw;width:18cqw;height:15cqw}
.rm-halo{left:-25%;width:150%;height:13cqw;top:-2.5cqw;background:repeating-conic-gradient(from 0deg,#ffe94b00 0deg 14deg,#fff16b55 16deg 18deg,#ffe94b00 20deg 30deg),radial-gradient(ellipse,#ffe74766,transparent 70%)}
.rm-node.is-current .rm-number{border-color:#fff6a0;box-shadow:0 0 1cqw #ffc000}
/* Individually redrawn reference components replace generic icon/button substitutions. */
.rm-map .rm-shortcuts{top:4.6%;height:7%;left:25%;right:1%;overflow:visible;gap:0}
.rm-strip-art{position:absolute;left:0;top:-4.8cqw;width:100%;height:auto;max-width:none;pointer-events:none}
.interface-root .rm-shortcut{z-index:1;background:none;border:0;box-shadow:none;border-radius:1cqw}
.interface-root .rm-shortcut:hover{background:#fff0b51a}.interface-root .rm-shortcut:active{background:#ffdf4933}
.interface-root .rm-chapter{left:22%;width:76%;height:5%;top:11.5%;background-image:url('./assets/map-b/chapter.png');background-size:100% 185%;background-position:center 49%;font-size:3.8cqw;text-shadow:0 .35cqw .1cqw #1b0e24;color:#fff7d6;font-weight:850}
.rm-modes{top:9.8%;width:19%;height:14%;display:grid;grid-template-rows:repeat(3,1fr);gap:0}
.rm-mode-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.interface-root .rm-mode{height:auto;background:none;padding:0;border:0;box-shadow:none;z-index:1}
.interface-root .rm-mode:hover{filter:brightness(1.15);background:#ffffff10}
.rm-nav{height:11.8%;padding:0;gap:0;background:none;bottom:0}
.rm-nav-art{position:absolute;left:0;bottom:-5.9cqw;width:100%;height:auto;pointer-events:none;max-width:none}
.interface-root .rm-nav-item,.interface-root .rm-nav-item.is-active{background:none;border:0;box-shadow:none;transform:none;border-radius:2cqw;z-index:1}
.interface-root .rm-nav-item:hover{background:#ffe99b18}.interface-root .rm-nav-item:active{background:#ffdf4933}
.rm-node.is-boss .rm-node-art{left:-8%;top:-4cqw;width:116%;height:29cqw;object-fit:contain}.rm-node.is-boss .rm-number{top:22cqw}
.rm-boss-lock{position:absolute;right:-1cqw;top:18cqw;width:4.5cqw;height:4.5cqw;z-index:4;filter:drop-shadow(0 0 .5cqw #000)}
.rm-node.is-boss.is-locked .rm-node-art{filter:saturate(.85)}
.rm-map button:focus-visible{outline:.5cqw solid #fff6a0;outline-offset:.5cqw}
.rm-review-note{position:absolute;left:25%;right:25%;bottom:12.5%;text-align:center;color:#ffeab0;text-shadow:0 1px 2px #000;font-size:2.2cqw;z-index:4}
.rm-node.is-boss .rm-current-tag{top:22cqw;left:82%;width:25%;font-size:1.9cqw}
.rm-node.is-boss .rm-halo{left:0;width:100%;top:15cqw;height:9cqw}
