/* Lottery Card Styles - 翻牌抽奖 */
.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 420px;
    margin: 0 auto 30px;
}

.card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-front {
    background: linear-gradient(135deg, #ff8e64 0%, #ff9d7a 100%);
    color: white;
    transition: all 0.3s ease;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 14px;
}

.card-front::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-front {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 142, 100, 0.4);
}

.card:hover .card-front::after {
    opacity: 1;
}

.card-back {
    background: linear-gradient(135deg, #ffe5de 0%, #ffb3a0 100%);
    color: #333;
    transform: rotateY(180deg);
    border: 3px solid #ff8e64;
    box-shadow: inset 0 0 20px rgba(255, 142, 100, 0.1);
}

.card-icon {
    font-size: 52px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card.flipped .card-icon {
    transform: scale(1.2) rotate(360deg);
}

.card-name {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 0 10px;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .card-container {
        max-width: 320px;
        gap: 10px;
    }
    
    .card-front, .card-back {
        border-radius: 12px;
    }
    
    .card-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }
    
    .card-name {
        font-size: 12px;
    }
}
