body {
    background: linear-gradient(135deg, #f7fafc 0%, #f0f4f8 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    background: #fffdfa;
    max-width: 420px;
    margin: 40px auto;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(60, 60, 90, 0.08), 0 1.5px 4px 0 rgba(60, 60, 90, 0.03);
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.4rem;
    color: #4a5568;
    font-weight: 500;
}

input[type="number"] {
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #f9fafb;
    font-size: 1rem;
    transition: border 0.2s;
}

input[type="number"]:focus {
    border: 1.5px solid #a0aec0;
    outline: none;
    background: #fff;
}

button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, #f6d365 0%, #fda085 100%);
    color: #2d3748;
    font-weight: bold;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.8rem;
    box-shadow: 0 2px 8px 0 rgba(253, 160, 133, 0.08);
    transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #fda085 0%, #f6d365 100%);
    color: #1a202c;
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f7fafc;
    color: #2d3748;
    font-size: 1.1rem;
    text-align: center;
    min-height: 2.2rem;
    box-shadow: 0 1px 4px 0 rgba(60, 60, 90, 0.04);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

.result.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .container {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        max-width: 98vw;
    }

    h1 {
        font-size: 1.3rem;
    }
}