/* 精简 HUD（一键隐藏 + 缩小）—— 加载在所有样式之后 */
/* 1. 一键隐藏/显示 */
#hud-tog{position:fixed;top:calc(env(safe-area-inset-top,0px) + 112px);right:calc(var(--sar,0px) + 100px);width:44px;height:44px;border-radius:50%;padding:0;z-index:41;border:2px solid #c9a24a;background:radial-gradient(circle at 50% 35%,#6a2a14,#1e0804 72%);color:#ffd878;font:700 15px/1 "Microsoft YaHei",sans-serif;text-shadow:0 1px 2px #000;box-shadow:0 2px 6px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,220,120,.35);touch-action:manipulation}
#hud-tog:active{filter:brightness(1.3)}
body.hud-min #p1-bar,body.hud-min #btn-char,body.hud-min #btn-bag,body.hud-min #btn-skill,body.hud-min #btn-talk,body.hud-min #btn-set,body.hud-min #chat-log,body.hud-min #p0-track,body.hud-min #pt-frame,body.hud-min #p0-topbar{display:none!important}
body.cq-panel-open #hud-tog{display:none}
/* 2. 血蓝球 / 药水栏 -25% */
html body .cq-orb{width:57px;height:57px}
html body .cq-orb .t{font-size:10px}
html body .skill-bar.quickbar{transform:translateX(-50%) scale(.75)!important;transform-origin:50% 100%!important}
/* 技能键 44px（-12%），攻击键由 skill_ring.js 缩到 72 */
html body .sr-btn{width:44px!important;height:44px!important}
html body .sr-btn .ic{transform:scale(.92)}
/* 左列：聊天 1 行 → 任务 1 行紧凑 → 组队小框（贴左） */
html body #chat-log{top:calc(env(safe-area-inset-top,0px) + 122px)!important;height:18px!important;max-height:18px!important;overflow:hidden!important;font-size:10px!important;line-height:18px!important;width:250px!important}
html body #p0-track{top:calc(env(safe-area-inset-top,0px) + 142px)!important;height:28px!important;width:250px!important;min-width:0!important;font-size:10.5px!important}
html body #p0-track.col .tr-b{line-height:26px!important}
html body #p0-track .tr-go{min-height:26px!important;min-width:44px!important;font-size:11px!important}
html body #pt-frame{left:max(12px,calc(var(--sal,0px) + 6px))!important;top:calc(env(safe-area-inset-top,0px) + 173px)!important;flex-direction:row!important;flex-wrap:wrap!important;width:252px;gap:3px!important}
body:has(#p0-tut.on) #pt-frame{top:calc(env(safe-area-inset-top,0px) + 173px)!important}
html body #pt-frame .pt-row{width:82px!important;min-height:20px!important;padding:1px 3px 1px 1px!important;gap:2px!important;box-sizing:border-box}
html body #pt-frame i{width:15px!important;height:15px!important;font-size:9px!important}
html body #pt-frame b{font-size:9.5px!important;max-width:44px!important}
html body #pt-frame span{font-size:9px!important;margin-left:2px!important}
html body #pt-frame u{width:60px!important;height:3px!important}html body #pt-frame u.mp{height:2px!important}
/* 提示：小号、置顶居中（避开角色） */
html body #cq-toast{top:calc(env(safe-area-inset-top,0px) + 6px)!important;left:var(--cq-tx,50%)!important;max-width:var(--cq-tw,260px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px!important;padding:2px 10px!important;border-radius:4px}
html body #p0-banner{top:calc(env(safe-area-inset-top,0px) + 28px)!important;left:var(--cq-tx,50%)!important;max-width:var(--cq-tw,260px);white-space:nowrap;font-size:12.5px!important;padding:2px 12px!important}
html body #pt-frame .pt-row{height:21px!important;overflow:hidden}
html body #pt-frame .pt-row>div{line-height:10px}
html body #pt-frame b,html body #pt-frame span{line-height:10px!important;vertical-align:top}
html body #pt-frame u{margin-top:1px!important}
html body #chat-log{padding:0 6px!important;box-sizing:border-box}
html body #chat-log .log-line{display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px!important;margin:0!important;padding:0!important}
html body #chat-log .log-line:last-child{display:block}
