/* css/cards.css */
#overlay-cards {
    z-index: 110;
}

.card-select-title {
    font-size: 42px;
    color: #ffd700;
    margin-bottom: 30px;
}

#card-choices {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-choice {
    width: 220px;
    height: 350px;
    background: rgba(25, 25, 38, 0.95);
    border: 3px solid #555;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    padding: 0;
    overflow: hidden;
}

.card-choice:hover {
    transform: scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.card-choice.tier-01 {
    border-color: #5082dc;
}

.card-choice.tier-01:hover {
    border-color: #80b0ff;
    box-shadow: 0 0 20px rgba(80, 130, 220, 0.4);
}

.card-choice.tier-02 {
    border-color: #50b464;
}

.card-choice.tier-02:hover {
    border-color: #80e090;
    box-shadow: 0 0 20px rgba(80, 180, 100, 0.4);
}

.card-choice.tier-03 {
    border-color: #c85050;
}

.card-choice.tier-03:hover {
    border-color: #ff8080;
    box-shadow: 0 0 20px rgba(200, 80, 80, 0.4);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
}

.card-name {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 8px;
    font-weight: bold;
}

.card-desc {
    font-size: 13px;
    color: #c8c8c8;
    line-height: 1.5;
}

#card-bottom-actions {
    margin-top: 24px;
    display: flex;
    gap: 20px;
}

.btn-card-action {
    padding: 10px 24px;
    border: 2px solid #787878;
    border-radius: 8px;
    background: rgba(50, 50, 50, 0.9);
    color: #c8c8c8;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-card-action:hover {
    border-color: #ffd700;
    color: #fff;
}

#btn-reroll {
    border-color: #a05050;
    color: #fff;
    background: rgba(80, 40, 40, 0.9);
}

#btn-reroll:hover {
    border-color: #ff8080;
}

@media (max-width: 800px) {
    .card-choice {
        width: 180px;
        height: 288px;
    }

    .card-image {
        width: 100%;
        height: 100%;
    }

    .card-name {
        font-size: 16px;
    }

    .card-desc {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    #card-choices {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .card-choice {
        width: 110px;
        height: 176px;
        margin: 4px;
        padding: 0;
    }

    .card-image {
        width: 100%;
        height: 100%;
    }
}