body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: white;
    width: 500px;
    max-width: 500px;
    padding: 5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 2rem;
}

.display-area {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 10px;
}

#name-display {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    transition: all 0.1s ease-in-out;
}

/* Анимация появления/исчезновения при переборе */
.fade-anim {
    animation: fade 0.1s infinite;
}

@keyframes fade {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(1); }
}

button {
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
