:root {
    --primary-blue: #1a4f9c;
    --secondary-blue: #2a75d1;
    --accent-yellow: #ffde59;
    --danger-red: #ff4d4d;
    --success-green: #4caf50;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at center, #1e3c72 0%, #122240 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    overflow: hidden;
}

#game-container {
    width: 95%;
    max-width: 1000px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

/* Background Bubbles */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--secondary-blue);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    animation: float 10s infinite alternate ease-in-out;
}

body::before { top: -100px; left: -100px; }
body::after { bottom: -100px; right: -100px; }

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stats {
    display: flex;
    gap: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.heart.lost {
    filter: grayscale(1) opacity(0.3);
    transform: scale(0.8);
}

/* Game Area */
.game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.target-container {
    background: white;
    border-radius: 20px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.image-box {
    width: 80%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box svg, .option-img svg, .image-box img, .option-img img {
    width: 100%;
    height: 100%;
    max-width: 250px;
    object-fit: contain;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px) scale(1.02);
    border-color: var(--accent-yellow);
}

.option-btn .label {
    background: var(--accent-yellow);
    color: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 2rem;
}

.option-img {
    flex: 1;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: brightness(0); /* SILHOUETTE EFFECT */
}

/* Correct/Wrong states */
.option-btn.correct {
    background: var(--success-green);
    border-color: white;
}

.option-btn.wrong {
    background: var(--danger-red);
    border-color: white;
    animation: shake 0.5s;
}

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

/* Modal Overlay */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    z-index: 10;
}

.hidden {
    display: none !important;
}

.modal {
    background: var(--primary-blue);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    border: 4px solid var(--accent-yellow);
    animation: zoomIn 0.5s;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#modal-btn {
    margin-top: 2rem;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50px;
    border: none;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    cursor: pointer;
    transition: transform 0.2s;
}

#modal-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .game-area {
        grid-template-columns: 1fr;
    }
    .target-container {
        height: 250px;
    }
}
