* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c2c 0%, #2a4a35 100%);
    padding: 1px;
    font-family: 'Segoe UI', 'Courier New', monospace;
}

#playing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 10px auto;
}

.card {
    width: 180px;
    height: 250px;
    background: linear-gradient(145deg, #fff5e6, #ffffff);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    padding: 14px 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.4);
}

.left {
    align-self: flex-start;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    color: #2c3e2f;
}

.left br {
    display: none;
}

.left::first-line {
    font-size: 32px;
}

.middle {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: bold;
}

.middle div:first-child {
    font-size: 36px;
}

.middle div:nth-child(2) {
    font-size: 42px;
    font-weight: 800;
}

.middle div:last-child {
    font-size: 36px;
}

.right {
    align-self: flex-end;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    transform: rotate(180deg);
    color: #2c3e2f;
}

.right br {
    display: none;
}

/* Card suit colors - optional styling for different suits */
.card:first-child .left,
.card:first-child .right,
.card:first-child .middle div {
    color: #2c3e2f;
}

.card:nth-child(2) .left,
.card:nth-child(2) .right,
.card:nth-child(2) .middle div {
    color: #c73d3d;
}

.card:nth-child(3) .left,
.card:nth-child(3) .right,
.card:nth-child(3) .middle div {
    color: #2c3e2f;
}

.card:nth-child(4) .left,
.card:nth-child(4) .right,
.card:nth-child(4) .middle div {
    color: #c73d3d;
}

.card:nth-child(5) .left,
.card:nth-child(5) .right,
.card:nth-child(5) .middle div {
    color: #2c3e2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    .card {
        width: 150px;
        height: 210px;
        padding: 12px 8px;
    }
    
    .left, .right {
        font-size: 22px;
    }
    
    .middle {
        font-size: 22px;
    }
    
    .middle div:first-child,
    .middle div:last-child {
        font-size: 28px;
    }
    
    .middle div:nth-child(2) {
        font-size: 34px;
    }
}