        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }

        body {
            background: radial-gradient(circle at center, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
            color: #fff;
            font-family: 'Inter', system-ui, sans-serif;
            height: 100vh;
            overflow: hidden;
        }

        #game-area {
            width: 100vw;
            height: 100vh;
            overflow: hidden;
        }

        .target {
            position: absolute;
            width: 60px;
            height: 60px;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }

        .target-ring {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 3px solid rgba(59, 130, 246, 0.8);
            border-radius: 50%;
            animation: pulse 2s infinite;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
        }

        @keyframes pulse {
            0% { transform: scale(0.95); opacity: 0.8; }
            50% { transform: scale(1.1); opacity: 0.4; }
            100% { transform: scale(0.95); opacity: 0.8; }
        }

        #viewpoint-indicator {
            position: fixed;
            width: 16px;
            height: 16px;
            background: #22c55e;
            border: 2px solid rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 150;
            box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
            transition: all 0.1s ease-out;
        }
        
        .difficulty-dropdown {
            width: 200px;
            padding: 0.5rem;
            margin: 0.5rem auto;
            background: #020d82;
            color: white;
            border: 1px solid #3b82f6;
            border-radius: 4px;
            font-size: 1rem;
            text-align: center;
            -webkit-appearance: none;
            appearance: none;
        }
        
        .difficulty-dropdown:focus {
            outline: none;
            border-color: #2563eb;
        }
        .difficulty-select {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 8px;
            background: rgba(59, 130, 246, 0.1);
            border: 2px solid #3b82f6;
            border-radius: 4px;
            color: white;
            z-index: 1000;
        }

        #menu {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 2rem;
            border-radius: 8px;
            z-index: 300;
            text-align: center;
        }

        .menu-title {
            font-size:2.9rem;
            margin-bottom: 1rem;
            color: white;
        }
        
        #hud {
            position: fixed;
            top: 50px;
            left: 0;
            width: 100%;
            padding: 1rem;
         
            z-index: 200;
        }

        .stats {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        #feedback {
            text-align: center;
            color: #66fb9a;
            font-weight: bold;
            text-shadow: 0 0 10px rgba(221, 234, 253, 0.2);
        }

        #stability-indicator {
            position: fixed;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            padding: 0.5rem 1rem;
            border-radius: 4px;
            color: #3b82f6;
        }


        .start-button {
            display: block;
            width: 200px;
            padding: 1rem;
            margin: 0.5rem auto;
            background: #07b142;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            transition: background 0.3s ease;
        }
        #countdown {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 4rem;
            color: #3b82f6;
            z-index: 400;
        }

        .hidden {
            display: none !important;
        }

@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #22c55e;
    font-size: 2rem;
    font-weight: bold;
    pointer-events: none;
    animation: successPop 1s ease-out forwards;
    z-index: 300;
    text-shadow: 0 0 10px rgba(34,197,94,0.5);
}


@keyframes hit-flash {
    0% { transform: scale(1) translate(-50%, -50%); }
    50% { transform: scale(1.2) translate(-50%, -50%); }
    100% { transform: scale(1) translate(-50%, -50%); }
}
.icon-container {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}
.icon-button {
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.icon-button:hover {
    transform: scale(1.05);
}
.share-icon {
    width: 24px;
    height: 24px;
}
.share-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    margin-top: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
}
.share-options.active {
    display: block;
}
.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 6px;
    color: black;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.share-option:hover {
    background: #f5f5f5;
}
.icon-container {
position: fixed;
top: 10px;
left: 10px;
display: flex;
gap: 8px;
z-index: 1000;
}
.icon-button {
cursor: pointer;
padding: 8px;
border-radius: 50%;
border: none;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
background: rgba(0, 0, 0, 0.8);
color: white;
}
.share-icon {
width: 20px;
height: 20px;
}
.share-options {
display: none;
position: absolute;
top: 100%;
left: 0;
background: white;
border-radius: 8px;
padding: 8px;
margin-top: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
min-width: 160px;
}
.share-options.active {
display: block;
}
.share-option {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
cursor: pointer;
border-radius: 6px;
color: black;
text-decoration: none;
background: none;
border: none;
width: 100%;
text-align: left;
}
.share-option:hover {
background: #f5f5f5;
}

@media (max-width: 768px) {
.icon-container {
top: 10px;
left: 10px;
gap: 8px;
}
.icon-button {
padding: 8px;
}
.share-icon {
width: 20px;
height: 20px;
}
.share-options {
min-width: 160px;
}}