.sakana-app {
  position: fixed;
  right: 100px;
  bottom: 0px;
  width: 200px;
  height: 480px;
  z-index: 9999;
  pointer-events: none;          /* 容器不接管事件 */
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  
}

.sakana-canvas {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: block;
  pointer-events: none;
}

.sakana-main {
  position: absolute;
  left: 50%;
  bottom: 260px;
  width: 300px;
  height: 300px;
  margin-left: -150px;           /* 300/2，居中对齐 */
  cursor: pointer;
  pointer-events: auto;          /* 只有图片可拖拽 */
  transform-origin: 50% 400px;
  background: no-repeat 50% 50%;
  background-size: cover;
  background-image: url(sakana.png);
  touch-action: none;
  will-change: transform;
  scale: 0.5;
}

/* 窄屏自动缩小 */
@media (max-width: 480px) {
  .sakana-app {
    right: 8px;
    bottom: 8px;
    width: 150px;
    height: 200px;
  }
  .sakana-main {
    width: 220px;
    height: 220px;
    margin-left: -110px;
    bottom: 200px;
    transform-origin: 50% 300px;
  }
}

.sakana-tip {
    position: absolute;
    left: 50%;
    bottom: calc(var(--sakana-main-bottom) + var(--sakana-main-h) - 20px);
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(24, 37, 98, 0.9);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: sakana-tip-float 2s ease-in-out infinite;
}

/* 小三角，指向角色 */
.sakana-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 0;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(24, 37, 98, 0.9);
}

/* 淡出 */
.sakana-tip[data-hidden="true"] {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
}

@keyframes sakana-tip-float {
    0%, 100% { margin-bottom: 0; }
    50%      { margin-bottom: 6px; }
}

/* 窄屏时字号小一点 */
@media (max-width: 480px) {
    .sakana-tip {
        font-size: 11px;
        padding: 4px 8px;
    }
}