body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* --- Menú Principal --- */
.menu-content {
    text-align: center;
}

h1 {
    font-size: 4rem;
    color: #e83e8c;
    text-shadow: 0 0 10px #e83e8c, 0 0 20px #e83e8c;
}

button {
    background-color: #e83e8c;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.4);
}

button:hover {
    background-color: #ff69b4;
    transform: translateY(-2px);
}

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

/* --- Pantalla de Juego y Carta --- */
#game-screen {
    gap: 2rem;
}

#card-container {
    perspective: 1500px;
    width: 350px;
    height: 450px;
}

#card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

#card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #e83e8c;
}

.card-back {
    background: #1e1e1e;
    flex-direction: column;
}

.card-back h2 {
    font-size: 2.5rem;
    color: #e83e8c;
}

.card-front {
    background: #2a2a2a;
    transform: rotateY(180deg);
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.card-front p {
    font-size: 1.1rem;
    margin: 15px 0;
    line-height: 1.5;
}

.card-front p:first-of-type {
    border-bottom: 1px solid #e83e8c;
    padding-bottom: 20px;
}

#controls {
    display: flex;
}

.subtle {
    background-color: transparent;
    color: #aaa;
    box-shadow: none;
    font-weight: 400;
    font-size: 1rem;
    text-decoration: underline;
}