@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 20% 80%, #ff69b4 0%, #ff1493 25%, #8b008b 50%, #2e0854 75%, #000 100%);
    color: #fff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modal d'instruccions */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.9), rgba(139, 0, 139, 0.9));
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.instructions {
    margin-bottom: 2rem;
}

.instruction-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instruction-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 40px;
}

.instruction-item p {
    font-size: 1rem;
    line-height: 1.4;
}

.start-game-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="20" r="0.5" fill="rgba(255,192,203,0.2)"/><circle cx="80" cy="30" r="0.8" fill="rgba(255,105,180,0.1)"/></svg>');
    animation: sparkle 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Header compactat */
.header {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 105, 180, 0.3);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.camera-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px #ff69b4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.title-section {
    text-align: center;
    flex-grow: 1;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ffc0cb, #ff69b4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

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

.subtitle {
    font-size: 1rem;
    color: #ffc0cb;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.coming-soon-badge {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from { box-shadow: 0 0 10px #ff69b4; }
    to { box-shadow: 0 0 20px #ff69b4, 0 0 30px #ff1493; }
}

/* Main content compactat */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
}

.game-section {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.game-header h3 {
    color: #ffc0cb;
    font-size: 1.5rem;
    font-weight: 600;
}

.instructions-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 105, 180, 0.4);
    color: #ffc0cb;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.instructions-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    transform: scale(1.05);
}

.game-container {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 105, 180, 0.4);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
}

.camera-viewfinder {
    width: 350px;
    height: 250px;
    border: 3px solid #ff69b4;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(139, 0, 139, 0.3));
    position: relative;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 
        inset 0 0 30px rgba(255, 105, 180, 0.2),
        0 0 20px rgba(255, 105, 180, 0.3);
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #ff69b4;
    z-index: 3;
    filter: drop-shadow(0 0 10px #ff69b4);
    animation: crosshairPulse 1s infinite;
}

@keyframes crosshairPulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.moving-target {
    position: absolute;
    font-size: 2rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    z-index: 2;
    filter: drop-shadow(0 0 10px currentColor);
    animation: targetGlow 1.5s infinite alternate;
}

@keyframes targetGlow {
    from { filter: drop-shadow(0 0 5px currentColor); }
    to { filter: drop-shadow(0 0 15px currentColor) drop-shadow(0 0 25px currentColor); }
}

.game-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.capture-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ff69b4);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
    animation: buttonShine 3s infinite;
}

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

.capture-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 105, 180, 0.6);
}

.game-stats {
    display: flex;
    gap: 2rem;
}

.score, .timer {
    font-size: 1.2rem;
    color: #ffc0cb;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 105, 180, 0.3);
}

/* Footer compactat */
.footer {
    padding: 1rem 2rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 105, 180, 0.3);
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-section p {
    color: #ffc0cb;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links span {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.1);
}

.social-links span:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(255, 105, 180, 0.3);
}

/* ...existing code for animations... */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .camera-viewfinder {
        width: 280px;
        height: 200px;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .contact-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
}
