
#modal__container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal__content {
    background-repeat: no-repeat;
    background-size: 100% 100%;

    padding: 40px;
    max-width: 650px;
    width: 80%;

    font-family: 'PressStart2P', cursive;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

p.label {
    font-size: 22px;
    line-height: 30px;
}

.modal__content p {
    margin-bottom: 20px;
}

.modal__heading {
    font-size: 18px;
}

.modal__content--lots-of-content {
    background-image: url("../images/message-bg.png");
}

.modal__content--small-content {
    background-image: url("../images/message-bg--small.png");
}

.modal__content > ul {
    padding-left: 35px;
}

.modal__actions-container {
    display: flex;
    align-items: center;
    flex-direction: column;

    margin-top: 20px;
}

.modal__button {
    background-repeat: no-repeat;
    background-size: 100% 100%;

    font-family: inherit;
    text-align: center;
    font-size: 12px;

    width: 250px;
    padding: 15px 30px;
    margin: 10px;
    border: none;
    cursor: pointer;
}

.modal__button--dark {
    color: white;
    background-image: url("../images/btn--black-big.png");
}

.modal__button--white {
    color: black;
    background-image: url("../images/btn--white-big.png");
}

/* Pressed state visuals for buttons */
.modal__button--dark:active,
.modal__button--dark.is-pressed {
    background-image: url("../images/btn--black-pressed.png");
}

.modal__button--white:active,
.modal__button--white.is-pressed {
    background-image: url("../images/btn--white-pressed.png");
}

/* Добавим в существующие стили */
.modal__form {
    text-align: left;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.modal__input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    background: white;
    font-family: 'PressStart2P', cursive;
    font-size: 14px;
    box-sizing: border-box;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-note {
    font-size: 9px;
    color: #666;
    margin-top: 10px;
}

.form-note > a {
    color: #666;
}

.advice-note {
    font-size: 9px;
    color: #666;
}

/* Endgame highlight */
.modal__content--endgame {
    position: relative;
    animation: modalGlow 3.5s ease-in-out infinite;
}

@keyframes modalGlow {
    0% { filter: drop-shadow(0 0 0 rgba(255, 204, 0, 0)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.35)); }
    100% { filter: drop-shadow(0 0 0 rgba(255, 204, 0, 0)); }
}