* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    background: #f5f5f5;
}

#heading {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
}

#names-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

#text {
    white-space: pre-line;
    font-size: 1.1rem;
    margin: 0;
}

form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #666;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1rem;
}

button {
    background: #007aff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 10px;
    min-height: 44px;
}

#add-name {
    margin-bottom: 10px;
}

button:active {
    background: #0056cc;
}

#next {
    width: 100%;
    background: #34c759;
    font-size: 1.1rem;
}

#next:active {
    background: #248a3d;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    button {
        width: 100%;
        margin-right: 0;
    }
}
