/* V4.11 已验收分区，坐标与 20 张切图级稿一比一；PHP 版只换数据来源，不改矩形
   B1.3 只新增「框里画什么」的样式，所有 left/top/width/height 原样保留 */
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#0f2422;color:#F7ECD5;
  font-family:"WenQuanYi Micro Hei","Microsoft YaHei",sans-serif;overflow:hidden}
#stage{position:relative;margin:0 auto;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 25%,#2e5a52 0%,#173C3D 55%,#0d1f1e 100%)}
#stage.p{width:390px;height:844px}
#stage.l{width:844px;height:390px}
#scene{position:absolute;inset:0;background:
  radial-gradient(60% 40% at 50% 60%,rgba(111,191,196,.12),transparent 70%);pointer-events:none}
.panel{position:absolute;background:rgba(18,52,50,.78);border:1px solid #D8B06A;border-radius:12px}
/* 竖屏：V4.9 实测矩形 */
#role{left:10px;top:10px;width:196px;height:67.5px;padding:6px 9px}
#menu{position:absolute;left:90px;top:96px;width:210px;height:34px;display:flex;gap:7px}
#menu .m{width:34px;height:34px;border-radius:50%;background:rgba(18,52,50,.85);
  border:1px solid #D8B06A;display:flex;align-items:center;justify-content:center;font-size:13px}
#map{right:10px;top:10px;width:112px;height:74px;padding:6px 8px;font-size:9px}
#map b{color:#D8B06A;font-size:10px}
#map .f{display:flex;justify-content:space-between;opacity:.92;line-height:1.55}
#tasks{position:absolute;left:10px;top:178px;width:148px;padding:6px;font-size:10px}
#tasks .t{background:rgba(18,52,50,.8);border:1px solid rgba(216,176,106,.5);
  border-radius:8px;padding:4px 6px;margin-bottom:5px}
#stick{left:14px;top:592px;width:86px;height:86px;border-radius:50%;
  background:rgba(111,191,196,.14);border:1px solid rgba(216,176,106,.7);position:absolute}
#stick::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:34px;height:34px;border-radius:50%;background:rgba(216,176,106,.28);
  border:1px solid rgba(216,176,106,.65)}
#fight{right:10px;top:689px;height:89px;display:flex;gap:7px;align-items:flex-end;position:absolute}
#fight .s{width:46px;height:46px;border-radius:50%;background:rgba(18,52,50,.9);
  border:1px solid #D8B06A;display:flex;align-items:center;justify-content:center;
  font-size:9px;text-align:center;line-height:1.1}
#fight .atk{width:64px;height:64px;font-size:12px;background:#3f2b26;border-color:#B9523F}
#med{left:10px;top:780px;width:234px;height:54px;position:absolute;display:flex;gap:6px}
#med .d{width:44px;height:44px;border-radius:10px;background:rgba(18,52,50,.85);
  border:1px solid #D8B06A;display:flex;align-items:center;justify-content:center;
  font-size:9px;text-align:center;line-height:1.15}
#auto{position:absolute;right:16px;top:650px;padding:4px 10px;border-radius:9px;
  background:#3E7FB8;border:1px solid #9fc4df;font-size:10px}
#badge{position:absolute;left:10px;top:140px;padding:3px 8px;border-radius:8px;font-size:9px;
  background:rgba(18,52,50,.85);border:1px solid #D8B06A;color:#D8B06A}
/* B1.3：调试条默认隐藏，只有 ?debug=1 才显示；不再压住顶部菜单 */
#dbg{display:none;position:absolute;left:50%;transform:translateX(-50%);bottom:2px;
  font-size:8px;color:#9fc9c2;opacity:.75;pointer-events:none;z-index:9}
#dbg.on{display:block}
/* B1.3：右上缩略地图改画层平面占位，不再显示字段类型字典 */
#map .maprow{display:flex;align-items:center;gap:5px;line-height:1.7;opacity:.92}
#map .dot{width:6px;height:6px;border-radius:50%;flex:none;display:inline-block}
#map .dot.tp{background:#6FBFC4;box-shadow:0 0 4px #6FBFC4}
#map .dot.boss{background:#B9523F;box-shadow:0 0 4px #B9523F}
#map .dot.me{background:#D8B06A;box-shadow:0 0 5px #D8B06A}
/* B1.3：中部 3D 场景区占位提示，极淡、不参与 HUD 矩形 */
.scene-hint{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);
  font-size:11px;letter-spacing:2px;color:rgba(216,176,106,.34);
  border:1px dashed rgba(216,176,106,.22);border-radius:12px;
  padding:10px 18px;pointer-events:none;white-space:nowrap}
#role .hd{display:flex;gap:8px;align-items:center}
.face{width:36px;height:36px;border-radius:10px;flex:none;
  background:linear-gradient(135deg,#9fc9c2,#e7dcc2);border:1px solid #D8B06A}
#role .nm{font-size:12px}#role .lv{font-size:9px;color:#D8B06A}
.bar{height:5px;border-radius:3px;background:#0d2a28;margin-top:4px;overflow:hidden}
.bar>i{display:block;height:100%;background:#B9523F;width:82%}.bar.q>i{background:#6FBFC4;width:64%}
#mates{margin-top:5px}.mate{display:flex;gap:5px;align-items:center;margin-top:3px;font-size:9px}
.mate .face{width:20px;height:20px;border-radius:6px}.mate .b{flex:1;height:4px;background:#0d2a28;border-radius:2px;overflow:hidden}
.mate .b>i{display:block;height:100%;background:#B9523F}
/* 横屏：桌面 1280/2560 复用，左右锚点固定、中部拉宽 */
#stage.l #role{left:10px;top:8px;width:196px;height:64px}
#stage.l #menu{left:10px;top:80px;width:210px;height:32px}
#stage.l #menu .m{width:32px;height:32px}
#stage.l #map{right:10px;top:8px;width:118px;height:74px}
#stage.l #tasks{left:10px;top:124px;width:150px}
#stage.l #stick{left:20px;top:230px;width:72px;height:72px}
#stage.l #fight{right:12px;top:296px;height:84px}
#stage.l #fight .s{width:40px;height:40px}
#stage.l #fight .atk{width:54px;height:54px}
#stage.l #med{left:110px;top:326px;width:234px;height:48px}
#stage.l #auto{right:18px;top:264px}
#stage.l #badge{left:10px;top:116px}
/* 组队态：顶部整组同步下移，相对位置不变（V4.9 CHG-02） */
#stage.party2 #menu,#stage.party2 #badge,#stage.party2 #tasks,#stage.party2 #dbg{transform:translateY(42px)}
#stage.party3 #menu,#stage.party3 #badge,#stage.party3 #tasks,#stage.party3 #dbg{transform:translateY(72px)}
