* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #111318;
    color: #f3f5f7;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: #d6b46b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: #1a1f27;
    border: 1px solid #2a313d;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

h1, h2, h3 {
    margin-top: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.site-title {
    font-size: 22px;
    font-weight: bold;
}

.lang-switch {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-switch a,
.lang-switch span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: #242c37;
    color: #fff;
    font-size: 14px;
}

.lang-switch .active {
    background: #d6b46b;
    color: #111318;
    font-weight: bold;
}

.intro-text {
    color: #d7dce3;
}

.note {
    color: #f0c97b;
    font-size: 14px;
}

.button,
button.button {
    display: inline-block;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    background: #d6b46b;
    color: #111318;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.button:hover,
button.button:hover {
    opacity: 0.95;
    text-decoration: none;
}

.question-card {
    background: #1a1f27;
    border: 1px solid #2a313d;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.question-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.question-text {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.help-btn {
    border: 0;
    background: #2a313d;
    color: #fff;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.answers {
    margin-top: 14px;
}

.answer-option {
    display: block;
    margin-bottom: 10px;
    background: #242c37;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    border: 1px solid transparent;
}

.answer-option:hover {
    border-color: #d6b46b;
}

.answer-option input {
    margin-right: 10px;
}

.error-box {
    background: #4a1d22;
    color: #ffd8dd;
    border: 1px solid #84414a;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.result-bar-wrap {
    background: #242c37;
    border-radius: 999px;
    overflow: hidden;
    height: 16px;
    margin-top: 6px;
}

.result-bar {
    height: 16px;
    background: #d6b46b;
}

.result-row {
    margin-bottom: 18px;
}

.small {
    font-size: 14px;
    color: #cdd3db;
}

.copy-box {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.copy-box input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #394352;
    background: #0f1319;
    color: #fff;
    font-size: 15px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 999;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 560px;
    background: #1a1f27;
    border: 1px solid #2a313d;
    border-radius: 16px;
    padding: 18px;
}

.modal-box h3 {
    margin-bottom: 10px;
}

.modal-actions {
    margin-top: 16px;
}

.progress-wrap {
    margin-bottom: 16px;
}

.progress-bar-bg {
    background: #242c37;
    border-radius: 999px;
    overflow: hidden;
    height: 14px;
}

.progress-bar-fill {
    height: 14px;
    background: #d6b46b;
}

.progress-text {
    margin-top: 6px;
    font-size: 14px;
    color: #d7dce3;
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
    }

    .card,
    .question-card {
        padding: 22px;
    }

    .question-text {
        font-size: 20px;
    }

    .copy-box {
        flex-direction: row;
        align-items: center;
    }

    .copy-box input {
        flex: 1;
    }

    .copy-box .button {
        width: auto;
        min-width: 180px;
    }
}

.scale-wrap {
    margin-top: 14px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.scale-labels span:first-child {
    color: #d85c5c;
}

.scale-labels span:nth-child(2) {
    color: #c9c36a;
    text-align: center;
    flex: 1;
}

.scale-labels span:last-child {
    color: #58c96b;
    text-align: right;
}

.scale-options {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.scale-option {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 6px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #2f3744;
}

.scale-option input {
    display: none;
}

.scale-dot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(255,255,255,0.15);
}

.scale-option-1 { background: #7b2323; }
.scale-option-2 { background: #9a4d2d; }
.scale-option-3 { background: #9c7b2f; }
.scale-option-4 { background: #8c8c46; }
.scale-option-5 { background: #5f9440; }
.scale-option-6 { background: #3d8d39; }
.scale-option-7 { background: #1f8a32; }

.scale-option input:checked + .scale-dot {
    background: #111;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.22) inset;
}

.question-missing {
    border: 2px solid #d85c5c;
    box-shadow: 0 0 0 2px rgba(216, 92, 92, 0.15);
}

