.sakana-widget-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.sakana-widget-app {
  position: relative;
  width: 200px;
  height: 200px;
}

.sakana-widget-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.sakana-widget-main {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.sakana-widget-img {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 160px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  cursor: grab;
  z-index: 4;
}

.sakana-widget-img:active {
  cursor: grabbing;
}

.sakana-widget-ctrl {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.sakana-widget-ctrl-item {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  color: #666;
}

.sakana-widget-ctrl-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.sakana-widget-ctrl-item svg {
  width: 18px;
  height: 18px;
}

.sakana-widget-icon--rotate {
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}