/* ==========================================================================
   SSHWeb · Minecraft 农场版
   像素风 UI · 泥土/木板配色 · 硬边框按钮 · three.js 3D 农场背景
   ========================================================================== */
:root {
  --mc-dirt: #79553a;
  --mc-dirt-dark: #5d4029;
  --mc-grass: #5d9c3a;
  --mc-stone: #7d7d7d;
  --mc-panel: rgba(22, 22, 26, .92);
  --mc-panel-border: #1a1a1e;
  --mc-text: #e8e8ea;
  --mc-text-dim: #a0a0a8;
  --mc-gold: #ffaa00;
  --mc-green: #55ff55;
  --mc-red: #ff5555;
  --mc-btn-face: #6f6f6f;
  --mc-btn-hi: #9d9d9d;
  --mc-btn-lo: #3f3f3f;
  --font-mc: "Press Start 2P", "Zpix", "Fusion Pixel", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", monospace;
  --font-body: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #000; }
body { font-family: var(--font-body); color: var(--mc-text); -webkit-font-smoothing: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; font-family: inherit; }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--mc-green); color: #000; }

/* 像素描边文字 */
.mc-text { text-shadow: 2px 2px 0 rgba(0,0,0,.6); }

/* ---------- Minecraft 风格按钮 ---------- */
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: .875rem; font-weight: 700; letter-spacing: .04em;
  color: var(--mc-text); text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  background: var(--mc-btn-face);
  border: 2px solid #000; border-radius: 0;
  box-shadow: inset -3px -4px 0 var(--mc-btn-lo), inset 3px 3px 0 var(--mc-btn-hi);
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: filter .1s;
  text-decoration: none;
}
.mc-btn:hover { filter: brightness(1.18); }
.mc-btn:active { box-shadow: inset 3px 4px 0 var(--mc-btn-lo), inset -3px -3px 0 var(--mc-btn-hi); transform: translateY(1px); }
.mc-btn.sm { padding: 6px 10px; font-size: .75rem; }
.mc-btn.big { padding: 14px 26px; font-size: 1rem; width: 100%; }
.mc-btn.danger { background: #8f3b34; box-shadow: inset -3px -4px 0 #5f221d, inset 3px 3px 0 #b85a50; }

/* ---------- 登录：MC 标题屏 ---------- */
.login-wrap {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(93,156,58,.25), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 4px),
    linear-gradient(#223 0%, #101218 60%, #0a0c10 100%);
  padding: 24px;
}
.mc-title { text-align: center; }
.mc-title h1 {
  margin: 0; font-family: var(--font-mc); font-size: clamp(34px, 7vw, 64px); font-weight: 900;
  color: #ffd83d; letter-spacing: .04em;
  text-shadow: 4px 4px 0 #3f3100, 8px 8px 0 rgba(0,0,0,.45);
}
.mc-title h1 span { color: #6ee86e; text-shadow: 4px 4px 0 #1c3f1c, 8px 8px 0 rgba(0,0,0,.45); }
.mc-subtitle {
  margin-top: 14px; font-size: .95rem; color: var(--mc-gold); letter-spacing: .12em;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.mc-menu { width: min(380px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.mc-field { position: relative; }
.mc-field input {
  width: 100%; padding: 13px 46px 13px 14px; font-size: 1rem;
  background: #000; color: var(--mc-text); border: 2px solid #555; border-radius: 0; outline: none;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.08);
}
.mc-field input:focus { border-color: var(--mc-green); }
.mc-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer;
  font-size: 1rem; filter: grayscale(.4);
}
.mc-eye:hover { filter: none; }
.mc-err { background: #5f221d; border: 2px solid #000; color: #ffb3ab; padding: 8px 12px; font-size: .8125rem; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }
.mc-foot { font-size: .75rem; color: var(--mc-text-dim); text-shadow: 1px 1px 0 rgba(0,0,0,.6); text-align: center; }

/* ---------- 3D 农场 ---------- */
.app { position: fixed; inset: 0; }
#farmHost { position: absolute; inset: 0; }
#farmHost canvas { display: block; image-rendering: pixelated; }

/* 鸡名字标签层 */
#labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sv-label {
  position: absolute; transform: translate(-50%, -130%);
  font-size: .75rem; font-weight: 700; color: #fff; white-space: nowrap;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  padding: 2px 8px; background: rgba(0,0,0,.45); border-radius: 2px;
}
.sv-label.off { color: var(--mc-red); }
.sv-label .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mc-green); margin-right: 6px; vertical-align: 0; }
.sv-label.off .dot { background: var(--mc-red); }
.sv-label.unk .dot { background: #888; }

/* 准星 */
#crosshair {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 20px; color: rgba(255,255,255,.55);
  text-shadow: 0 0 3px #000; pointer-events: none; transition: color .12s, transform .12s;
}
#crosshair.on { color: var(--mc-red); transform: translate(-50%,-50%) scale(1.35); text-shadow: 0 0 6px rgba(255,60,60,.8); }

/* HUD 顶栏 */
.hud-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.hud-chip {
  font-size: .8125rem; font-weight: 700; padding: 8px 14px;
  background: var(--mc-panel); border: 2px solid #000;
  box-shadow: inset -2px -3px 0 rgba(255,255,255,.07), inset 2px 2px 0 rgba(255,255,255,.12);
  color: var(--mc-text); text-shadow: 1px 1px 0 #000;
}
.hud-actions { display: flex; gap: 8px; }

/* HUD 底部提示 */
.hud-hint {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 10; font-size: .6875rem; color: rgba(255,255,255,.75);
  text-shadow: 1px 1px 0 #000; background: rgba(0,0,0,.3); padding: 2px 12px 3px;
  pointer-events: none; white-space: nowrap; max-width: 100vw; overflow: hidden; text-overflow: ellipsis;
  border-radius: 4px 4px 0 0;
}
/* 触屏：所有操作提示都不显示 */
.touch-mode .hud-hint, .touch-mode .lock-hint { display: none !important; }

/* 快捷栏（多页 + 翻页器） */
.hotbar-wrap {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0;
  max-width: 96vw; pointer-events: none;
}
.hotbar-wrap .hotbar { border-bottom: none; border-radius: 4px 4px 0 0; }
.hotbar-wrap .hotbar-pager { border-top: 1px solid #333; border-radius: 0 0 4px 4px; width: auto; }
.hotbar-wrap > * { pointer-events: auto; }
.hotbar {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(0,0,0,.55); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.15), inset -2px -2px 0 rgba(255,255,255,.05);
  max-width: 96vw; overflow-x: auto;
}
.hotbar-pager {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.5); border: 1px solid #000; padding: 1px 8px;
  font-size: 11px; color: #ddd; text-shadow: 1px 1px 0 #000; user-select: none;
}
.hotbar-pager .pgbtn {
  background: #565656; border: 1px solid #000; color: #fff; cursor: pointer;
  font-size: 10px; padding: 0 5px; line-height: 15px;
}
.hotbar-pager .pgbtn:hover { filter: brightness(1.25); }
.hotbar-pager .pginfo { font-variant-numeric: tabular-nums; }
.hotbar-pager .pdot { width: 6px; height: 6px; background: #444; border-radius: 50%; display: inline-block; }
.hotbar-pager .pdot.on { background: #fff; }
.hotbar .slot {
  flex: 0 0 auto; width: 58px; height: 58px; position: relative;
  background: #565656; border: 2px solid #000;
  box-shadow: inset -3px -3px 0 #373737, inset 3px 3px 0 #8b8b8b;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.hotbar .slot:hover { filter: brightness(1.2); }
.hotbar .slot.sel { border-color: #fff; box-shadow: inset -3px -3px 0 #373737, inset 3px 3px 0 #8b8b8b, 0 0 0 2px #fff; }
.hotbar .slot .texicon {
  width: 34px; height: 34px; image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.6));
  border: 1px solid rgba(0,0,0,.35);
}
.hotbar .slot .emoji { font-size: 24px; line-height: 1; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.6)); }
.hotbar .slot .nm {
  position: absolute; left: 2px; right: 2px; bottom: 1px; font-size: 9px; text-align: center;
  color: #fff; text-shadow: 1px 1px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.hotbar .slot .num { position: absolute; left: 3px; top: 1px; font-size: 9px; color: #ddd; text-shadow: 1px 1px 0 #000; }
.hotbar .slot.off { filter: grayscale(.8) brightness(.6); }
.hotbar .slot.empty { cursor: default; background: #3a3a3a; box-shadow: inset -2px -2px 0 #2a2a2a, inset 2px 2px 0 #4d4d4d; }

/* ---------- 终端窗口（MC 风格覆盖层） ---------- */
.terminal-wrap {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.term-win {
  width: min(1100px, 96vw); height: min(720px, 86vh);
  display: flex; flex-direction: column;
  background: #101113; border: 3px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.14), inset -3px -3px 0 rgba(0,0,0,.5), 0 20px 60px rgba(0,0,0,.6);
}
.term-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #2e2e33; border-bottom: 2px solid #000; flex-wrap: wrap;
}
.term-bar b { font-size: .875rem; text-shadow: 1px 1px 0 #000; }
.term-bar small { font-family: var(--font-mono); font-size: .7188rem; color: var(--mc-text-dim); }
.status-dot { width: 9px; height: 9px; border-radius: 0; background: #888; flex: 0 0 9px; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.status-dot.ok { background: var(--mc-green); }
.status-dot.bad { background: var(--mc-red); }
.term-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.term-tools select {
  width: auto; max-width: 170px; background: #1d1d21; border: 2px solid #000;
  color: #d8d8dc; padding: 6px 8px; font-size: .75rem; border-radius: 0;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.06); cursor: pointer; outline: none;
}
.term-host { flex: 1 1 auto; min-height: 0; padding: 6px 2px 2px 8px; background: #101113; }
.term-host .xterm { height: 100%; }
.xterm-viewport::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }

/* ---------- 管理面板弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto;
  background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
}
.modal-box {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; position: relative;
  background: var(--mc-panel); border: 3px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.1), inset -3px -3px 0 rgba(0,0,0,.5), 0 24px 70px rgba(0,0,0,.6);
  padding: 22px; margin: auto;
}
.modal-box h2 { font-size: 1.05rem; margin: 0 0 16px; text-shadow: 2px 2px 0 rgba(0,0,0,.5); letter-spacing: .02em; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
  border: 2px solid #000; background: #8f3b34; color: #fff; font-size: 15px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  box-shadow: inset -2px -2px 0 #5f221d, inset 2px 2px 0 #b85a50;
}
.modal-close:hover { filter: brightness(1.15); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.08); }

/* 表单 */
.field { margin-bottom: 16px; min-width: 0; }
.field > label { display: block; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; color: var(--mc-text-dim); margin-bottom: 6px; text-transform: uppercase; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; background: #000; color: var(--mc-text);
  border: 2px solid #555; border-radius: 0; font-size: .9375rem; padding: 10px 12px;
  outline: none; box-shadow: inset 2px 2px 0 rgba(255,255,255,.06);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--mc-green); }
input::placeholder, textarea::placeholder { color: #666; }
textarea { min-height: 92px; resize: vertical; font-family: var(--font-mono); font-size: .8125rem; }
select { cursor: pointer; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; min-width: 0; }
.hint { margin-top: 5px; font-size: .7188rem; color: var(--mc-text-dim); }
.notice { background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.1); padding: 10px 14px; font-size: .75rem; color: var(--mc-text-dim); line-height: 1.6; margin: 12px 0; }

/* 密码眼睛（弹层内） */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: .95rem;
  display: grid; place-items: center; opacity: .65;
}
.pw-eye:hover { opacity: 1; }

/* 管理面板：服务器表格 */
.sv-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.sv-table th { text-align: left; font-size: .6875rem; letter-spacing: .06em; color: var(--mc-text-dim); text-transform: uppercase; padding: 6px 10px; border-bottom: 2px solid rgba(255,255,255,.1); }
.sv-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.sv-table tr:hover td { background: rgba(255,255,255,.04); }
.sv-table .mono { font-family: var(--font-mono); font-size: .75rem; color: var(--mc-text-dim); }
.tag { display: inline-block; padding: 1px 8px; font-size: .6875rem; font-weight: 700; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.tag.ok { color: var(--mc-green); border-color: rgba(85,255,85,.3); background: rgba(85,255,85,.08); }
.tag.bad { color: var(--mc-red); border-color: rgba(255,85,85,.3); background: rgba(255,85,85,.08); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.ic-btn {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0; font-size: .8rem;
  border: 2px solid #000; background: var(--mc-btn-face); color: var(--mc-text); cursor: pointer;
  box-shadow: inset -2px -2px 0 var(--mc-btn-lo), inset 2px 2px 0 var(--mc-btn-hi);
}
.ic-btn:hover { filter: brightness(1.2); }
.ic-btn.danger { background: #8f3b34; box-shadow: inset -2px -2px 0 #5f221d, inset 2px 2px 0 #b85a50; }

/* 确认框 */
.confirm-box { max-width: 420px; }
.confirm-msg { color: var(--mc-text-dim); font-size: .875rem; line-height: 1.7; margin: 0 0 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 200;
  background: var(--mc-panel); border: 2px solid #000; color: var(--mc-text);
  padding: 10px 20px; font-size: .8125rem; font-weight: 700; text-shadow: 1px 1px 0 #000;
  box-shadow: inset -2px -3px 0 rgba(255,255,255,.06), inset 2px 2px 0 rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.5);
  max-width: min(80vw, 560px);
}
.toast.err { color: var(--mc-red); }

/* ---------- 加载遮罩 ---------- */
.loading-veil {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center;
  background: #0a0c10; color: var(--mc-gold); font-size: .95rem; letter-spacing: .08em;
  text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hud-hint { display: none; }
  .hotbar .slot { width: 46px; height: 46px; }
  .hotbar .slot .emoji { font-size: 18px; }
  .term-win { width: 100vw; height: 92vh; }
  .term-tools select { max-width: 110px; }
  .hud-actions .mc-btn.sm { padding: 6px 8px; font-size: .6875rem; }
}

/* ---------- v3: 探针 ---------- */
.sv-label.probe { border-color: rgba(255,120,80,.5); }
.sv-label.probe.off { opacity: .6; }
.probe-stats { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 16px; }
.pstat label { font-size: .6875rem; color: var(--mc-text-dim); text-transform: uppercase; letter-spacing: .05em; }
.pstat b { font-size: .8125rem; display: block; margin-top: 2px; }
.pbar { height: 14px; background: rgba(0,0,0,.5); border: 2px solid #000; margin: 4px 0 2px; }
.pbar i { display: block; height: 100%; background: linear-gradient(180deg,#5fe6a8,#2e9e63); }
.pnet { display: flex; gap: 16px; margin-top: 4px; font-family: var(--font-mono); font-size: .875rem; }
.copybox {
  font-family: var(--font-mono); font-size: .75rem; word-break: break-all;
  background: #15161a; border: 2px solid #000; padding: 10px 12px; margin: 8px 0;
  color: #9fe8b8; user-select: all;
}

/* ---------- v2: 血量/倒地/多人/建造 HUD ---------- */
.sv-label i { font-style: normal; font-size: .5625rem; letter-spacing: -1px; margin-left: 4px; color: #ff7b7b; }
.sv-label.down { color: #999; }
.sv-label.down .dot { background: #666; }
.sv-label.pl i { color: #8fc7ff; }
.sv-label.pl .dot { background: #ffb84d; }
.sv-label.pl .dot.ok { background: var(--mc-green); }
.inv { font-size: .6875rem; opacity: .85; }
.f-prompt {
  position: absolute; left: 50%; bottom: 34%; transform: translateX(-50%);
  background: rgba(20, 18, 14, .88); border: 2px solid #000; color: #ffd98a;
  font-family: var(--font-mc); font-size: .6875rem; padding: 8px 14px;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.12), inset -2px -2px 0 rgba(0,0,0,.4);
  animation: fblink 1s infinite; pointer-events: none; white-space: nowrap;
}
@keyframes fblink { 50% { opacity: .55; } }
.dmg-num {
  position: absolute; color: #ff5252; font-family: var(--font-mono); font-weight: 800;
  font-size: 16px; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none; animation: dmgfloat .9s ease-out forwards; transform: translate(-50%, -50%);
}
@keyframes dmgfloat {
  0% { opacity: 1; margin-top: 0; }
  100% { opacity: 0; margin-top: -46px; }
}

/* ---------- v4: 指针锁定/摇杆/事件播报/死亡层/头顶卡 ---------- */
#crosshair { display: none !important; }
.lock-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(20, 18, 14, .88); border: 2px solid #000; color: #ffd98a;
  font-family: var(--font-mc); font-size: .75rem; padding: 12px 20px;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.12); pointer-events: none; z-index: 40;
  animation: fblink 1.4s infinite;
}
.stats-panel {
  position: absolute; left: 12px; top: 56px; z-index: 30; pointer-events: none;
  background: rgba(20, 18, 14, .78); border: 2px solid #000; color: #e8e4d8;
  font-family: var(--font-mc); font-size: .6875rem; line-height: 1.9;
  padding: 8px 14px; box-shadow: inset 2px 2px 0 rgba(255,255,255,.1);
  text-shadow: 1px 1px 0 rgba(0,0,0,.6);
}
.event-ticker {
  position: absolute; left: 50%; top: 108px; transform: translateX(-50%); z-index: 30;
  background: rgba(20, 18, 14, .82); border: 2px solid #000; color: #ffe9a8;
  font-family: var(--font-mc); font-size: .75rem; padding: 8px 18px;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.1); pointer-events: none;
  text-shadow: 1px 1px 0 rgba(0,0,0,.6); white-space: nowrap; max-width: 90vw; overflow: hidden;
  animation: evtin .25s ease-out;
}
@keyframes evtin { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
.death-overlay {
  position: absolute; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  background: rgba(120, 10, 10, .38);
}
.death-box {
  background: var(--mc-panel); border: 3px solid #000; padding: 28px 40px; text-align: center;
  box-shadow: inset -3px -4px 0 rgba(0,0,0,.35), inset 3px 3px 0 rgba(255,255,255,.12), 0 10px 40px rgba(0,0,0,.6);
}
.death-box h2 { margin: 0 0 8px; font-family: var(--font-mc); color: #ff6b5e; font-size: 1.1rem; text-shadow: 2px 2px 0 #000; }
.death-box p { margin: 0 0 18px; color: var(--mc-text-dim); font-size: .875rem; }
.joystick {
  position: absolute; left: 26px; bottom: 110px; width: 130px; height: 130px; z-index: 50;
  border-radius: 50%; background: rgba(20, 18, 14, .4); border: 2px solid rgba(0,0,0,.6);
  touch-action: none;
}
.joystick .stick {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 8px; background: rgba(232, 228, 216, .5); border: 2px solid rgba(0,0,0,.6);
  transition: transform .05s linear;
}
.sv-label { max-width: 240px; }
.sv-label br + i { display: inline-block; margin-top: 2px; }
.sv-label.me .dot { background: #ffd98a; }
.sv-label.me .dot.admin { background: var(--mc-green); }
.sv-label.pl i { letter-spacing: -1px; }
@media (max-width: 700px) {
  .stats-panel { font-size: .5625rem; top: 52px; padding: 6px 10px; }
  .event-ticker { font-size: .625rem; top: 96px; }
}

/* ---------- v5: 大号头顶信息卡（参考用户截图） ---------- */
.sv-label {
  background: rgba(16, 24, 16, .82);
  border: 2px solid rgba(0,0,0,.85);
  border-radius: 10px;
  padding: 8px 14px 7px;
  font-size: 15px;
  line-height: 1.55;
  min-width: 190px;
  text-align: left;
}
.sv-label .phead {
  font-weight: 800; font-size: 15px; color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.8);
  white-space: nowrap;
}
.sv-label .phead .dot { margin-right: 7px; }
.sv-label .prow { font-size: 14px; color: #ff9ecb; font-family: var(--font-mono); text-shadow: 1px 1px 0 rgba(0,0,0,.8); }
.sv-label .prow.net { color: #ff7bb8; font-weight: 700; }
.sv-label .prow.sub { font-size: 11.5px; color: #d08ab0; }
.sv-label .prow.dim2 { font-size: 12px; color: #9aa; font-family: var(--font-mc); }
.sv-label .pdown { font-size: 13px; color: #ff6b5e; font-weight: 800; text-shadow: 1px 1px 0 #000; }
.sv-label .hearts { letter-spacing: 1px; }
.sv-label .hearts .dim { opacity: .28; }
.sv-label i { font-style: normal; font-size: 12px; color: #ff8fc0; }
.sv-label .hpbar {
  height: 7px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.14);
  border-radius: 4px; margin: 4px 0 2px; overflow: hidden;
}
.sv-label .hpbar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(180deg,#7dff8a,#25b34a);
  box-shadow: 0 0 4px rgba(80,255,120,.6);
}
.sv-label.down { border-color: rgba(255,80,60,.6); }
.sv-label.probe.off { opacity: .75; }
.sv-label.me { border-color: rgba(255,217,138,.55); }
@media (max-width: 700px) {
  .sv-label { font-size: 12px; min-width: 150px; padding: 6px 10px; }
  .sv-label .phead { font-size: 12.5px; }
  .sv-label .prow { font-size: 11.5px; }
  .sv-label .prow.sub { font-size: 10px; }
}


/* ---------- v6: 国旗图 / 小卡片 / 探针卡加宽 ---------- */
.sv-label img.flag {
  width: 20px; height: 14px; object-fit: cover; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.35); vertical-align: -2px; margin-right: 4px;
  image-rendering: auto;
}
.sv-label.sm {
  min-width: 0; padding: 4px 10px; font-size: 13px; line-height: 1.4;
  background: rgba(10, 16, 10, .72); border-width: 2px;
}
.sv-label.sm .nm2 { font-weight: 700; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.8); }
.sv-label.sm .hearts { font-size: 11px; }
.sv-label.probe { min-width: 260px; max-width: 300px; }
.sv-label.probe .phead .nm2 { font-weight: 800; color: #fff; }
.sv-label .prow { word-break: break-all; white-space: normal; }
.stats-panel .mats { color: #ffd98a; }
.stats-panel .tip { font-size: 11px; color: #b8c8b8; }
