[hidden] {
    display: none !important;
}

.test-container {
    width: min(800px, 92%);
    margin: 55px auto;
    min-height: 65vh;
}

.test-panel {
    padding: clamp(20px, 5vw, 45px);
    background: #19171e;
    border: 1px solid #3b3338;
    border-radius: 24px;
    text-align: center;
}

.eyebrow {
    color: #d4b483;
    letter-spacing: 3px;
    font-size: 12px;
}

.test-panel h1 {
    color: #ecd0a3;
    font-size: clamp(25px, 5vw, 38px);
}

.test-panel p {
    color: #c7beb5;
}

.test-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 35px 0;
}

.test-stats div {
    background: #242129;
    border-radius: 14px;
    padding: 16px 8px;
    color: #c7beb5;
    font-size: 13px;
}

.test-stats strong {
    display: block;
    color: #d4b483;
    font-size: 30px;
}

.test-guidelines {
    text-align: right;
    background: #211e25;
    border-right: 3px solid #d4b483;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.test-guidelines h3 {
    color: #d4b483;
}

button {
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: #d4b483;
    font-size: 14px;
}

.progress-track {
    height: 7px;
    background: #37313b;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px 0 40px;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #aa804b, #e3c28c);
    transition: width 0.3s;
}

#question-text {
    color: #f1e9dc;
    font-size: clamp(19px, 4vw, 26px);
    line-height: 1.9;
    margin: 35px 0;
}

#answer-options {
    display: grid;
    gap: 12px;
}

.answer-option {
    background: #25212a;
    color: #eee4d8;
    border: 1px solid #403745;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    transition: 0.2s;
}

.answer-option:hover,
.answer-option.selected {
    border-color: #d4b483;
    background: #403325;
    color: #efd2a1;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

#top-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.rank-card {
    background: #252129;
    border: 1px solid #403745;
    border-radius: 15px;
    padding: 20px 10px;
}

.rank-card strong {
    display: block;
    font-size: 24px;
    color: #d4b483;
}

.rank-card span {
    display: block;
    font-size: 13px;
    color: #aaa1a8;
}

.result-row {
    display: grid;
    grid-template-columns: 85px 1fr 65px;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    font-size: 14px;
}

.result-track {
    height: 11px;
    border-radius: 20px;
    background: #37313b;
    overflow: hidden;
}

.result-fill {
    height: 100%;
    border-radius: 20px;
}

#restart-btn {
    margin-top: 35px;
}

#error-message {
    padding: 15px;
    color: #ffb4b4;
    background: #382126;
    border-radius: 12px;
}

@media (max-width: 550px) {
    .test-container {
        margin: 25px auto;
    }

    .rank-card strong {
        font-size: 18px;
    }

    .result-row {
        grid-template-columns: 65px 1fr 50px;
        gap: 7px;
        font-size: 12px;
    }
}

#radar-chart {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 40px;
    padding: 10px;
    background: #151318;
    border: 1px solid #403745;
    border-radius: 20px;
}

#radar-chart svg {
    width: 100%;
    height: auto;
    display: block;
}
