:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --neon-green: #00ff87;
    --dark-bg: #0d0221;
    --darker-bg: #070116;
    --text-light: #ffffff;
    --text-dim: #a5a5a5;
    --glow: 0 0 10px, 0 0 20px, 0 0 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, var(--darker-bg) 0%, var(--dark-bg) 100%);
    overflow: hidden;
}

.game-card {
    background: rgba(13, 2, 33, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(5, 217, 232, 0.1) 0%, rgba(255, 42, 109, 0.1) 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.game-stats {
    display: flex;
    gap: 15px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 100px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.game-area {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(5, 217, 232, 0.05) 0%, rgba(13, 2, 33, 0) 70%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(13, 2, 33, 0.8);
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.game-overlay h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.game-overlay p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dim);
}

.result-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    width: 80%;
    max-width: 300px;
}

.result-box p {
    font-size: 1.3rem;
    margin: 10px 0;
    color: white;
}

.result-box span {
    color: var(--neon-green);
    font-weight: bold;
}

.target {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    z-index: 5;
}

.target-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 42, 109, 0.8) 0%, rgba(211, 0, 197, 0.4) 70%);
    box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
    animation: pulse 2s infinite alternate;
}

.target-inner {
    position: relative;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: 2;
}

.target:hover {
    transform: scale(1.1);
}

.target:active {
    transform: scale(0.9);
}

.neon-btn {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    margin: 10px 0;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    transition: 0.5s;
    background: rgba(5, 217, 232, 0.1);
    border: none;
    cursor: pointer;
}

.neon-btn:hover {
    color: var(--text-light);
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 40px var(--neon-blue), 0 0 80px var(--neon-blue);
}

.neon-btn span {
    position: absolute;
    display: block;
}

.neon-btn span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue));
}

.neon-btn:hover span:nth-child(1) {
    left: 100%;
    transition: 1s;
}

.neon-btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--neon-blue));
}

.neon-btn:hover span:nth-child(2) {
    top: 100%;
    transition: 1s;
    transition-delay: 0.25s;
}

.neon-btn span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--neon-blue));
}

.neon-btn:hover span:nth-child(3) {
    right: 100%;
    transition: 1s;
    transition-delay: 0.5s;
}

.neon-btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--neon-blue));
}

.neon-btn:hover span:nth-child(4) {
    bottom: 100%;
    transition: 1s;
    transition-delay: 0.75s;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.difficulty-selector label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difficulty-options {
    display: flex;
    gap: 10px;
}

.difficulty-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.difficulty-btn.active {
    background: var(--neon-purple);
    color: white;
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.difficulty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sound-toggle label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--neon-blue);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--neon-pink);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .game-area {
        height: 400px;
    }
    
    .game-overlay h2 {
        font-size: 2rem;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .game-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-box {
        width: 100%;
    }
    
    .target {
        width: 60px;
        height: 60px;
    }
}