* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
    background: #1d1f26;
    color: #f2f2f2;
}

.generator {
    width: min(720px, 100%);
    padding: 24px;
    border-radius: 12px;
    background: #292c35;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

h1 {
    margin: 0 0 24px;
    font-size: 28px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: bold;
}

select,
input,
button {
    min-height: 42px;
    border: 1px solid #555b69;
    border-radius: 6px;
    font: inherit;
}

select,
input {
    padding: 0 12px;
    background: #20232b;
    color: #f2f2f2;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

button {
    padding: 0 18px;
    cursor: pointer;
    background: #5568d9;
    color: white;
    border: none;
    font-weight: bold;
}

button:hover {
    filter: brightness(1.08);
}

button.secondary {
    background: #444956;
}

.result {
    margin-top: 24px;
}

.result h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

#names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#names li {
    padding: 12px 14px;
    border-radius: 6px;
    background: #20232b;
    border: 1px solid #3d424f;
}

.message {
    margin-top: 12px;
    min-height: 20px;
    color: #b8bdd0;
}

@media(max-width: 640px) {
    .controls {
        grid-template-columns: 1fr;
    }

    #names {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }
}