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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #0f0f23 100%);
    color: #fff;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 30px;
}

.game-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #8a2be2;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ecdc4;
}

.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.timing-track {
    width: 80%;
    max-width: 600px;
    height: 80px;
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(138, 43, 226, 0.3);
}

.track-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 107, 107, 0.3) 0%,
        rgba(255, 165, 0, 0.3) 25%,
        rgba(76, 205, 196, 0.5) 45%,
        rgba(76, 205, 196, 0.8) 50%,
        rgba(76, 205, 196, 0.8) 55%,
        rgba(76, 205, 196, 0.5) 65%,
        rgba(255, 165, 0, 0.3) 75%,
        rgba(255, 107, 107, 0.3) 100%
    );
    border-radius: 40px;
}

.center-zone {
    position: absolute;
    top: 0;
    left: 45%;
    width: 10%;
    height: 100%;
    background: rgba(76, 205, 196, 0.2);
    border: 2px solid #4ecdc4;
    border-radius: 40px;
    animation: centerGlow 2s ease-in-out infinite alternate;
}

@keyframes centerGlow {
    from { box-shadow: 0 0 20px rgba(76, 205, 196, 0.5); }
    to { box-shadow: 0 0 40px rgba(76, 205, 196, 0.8); }
}

.center-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 60%;
    background: #4ecdc4;
    transform: translate(-50%, -50%);
    border-radius: 2px;
    box-shadow: 0 0 10px #4ecdc4;
}

.moving-bar {
    position: absolute;
    top: 5px;
    left: 0;
    width: 6px;
    height: calc(100% - 10px);
    background: linear-gradient(180deg, #ff6b6b 0%, #ff8e8e  50%, #ff6b6b 100%);
    border-radius: 3px;
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.8),
        0 0 40px rgba(255, 107, 107, 0.4);
    transition: all 0.1s ease;
    animation: barPulse 0.5s ease-in-out infinite alternate;
}

@keyframes barPulse {
    from { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 40px rgba(255, 107, 107, 0.4); }
    to { box-shadow: 0 0 30px rgba(255, 107, 107, 1), 0 0 60px rgba(255, 107, 107, 0.6); }
}

.feedback-zone {
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.feedback-text {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 0 20px currentColor;
    transition: all 0.3s ease;
}

.feedback-text.perfect {
    color: #4ecdc4;
    transform: scale(1.2);
    animation: perfectPulse 0.6s ease-in-out;
}

.feedback-text.good {
    color: #96ceb4;
    transform: scale(1.1);
}

.feedback-text.miss {
    color: #ff6b6b;
    animation: shake 0.5s ease-in-out;
}

@keyframes perfectPulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

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

.accuracy-meter {
    width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.accuracy-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 50%, #4ecdc4 100%);
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.tap-button {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ff6b6b 100%);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 
        0 8px 20px rgba(255, 107, 107, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.tap-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 30px rgba(255, 107, 107, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.tap-button:active {
    transform: scale(0.95);
    box-shadow: 
        0 4px 10px rgba(255, 107, 107, 0.8),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
}

.tap-button.disabled {
    background: linear-gradient(135deg, #666 0%, #888 50%, #666 100%);
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.tap-button.disabled:hover {
    transform: none;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.tap-button.disabled:active {
    transform: none;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
    opacity: 0;
}

@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.control-buttons {
    display: flex;
    gap: 20px;
}

.control-btn {
    padding: 12px 24px;
    border: 2px solid #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    color: #8a2be2;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover:not(:disabled) {
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8a2be2 0%, #4ecdc4 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(76, 205, 196, 0.2) 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(138, 43, 226, 0.5);
    backdrop-filter: blur(20px);
    max-width: 400px;
    width: 90%;
}

.overlay-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.overlay-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #8a2be2 0%, #4ecdc4 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.overlay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
}

.social-sharing {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.share-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 15px;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.twitter-btn {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.twitter-btn:hover {
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.5);
}

.facebook-btn {
    background: linear-gradient(135deg, #4267B2 0%, #365899 100%);
    box-shadow: 0 4px 15px rgba(66, 103, 178, 0.3);
}

.facebook-btn:hover {
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.5);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.copy-btn {
    background: linear-gradient(135deg, #8a2be2 0%, #6a1b9a 100%);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.copy-btn:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.share-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .social-sharing {
        margin: 20px 0;
        padding: 15px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        max-width: 250px;
    }
    
    .share-btn {
        padding: 14px 20px;
        font-size: 0.85rem;
    }
    
    .share-title {
        font-size: 1.1rem;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4ecdc4;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 2s linear forwards;
    box-shadow: 0 0 10px currentColor;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 8px 15px;
    }
    
    .timing-track {
        width: 95%;
    }
    
    .tap-button {
        width: 120px;
        height: 120px;
        font-size: 1rem;
    }
    
    .control-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feedback-text {
        font-size: 1.5rem;
    }
}