/* 블랙잭 게임 스타일 */

/* 딜러/플레이어 영역 */
.dealer-section,
.player-section {
    padding: 10px 0;
    margin-bottom: 10px;
}

.section-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.section-label span {
    color: var(--accent-gold);
    font-weight: 700;
}

/* 카드 행 */
.cards-row {
    display: flex;
    gap: 8px;
    min-height: 100px;
    flex-wrap: wrap;
}

/* 카드 스타일 */
.card {
    width: 65px;
    height: 95px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-front {
    background: linear-gradient(135deg, #fff, #f5f5f5);
    color: #1a1a2e;
}

.card-front.red {
    color: #e74c3c;
}

.card-back {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    border: 2px solid var(--border-color);
}

.card-back::after {
    content: '?';
    font-size: 2rem;
    color: var(--text-secondary);
}

.card-value {
    font-size: 1.4rem;
}

.card-suit {
    font-size: 1.2rem;
    margin-top: 2px;
}

/* 카드 애니메이션 */
.card {
    animation: dealCard 0.3s ease-out;
}

@keyframes dealCard {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card.flip {
    animation: flipCard 0.4s ease-in-out;
}

@keyframes flipCard {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

/* 액션 버튼 */
.action-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 규칙 섹션 */
.rules-section {
    padding: 15px;
    margin: 15px 0;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.rules-title {
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-weight: 500;
}

.rules-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rules-list li {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.rules-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

/* 결과 스타일 오버라이드 */
.result {
    margin: 10px 0;
}
