html,
body,
#root {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: ivory;
}

.r3f {
  touch-action: none;
}

/* .htmlScreen p {
  width: 1024px;
  height: 670px;
  border: none;
  text-align: center;
  border-radius: 20px;
  background: #fffefe;
} */

.htmlScreen video {
  width: 1024px;
  height: 670px;
  border: none;
  text-align: center;
  border-radius: 20px;
  background: #000000;
}

video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.floatVideo {
  position: absolute;
  top: 15%; /* CSS 中需要单位，如 px */
  left: 60%;
  width: 30%;
  height: 80%;
  z-index: 10; /* 确保视频在Canvas之上 */
  display: flex;
  justify-content: flex-start; /* 左对齐 */
  align-items: flex-start; /* 顶部对齐 */
  pointer-events: none; /* 允许点击穿透到Canvas */
}

.floatVideo video {
  pointer-events: none; /* 视频本身也不拦截事件 */
}

#vid {
  width: 100%;
  height: 100%;
  margin-left: 0%;
  margin-top: 0%;
  cursor: pointer;
  pointer-events: auto; /* 视频元素接收点击事件 */
}
