body {
  margin: 0;
  font-family: sans-serif;
  background: black;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  touch-action: none;
}

#video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#angleBox {
  margin-top: 20px;
  font-size: 1.7em;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 12px;
  position: relative;
  z-index: 10;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  z-index: 1000;
}

#overlay button {
  font-size: 1.2em;
  padding: 10px 20px;
  margin-top: 1em;
}

#reticle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

/* Vòng tròn vàng bao quanh */
#reticle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px; /* Kích thước vòng tròn lớn hơn chữ thập */
  height: 60px;
  border: 2px solid #ffff99; /* Vòng tròn màu vàng nhạt */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8; /* Độ trong suốt nhẹ */
}

/* Đường ngang của chữ thập (dùng chính #reticle) */
#reticle {
  background: #ff4040; /* Màu đỏ sáng */
  box-shadow: 0 0 4px #ff4040; /* Hiệu ứng phát sáng nhẹ */
  height: 1px; /* Đường ngang mỏng */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Đường dọc của chữ thập (dùng #reticle::after) */
#reticle::after {
  content: "";
  position: absolute;
  background: #ff4040; /* Màu đỏ sáng */
  box-shadow: 0 0 4px #ff4040; /* Hiệu ứng phát sáng nhẹ */
  width: 1px; /* Đường dọc mỏng */
  height: 40px; /* Chiều dài đường dọc */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#savedList {
  position: absolute;
  bottom: 60px;
  left: 10px;
  right: 10px;
  max-height: 25%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 10;
}

#savedList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style-position: inside;
  font-size: 0.9em;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#savedList button {
  font-size: 0.9em;
  margin-left: 10px;
}

#controls {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

#controls button {
  width: 90%;
  max-width: 400px;
  font-size: 1.5em;
  padding: 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
}

#restartBtn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: none;
  font-size: 1.2em;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid white;
  border-radius: 12px;
  color: white;
}