/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #3a4c66 100%);
    min-height: 100vh;
    overflow: hidden;
    cursor: none;
    user-select: none;
}

/* Main container */
.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Catch counter */
.catch-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    transform: none;
    font-size: 4rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Game timer */
.game-timer {
    position: absolute;
    top: 20px;
    right: 20px;
    transform: none;
    font-size: 4rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Game score */
.game-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
    pointer-events: none;
    z-index: 0;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Click target styling */
.click-target {
    position: absolute;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 15px;
    border: 3px solid #3498db;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    backdrop-filter: blur(10px);
    z-index: 10;
    
    /* Ensure entire button area is clickable */
    pointer-events: auto;
    user-select: none;
    display: block;
    min-width: 200px;
    min-height: 80px;
    text-align: center;
    line-height: 1.2;
}

.click-target:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Trap overlay */
.trap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 46, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    animation: trapAppear 0.5s ease-out;
}

.trap-overlay.hidden {
    display: none;
}

.trap-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: trapContentAppear 0.8s ease-out 0.2s both;
}

.trap-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: shake 0.5s ease-in-out infinite alternate;
}

.trap-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.escape-button {
    font-size: 1.2rem;
    padding: 15px 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.escape-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

/* Animations */
@keyframes trapAppear {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes trapContentAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shake {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

/* Responsive design */
@media (max-width: 768px) {
    .click-target {
        font-size: 2rem;
        padding: 15px 30px;
    }
    
    .trap-content h1 {
        font-size: 2.5rem;
    }
    
    .trap-content p {
        font-size: 1.1rem;
    }
    
    .trap-content {
        padding: 30px 20px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .click-target {
        font-size: 1.8rem;
        padding: 12px 25px;
    }
    
    .trap-content h1 {
        font-size: 2rem;
    }
    
    .trap-content p {
        font-size: 1rem;
    }
}

/* Custom cursor for desktop */
@media (hover: hover) {
    body {
        cursor: crosshair;
    }
    
    .click-target {
        cursor: pointer;
    }
}

/* Performance optimizations */
.click-target {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}
