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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 0;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cat-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cat-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.cat-gif.loaded {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #666;
    animation: pulse 1.5s infinite;
}

.loading.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.status-text {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 3px;
    display: inline-block;
    transition: all 0.3s ease;
}

.status-text.yes {
    color: #10b981;
    animation: bounce 0.5s ease;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.status-text.no {
    color: #ef4444;
    animation: shake 0.5s ease;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.status-text.checking {
    color: #6b7280;
    animation: pulse 1.5s infinite;
}

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

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

.check-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.check-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.check-button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    body {
        padding: 0;
        align-items: flex-start;
        overflow: hidden;
    }
    
    .container {
        padding: 0.75rem;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        margin-top: 0;
    }
    
    .cat-container {
        width: calc(100vw - 1.5rem);
        max-width: 350px;
        height: calc((100vh - 280px));
        max-height: 350px;
        margin: 0 auto 0.5rem;
        flex-shrink: 1;
    }
    
    .status {
        margin: 0.5rem -0.25rem;
        padding: 0.5rem 0.25rem;
    }
    
    .status-text {
        font-size: 2rem;
        letter-spacing: 1px;
        word-break: break-word;
    }
    
    .status-text.checking {
        font-size: 1.5rem;
    }
    
    .check-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }
    
    .loading {
        font-size: 0.9rem;
    }
}