.map-help-button{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;cursor:pointer}
.map-help-button>span:first-child{display:grid;place-items:center;width:23px;height:23px;border:1px solid currentColor;border-radius:50%;font-weight:800;font-size:15px}
.map-guide{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:22px;color:var(--theme-text,#f7f0dd);background:var(--theme-panel,#132431);border:1px solid var(--theme-border,#a99850);border-radius:22px;box-shadow:0 20px 90px #0008;overflow:auto;overscroll-behavior:contain;font-family:system-ui,'Yu Gothic UI',sans-serif}
.map-guide::backdrop{background:#020b16b8;backdrop-filter:blur(4px)}
.map-guide header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.map-guide-eyebrow{font-size:12px;color:var(--theme-muted,#c6cbd1);letter-spacing:.03em}
.map-guide button{font:inherit;cursor:pointer;touch-action:manipulation;min-height:44px;border:1px solid var(--theme-border,#a99850);border-radius:11px;background:transparent;color:inherit;padding:8px 12px}
.map-guide button:focus-visible,.map-help-button:focus-visible{outline:3px solid #49d9db;outline-offset:3px}
.map-guide #mapGuideClose{min-width:44px;font-size:24px;line-height:1}
.map-guide-progress{display:flex;justify-content:space-between;gap:7px;margin:16px 0 20px}
.map-guide-progress button{padding:0;width:44px;min-width:32px;min-height:32px;height:32px;font-size:12px}
.map-guide-progress [aria-current='step']{background:var(--theme-accent,#ffdc68);color:#172431;font-weight:800}
#mapGuideIcon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#b9983028;color:var(--theme-accent,#ffdc68);font-size:35px}
#mapGuideCount{font-size:12px;color:var(--theme-muted,#c6cbd1);margin:16px 0 6px}
.map-guide h2{margin:0 0 12px;font-size:25px;line-height:1.4;letter-spacing:.01em}
#mapGuideCopy{font-size:14px;line-height:1.85;margin:0 0 14px}
#mapGuideTips{padding-left:20px;font-size:13px;line-height:1.85;color:var(--theme-muted,#c6cbd1);margin:0 0 18px}
#mapGuideTry{width:100%;font-weight:700;border-color:var(--theme-accent,#ffdc68);margin:0 0 16px}
.map-guide footer{display:flex;gap:10px}
#mapGuideBack{flex:0 0 76px}#mapGuideBack:disabled{opacity:.35;cursor:default}
#mapGuideNext{flex:1;background:var(--theme-accent,#ffdc68);color:#142332;font-weight:800;border:0}
#mapGuideSkip{display:block;margin:12px auto 0;border:0;color:var(--theme-muted,#c6cbd1);font-size:12px}
@media(max-width:680px),(max-width:960px) and (max-height:500px) and (pointer:coarse){
 .map-help-label{display:none}.topline .map-help-button{min-width:44px;width:44px;height:48px;padding:0;border-radius:12px}
 html body .page .topline .brand{padding:0 10px}.topline .mobile-brand-name{font-size:clamp(14px,4.3vw,19px)}
 .map-guide{padding:16px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:18px}
 .map-guide h2{font-size:22px}.map-guide-progress{margin:10px 0 14px}.map-guide-progress button{min-height:44px;height:44px;flex:1}
 .rank-marker .city-rank-tag{display:inline-flex!important;align-items:center;gap:5px;width:max-content;max-width:76px;padding:4px 7px!important;height:28px;box-sizing:border-box;transform:translate(-50%,-50%);background:#102433ef!important;color:#fff2ca!important;border:1px solid #bda860!important;border-radius:8px!important;box-shadow:0 2px 5px #0004!important;font-size:11px!important;line-height:18px!important;white-space:nowrap}
 .rank-marker .city-rank-tag>b{display:none!important}.rank-marker .city-rank-tag::before{content:'';width:5px;height:5px;flex:0 0 5px;border-radius:50%;background:#f5d66d}
 .heritage-marker-icon .heritage-marker-symbol{width:30px!important;height:30px!important;box-shadow:0 2px 5px #0004!important}
}
@media(max-height:500px){.map-guide{max-height:calc(100dvh - 24px);padding:12px 18px}.map-guide-content{display:grid;grid-template-columns:56px 1fr;column-gap:14px}#mapGuideIcon{grid-row:1 / 5;width:50px;height:50px;font-size:28px}#mapGuideCount,.map-guide h2,#mapGuideCopy,#mapGuideTips,#mapGuideTry{grid-column:2}#mapGuideCount{margin:0}.map-guide h2{font-size:20px;margin-bottom:6px}#mapGuideCopy{font-size:12px;margin-bottom:8px}#mapGuideTips{font-size:11px;margin-bottom:8px}.map-guide-progress{margin:4px 0 8px}#mapGuideSkip{margin-top:4px}}

@media(max-width:680px),(max-width:960px) and (max-height:500px) and (pointer:coarse){
 .map-guide{
   max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px);
   max-height:calc(var(--mobile-viewport-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
   top:calc(var(--mobile-viewport-top,0px) + env(safe-area-inset-top) + (var(--mobile-viewport-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom))/2);
   bottom:auto;margin-block:0;transform:translateY(-50%);
 }
 #mapGuideIcon{width:44px;height:44px;font-size:27px}
 #mapGuideCount{margin-top:10px}
 .map-guide-progress button{min-width:44px}
}
@media(max-width:360px){.map-guide-progress{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));gap:6px}.map-guide-progress button{width:100%}}
