/**
 * 硬币摇卦与学习反馈模块（coin-animation.css）
 * - 包含硬币翻转动画、进度槽、卦名与学习反馈按钮、快速信息块。
 * - 仅负责 coin 相关展示与动画，不含通用浮层样式。
 * - 建议在 jiazi-picker.css 之后、style.css 之前加载。
 */
.coins-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    min-height: 80px;
    cursor: pointer;
    perspective: 800px;
}

.coin-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    perspective: 800px;
}

.coin-wrap .coin {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
}

.coin-wrap .coin .coin-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.coin-wrap .coin .coin-face img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.coin-wrap .coin .coin-face.heads {
    transform: rotateY(180deg);
}

.coin-wrap .coin .coin-face.tails {
    transform: rotateY(0deg);
}

.coin-wrap .coin.coin-flip-heads {
    animation: coinFlipHeads 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.coin-wrap .coin.coin-flip-tails {
    animation: coinFlipTails 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes coinFlipHeads {
    0% { transform: rotateY(0deg); }
    2% { transform: rotateY(180deg); }
    4% { transform: rotateY(360deg); }
    6% { transform: rotateY(540deg); }
    8% { transform: rotateY(720deg); }
    12% { transform: rotateY(900deg); }
    18% { transform: rotateY(1080deg); }
    25% { transform: rotateY(1260deg); }
    32% { transform: rotateY(1440deg); }
    40% { transform: rotateY(1620deg); }
    50% { transform: rotateY(1620deg); }
    100% { transform: rotateY(1620deg); }
}

@keyframes coinFlipTails {
    0% { transform: rotateY(0deg); }
    2% { transform: rotateY(180deg); }
    4% { transform: rotateY(360deg); }
    6% { transform: rotateY(540deg); }
    8% { transform: rotateY(720deg); }
    12% { transform: rotateY(900deg); }
    18% { transform: rotateY(1080deg); }
    25% { transform: rotateY(1260deg); }
    32% { transform: rotateY(1440deg); }
    35% { transform: rotateY(1620deg); }
    40% { transform: rotateY(1800deg); }
    50% { transform: rotateY(1800deg); }
    100% { transform: rotateY(1800deg); }
}

.coins-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

.coin-gua-name-row {
    text-align: center;
    margin: 1px auto 0;
    min-height: 40px;
}

.coin-gua-name-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    padding: 8px 12px;
}

.coin-gua-quick-block {
    margin-top: 10px;
    padding: 0 12px 8px;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
}

.coin-gua-quick-line {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
    margin: 6px 0 0;
    word-break: break-word;
}

.coin-gua-quick-k {
    display: inline-block;
    min-width: 4.5em;
    margin-right: 6px;
    color: #666;
    font-weight: 600;
    vertical-align: top;
}

.coin-gua-quick-v {
    display: inline;
    color: #222;
}

.coin-start-btn {
    margin: 20px auto 0;
    display: block;
}

.yaos-progress {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 6px;
    width: 200px;
    min-height: calc(6 * 28px + 5 * 6px);
    margin: 0 auto;
}

.yao-slot {
    width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.yao-slot.filled {
    background: #fff;
}

.yao-slot.filled img {
    width: 100%;
    height: 24px;
    object-fit: contain;
    object-position: center;
    display: block;
}
