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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
    cursor: crosshair;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}

.site-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: normal;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px 5px;
    border-radius: 8px 8px 0 0;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-title a:hover {
    color: #666;
}

.site-tagline {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-style: italic;
    color: #666;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 20px 10px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #eee;
}

.game-instructions {
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}

.game-instructions h2 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    text-shadow: none;
}

.instructions {
    margin: 0;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: none;
    max-width: 600px;
}

.card {
    position: absolute;
    width: 200px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 20px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
    transform-origin: center;
}

.card:active {
    cursor: grabbing;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #333;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.card.caught {
    animation: caught 0.5s ease-out;
    border: 3px solid #4CAF50;
}

@keyframes caught {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1.05) rotate(0deg);
    }
}

.card.bouncing {
    animation: bounce-glow 2s infinite ease-in-out;
}

@keyframes bounce-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    50% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .instructions {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .card {
        width: 180px;
        padding: 15px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.8rem;
    }
}