html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  /* 避免拖拼图时整页跟着滚/橡皮筋回弹 */
  overscroll-behavior: none;
  touch-action: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.puzzle {
  display: block;
  overflow: visible;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.15), 0 -4px 12px rgb(0 0 0 / 0.06);
}

.piece {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse), (max-width: 768px) {
  .puzzle {
    /* 移动端减弱外阴影，降低合成层开销 */
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
  }

  .author-info {
    backdrop-filter: none;
  }
}

.dark .puzzle {
  box-shadow: 10px 10px 30px rgb(0 0 0 / 0.6), -10px -10px 30px rgb(255 255 255 / 0.04);
}

.author-info {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: color-mix(in oklch, var(--card) 90%, transparent);
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}

.author-text {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
}

.author-text:hover {
  color: var(--foreground);
}

@media (max-width: 768px) {
  .author-info {
    bottom: 15px;
    padding: 16px 24px;
    border-radius: 30px;
  }

  .author-text {
    font-size: 16px;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .author-info {
    bottom: 12px;
    padding: 18px 28px;
    border-radius: 35px;
    max-width: 90vw;
  }

  .author-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
  }
}
