/* 抛硬币工具专用样式 */

/* 硬币容器 */
.coin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 20px;
  perspective: 1000px;
  /* 添加背景渐变增强视觉效果 */
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

/* 硬币主体 */
.coin {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  transform-origin: center center;
}

/* 硬币面 */
.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 215, 0, 0.1);
  border: 3px solid #ffd700;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  -webkit-backface-visibility: hidden;
}

/* 硬币图片 */
.coin-face img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 正面 */
.coin-heads {
  transform: rotateY(0deg);
}

/* 反面 */
.coin-tails {
  transform: rotateY(180deg);
}

/* 悬停效果 */
.coin:hover .coin-face img {
  transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .coin {
    width: 150px;
    height: 150px;
  }
  
  .coin-container {
    min-height: 250px;
    padding: 15px;
  }
}

/* 统计显示优化 */
#cf-app .row {
  justify-content: space-around;
  font-weight: 500;
}

#cf-app .row span {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}