.qa-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-modal {
    width: 100%;
    max-width: 500px;
    min-height: 50%;
    border-radius: 12px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #493300;
    justify-content: space-between;
}

.qa-header {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.qa-progress {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 1;
    color: #dd9800;
    font-weight: 600;
}

.qa-question {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
    padding: 0px;
}

.qa-timer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.qa-timer-track {
    width: 100%;
    height: 8px;
    background: rgb(172 116 4 / 20%);
    border-radius: 4px;
    overflow: hidden;
}

.qa-timer-bar {
    height: 100%;
    width: 100%;
    background: #4caf50;
    border-radius: 4px;
    transition: width 1s linear, background 1s ease;
}

.qa-timer-text {
    font-size: 18px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.qa-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.qa-option-btn {
    width: 100%;
    padding: 6px 16px;
    border: 2px solid rgb(228 203 149 / 38%);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: inherit;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
    text-align: left;
}

.qa-option-btn:active {
    transform: scale(0.98);
}

.qa-option-btn:disabled {
    cursor: not-allowed;
}

.qa-option-btn.correct {
    border-color: #4caf50;
    background: rgba(76,175,80,0.2);
}

.qa-option-btn.wrong {
    border-color: #f44336;
    background: rgba(244,67,54,0.2);
}

.qa-option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.qa-option-text {
    flex: 1;
    font-weight: 600;
}

.qa-next-btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.qa-next-btn {
    padding: 6px 30px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.qa-countdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qa-countdown-label {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.qa-countdown-number {
    font-size: 72px;
    font-weight: 800;
    color: #ffcc00;
    animation: qa-countdown-pulse 1s ease-in-out infinite;
}

@keyframes qa-countdown-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.qa-result-content {
    text-align: center;
    margin-bottom: 16px;
}

.qa-result-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.qa-result-accuracy {
    font-size: 16px;
    opacity: 1;
    font-weight: 600;
    color: #c25400;
}

.qa-result-extra-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.qa-result-rewards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
}

.qa-result-btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
