.mqp-quiz-container {
	--mqp-bg: #ffffff;
	--mqp-text: #222222;
	--mqp-btn-bg: #2271b1;
	--mqp-btn-text: #ffffff;

	max-width: 600px;
	margin: 20px auto;
	padding: 24px;
	border-radius: 8px;
	background: var(--mqp-bg);
	color: var(--mqp-text);
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	font-family: inherit;
}

.mqp-title {
	margin-top: 0;
	color: var(--mqp-text);
}

.mqp-progress {
	font-size: 13px;
	opacity: 0.7;
	margin-bottom: 8px;
}

.mqp-question-text {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	overflow-wrap: break-word;
	word-break: break-word;
}

.mqp-media-image,
.mqp-media-video {
	max-width: 100%;
	border-radius: 6px;
	margin-bottom: 15px;
}

.mqp-media-audio {
	width: 100%;
	margin-bottom: 15px;
}

.mqp-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
	min-width: 0;
}

.mqp-option-btn {
	text-align: left;
	padding: 12px 15px;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 6px;
	background: rgba(0,0,0,0.03);
	color: var(--mqp-text);
	cursor: pointer;
	font-size: 15px;
	transition: background 0.15s, border-color 0.15s;
	/* Sem isso, um item de flex-column não encolhe pra caber texto longo/sem espaços
	   (ex.: um número grande ou uma palavra comprida) e ele "fura" pra fora da caixa. */
	min-width: 0;
	width: 100%;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	box-sizing: border-box;
}

.mqp-option-btn:hover:not(:disabled) {
	background: rgba(0,0,0,0.07);
}

.mqp-option-btn.mqp-selected {
	border-color: var(--mqp-btn-bg);
	background: rgba(0,0,0,0.08);
}

.mqp-option-btn.mqp-correct {
	border-color: #2e8b3d;
	background: #e6f6e9;
	color: #1e3d24;
}

.mqp-option-btn.mqp-incorrect {
	border-color: #b32d2e;
	background: #fbe9e9;
	color: #4a1414;
}

.mqp-option-btn:disabled {
	cursor: default;
}

.mqp-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.mqp-nav-btn {
	padding: 10px 20px;
	border-radius: 6px;
	border: none;
	background: var(--mqp-btn-bg);
	color: var(--mqp-btn-text);
	cursor: pointer;
	font-size: 14px;
}

.mqp-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mqp-nav-btn.mqp-prev,
.mqp-nav-btn.mqp-secondary-btn {
	background: rgba(0,0,0,0.15);
	color: var(--mqp-text);
}

.mqp-score {
	font-size: 22px;
	font-weight: 700;
}

.mqp-result-name {
	opacity: 0.7;
	margin-top: -8px;
}

.mqp-percent {
	font-size: 16px;
	opacity: 0.85;
	margin-bottom: 20px;
}

.mqp-loading {
	opacity: 0.7;
	text-align: center;
}

/* Tela inicial (nome) */
.mqp-start-screen {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mqp-welcome-text {
	font-size: 15px;
	font-weight: 600;
}

.mqp-login-required {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

.mqp-login-required-text {
	background: rgba(0,0,0,0.04);
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
}

.mqp-name-label {
	font-weight: 600;
}

.mqp-name-input {
	padding: 12px 15px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.2);
	font-size: 15px;
}

.mqp-error-msg {
	color: #b32d2e;
	font-size: 13px;
	margin: 0;
}

.mqp-start-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

/* Ranking */
.mqp-ranking-list {
	list-style: none;
	counter-reset: mqp-rank;
	padding: 0;
	margin: 15px 0;
}

.mqp-ranking-item {
	counter-increment: mqp-rank;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	border-radius: 6px;
	background: rgba(0,0,0,0.04);
	margin-bottom: 6px;
	font-size: 14px;
}

.mqp-ranking-item::before {
	content: counter(mqp-rank) "º ";
	font-weight: 700;
	margin-right: 8px;
}

.mqp-ranking-score {
	font-weight: 600;
	opacity: 0.8;
}

/* Vidas */
.mqp-lives {
	margin-bottom: 10px;
	font-size: 20px;
	letter-spacing: 3px;
}

/* Vídeo do YouTube (responsivo 16:9) */
.mqp-video-embed-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	margin-bottom: 15px;
	border-radius: 6px;
	overflow: hidden;
}

.mqp-media-video-embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Resposta digitada normal */
.mqp-typed-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.mqp-typed-input {
	padding: 12px 15px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.2);
	font-size: 15px;
}

.mqp-confirm-btn {
	align-self: flex-start;
}

.mqp-correct-reveal {
	font-size: 13px;
	color: #2e8b3d;
	margin: 0;
}

/* Estilo Duolingo (montar frase com blocos de palavra) */
.mqp-duolingo-wrap {
	margin-bottom: 20px;
}

.mqp-duolingo-chosen {
	min-height: 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px;
	border-bottom: 2px solid rgba(0,0,0,0.15);
	margin-bottom: 15px;
}

.mqp-duolingo-bank {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
}

.mqp-word-chip {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.15);
	background: rgba(0,0,0,0.03);
	color: var(--mqp-text);
	cursor: pointer;
	font-size: 14px;
	user-select: none;
}

.mqp-word-chip:hover {
	background: rgba(0,0,0,0.07);
}

.mqp-word-chosen {
	border-color: var(--mqp-btn-bg);
	background: rgba(0,0,0,0.08);
}

/* Modo soletração (letra por letra) */
.mqp-duolingo-letters .mqp-word-chip {
	min-width: 20px;
	text-align: center;
	padding: 8px 12px;
	font-size: 18px;
	font-weight: 600;
	text-transform: lowercase;
}

.mqp-duolingo-letters .mqp-duolingo-chosen {
	gap: 4px;
}

.mqp-duolingo-letters .mqp-duolingo-bank {
	gap: 4px;
}

/* Múltipla escolha (várias respostas certas) */
.mqp-option-multi {
	position: relative;
	padding-left: 40px;
}

.mqp-option-multi::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	border: 2px solid rgba(0,0,0,0.3);
	border-radius: 3px;
	background: #fff;
}

.mqp-option-multi.mqp-selected::before,
.mqp-option-multi.mqp-correct::before {
	background: var(--mqp-btn-bg);
	border-color: var(--mqp-btn-bg);
}

.mqp-option-multi.mqp-correct::before {
	background: #2e8b3d;
	border-color: #2e8b3d;
}

/* Mensagem de resultado (vitória/derrota) */
.mqp-result-message-text {
	font-size: 15px;
	opacity: 0.9;
	margin-bottom: 15px;
}

.mqp-result-media {
	margin-bottom: 15px;
}

.mqp-result-media-image {
	max-width: 100%;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

.mqp-lottie-player {
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
}
