html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #101418;
  color: #f7f2e8;
  font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
}

#renderCanvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

.camera-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101418;
}

.camera-video[hidden] {
  display: none;
}

.model-viewer-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #101418;
}

.model-viewer-layer[hidden] {
  display: none;
}

model-viewer {
  width: 100%;
  height: 100%;
  background: #101418;
}

.model-viewer-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #d9f26f;
  color: #101418;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.model-hotspot {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(16, 20, 24, 0.9);
  border-radius: 50%;
  background: #d9f26f;
  color: #101418;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.hud {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  z-index: 5;
}

.hud h1 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.hud p {
  max-width: 58ch;
  margin: 0;
  color: #d8d1c5;
  font-size: 14px;
  line-height: 1.35;
}

#startArButton {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #d9f26f;
  color: #101418;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

#startArButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.object-panel {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 44px 16px 16px;
  border-radius: 8px;
  background: rgba(16, 20, 24, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.object-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.object-panel strong,
.object-panel span {
  display: block;
}

.object-panel strong {
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 15px;
}

.object-panel span {
  color: #d8d1c5;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .hud {
    align-items: stretch;
    flex-direction: column;
  }

  #startArButton {
    width: 100%;
  }
}
