html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
}

#ar-container {
  position: absolute;
  inset: 0;
  z-index: 0; /* stacking context 생성 → MindAR video(z-index:-2)가 body 뒤로 가지 않게 */
}

#ui-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#status-toast {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}

#product-selector {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

#product-selector button {
  padding: 12px 20px;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#product-selector button.active {
  background: #ff6a00;
  color: #fff;
}

#target-thumb {
  position: absolute;
  right: 12px;
  bottom: 110px;
  width: 90px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 6px;
  pointer-events: auto;
  text-decoration: none;
  color: #fff;
  font-size: 10px;
  text-align: center;
}

#target-thumb img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

#target-thumb span {
  display: block;
  margin-top: 4px;
  line-height: 1.2;
}

#start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
}

.start-card {
  background: #fff;
  color: #111;
  padding: 28px 32px;
  border-radius: 16px;
  text-align: center;
  max-width: 80%;
}

.start-card h2 {
  margin: 0 0 12px;
  color: #ff6a00;
}

.start-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
}

.start-card button {
  padding: 12px 32px;
  border: none;
  border-radius: 24px;
  background: #ff6a00;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
