/* 外場 HUD 新版樣式（2026-11-16）：右下角按鈕、左下角聊天、左上角人物框的文字。類別 u2h- 開頭；位置與大小仍由 js/hud.js layout() 決定。 */

/* ---- 左上角人物框的文字（底圖不變） ---- */
.oh-status .oh-t{font-family:"Bahnschrift","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;font-weight:700;letter-spacing:.02em;text-shadow:-1px -1px 0 #101820,1px -1px 0 #101820,-1px 1px 0 #101820,1px 1px 0 #101820,0 1.5px 0 #101820,0 0 4px rgba(0,0,0,.6)}
.oh-status .oh-name{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;font-weight:900;color:#fff;letter-spacing:.04em}
.oh-status .oh-lv{color:#ffe45c;font-weight:700}
.oh-status .oh-hpl{color:#ffd9d2;font-style:italic;font-weight:700;z-index:1}
.oh-status .oh-hpt,.oh-status .oh-xpt{text-align:center;color:#fff}
.oh-status .oh-xpt{color:#f4ffd0;font-weight:600;letter-spacing:.04em}

/* ---- 右下角按鈕 ---- */
.u2h-keys{display:flex;align-items:flex-start;justify-content:flex-end;gap:var(--kg);pointer-events:none;font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}
.u2h-key{position:relative;flex:none;width:var(--ks);height:var(--ks);padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.u2h-key .ic{position:absolute;left:50%;top:0;width:calc(var(--ks) * .72);height:calc(var(--ks) * .72);transform:translateX(-50%);border-radius:50%;display:grid;place-items:center;color:#fff;border:1.5px solid rgba(10,18,28,.75);box-shadow:inset 0 2px 0 rgba(255,255,255,.6),inset 0 -3px 0 rgba(0,0,0,.18),0 3px 0 rgba(0,0,0,.38),0 4px 8px rgba(0,0,0,.3)}
.u2h-key .ic svg{width:56%;height:56%;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 rgba(0,0,0,.35))}
.u2h-key .lb{position:absolute;left:-6px;right:-6px;bottom:0;text-align:center;font-weight:900;font-size:calc(var(--ks) * .215);line-height:1;letter-spacing:.06em;color:#fff;white-space:nowrap;text-shadow:-1px -1px 0 #1a2430,1px -1px 0 #1a2430,-1px 1px 0 #1a2430,1px 1px 0 #1a2430,0 2px 0 #1a2430}
.u2h-key:hover .ic{filter:brightness(1.1)}
.u2h-key:active .ic{transform:translateX(-50%) translateY(2px);box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 1px 0 rgba(0,0,0,.38)}
.u2h-key .oh-key-badge{right:2px;top:-5px;font-family:"Bahnschrift","Noto Sans TC",sans-serif}
.u2h-tg{position:relative;flex:none;width:var(--tg);height:calc(var(--ks) * .72);padding:0;border-radius:calc(var(--tg) / 2);color:#fff;background:linear-gradient(180deg,#5d7186,#34424f);border:1.5px solid #1a2430;box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 3px 0 rgba(0,0,0,.38);cursor:pointer;pointer-events:auto;touch-action:manipulation;display:grid;place-items:center}
.u2h-tg svg{width:60%;height:60%;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.u2h-keys.shut .u2h-key{display:none}
.u2h-keys.shut .u2h-tg svg{transform:scaleX(-1)}
.u2h-keys.shut .u2h-tg.has::after{content:"";position:absolute;right:-3px;top:-3px;width:10px;height:10px;border-radius:50%;background:#ff5a3c;border:1.5px solid #fff}

/* ---- 左下角聊天 ---- */
.u2h-chat{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif}
.u2h-cline,.u2h-cbox{position:absolute;inset:0;border-radius:12px;background:rgba(12,24,42,.8);border:1.5px solid rgba(255,255,255,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 3px 8px rgba(0,0,0,.3)}
.u2h-chat.open .u2h-cline,.u2h-chat:not(.open) .u2h-cbox{display:none}
.u2h-cline{display:flex;align-items:center;gap:7px;padding:0 9px 0 5px;cursor:pointer;text-align:left;touch-action:manipulation;border-radius:17px}
.u2h-cline .ico{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,#8cc8ff,#2b74d8);border:1.5px solid #123a78;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.6)}
.u2h-cline svg,.u2h-cbox svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.u2h-cline .last{flex:1;min-width:0;font-weight:700;font-size:12.5px;line-height:1.3;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px #000}
.u2h-cline .chev{flex:none;color:#c9d3dd;display:grid}
.u2h-cbox{display:flex;flex-direction:column;overflow:hidden}
.u2h-ctabs{flex:none;display:flex;align-items:center;gap:4px;height:28px;padding:0 5px;border-bottom:1.5px solid rgba(255,255,255,.18)}
.u2h-ctabs button{height:20px;padding:0 9px;border-radius:10px;border:1.5px solid transparent;background:none;color:#aebacc;font-family:inherit;font-weight:700;font-size:11.5px;line-height:1;cursor:pointer;touch-action:manipulation}
.u2h-ctabs button.on{color:#fff;background:linear-gradient(180deg,#ffc94a,#f08c12);border-color:#8a4a00;text-shadow:0 1px 0 #8a4a00}
.u2h-ctabs .x{margin-left:auto;width:24px;padding:0;color:#c9d3dd;display:grid;place-items:center}
.u2h-clines{flex:1;min-height:0;padding:4px 8px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none}
.u2h-clines::-webkit-scrollbar{display:none}
.u2h-clines .msg{font-weight:500;font-size:12px;line-height:17px;color:#fff;text-shadow:0 1px 2px #000;white-space:pre-wrap;word-break:break-all}
.u2h-clines .msg b{font-weight:700}
.u2h-clines .msg.none{color:#8d9ab0;text-align:center;margin-top:8px}
.u2h-chat .k-all b{color:#c9d3dd}
.u2h-chat .k-party,.u2h-chat .last.k-party{color:#ffb3d6}
.u2h-chat .k-whisper,.u2h-chat .last.k-whisper{color:#a8f25e}
.u2h-chat .k-sys,.u2h-chat .last.k-sys{color:#ffe9a8}
.u2h-crow{flex:none;display:flex;align-items:center;gap:4px;height:32px;padding:0 5px;border-top:1.5px solid rgba(255,255,255,.18)}
.u2h-crow .mode{flex:none;height:24px;min-width:44px;padding:0 8px;border-radius:8px;font-family:inherit;font-weight:900;font-size:11.5px;line-height:1;color:#fff;cursor:pointer;touch-action:manipulation;border:1.5px solid #2b343d;background:linear-gradient(180deg,#7a8a9a,#4d5a67);box-shadow:inset 0 1px 0 rgba(255,255,255,.4);text-shadow:0 1px 0 rgba(0,0,0,.5)}
.u2h-crow .mode.m-party{background:linear-gradient(180deg,#ffb3d6,#d8569a);border-color:#7a2552}
.u2h-crow .mode.m-whisper{background:linear-gradient(180deg,#b9ef5a,#6ea800);border-color:#3d6200}
.u2h-crow input{height:24px;min-width:0;padding:0 8px;border-radius:8px;border:1.5px solid rgba(255,255,255,.28);background:rgba(4,10,20,.6);color:#fff;font-family:inherit;font-weight:500;font-size:12px;outline:0}
.u2h-crow input:focus{border-color:#ffe45c}
.u2h-crow input::placeholder{color:#8d9ab0}
.u2h-crow .to{flex:none;width:76px}
.u2h-crow .to[hidden]{display:none}
.u2h-crow .tx{flex:1}
.u2h-crow .send{flex:none;width:28px;height:24px;padding:0;border-radius:8px;color:#fff;cursor:pointer;display:grid;place-items:center;background:linear-gradient(180deg,#d4f03a,#7fb000);border:1.5px solid #4a7400;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.7)}

/* ---- 轉職／選職業：卡片不變，上面的標題與下面的按鈕換成新版 ---- */
.jw-win .jw-title{align-self:center;min-width:0;height:36px;padding:0 40px;background:linear-gradient(180deg,#ffc94a,#f39a16 60%,#de7d06);clip-path:polygon(0 0,100% 0,calc(100% - 13px) 50%,100% 100%,0 100%,13px 50%);filter:drop-shadow(0 3px 0 rgba(0,0,0,.3));color:#fff;font:900 18px "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;letter-spacing:.3em;text-indent:.3em;text-shadow:-1px -1px 0 #8a4a00,1px -1px 0 #8a4a00,-1px 1px 0 #8a4a00,1px 1px 0 #8a4a00,0 2px 0 #8a4a00}
.jw-win .jw-sub{align-self:center;padding:3px 14px;border-radius:12px;background:rgba(12,24,42,.72);border:1.5px solid rgba(255,255,255,.22);color:#dfe7ef;font:500 12px "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;text-shadow:none}
.jw-win > .en-btn{align-self:center;min-width:150px;height:38px;border-radius:10px;color:#fff;font:900 15px "Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;letter-spacing:.3em;text-indent:.3em;background:linear-gradient(180deg,#b97a9c,#8b4f72);border:1.5px solid #4c2640;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 3px 0 #3a1c31;text-shadow:0 1px 0 rgba(0,0,0,.45);cursor:pointer}
@media (max-height:520px){.jw-win .jw-title{height:28px;font-size:14px;padding:0 30px}.jw-win .jw-sub{font-size:10.5px;padding:2px 10px}.jw-win > .en-btn{height:30px;font-size:13px;min-width:120px}}
