
.temperament-page {
    min-height: 100vh;
    padding: 50px 20px;
}

.temperament-container {
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: #c9b8e8;
    text-decoration: none;
    margin-bottom: 45px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #a77bff;
}

.temperament-intro,
.temperament-quiz,
.temperament-result {
    background: #171321;
    border: 1px solid #302541;
    border-radius: 22px;
    padding: 40px;
}

.temperament-intro h1,
.temperament-result h1 {
    font-size: clamp(28px, 5vw, 42px);
    color: #e9ddff;
    margin: 18px 0;
}

.temperament-intro p,
.temperament-result p {
    color: #b9accd;
    line-height: 1.8;
    font-size: 16px;
}

.temperament-intro .main-button,
.temperament-result .main-button {
    margin-top: 25px;
    cursor: pointer;
}

.quiz-progress {
    margin-bottom: 35px;
}

#question-counter {
    display: block;
    color: #b9accd;
    font-size: 14px;
    margin-bottom: 12px;
}

.quiz-progress-track {
    width: 100%;
    height: 7px;
    background: #302541;
    border-radius: 20px;
    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: #a77bff;
    border-radius: 20px;
    transition: width 0.3s ease;
}

#question-text {
    color: #e9ddff;
    font-size: clamp(21px, 4vw, 28px);
    line-height: 1.5;
    margin-bottom: 30px;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.answer-option {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    border: 1px solid #392d4b;
    border-radius: 14px;
    background: #211a30;
    color: #e5d9f5;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    transition: 0.2s;
}

.answer-option:hover {
    border-color: #a77bff;
    background: #2b203d;
    transform: translateY(-2px);
}

.answer-option:focus-visible {
    outline: 2px solid #a77bff;
    outline-offset: 3px;
}

.temperament-result {
    margin-bottom: 30px;
}

.result-section {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #302541;
}

.result-section h3 {
    color: #a77bff;
    margin-bottom: 12px;
}

.result-section p {
    color: #c9bddb;
    line-height: 1.8;
}

.result-scale {
    margin-top: 25px;
}

.result-scale h3 {
    color: #a77bff;
    font-size: 17px;
    margin-bottom: 10px;
}

.result-scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #c9b8e8;
}

.result-bar {
    display: flex;
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: #211a30;
}

.result-bar-first {
    height: 100%;
    background: #8052d6;
}

.result-bar-second {
    height: 100%;
    background: #c3a5ff;
}

[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .temperament-page {
        padding: 25px 15px;
    }

    .temperament-intro,
    .temperament-quiz,
    .temperament-result {
        padding: 25px 20px;
    }

    .back-link {
        margin-bottom: 25px;
    }

    .answer-option {
        padding: 16px;
    }
}

