/* === Специфичные стили для И-Цзин === */
.i-ching-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 4vh;
    min-height: 100vh;
}

/* Поле вопроса */
.question-box {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    transition: all 0.5s ease;
    overflow: hidden;
}

.question-box.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

.question-box textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 20px;
    border: 2px solid rgba(125, 95, 225, 0.4);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    resize: none;
    padding: 20px;
    outline: none;
    backdrop-filter: blur(10px);
    font-size: 1.2em;
}

/* Кнопка броска монет */
#castBtn {
    padding: 14px 40px;
    background: linear-gradient(135deg, #7d5fff, #4a3a8a);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 20px;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

#castBtn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(125, 95, 225, 0.4); }
#castBtn:active { transform: translateY(1px); }

/* Отображение гексаграммы */
.hexagram-display {
    padding: 20px;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.5s ease;
    min-height: 60px;
}

.hexagram-display.active { min-height: 300px; }

.lines {
    display: flex;
    flex-direction: column-reverse; /* Линии растут снизу вверх */
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.line {
    height: 12px;
    width: 200px;
    border-radius: 4px;
}

.line.yang { background: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.line.yin { display: flex; justify-content: space-between; background: transparent; }
.line.yin::before, .line.yin::after {
    content: ""; width: 45%; height: 100%; background: #ffd700; border-radius: 4px;
}

.coin {
    position: fixed;
    width: 40px; height: 40px;
    background: #ffd700;
    border-radius: 50%;
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #b8860b;
}

.hidden-nav { display: none; flex-direction: column; align-items: center; }
.hidden-nav.show { display: flex; }