:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --primary: #7a1f2b;
    --primary-hover: #5e1620;
    --text: #1f2933;
    --border: #d1d9e0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
}

main {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    color: var(--primary);
    text-align: center;
}

input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.15);
}

button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.05s ease;
}

button:hover {
    background: var(--primary-hover);
}

button:active {
    transform: scale(0.98);
}

#result {
    min-height: 1.5rem;
    font-weight: 500;
    text-align: center;
}
