/* Гадание «Спиритическая доска» */
.mgcsd {
    width: 100%;
    min-height: 350px;
    margin: 20px auto;
    font-family: 'EB Garamond', 'Georgia', serif;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* Доска и указатель; указатель перемещает скрипт */
.mgcsd-board {
    width: 100%;
    height: 100%;
    max-width: 432px;
    max-height: 300px;
}
.mgcsd-cursor {
    transform: translate(0px, 150px);
    transition: transform 0.5s linear;
}

/* То, что выписал указатель, — текстом под доской */
.mgcsd-said {
    min-height: 1.3em;
    margin: 4px 0 10px;
    font-size: 24px;
    font-style: italic;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: #4a3828;
}
.mgcsd-heard {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Сообщения «Сеанс закончен», «Духи сейчас молчат» */
.mgcsd-answer {
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 1s linear;
}
.mgcsd-hide {
    opacity: 0;
}
/* Кнопки и поле вопроса показывает скрипт; правило сильнее общего .mgc-btn-2 { display: flex } ниже */
.mgcsd .mgcsd-connect,
.mgcsd .mgcsd-next,
.mgcsd .mgcsd-ask {
    display: none;
}

/* Вопрос духу */
.mgcsd-ask-wrap {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 20px auto;
}
.mgcsd-ask-wrap > div {
    display: table-cell;
    width: 0;
    white-space: nowrap;
}
.mgcsd-ask-wrap > div:last-child {
    width: 100%;
}
.mgcsd-ask-wrap span {
    display: inline-block;
    vertical-align: middle;
}
.mgcsd .mgcsd-question {
    width: 100%;
    padding: 3px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    color: #4a3828;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #9e9e9e;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    box-sizing: content-box;
    transition: box-shadow 0.3s, border 0.3s;
}
/* Тема красит текст поля в фокусе в #111 — оставляем цвет сайта */
.mgcsd .mgcsd-question:focus {
    color: #4a3828;
    border-bottom-color: #8b5a2b;
    box-shadow: 0 1px 0 0 #8b5a2b;
}

/* Кнопка */
.mgc-btn-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 235px;
    height: 65px;
    margin: 10px auto 0;
    background-color: #f1e7d4;
    background-image: url('/wp-content/themes/gadanie-online/assets/images/knopka.webp');
    background-size: cover;
    background-position: center;
    color: #4a3828;
    font-size: 17px;
    font-weight: 400;
    font-family: 'EB Garamond', 'Georgia', serif;
    border: none;
    border-radius: 0;
    padding: 0 0 4px 0;
    outline: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.mgc-btn-2:hover {
    transform: translateY(-2px);
}
.mgc-btn-2:active,
.mgc-btn-2.mgc-btn-2--active {
    background-image: url('/wp-content/themes/gadanie-online/assets/images/knopka-1.webp');
    transform: translateY(2px);
}

@media (max-width: 650px) {
    .mgcsd-ask-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mgcsd-ask-wrap > div {
        width: initial;
    }
    .mgcsd-said {
        font-size: 21px;
    }
}
