:root {
    --bg-color: #f0f2f5;
    --primary-color: #ffffff;
    --accent-color: #6a1b9a;
    --gradient-1: #9b51e0;
    --gradient-2: #4a2c7a;
    --text-color: #1c1f30;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    overflow: hidden;
}

.container {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
    width: 90%;
    max-width: 500px;
    margin: 50px auto 80px;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--accent-color);
}

p {
    margin: 0 0 20px;
    line-height: 1.5;
}

.choices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background-color: #f0f2f5;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 120px;
}

.choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.choice-btn .emoji {
    font-size: 3em;
}

.choice-btn span {
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 5px;
}

.game-info {
    min-height: 120px;
    margin-bottom: 15px;
}

#result-display {
    font-size: 1.8em;
    font-weight: 700;
    margin: 10px 0;
    color: #4a2c7a;
}

.score {
    font-size: 1.2em;
    font-weight: 600;
    color: #555;
}

.restart-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--gradient-1), var(--gradient-2));
    margin-top: 20px;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* --- Popup Styles --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.popup-container {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-container h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
}

.popup-score {
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0;
}

.popup-score p {
    margin: 5px 0;
}


footer {
    background-color: var(--bg-color);
    text-align: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.footer-links {
    color: #555;
    font-size: 0.8em;
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    color: #777;
    font-size: 0.7em;
}
