.native-battle .battle-top,.native-battle .battle-keys,.native-battle .battle-side,.native-battle #waveMessage{display:none}
.native-battle .battle-bottom{background:none}
.native-battle-hud{position:absolute;inset:0;pointer-events:none;color:#edf5fa;font:14px/1.4 "Microsoft YaHei","Segoe UI",sans-serif;text-shadow:0 1px 2px #000;z-index:5}
.native-battle-hud *{box-sizing:border-box}.native-battle-hud [hidden]{display:none!important}.native-battle-hud img{position:absolute;user-select:none}.native-battle-hud svg{display:block;width:18px;height:18px;flex-shrink:0}
.native-battle-hud button{position:absolute;pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:3px;background:linear-gradient(#2d4555,#142735);color:#dbeaf2;border:1px solid #7892a5;box-shadow:inset 0 1px #b4d0df22;border-radius:3px;font:13px/20px "Microsoft YaHei",sans-serif;touch-action:manipulation}
.native-battle-hud button{white-space:nowrap}.native-battle-hud button:hover{background:linear-gradient(#3c5b70,#203c4e);border-color:#c0e8f7}.native-battle-hud button:focus-visible{outline:2px solid #b7f6ff;outline-offset:2px}
.native-player{position:absolute;left:12px;top:6px;width:268px;height:80px;background:linear-gradient(115deg,#263e4d66,#0c1c294d 70%);border:1px solid #859cac66;border-left:3px solid #c2d0d980;box-shadow:0 3px 9px #0002;clip-path:polygon(8px 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%,0 8px)}
.native-player-frame{display:none}.native-player-portrait{left:8px;top:8px;width:55px;height:62px;object-fit:cover;object-position:top;border:1px solid #a3baca;border-radius:3px;background:#203746;opacity:1}.native-player-name{position:absolute;left:73px;top:10px;width:179px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:22px}
.native-player-hp{position:absolute;left:73px;top:36px;width:181px;height:22px;background:#061019;border:1px solid #749481;overflow:hidden}.native-hp-fill{height:100%;background:linear-gradient(#9ce8a6,#40a363);transition:width .1s}.native-hp-value{position:absolute;inset:0;text-align:center;font:13px/20px Consolas,"Microsoft YaHei",sans-serif;color:#fff;text-shadow:0 1px 2px #001705}.native-player::after{content:"";position:absolute;left:73px;right:12px;bottom:11px;height:3px;background:linear-gradient(90deg,#91dae766,#31596540)}
.native-player-buffs{position:absolute;left:12px;top:94px;width:298px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;pointer-events:auto}
.native-buff{--buff-color:#8bdfff;min-width:0;height:40px;display:flex;gap:5px;align-items:center;padding:3px;border:1px solid #6b879a;border-left:2px solid var(--buff-color);border-radius:3px;background:linear-gradient(120deg,#1b344466,#0c1c284d);box-shadow:0 2px 5px #0002}.native-buff[data-tone="repair"]{--buff-color:#9df0a6}.native-buff[data-tone="haste"]{--buff-color:#ffdb87}.native-buff[data-tone="debuff"]{--buff-color:#ff9e91}
.native-buff-icon{display:grid;place-items:center;flex:0 0 29px;height:31px;background:#223b4b66;border-radius:2px;color:var(--buff-color)}.native-buff-icon svg{width:25px;height:25px;stroke-width:2;filter:drop-shadow(0 0 2px #83dcff55)}.native-buff-info{min-width:0;line-height:16px}.native-buff-name{max-width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--buff-color);font-size:12px}.native-buff-time{font:13px/16px Consolas,"Microsoft YaHei",sans-serif;color:#f4f9fd}
.native-ranking{position:absolute;left:13px;top:91px;width:210px;padding:4px 8px 5px;border-left:1px solid #86a4b866;background:linear-gradient(90deg,#07142159,#07142126,transparent);font-size:13px;line-height:22px}.native-rank-title{color:#cbdde8;font-size:13px}.native-rank-self{font-size:12px;color:#c5d7e2;white-space:nowrap}.native-ranking ol{list-style:none;margin:3px 0 0;padding:0}.native-ranking li{display:grid;grid-template-columns:20px minmax(0,1fr) 28px;gap:7px;min-height:25px;font-size:13px}.native-ranking:not(.is-expanded) li:nth-child(n+4){display:none}.native-rank-order{color:#a7bdcc;text-align:center}.native-rank-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.native-rank-points{text-align:right}.native-ranking li:first-child{color:#9be4ef}.native-battle-hud .native-rank-toggle{right:3px;top:2px;width:28px;height:26px;background:transparent;border-color:transparent}
.native-score{position:absolute;left:50%;top:5px;transform:translateX(-50%);width:240px;height:49px;background:linear-gradient(#2a435166,#0b1c294d);border-top:1px solid #b0c4d166;border-bottom:1px solid #526c7e66;clip-path:polygon(0 0,100% 0,calc(100% - 9px) 100%,9px 100%)}.native-score>img{display:none}.native-own-score,.native-enemy-score{position:absolute;top:20px;width:71px;text-align:center;font:24px/26px Consolas,sans-serif}.native-own-score{left:5px;color:#96e2ec}.native-enemy-score{right:5px;color:#ff9e94}.native-hunt-own,.native-hunt-leader{position:absolute;top:3px;width:76px;text-align:center;font-size:12px;line-height:17px;white-space:nowrap;color:#b1d5e4}.native-hunt-own{left:2px}.native-hunt-leader{right:2px;color:#edc1b9}.native-countdown{position:absolute;left:80px;top:10px;width:80px;text-align:center;font:24px/30px Consolas,"Microsoft YaHei",sans-serif;color:#f0f8fc}
.native-radar{position:absolute;right:10px;top:4px;width:156px;height:202px}.native-battle-hud .native-map-open{left:0;top:0;width:67px;height:32px}.native-battle-hud .native-map-toggle{left:71px;top:0;width:28px;height:32px;color:#b6edf6;border-color:#91b5c8}.native-battle-hud .native-exit{right:0;top:0;width:53px;height:32px;font-size:12px;gap:2px;color:#ffd5cd;border-color:#9c776b}.native-exit svg{width:14px;height:14px}
.native-minimap{position:absolute;left:0;top:37px;width:156px;height:163px;border:1px solid #7a93a5;background:linear-gradient(115deg,#263e4d66,#0c1c294d 70%);box-shadow:0 2px 8px #0005;border-radius:3px}.native-map-frame{display:none}.native-battle-hud .native-map-clip{left:3px;top:3px;padding:0;width:148px;height:123px;overflow:hidden;border:0;border-radius:0}.native-map-clip canvas{width:148px;height:123px}.native-map-description{position:absolute;left:5px;top:134px;width:111px;font-size:12px;line-height:20px;color:#d1e0e9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.native-battle-hud .native-sound{right:3px;bottom:3px;width:29px;height:28px;padding:4px;background:#1c3544;border-color:#5c7b8e}.native-radar.is-collapsed{height:32px}
.native-battle>.city-chat{z-index:7}
.native-battle .native-minimap .native-map-description{height:20px;white-space:nowrap}
.native-map-dialog{position:absolute;inset:0;display:grid;place-items:center;pointer-events:auto;background:#020a13b8;z-index:10}.native-map-panel{position:relative;width:480px;padding:16px;background:linear-gradient(135deg,#243d4d,#0b1c29);border:1px solid #91aaba;box-shadow:0 10px 35px #0009}.native-map-title{font-size:18px;margin:0 80px 14px 0}.native-battle-hud .native-map-close{right:12px;top:11px;min-width:67px;height:31px}.native-map-panel canvas{display:block;width:446px;height:auto;border:1px solid #6f91a5;background:#0b202b}.native-map-legend{font-size:12px;color:#a8e4ef;margin-top:9px}.native-map-help{font-size:13px;line-height:21px;white-space:pre-line;color:#c6dce7;margin-top:8px}

/* Keep character details and match information solid over translucent panels. */
.native-player-name,.native-player-hp,.native-hp-fill,.native-hp-value,.native-hunt-own,.native-hunt-leader,.native-countdown,.native-own-score,.native-enemy-score{opacity:1}

/* Duel panel backgrounds only: map pixels and text keep full opacity. */
.native-battle-hud.is-duel .native-radar,.native-battle-hud.is-duel .native-minimap,.native-battle-hud.is-duel .native-map-panel{background:linear-gradient(115deg,#263e4d66,#0c1c294d 70%)}
.native-battle-hud.is-duel .native-map-dialog{background:transparent}
.native-battle-hud.is-duel .native-map-panel canvas{background:transparent}

/* The radar hit target must not add an opaque button behind the map. */
.native-battle-hud .native-map-clip,.native-battle-hud .native-map-clip:hover{background:transparent;box-shadow:none}

/* Story and network use the same bounded radar surface. */
.native-minimap{overflow:hidden}
.native-battle-hud .native-map-clip canvas{display:block;flex:none;max-width:100%;max-height:100%}
