body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

canvas {
  display: block;
}

.serve-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1;
  cursor: pointer;
  background: linear-gradient(135deg, #ffef75, #f8af31);
  border: 3px solid #fff;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
}

.serve-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 248, 43, 0.6);
}

.marbles-btn {
  position: absolute;
  top: 20px;
  left: 90px; /* 横排摆放，位于第一个按钮右侧 */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 1;
  cursor: pointer;
  background: linear-gradient(135deg, #80f7f5, #66BB6A);
  border: 3px solid #fdffc5;
  color: white;
  box-shadow: 0 4px 15px rgba(227, 255, 114, 0.4);
  transition: all 0.3s ease;
}

.marbles-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(122, 241, 249, 0.6);
}

.ar-btn {
  position: absolute;
  top: 20px;
  left: 160px; /* 横排摆放，位于第二个按钮右侧 */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  cursor: pointer;
  background: linear-gradient(135deg, #bd9cff, #40a3f4);
  border: 3px solid #fff;
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
  transition: all 0.3s ease;
}

.ar-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(110, 238, 252, 0.6);
}

.ar-btn.active {
  background: linear-gradient(135deg, #87c9fe, #bee738);
  box-shadow: 0 4px 15px rgba(61, 200, 255, 0.6);
}

.ar-btn.active:hover {
  box-shadow: 0 6px 20px rgba(79, 167, 254, 0.8);
}

#ui-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center;
}

#start-ar {
  padding: 12px 24px;
  background: #58cda8;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#start-ar:hover {
  background: #59fcde;
}

.a-canvas {
  width: 100% !important;
  height: 100% !important;
}
