/* Qihe exploration HUD: thin ink panels leave the center and dialogue stage clear. */
body:has(#hud.qh-hud)>.hint,#qihe-resources,#qihe-journal{display:none!important}
#hud.qh-hud{position:absolute;inset:0;pointer-events:none;color:#f2e5c9;font-family:var(--serif);text-shadow:0 1px 3px #000}
.qh-hud button{pointer-events:auto;color:inherit;font:inherit;cursor:pointer;background:none;border:0}
.qh-hud button:focus-visible{outline:2px solid #efce83;outline-offset:4px}
.qh-hud .qh-status{position:absolute;left:2%;top:3%;display:flex;align-items:center;gap:12px;text-align:left;padding:0;background:linear-gradient(90deg,#171d1bed,transparent)}
.qh-face{width:64px;height:75px;overflow:hidden;display:block;border:1px solid #c0ac78;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#c3c0a2}
.qh-face img{width:100%;height:180%;object-fit:cover;object-position:top}
.qh-vitals{width:190px;display:grid;gap:4px;padding-right:15px}
.qh-vitals strong{display:flex;justify-content:space-between;align-items:center;font-size:18px}.qh-vitals small{font-size:10px;color:#cabb98;font-weight:normal}
.qh-meter{height:15px;background:#141a18d9;position:relative;border-bottom:1px solid #ae9760;display:block;overflow:hidden;transform:skewX(-12deg)}
.qh-meter i{height:100%;display:block;background:linear-gradient(90deg,#833930,#b77c59)}.qh-meter.mp i{background:linear-gradient(90deg,#2c6269,#7da1a4)}.qh-meter>span{position:absolute;inset:0;text-align:center;font:10px/15px sans-serif;transform:skewX(12deg)}
.qh-nav{position:absolute;right:2%;top:3%;display:flex;gap:12px;background:linear-gradient(90deg,transparent,#18201dd9);padding:0 12px 6px 30px}
.qh-nav button{display:grid;justify-items:center;position:relative;gap:2px;min-width:42px;padding:2px;font-size:13px}.qh-nav svg{width:32px;height:32px;fill:none;stroke:#e7d7ae;stroke-width:1.35;filter:drop-shadow(0 2px 2px #000)}.qh-nav button:hover svg{stroke:#fff6d9;transform:translateY(-2px)}
.qh-nav kbd{position:absolute;right:-5px;top:0;font:10px sans-serif;opacity:.8}.qh-location{position:absolute;right:3%;top:17%;font-size:16px;letter-spacing:.12em}
.qh-hud .qh-objective{position:absolute;left:2.5%;top:22%;width:230px;text-align:left;padding:8px 14px;border-left:2px solid #bea36a;background:linear-gradient(90deg,#141d19bf,#141d1900)}.qh-objective>span{font-size:12px;color:#d3bd88;display:block;margin-bottom:6px}.qh-objective kbd{float:right;font:11px sans-serif}.qh-objective strong{font-size:14px;font-weight:normal;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.qh-controls{position:absolute;left:2.5%;bottom:3%;font-size:11px;color:#e5d8b9;background:#121b167a;padding:4px 9px;letter-spacing:.08em}.qh-controls i{padding:0 5px}
#game:has(#dlg:not([hidden])) .qh-hud .qh-objective,#game:has(#dlg:not([hidden])) .qh-controls{display:none}#game:has(#dlg:not([hidden])) .qh-hud button{pointer-events:none;opacity:.55}#game:has(#panel:not([hidden])) #hud.qh-hud{visibility:hidden}
@media(max-width:1000px){.qh-face{width:48px;height:56px}.qh-vitals{width:150px}.qh-vitals strong{font-size:15px}.qh-vitals small{font-size:8px}.qh-nav{gap:7px}.qh-nav svg{width:24px;height:24px}.qh-nav button{font-size:11px;min-width:32px}.qh-hud .qh-objective{width:185px;top:24%}.qh-objective strong{font-size:12px}.qh-location{font-size:12px}}
/* Suppress legacy button chrome in the new exploration layer. */
#hud.qh-hud button{box-shadow:none;border-radius:0}#hud.qh-hud button:hover:not(:disabled){background-color:transparent;border-color:#bda267;color:#fff1c7;box-shadow:none}
#hud.qh-hud .qh-status:hover:not(:disabled){background:linear-gradient(90deg,#171d1bed,transparent)}#hud.qh-hud .qh-objective:hover:not(:disabled){background:linear-gradient(90deg,#141d19df,transparent)}
#game:has(#hud.qh-hud) #sndbtn{display:none}#game:has(#hud.qh-hud) #npc-arts-button{left:auto;right:2.5%;bottom:3%;font-size:12px;padding:5px 10px;box-shadow:none;border-color:#9d8e64;background:#17201cbb}
/* Exploration keeps lightweight floating HUD; painted icons may be shared,
   but Jianghu paper panels and border-image skins are exclusive to #panel.qj. */
#hud.qh-hud .qh-painted-icon{display:block;width:42px;height:42px;background:url('../assets/ui/jianghu-v5/icons-atlas.png') 0 0/435.42% 435.42% no-repeat;filter:drop-shadow(0 2px 2px #0009)}
#hud.qh-hud .qh-nav button:hover .qh-painted-icon{filter:drop-shadow(0 0 5px #edc66b);transform:translateY(-1px)}
@media(max-width:1000px){#hud.qh-hud .qh-painted-icon{width:34px;height:34px}}
@media(max-width:760px){#hud.qh-hud .qh-painted-icon{width:30px;height:30px}#hud.qh-hud .qh-nav{gap:4px;right:1%;top:2%;padding:3px 4px 5px}#hud.qh-hud .qh-nav button{min-width:29px;font-size:9px}#hud.qh-hud .qh-status{left:1%;top:2%;gap:7px}.qh-vitals{width:118px}.qh-face{width:38px;height:45px}#hud.qh-hud .qh-objective{top:26%;width:175px}}

/* 左侧任务追踪列表：当前行程（主线）+ 已追踪任务；外层定位，内部条目顺排 */
#hud.qh-hud .qh-tracker{position:absolute;left:2.5%;top:24%;width:200px;display:flex;flex-direction:column;gap:4px}
#hud.qh-hud .qh-tracker .qh-objective{position:static;width:auto}
#hud.qh-hud .qh-track,#hud.qh-hud .qh-track-more{display:block;box-sizing:border-box;width:100%;text-align:left;padding:4px 9px;border:0;border-left:2px solid #bea36a80;background:linear-gradient(90deg,#15201cd9,#15201c66);color:inherit;cursor:pointer}
#hud.qh-hud .qh-track strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:11px/1.45 var(--serif);font-weight:normal}
#hud.qh-hud .qh-track strong::before{content:"◆ ";color:#bea36a;font-size:8px;vertical-align:1px}
#hud.qh-hud .qh-track small{display:block;font:9px/1.4 var(--serif);color:#cabb96;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hud.qh-hud .qh-track-more{font:9px/1.4 var(--serif);color:#cabb96}#hud.qh-hud .qh-track-more kbd{font:9px var(--sans)}
#hud.qh-hud .qh-track:hover,#hud.qh-hud .qh-track-more:hover{background:linear-gradient(90deg,#141d19df,transparent)}
#game:has(#dlg:not([hidden])) .qh-hud .qh-tracker{display:none}
@media(max-width:760px){#hud.qh-hud .qh-tracker{top:26%;width:175px}}
