body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #121212, #1e1e2e);
    color: white;
    margin: 0;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffcc00;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.hidden {
    display: none;
}

.card {
    width: 220px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    text-transform: uppercase;
}

.card p {
    font-size: 1.1em;
    margin: 5px 0;
    padding: 6px;
    border-radius: 5px;
}

.score {
    font-size: 1.4em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
}

.highlight-win {
    background: rgba(0, 255, 0, 0.5);
    border-left: 4px solid #0f0;
}

.highlight-lose {
    background: rgba(255, 0, 0, 0.5);
    border-left: 4px solid #f00;
}

.highlight-draw {
    background: rgba(255, 255, 0, 0.5); /* Жовтий колір */
    border-left: 4px solid #ff0; /* Жовта лінія */
}

.animate-turn {
    transform: scale(1.1);
}

.buttons {
    margin-top: 20px;
}

.buttons button {
    background: #ff9800;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.3s;
}

.buttons button:hover {
    background: #e68900;
}

#new-game {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: 0.3s;
}

#new-game:hover {
    background: #45a049;
}

.legendary {
    border: 3px solid gold;
    box-shadow: 0 0 15px gold;
}
.epic {
    border: 3px solid purple;
    box-shadow: 0 0 15px purple;
}

#result {
    font-size: 1.8em;
    margin-top: 20px;
    font-weight: bold;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

#turn-indicator {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffcc00;
}