:root {
    color-scheme: light;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #ffe1f0 0%, #ffd1e8 35%, #fbd5ff 100%);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #541b4b;
}

.container {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 32px;
    box-shadow: 0 24px 50px rgba(255, 107, 190, 0.2);
    padding: 48px;
    max-width: 640px;
    width: min(90%, 640px);
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
}

.description {
    margin-top: 0;
    color: #8a3f78;
    font-size: 1.05rem;
}

.form-card {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 171, 218, 0.4);
}

label {
    display: block;
    text-align: left;
    font-weight: 600;
    color: #6c2f60;
    margin-bottom: 1rem;
}

input[type="text"] {
    margin-top: 0.35rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(214, 99, 175, 0.4);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #ff6bbe;
    box-shadow: 0 0 0 4px rgba(255, 107, 190, 0.2);
}

button[type="submit"] {
    margin-top: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ff6bbe, #ff88d3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 190, 0.35);
}

.error {
    margin-top: 1rem;
    color: #c2325d;
    font-weight: 600;
}

.result-card {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 171, 218, 0.4);
    box-shadow: 0 18px 40px rgba(255, 137, 201, 0.18);
}

.result-card.empty {
    color: #8a3f78;
    font-weight: 500;
}

.score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    color: #ff3c9c;
}

.score-display .value {
    font-size: 4rem;
    font-weight: 800;
}

.score-display .unit {
    font-size: 1.25rem;
    font-weight: 600;
}

.message h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
}

.message p {
    margin: 0;
    color: #7d2e69;
}

@media (max-width: 600px) {
    .container {
        padding: 32px 24px;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .score-display .value {
        font-size: 3rem;
    }
}

