/* ============================================================
 * PSO 竞技场 样式 (ow.php / js/ow.js)
 *   视觉语言 = 站点图鉴那一套 (白面板 pg_common.css + 主色 #2f6fa8), 3D 舞台保持暗色;
 *   HUD 全部 CSS 自绘 / SVG 图标, 不用 emoji (规格 §7)。
 * ============================================================ */

/* 与站点容器同宽 (pg_common.css 的 1180) —— 之前写 1280 会让竞技场比全站页头宽 100px,
   居中了也看着"没对齐"; 舞台宽度让位给全站一致性 (要更大就用全屏)。 */
.ow-wrapper { max-width: 1180px; }
/* 标题图标: 自绘 SVG 准星 (原来那个 ⚔ 在很多机器上是豆腐块 ✕) */
.ow-mark { width: 22px; height: 22px; color: #2f6fa8; vertical-align: -2px; margin-right: 8px; }
.ow-side-tips .ow-key-tip { font-size: 11.5px; color: #9fb6d4; line-height: 1.9; }
.ow-side-tips .ow-key-tip b { color: #fff; font-weight: 600; margin-right: 2px; }
.ow-stage {
    position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 380px;
    background: #0d1631; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 14px rgba(13, 22, 49, .18);
    font-size: 13px; color: #eaf2fb; -webkit-user-select: none; user-select: none;
}
.ow-stage canvas#ow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ow-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: #0d1631; color: #9fb6d4; letter-spacing: 2px; z-index: 60;
}

/* ---------- 通用: 覆盖层 / 按钮 ---------- */
.ow-overlay {
    position: absolute; inset: 0; z-index: 40; display: none;
    background: rgba(9, 15, 33, .82); backdrop-filter: blur(2px);
}
.ow-overlay.on { display: flex; flex-direction: column; }
.ow-btn {
    font: inherit; font-size: 13px; padding: 8px 16px; border-radius: 8px; cursor: pointer;
    border: 1px solid #33507a; background: rgba(28, 43, 62, .85); color: #dbe7f5; transition: .15s;
}
.ow-btn:hover { border-color: #7fb3d5; color: #fff; }
.ow-btn-main { background: #2f6fa8; border-color: #2f6fa8; color: #fff; font-weight: bold; }
.ow-btn-main:hover { background: #3c82c0; }
.ow-btn-ghost { background: transparent; }
.ow-btn[disabled] { opacity: .5; cursor: default; }
.ow-lobby-msg { color: #ffd479; font-size: 12px; margin-left: 10px; }
.ow-x {
    border: none; background: transparent; color: #9fb6d4; font-size: 16px; cursor: pointer; line-height: 1;
}
.ow-x:hover { color: #fff; }

/* ---------- 大厅 / 选英雄 ---------- */
.ow-lobby { padding: 16px 18px; gap: 12px; }
.ow-lobby-hd { display: flex; align-items: baseline; gap: 12px; }
.ow-lobby-title { font-size: 18px; font-weight: bold; letter-spacing: 3px; color: #fff; }
.ow-lobby-sub { color: #8fa6c4; font-size: 12px; }
.ow-lobby-body { flex: 1; display: flex; gap: 14px; min-height: 0; }
.ow-side { width: 250px; flex: none; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.ow-side-card { background: rgba(20, 32, 56, .78); border: 1px solid #22355a; border-radius: 10px; padding: 10px 12px; }
.ow-side-h { font-size: 12px; color: #8fa6c4; letter-spacing: 2px; margin-bottom: 8px; }
.ow-me-name { font-size: 15px; font-weight: bold; color: #fff; }
.ow-me-sub { font-size: 12px; color: #9fb6d4; margin-top: 3px; line-height: 1.7; }
.ow-me-gear { font-size: 11px; color: #7f9cbf; margin-top: 4px; line-height: 1.6; word-break: break-all; }
.ow-team-list { display: flex; flex-direction: column; gap: 3px; }
.ow-trow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #dbe7f5; white-space: nowrap; min-width: 0; }
.ow-trow.hd { margin-top: 5px; }
.ow-trow i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ow-trow.a i { background: #3fa9f5; }
.ow-trow.b i { background: #e05a4a; }
.ow-trow .nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ow-trow em { font-style: normal; color: #7f9cbf; font-size: 11px; margin-left: auto; flex: none; }
.ow-hint { font-size: 11px; color: #8fa6c4; margin-top: 8px; line-height: 1.7; }
.ow-side-keys .ow-key { display: flex; gap: 8px; font-size: 11px; color: #b9cbe2; line-height: 1.9; }
.ow-side-keys .ow-key b { color: #fff; width: 74px; flex: none; font-weight: 600; }
.ow-side-keys .ow-key span { color: #8fa6c4; }
.ow-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ow-pick-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ow-pick-hd span { font-size: 13px; color: #fff; letter-spacing: 1px; }
.ow-pick-hd em { font-style: normal; color: #8fa6c4; font-size: 11px; margin-left: 8px; }
.ow-pick-timer { color: #ffd479; font-size: 13px; }
.ow-hero-list { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 9px; align-content: start; }
.ow-hero {
    position: relative; background: rgba(20, 32, 56, .8); border: 1px solid #22355a; border-radius: 10px;
    padding: 9px 10px; cursor: pointer; transition: .15s; overflow: hidden;
}
.ow-hero:hover { border-color: #4f7fb5; transform: translateY(-1px); }
.ow-hero.on { border-color: #ffd479; box-shadow: 0 0 0 1px #ffd479 inset; }
.ow-hero-top { display: flex; align-items: center; gap: 6px; }
.ow-hero-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ow-hero-en { font-size: 13px; font-weight: bold; color: #fff; }
.ow-hero-cn { font-size: 11px; color: #9fb6d4; }
.ow-hero-desc { font-size: 11px; color: #8fa6c4; margin-top: 5px; min-height: 26px; line-height: 1.6; }
.ow-hero-stats { display: flex; gap: 8px; margin-top: 5px; font-size: 11px; color: #b9cbe2; }
.ow-hero-stats b { color: #fff; font-weight: 600; }
.ow-hero-sk { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.ow-hero-sk span { font-size: 10px; color: #8fa6c4; display: flex; gap: 5px; }
.ow-hero-sk i { font-style: normal; color: #ffd479; width: 42px; flex: none; }
.ow-hero-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; color: #ffd479; }
.ow-lobby-ft { display: flex; align-items: center; gap: 10px; }

/* ---------- HUD ---------- */
.ow-hud { position: absolute; inset: 0; pointer-events: none; z-index: 20; opacity: 0; transition: opacity .2s; }
.ow-hud.on { opacity: 1; }
.ow-hud > * { pointer-events: none; }
.ow-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; }
.ow-team {
    display: flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 8px;
    background: rgba(9, 15, 33, .72); border: 1px solid #22355a;
}
.ow-team b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ow-team span { font-size: 11px; color: #9fb6d4; }
.ow-team-a b { color: #6cc0ff; }
.ow-team-b b { color: #ff8875; }
.ow-team.lead { border-color: #ffd479; }
.ow-top-mid { width: 260px; text-align: center; }
.ow-timer { font-size: 20px; font-weight: bold; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.ow-timer.ot { color: #ffd479; }
.ow-bar {
    position: relative; height: 9px; border-radius: 5px; background: #17223d; overflow: hidden;
    border: 1px solid #22355a; margin-top: 3px;
}
.ow-bar i { position: absolute; top: 0; bottom: 0; width: 0%; transition: width .12s linear; }
.ow-bar-a { left: 0; background: linear-gradient(90deg, #2c6ea8, #6cc0ff); }
.ow-bar-b { right: 0; background: linear-gradient(270deg, #a8452c, #ff8875); }
.ow-bar em { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #4a6386; }
.ow-top-state { font-size: 11px; color: #9fb6d4; margin-top: 2px; letter-spacing: 1px; height: 14px; }

.ow-minimap {
    position: absolute; top: 10px; left: 10px; width: 190px; height: 150px;
    background: rgba(9, 15, 33, .74); border: 1px solid #22355a; border-radius: 8px;
}
.ow-feed { position: absolute; top: 12px; right: 12px; width: 250px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ow-feed div {
    background: rgba(9, 15, 33, .78); border-left: 3px solid #6cc0ff; border-radius: 5px;
    padding: 4px 9px; font-size: 12px; color: #eaf2fb; animation: owfadein .2s;
}
.ow-feed div.b { border-left-color: #ff8875; }
.ow-feed div.me { border-left-color: #ffd479; }
.ow-feed b { color: #fff; }
@keyframes owfadein { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* 准星: 十字 + 中心点; lock = 准星轴线上有射程内敌人 (变红), hit = 刚刚命中 (闪白点) */
.ow-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.ow-cross::before, .ow-cross::after { content: ""; position: absolute; background: rgba(234, 242, 251, .82); transition: background .12s; box-shadow: 0 0 3px rgba(0, 0, 0, .6); }
.ow-cross::before { left: 10px; top: 0; width: 2px; height: 22px; }
.ow-cross::after { top: 10px; left: 0; height: 2px; width: 22px; }
.ow-cross i { position: absolute; left: 9px; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: rgba(234, 242, 251, .9); transition: all .12s; }
.ow-cross.lock::before, .ow-cross.lock::after { background: #ff8875; }
.ow-cross.lock i { background: #ff5540; box-shadow: 0 0 8px rgba(255, 85, 64, .9); transform: scale(1.5); }
.ow-cross.hit::before, .ow-cross.hit::after { background: #ffffff; }
.ow-cross.hit i { background: #ffd479; transform: scale(2.1); box-shadow: 0 0 10px rgba(255, 212, 121, .95); }
.ow-cross.miss::before, .ow-cross.miss::after { opacity: .5; }
/* 超射程提示: 只在按住开火且准星压着够不着的敌人时出现 (平时不挡视线) */
.ow-aimhint {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, 26px);
    font-size: 12px; letter-spacing: 1px; color: #ffd479; text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
    opacity: 0; transition: opacity .12s; white-space: nowrap;
}
.ow-aimhint.on { opacity: .95; }
/* 挨打红边闪屏 (打击感) */
.ow-hurtfx {
    position: absolute; inset: 0; opacity: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(255, 60, 40, 0) 42%, rgba(255, 60, 40, .42) 100%);
}
.ow-hurtfx.on { animation: owhurt .24s ease-out; }
@keyframes owhurt { 0% { opacity: 1; } 100% { opacity: 0; } }
.ow-center { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-size: 44px; font-weight: bold; color: #ffd479; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); letter-spacing: 6px; }
.ow-center small { display: block; font-size: 14px; color: #dbe7f5; letter-spacing: 3px; margin-top: 4px; }
.ow-dmg { position: absolute; inset: 0; overflow: hidden; }
.ow-dmg i {
    position: absolute; font-style: normal; font-weight: bold; font-size: 15px; color: #ffd479;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8); animation: owfloat .9s ease-out forwards;
}
.ow-dmg i.hurt { color: #ff8875; font-size: 17px; }
.ow-dmg i.out { color: #ffe7a8; font-size: 20px; text-shadow: 0 1px 6px rgba(0, 0, 0, .9), 0 0 12px rgba(255, 212, 121, .5); }
@keyframes owfloat { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -40px); } }

.ow-vitals { position: absolute; left: 12px; bottom: 12px; width: 330px; }
.ow-name { font-size: 12px; color: #dbe7f5; margin-bottom: 4px; letter-spacing: 1px; }
.ow-hp { position: relative; height: 20px; border-radius: 4px; background: rgba(9, 15, 33, .8); border: 1px solid #22355a; overflow: hidden; }
.ow-hp i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #3f8f4f, #6fd07f); transition: width .12s linear; }
.ow-hp i.ow-shield { background: linear-gradient(90deg, #4fa8d8, #9fd8ff); opacity: .9; }
.ow-hp em { position: absolute; right: 8px; top: 2px; font-style: normal; font-size: 12px; font-weight: bold; color: #fff; text-shadow: 0 1px 3px #000; }
.ow-skills { display: flex; gap: 8px; margin-top: 8px; }
.ow-skill {
    position: relative; width: 54px; height: 54px; border-radius: 8px; background: rgba(9, 15, 33, .8);
    border: 1px solid #22355a; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; overflow: hidden;
}
.ow-skill b { font-size: 10px; color: #ffd479; letter-spacing: 1px; }
.ow-skill span { font-size: 11px; color: #dbe7f5; text-align: center; line-height: 1.2; padding: 0 2px; }
.ow-skill i.cd { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(9, 15, 33, .82); height: 0%; }
.ow-skill i.cd em { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-style: normal; font-size: 13px; font-weight: bold; color: #fff; }
.ow-skill.ready { border-color: #6cc0ff; }
.ow-skill.ult { width: 62px; height: 62px; }
.ow-skill.ult.ready { border-color: #ffd479; box-shadow: 0 0 10px rgba(255, 212, 121, .5); }
.ow-skill.ult.ready b { color: #fff; }
.ow-weapon { position: absolute; right: 12px; bottom: 12px; min-width: 190px; text-align: right; }
.ow-weapon .wn { font-size: 12px; color: #dbe7f5; }
.ow-weapon .wa { font-size: 22px; font-weight: bold; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.ow-weapon .wa small { font-size: 12px; color: #9fb6d4; }
.ow-weapon .wh { height: 6px; border-radius: 3px; background: rgba(9, 15, 33, .8); border: 1px solid #22355a; margin-top: 5px; overflow: hidden; }
.ow-weapon .wh i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #d8a03f, #ff8875); }
.ow-weapon.over .wa { color: #ff8875; }
.ow-dbg { position: absolute; left: 12px; top: 168px; font-size: 11px; color: #7f9cbf; line-height: 1.6; }
.ow-banner { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); font-size: 26px; font-weight: bold; letter-spacing: 8px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); opacity: 0; transition: opacity .25s; }
.ow-banner.on { opacity: 1; }

/* ---------- 结算 / 记分板 ---------- */
.ow-result { padding: 24px; align-items: center; justify-content: center; }
.ow-result-hd { font-size: 26px; font-weight: bold; letter-spacing: 6px; margin-bottom: 14px; color: #ffd479; }
.ow-result-hd.lose { color: #ff8875; }
.ow-result-hd.draw { color: #b9cbe2; }
.ow-result-body { width: 100%; max-width: 760px; }
.ow-result-ft { margin-top: 16px; display: flex; gap: 10px; }
.ow-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ow-table th, .ow-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ow-table th { color: #8fa6c4; font-weight: normal; font-size: 11px; letter-spacing: 1px; }
.ow-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ow-table tr.me td { background: rgba(255, 212, 121, .1); color: #fff; }
.ow-table tr.dim td { opacity: .55; }
.ow-sheet { align-items: center; justify-content: center; }
.ow-sheet-box { width: 100%; max-width: 720px; max-height: 88%; background: rgba(13, 22, 49, .97); border: 1px solid #22355a; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ow-sheet-hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #22355a; color: #fff; }
.ow-sheet-body { padding: 12px 14px; overflow: auto; }

/* ---------- 规则卡 ---------- */
.ow-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.ow-rule { font-size: 12px; color: #5b6b7c; line-height: 1.9; }
.ow-rule b { color: #2f6fa8; margin-right: 6px; }

/* ---------- 小屏 ---------- */
@media (max-width: 1100px) {
    .ow-hero-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ow-side { width: 230px; }
}
@media (max-width: 860px) {
    .ow-stage { aspect-ratio: 4 / 3; min-height: 420px; }
    .ow-lobby-body { flex-direction: column; }
    .ow-side { width: auto; flex-direction: row; flex-wrap: wrap; }
    .ow-side-card { flex: 1 1 180px; }
    .ow-hero-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ow-top-mid { width: 150px; }
    .ow-minimap { width: 130px; height: 104px; }
    .ow-vitals { width: 220px; }
    .ow-weapon { min-width: 120px; }
    .ow-feed { width: 170px; }
    .ow-rules { grid-template-columns: 1fr; }
}

/* ★ 站点的全局 table 规则会给奇数行铺浅底色 (app.css/style.css 的表格斑马纹),
   而 HUD/结算面板是深色底 ⇒ 奇偶行深浅不一, 奇数行浅底 + 浅字 = 看不见内容。
   这里把行/单元格底色在自己这套表里强制透明 (只作用于 .ow-table, 不碰站点其它表)。 */
.ow-table tr, .ow-table tbody tr:nth-child(odd), .ow-table tbody tr:nth-child(even),
.ow-table tr:hover, .ow-table tbody tr:hover { background: transparent !important; }
.ow-table td { background: transparent !important; color: #dbe7f5; }
.ow-table td.num { color: #fff; }
.ow-table tr.me td { background: rgba(255, 212, 121, .1) !important; color: #fff; }
.ow-table tr.dim td { color: #8fa6c4; }

/* ============================================================
   2026-10-02 追加: 房间列表 / 活动横幅 / HUD 新元素 / 移动端触控
   ============================================================ */

/* ---------- 大厅: 对战房列表 ---------- */
.ow-side-act { float: right; color: #2f8fd0; cursor: pointer; font-size: 11px; }
.ow-side-act:hover { text-decoration: underline; }
.ow-room-list { display: flex; flex-direction: column; gap: 5px; max-height: 168px; overflow: auto; }
.ow-room {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px;
    background: rgba(13, 22, 49, .7); border: 1px solid #22355a; cursor: pointer; font-size: 12px;
}
.ow-room:hover { border-color: #4f7fb5; }
.ow-room.on { border-color: #ffd479; }
.ow-room b { color: #fff; font-weight: 600; }
.ow-room em { font-style: normal; color: #8fa6c4; margin-left: auto; white-space: nowrap; font-size: 11px; }
.ow-room .ow-rb { font-size: 10px; padding: 1px 5px; border-radius: 4px; background: #22355a; color: #b9cbe2; }
.ow-room .ow-rb.play { background: #2f6fa8; color: #fff; }
.ow-room .ow-rb.full { background: #5a2430; color: #ffb3a6; }
.ow-room-empty { font-size: 11px; color: #7f9cbf; padding: 4px 0; }
.ow-room-new { display: flex; gap: 6px; margin-top: 8px; }
.ow-input {
    flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 6px 8px; border-radius: 7px;
    border: 1px solid #22355a; background: rgba(13, 22, 49, .8); color: #dbe7f5;
}
.ow-input:focus { outline: none; border-color: #4f7fb5; }

/* ---------- 活动横幅 ---------- */
.ow-event-chip {
    margin-left: auto; font-size: 12px; padding: 4px 10px; border-radius: 999px;
    background: linear-gradient(90deg, #b8860b, #ffd479); color: #3a2a00; font-weight: bold;
    cursor: pointer; letter-spacing: 1px;
}
.ow-event-chip:hover { filter: brightness(1.08); }

/* ---------- HUD: 圈内人数 / 大提示 / 工具条 ---------- */
.ow-cnt { font-size: 11px; color: #dbe7f5; margin-top: 2px; letter-spacing: 1px; }
.ow-cnt b.a { color: #6cc0ff; }
.ow-cnt b.b { color: #ff8875; }
.ow-big {
    position: absolute; left: 0; right: 0; top: 22%; text-align: center; pointer-events: none;
    font-size: 30px; font-weight: bold; color: #ffd479; letter-spacing: 4px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .75); opacity: 0; transition: opacity .18s;
}
.ow-big.on { opacity: 1; }
.ow-big small { display: block; font-size: 13px; color: #dbe7f5; letter-spacing: 2px; margin-top: 6px; }
/* 工具按钮: 右上 (击杀提示下方) —— 原来在左上 172px 处和调试行 (168px) 重叠成一团 */
.ow-tools { position: absolute; right: 12px; top: 176px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; pointer-events: none; }
.ow-tools > * { pointer-events: auto; }
.ow-tool {
    font: inherit; font-size: 11px; padding: 4px 9px; border-radius: 6px; cursor: pointer;
    background: rgba(9, 15, 33, .8); border: 1px solid #22355a; color: #b9cbe2;
}
.ow-tool:hover { border-color: #7fb3d5; color: #fff; }
.ow-tool.on { border-color: #ffd479; color: #ffd479; }

/* 出生保护 / 复活倒计时 */
.ow-vitals.prot .ow-hp { box-shadow: 0 0 0 2px rgba(255, 212, 121, .75) inset; }
.ow-hp em.ow-dead { color: #b9cbe2; }

/* 连杀播报 */
.ow-feed div.streak { border-left-color: #ffd479; background: rgba(80, 55, 0, .82); }

/* ---------- 移动端触控层 ---------- */
.ow-touch { position: absolute; inset: 0; z-index: 30; display: none; }
.ow-touch.on { display: block; }
.ow-stick {
    position: absolute; left: 18px; bottom: 22px; width: 132px; height: 132px; border-radius: 50%;
    background: rgba(9, 15, 33, .45); border: 2px solid rgba(127, 179, 213, .5); touch-action: none;
}
.ow-stick i {
    position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
    border-radius: 50%; background: rgba(127, 179, 213, .55); border: 2px solid rgba(234, 242, 251, .8);
}
.ow-stick.on i { background: rgba(127, 179, 213, .8); }
.ow-tbtns {
    position: absolute; right: 16px; bottom: 18px; display: grid; gap: 8px;
    grid-template-columns: repeat(2, 62px); align-items: end; touch-action: none;
}
.ow-tbtn {
    font: inherit; font-size: 13px; font-weight: bold; color: #eaf2fb; border-radius: 50%;
    width: 62px; height: 62px; border: 2px solid rgba(127, 179, 213, .6);
    background: rgba(9, 15, 33, .5); touch-action: none;
}
.ow-tbtn:active, .ow-tbtn.on { background: rgba(47, 111, 168, .85); }
.ow-tbtn-fire { grid-column: 1 / span 2; width: 132px; height: 66px; border-radius: 33px; }
.ow-tbtn-ult { border-color: rgba(255, 212, 121, .8); color: #ffd479; }
.ow-tbtn.ready { border-color: #ffd479; box-shadow: 0 0 10px rgba(255, 212, 121, .45); }
.ow-touch .ow-tbtn.ready { color: #fff; }
@media (max-width: 860px) {
    .ow-tool { font-size: 10px; padding: 3px 7px; }
    .ow-big { font-size: 22px; }
    .ow-tools { top: 118px; }
    .ow-touch .ow-tbtns { grid-template-columns: repeat(2, 56px); }
    .ow-touch .ow-tbtn { width: 56px; height: 56px; font-size: 12px; }
    .ow-touch .ow-tbtn-fire { width: 120px; height: 58px; border-radius: 29px; }
    .ow-touch .ow-stick { width: 116px; height: 116px; }
}

/* ============================================================
   2026-10-02 追加: 全屏 / 伪全屏 / 页面完善 (设置面板·英雄筛选·结算条·加载进度·提示条)
   ============================================================ */

/* ---------- 全屏 ---------- */
.ow-stage:fullscreen, .ow-stage:-webkit-full-screen {
    width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; max-height: none;
}
.ow-stage:fullscreen .ow-hud, .ow-stage:-webkit-full-screen .ow-hud { font-size: 15px; }
.ow-stage:fullscreen .ow-vitals, .ow-stage:-webkit-full-screen .ow-vitals { width: 380px; }
.ow-stage:fullscreen .ow-minimap, .ow-stage:-webkit-full-screen .ow-minimap { width: 220px; height: 174px; }
.ow-stage:fullscreen .ow-tools, .ow-stage:-webkit-full-screen .ow-tools { top: 196px; }
/* 不支持元素全屏的浏览器 (iOS Safari): 伪全屏 = 固定铺满 + 藏掉站点导航/页脚 */
body.ow-pseudo-full { overflow: hidden; }
body.ow-pseudo-full .w3_navigation, body.ow-pseudo-full footer, body.ow-pseudo-full .hb-bar { display: none !important; }
body.ow-pseudo-full .ow-stage {
    position: fixed; inset: 0; z-index: 9000; width: 100vw; height: 100vh;
    aspect-ratio: auto; border-radius: 0;
}
body.ow-pseudo-full .ow-tool#ow-tool-full::after { content: " (伪全屏)"; font-size: 9px; opacity: .7; }

/* ---------- 加载进度条 ---------- */
.ow-loading .ow-ld { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ow-loading .ow-ld-bar { width: 260px; height: 6px; border-radius: 3px; background: #17223d; border: 1px solid #22355a; overflow: hidden; }
.ow-loading .ow-ld-bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #2f6fa8, #6cc0ff); transition: width .2s; }
.ow-loading .ow-ld-txt { letter-spacing: 2px; color: #9fb6d4; }
.ow-loading .ow-ld-sub { font-size: 11px; color: #7f9cbf; letter-spacing: 1px; }

/* ---------- 设置面板 ---------- */
.ow-set { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ow-set h4 { margin: 0 0 8px; font-size: 12px; color: #ffd479; letter-spacing: 2px; font-weight: normal; }
.ow-set .ow-set-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b9cbe2; margin-bottom: 6px; }
.ow-set .ow-set-row b { color: #fff; width: 92px; flex: none; font-weight: 600; }
.ow-set .ow-set-row span { color: #8fa6c4; }
.ow-set .ow-set-row input[type=range] { flex: 1; accent-color: #2f6fa8; }
.ow-set .ow-set-seg { display: inline-flex; gap: 4px; background: rgba(9, 15, 33, .7); border-radius: 8px; padding: 3px; }
.ow-set .ow-set-seg button {
    font: inherit; font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
    border: 1px solid transparent; background: transparent; color: #b9cbe2;
}
.ow-set .ow-set-seg button.on { background: #2f6fa8; color: #fff; }
.ow-set .ow-set-note { grid-column: 1 / -1; font-size: 11px; color: #7f9cbf; line-height: 1.8; }

/* ---------- 英雄筛选 ---------- */
.ow-role-seg { display: inline-flex; gap: 4px; background: rgba(9, 15, 33, .6); border-radius: 8px; padding: 3px; margin-left: 10px; }
.ow-role-seg button {
    font: inherit; font-size: 11px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
    border: 1px solid transparent; background: transparent; color: #b9cbe2;
}
.ow-role-seg button.on { background: #2f6fa8; color: #fff; }

/* ---------- 结算: 数据条 ---------- */
.ow-bars { margin-top: 10px; }
.ow-bars-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #dbe7f5; margin-bottom: 5px; }
.ow-bars-row b { width: 110px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-bars-row i { flex: 1; height: 9px; border-radius: 5px; background: rgba(9, 15, 33, .8); overflow: hidden; }
.ow-bars-row i b { display: block; height: 100%; background: linear-gradient(90deg, #2c6ea8, #6cc0ff); }
.ow-bars-row em { font-style: normal; width: 56px; text-align: right; color: #9fb6d4; }
.ow-bars-row.b i b { background: linear-gradient(90deg, #a8452c, #ff8875); }

/* ---------- 提示条 ---------- */
.ow-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 26; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.ow-toast div {
    background: rgba(9, 15, 33, .86); border: 1px solid #33507a; border-radius: 8px;
    padding: 6px 14px; font-size: 12px; color: #eaf2fb; animation: owfadein .18s; letter-spacing: 1px;
}
@media (max-width: 860px) { .ow-set { grid-template-columns: 1fr; } .ow-toast { bottom: 150px; } }
.ow-top-btns { margin-top: 3px; }
.ow-top-btns .ow-tool { font-size: 10px; padding: 2px 8px; }

/* 房间列表里的场地标签 (多场地: 每房一张图) */
.ow-rmap { display: block; font-size: 10px; color: #7f9cbf; margin-top: 2px; }
.ow-room-new select.ow-input { max-width: 120px; }

/* ============ 试炼场 (训练面板 + 入口按钮) ============
   面板只在 mode=range 时出现: 命中次数 / 总伤害 / DPS / 最近命中距离 / 武器射程对照 */
.ow-train { position: absolute; left: 12px; top: 210px; width: 250px; display: none; flex-direction: column; gap: 3px; }
.ow-train.on { display: flex; }
.ow-train .tr-h { font-size: 11px; letter-spacing: 2px; color: #9fb6d4; }
.ow-train .tr-row { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: #dbe7f5;
    background: rgba(9, 15, 33, .72); border: 1px solid #22355a; border-radius: 6px; padding: 3px 8px; }
.ow-train .tr-row b { font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.ow-train .tr-row em { font-style: normal; color: #8fa6c4; font-size: 11px; margin-left: auto; }
.ow-train .tr-note { font-size: 10.5px; color: #7f9cbf; line-height: 1.7; }
/* ★ 退出试炼场: 用户两次"找不到在哪退出" ⇒ 面板里给个又宽又亮的按钮 (顶栏那个字小而找不到) */
.ow-train .tr-exit { margin-top: 5px; width: 100%; height: 34px; cursor: pointer;
    font-size: 13px; font-weight: 700; letter-spacing: 1px; color: #ffe6c2;
    background: linear-gradient(180deg, #6b3410, #4a2409); border: 1px solid #c8823a; border-radius: 7px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.ow-train .tr-exit:hover { background: linear-gradient(180deg, #8a4415, #5d2d0b); border-color: #f0a45c; color: #fff; }
.ow-train .tr-exit:active { transform: translateY(1px); }
/* 试炼场里顶栏按钮换个说法 (JS 会把文案改成「退出试炼场」并加这个类) */
.ow-tool.is-exit { border-color: #c8823a; color: #ffd9a8; }
.ow-btn-train { border-color: #7fb3d5; color: #cfe6f7; }
.ow-btn-train:hover { border-color: #a9d4ec; color: #fff; }
/* 木桩: 脚下的一圈标记 (与玩家血包环区分: 白色虚线感) */
.ow-dummy-ring { position: absolute; }

/* ============ 战斗反馈 (照守望先锋等 FPS 惯例) ============ */
/* ① 准星扩散: 开火时张开、停火收回 (FPS 通用的"散布"提示) */
.ow-cross { transition: transform .1s ease-out; }
.ow-hud.firing .ow-cross { transform: scale(1.45); }
.ow-hud.firing .ow-cross i { transform: scale(1.2); }
/* ② 受击方向指示: 屏幕中心外一圈红色弧, 指向打你的人 (FPS 标准) */
.ow-dir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ow-dir i {
    position: absolute; left: -46px; top: -46px; width: 92px; height: 92px;
    border-radius: 50%; border: 3px solid transparent; border-top-color: rgba(255, 90, 70, .95);
    box-shadow: 0 0 10px rgba(255, 90, 70, .35); animation: owdir 1.1s ease-out forwards;
}
@keyframes owdir {
    0% { opacity: 1; transform: scale(.86); }
    70% { opacity: .85; }
    100% { opacity: 0; transform: scale(1.06); }
}

/* 外观面板 (外观选择: 自己的角色 / 64 位剧情 NPC / NPC 皮肤) */
.ow-look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.ow-look { border: 1px solid #22355a; background: rgba(20, 32, 56, .8); border-radius: 8px; padding: 6px 9px; cursor: pointer; text-align: left; }
.ow-look:hover { border-color: #4f7fb5; }
.ow-look.on { border-color: #ffd479; box-shadow: 0 0 0 1px #ffd479 inset; }
.ow-look b { display: block; font-size: 12px; color: #fff; }
.ow-look span { font-size: 10.5px; color: #8fa6c4; }
.ow-look-h { margin: 10px 0 6px; font-size: 12px; color: #9fb6d4; letter-spacing: 1px; }
.ow-btn-look { border-color: #6fb3a0; color: #cfeae2; }
/* 会心命中: 准星金色 (打头回报) */
.ow-cross.crit::before, .ow-cross.crit::after { background: #ffd479; }
.ow-cross.crit i { background: #ffb300; transform: scale(2.6); box-shadow: 0 0 12px rgba(255, 179, 0, .95); }

/* ★★ 顶部那排按钮 (大厅/换房) 一直点不到: .ow-hud > * 统一 pointer-events:none,
   只有 .ow-tools 里的被放行 —— 实测 elementFromPoint 命中 canvas, 用户报"试炼场无法退出"。
   规则: HUD 里**所有 button** 一律可点 (按钮之外的 HUD 元素继续穿透)。 */
.ow-hud button { pointer-events: auto; }
