.font-pixel { font-family: 'Press Start 2P', cursive; }
.font-body { font-family: 'Roboto', sans-serif; }

body {
    background-color: #1a1a2e;
    background-image: radial-gradient(#16213e 1px, transparent 1px);
    background-size: 20px 20px;
}

.card {
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flip .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid #303657;
    overflow: hidden;
}

.card-front {
    background: #16213e;
    color: #e94560;
}

.card-back {
    background: #fff;
    transform: rotateY(180deg);
    border-color: #e94560;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}