/* 签名泡泡墙 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0b1026;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }

/* 背景泡泡墙画布铺满 */
#wall { position: fixed; inset: 0; z-index: 0; }

/* ---------- 主 UI 层 ---------- */
#ui { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column;
  pointer-events: none; }
#ui > * { pointer-events: auto; }

.topbar { text-align: center; padding: 2.2vh 0 1vh; }
.topbar h1 {
  font-size: 4.6vh; letter-spacing: .35em; font-weight: 700;
  background: linear-gradient(180deg, #fff, #9ad0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 30px rgba(90,160,255,.35);
}
.topbar .hint { margin-top: .6vh; font-size: 1.9vh; color: #8fa3c8; letter-spacing: .12em; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; justify-content: center; align-items: center; gap: 2.4vw;
  padding: 1vh 0; flex-wrap: wrap; }
.group { display: flex; align-items: center; gap: .7vw; }
.label { font-size: 1.9vh; color: #8fa3c8; letter-spacing: .1em; }

.tool {
  min-width: 6.2vh; height: 6.2vh; padding: 0 1.6vh; border: 1px solid rgba(255,255,255,.22);
  border-radius: 3.1vh; background: rgba(255,255,255,.07); color: #dbe7ff;
  font-size: 2vh; cursor: pointer; transition: all .18s;
}
.tool:hover { background: rgba(255,255,255,.16); }
.tool.active { background: #2f6fdb; border-color: #6ea8ff; box-shadow: 0 0 14px rgba(80,140,255,.55); }
.tool.color { min-width: 4.4vh; width: 4.4vh; height: 4.4vh; border-radius: 50%; padding: 0;
  border: 3px solid transparent; }
.tool.color.active { border-color: #fff; }

input[type=range] { width: 12vw; accent-color: #4d8bff; height: 4vh; }

.primary {
  height: 6.2vh; padding: 0 3.4vh; border: none; border-radius: 3.1vh;
  background: linear-gradient(135deg, #ff9d2f, #ff5e62); color: #fff; font-size: 2.3vh;
  letter-spacing: .18em; cursor: pointer; box-shadow: 0 0 18px rgba(255,120,60,.5);
  transition: transform .15s;
}
.primary:hover { transform: scale(1.05); }

/* ---------- 签名板 ---------- */
.pad-wrap { flex: 1; display: flex; justify-content: center; padding: 1vh 4vw 4vh; }
#pad {
  width: 100%; height: 100%; max-width: 1500px;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.28);
  border-radius: 18px; cursor: crosshair; touch-action: none;
}

/* ---------- 副屏（dual=1）隐藏 UI ---------- */
body.dual #ui { display: none; }

/* 退出按钮（隐藏式：右上角，管理员可见） */
#exitBtn {
  position: fixed; top: 0; right: 0; width: 64px; height: 64px; z-index: 9;
  background: transparent; border: none; color: transparent; cursor: default;
}
#exitBtn:hover { color: rgba(255,255,255,.25); }
