@font-face {
    font-family: 'Russo One';
    src:url('fonts/RussoOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none
}
.input_name {
    font-family: 'Russo One', sans-serif;
    font-size: max(2vw, 18px); /* Чуть меньше шрифт */
    color: #3b3b3b;
    background-color: white;
    text-align: center;
    border: none;
    border-radius: max(0.7vw, 12px);
    outline: none;
    padding: max(0.6vw, 8px);
    width: 35vw;

    max-width: 450px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}

.input_container {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: max(1.2vw, 12px);
    margin-top: 20px;
}
.input_name::selection {
    background: transparent; /* Убирает выделение */
    color: inherit; /* Оставляет стандартный цвет */
}
.input_name::placeholder {
    font-family: 'Russo One', sans-serif; /* Шрифт */
    font-size: max(1.7vw, 16px); /* Размер шрифта */
    color: #8a8a8a; /* Цвет текста плейсхолдера */
    opacity: 1; /* Делаем текст полностью видимым */
}

.button_ok {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(20px, 2.5vw, 40px); /* Минимум 14px, оптимум 1.5vw, максимум 18px */
    color: #3b3b3b;
    background-color: #ffd700;
    border: 3px solid #3b3b3b;
    border-radius: max(0.7vw, 12px);
    padding: 6px 12px; /* Оптимизированные отступы */
    cursor: pointer;
    text-align: center;
    min-width: 90px;
    min-height: 40px;
    box-shadow: 0px 4px 0px #3b3b3b, 0px 6px 10px #3b3b3b;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;

    /** Гарантируем, что текст по центру и переносится **/
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: normal; /* Разрешаем перенос строк */
    word-wrap: break-word;
    text-align: center;
    line-height: 1.2;
}



.button_ok:active {
    box-shadow: 0px 2px 0px #3b3b3b, 0px 4px 8px #3b3b3b;
    transform: translateY(4px);
}


@media (max-width: 480px) {
    .input_name {
        font-size: max(3vw, 12px);
        padding: max(0.5vw, 3px);
        width: 80%;
        max-width: 300px;
        min-width: auto;
    }

@media (max-width: 480px) {
    .button_ok {
        font-size: clamp(12px, 2vw, 16px); /* На мобильных шрифт чуть крупнее */
        min-height: 36px;
        padding: 4px 10px;
        width: auto;
        max-width: 85%;
    }
}

.name_read {
    font-family: 'Russo One', sans-serif;
    font-size: max(2vw, 16px);
    color: #3b3b3b;

    /* Размер кнопки */
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1; /* Квадратная форма */
    padding: 0; /* Без внутренних отступов */

    /* Иконка */
    background-image: url('pencil_pen.svg'); 
    background-size: 40px 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffd700;
    
    /* Граница и тень */
    border: 3px solid #3b3b3b;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
   
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;

    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.name_read:active {
    transform: translateY(4px);
}

/* Прогресс */

.progress-container {
    width: 250px; /* Ширина */
    height: 20px; /* Высота */
    border: 3px solid #3b3b3b; /* Граница */
    border-radius: 12px; /* Закругление */
    
    overflow: hidden; /* Обрезаем выходящий progress */
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 50%; /* Начальное значение */
    border-radius: 10px;
    box-shadow: inset 0px -3px 0px rgba(255, 215, 0, 1); /* Убираем затемнение */
    transition: width 0.3s ease-in-out; /* Плавное заполнение */
}

progress {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
}

progress::-webkit-progress-bar {
    background: #3b3b3b; /* Тёмный фон контейнера */
    border-radius: 12px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, #ffd700, #ffcc00) !important;
    border-radius: 10px;
}

