html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  font-family: system-ui, sans-serif;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#xr-ui {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

#xr-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 96vw;
}

#xr-enter,
#xr-bar .tool {
  border: 0;
  border-radius: 999px;
  background: #1d4a20;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  touch-action: manipulation;
}

#xr-enter {
  min-width: 280px;
  min-height: 64px;
  padding: 14px 32px;
  font-size: 22px;
}

#xr-bar .tool {
  min-width: 120px;
  min-height: 52px;
  padding: 10px 18px;
  font-size: 16px;
}

#xr-enter:active,
#xr-bar .tool:active {
  transform: scale(0.98);
}

#xr-bar .tool[aria-pressed="true"] {
  background: #35a83a;
}

#xr-bar .tool[aria-pressed="false"] {
  background: #3a5340;
}

#xr-hint {
  max-width: 92vw;
  color: #1d4a20;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

#xr-status {
  max-width: 90vw;
  color: #6a2018;
  font-size: 14px;
  text-align: center;
  min-height: 1.2em;
}

body.in-xr #xr-ui {
  z-index: 10000;
  bottom: 48px;
}

body.in-xr #xr-enter,
body.in-xr #xr-bar .tool {
  min-height: 72px;
  font-size: 22px;
}
