.game-container {
    background: #1e293b;
    padding: 1rem;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    text-align: center;
    width: 80vw;
}

#ui-title {
    color: white;
}

#ui-subtitle {
    color: white;
}

#ui-score {
    color: white;
    font-size: 1rem;
}

.stats-lives {
    display: flex;
    justify-content: right;
    margin: 0.5rem;
}

.lang-picker {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.lang-btn {
    font-size: 18px;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px 8px;
    transition: 0.3s;
}

.lang-btn.active {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.2);
}

#game-canvas {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: white;
    background-image:
        radial-gradient(#cbd5e1 2px, transparent 2px),
        linear-gradient(45deg, transparent 49%, #cbd5e1 50%, transparent 51%);
    background-size: 30px 30px, 60px 60px;
    border-radius: 12px;
    margin: 15px 0;
    overflow: hidden;
    cursor: crosshair;
}

#ui-msg-title {
    color: white;
}

#game-screen {
    position: relative;
}

.hidden-item {
    position: absolute;
    font-size: 28px;
    user-select: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s;
    animation: jitter 10s infinite alternate ease-in-out;
}

@keyframes jitter {
    0% {
        transform: rotate(var(--rot)) translate(0, 0);
    }

    100% {
        transform: rotate(var(--rot)) translate(2px, 2px);
    }
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 1.2rem;
    color: #94a3b8;
}

.target-bar {
    background: #0f172a;
    color: white;
    padding: 10px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--primary);
}

#target-emoji {
    font-size: 2.2rem;
}

#target-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fbbf24;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.btn-main {
    padding: 15px 40px;
    font-size: 1.2rem;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(233, 194, 137, 0.4);
}

.found-anim {
    animation: found-effect 0.8s ease-out forwards;
    z-index: 100;
}

@keyframes found-effect {
    0% {
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }

    50% {
        transform: scale(4) rotate(180deg);
        filter: brightness(2);
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

#ui-gameover-title {
    color: white;
}

#ui-final-score {
    color: white;
}