:root {
    color-scheme: light;
    font-family: "Montserrat", "Segoe UI", sans-serif;
    background: radial-gradient(circle at bottom right, #ff512f 0%, #dd2476 50%, #40011f 100%);
}

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

.container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(64, 1, 31, 0.45);
    padding: 46px;
    width: min(92%, 620px);
    text-align: center;
    border: 2px solid rgba(255, 81, 47, 0.25);
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.6rem;
    color: #a10c35;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.form-card {
    margin-top: 2rem;
    padding: 1.7rem;
    border-radius: 20px;
    background: rgba(255, 244, 247, 0.9);
    border: 1px dashed rgba(221, 36, 118, 0.4);
}

label {
    display: block;
    text-align: left;
    font-weight: 700;
    color: #7f082a;
    margin-bottom: 1rem;
}

input[type="text"] {
    margin-top: 0.45rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 10px;
    border: 2px solid rgba(221, 36, 118, 0.4);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

button[type="submit"] {
    margin-top: 1.2rem;
    padding: 0.9rem 1.7rem;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    color: #fff5f2;
    background: linear-gradient(120deg, #ff512f, #dd2476);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(221, 36, 118, 0.35);
}

.error {
    margin-top: 1rem;
    color: #d01136;
    font-weight: 700;
}

.result-card {
    margin-top: 2.2rem;
    display: grid;
    gap: 1.6rem;
    padding: 2rem;
    border-radius: 22px;
    background: rgba(255, 245, 246, 0.95);
    border: 2px solid rgba(255, 81, 47, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 81, 47, 0.2);
}

.result-card.empty {
    color: #a10c35;
    font-weight: 600;
}

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

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

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

.message h2 {
    margin: 0 0 0.6rem;
    font-size: 1.9rem;
    color: #8b0426;
    text-transform: uppercase;
}

.message p {
    margin: 0;
    color: #661224;
}

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

    header h1 {
        font-size: 2.1rem;
    }

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

