body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    color: white;
    margin: 0;
    padding: 0;
}

.card {
    width: 100%;
    height: 230px;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
    cursor: pointer;
    user-select: none;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-size: cover;
    background-position: center;
    box-shadow: 0px -9px 21px rgb(0 0 0 / 26%);
}

.drag-overlay {
    width: 175px;
    height: 230px;
    border-radius: 10px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transform: translate(0, -10px) scale(1.0);
    z-index: 100;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.home-cell .card, .free-cell .card {
    height: 100%;
}

.gameplay-inner .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card.red {
    color: #e74c3c;
}

.card.black {
    color: #2c3e50;
}

.card-placeholder {
    width: 80px;
    height: 120px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
}

.card-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.free-cell, .home-cell {
    width: 80px;
    height: 120px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s ease;
}

.free-cell:hover, .home-cell:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.card-stack {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 12.5%;
}

.card-stack .card {
    margin-top: -180px;
}

.card-stack .card:first-child {
    margin-top: 0;
}

/* .selected {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 0 3px gold, 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
} */

.win-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    font-size: 3rem;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.game-over-overlay {
    animation: fadeIn 0.5s ease-out forwards;
}

.game-over-popup {
    animation: slideUp 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.game-over-title {
    animation: pulse 1.5s infinite alternate, shake 0.5s 0.5s;
}

.score-badge {
    animation: slideUp 0.8s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.button-animate {
    transition: all 0.3s ease;
}

.button-animate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button-animate:active {
    transform: translateY(1px);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f00;
    opacity: 0;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-board {
    /* background: rgba(0, 0, 0, 0.15); */
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 2rem;
    /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2); */
    min-height: 100vh;
}

.btn {
    transition: all 0.1s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.stats {
    background: rgb(255 205 42 / 22%);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    position: absolute;
    right: 10px;
    z-index: 99;
    border-radius: 0 0px 9px 9px;
}
.drag-overlay {
    width: 175px;
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.drag-overlay .card {
    width: 175px;
    height: 230px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
}
