/**
 * PPA Bridge – native listening quiz (Build a lesson → stored JSON).
 */

.ppa-lp-quiz-native {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e3a5f;
	max-width: 100%;
	margin: 0 auto;
}

.ppa-lp-quiz-native .ppa-quiz-hidden {
	display: none !important;
}

.ppa-lp-quiz-native .ppa-quiz-card {
	background: #fff;
	border: 2px solid #63b3ed;
	box-shadow: 0 0 0 3px #b3e5fc, 0 8px 24px rgba(30, 58, 95, 0.08);
	border-radius: 16px;
	padding: 1.75rem 1.5rem 2rem;
	margin: 0;
}

.ppa-lp-quiz-native .ppa-quiz-progress-wrap {
	margin-bottom: 1.25rem;
}

.ppa-lp-quiz-native .ppa-quiz-progress-label {
	display: flex;
	justify-content: flex-end;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #2563eb;
	margin-bottom: 0.25rem;
}

.ppa-lp-quiz-native .ppa-quiz-progress-track {
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.ppa-lp-quiz-native .ppa-quiz-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2563eb, #3b82f6);
	border-radius: 999px;
	transition: width 0.35s ease;
}

.ppa-lp-quiz-native .ppa-quiz-intro-title {
	text-align: center;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1e40af;
	margin: 0 0 1rem;
	font-family: "Source Serif 4", Georgia, serif;
}

.ppa-lp-quiz-native .ppa-quiz-intro-text {
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #1d4ed8;
	margin: 0 0 1.5rem;
}

.ppa-lp-quiz-native .ppa-quiz-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 280px;
	margin: 0 auto;
	padding: 0.9rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	color: #fef08a;
	background: #2563eb;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
	transition: background 0.2s, transform 0.15s;
}

.ppa-lp-quiz-native .ppa-quiz-btn-primary:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.ppa-lp-quiz-native .ppa-quiz-btn-primary:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}

.ppa-lp-quiz-native .ppa-quiz-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 280px;
	margin: 1rem auto 0;
	padding: 0.85rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fef08a;
	background: #2563eb;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}

.ppa-lp-quiz-native .ppa-quiz-btn-restart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 280px;
	margin: 1.25rem auto 0;
	padding: 0.9rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #2563eb;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}

.ppa-lp-quiz-native .ppa-quiz-btn-restart svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

.ppa-lp-quiz-native .ppa-quiz-center {
	text-align: center;
}

.ppa-lp-quiz-native .ppa-quiz-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: nowrap;
	width: 100%;
	margin-top: 1.25rem;
}

.ppa-lp-quiz-native .ppa-quiz-nav .ppa-quiz-btn-secondary {
	flex: 1 1 0;
	min-width: 0;
	max-width: none;
	margin: 0;
}

.ppa-lp-quiz-native .ppa-quiz-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.ppa-lp-quiz-native .ppa-quiz-nav-icon {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
	flex-shrink: 0;
}

.ppa-lp-quiz-native .ppa-quiz-nav-btn[data-action="back"] {
	justify-content: flex-start;
	background: linear-gradient(90deg,#6d28d9,#8b5cf6) !important;
	color: #fff !important;
	border-color: rgba(17,24,39,.16) !important;
}

.ppa-lp-quiz-native .ppa-quiz-nav-btn[data-action="next"] {
	justify-content: flex-end;
}

.ppa-lp-quiz-native .ppa-quiz-question {
	margin-bottom: 1.75rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}

.ppa-lp-quiz-native .ppa-quiz-question:last-of-type {
	border-bottom: none;
	margin-bottom: 1rem;
	padding-bottom: 0;
}

.ppa-lp-quiz-native .ppa-quiz-qtext {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e40af;
	margin: 0 0 1rem;
	line-height: 1.45;
}

.ppa-lp-quiz-native .ppa-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ppa-lp-quiz-native .ppa-quiz-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.2s, background 0.2s;
}

.ppa-lp-quiz-native .ppa-quiz-option:hover:not(.ppa-quiz-option--disabled) {
	border-color: #94a3b8;
	background: #f8fafc;
}

.ppa-lp-quiz-native .ppa-quiz-option input {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	accent-color: #2563eb;
}

.ppa-lp-quiz-native .ppa-quiz-option span {
	flex: 1;
	font-size: 0.95rem;
	color: #1e293b;
}

.ppa-lp-quiz-native .ppa-quiz-option--selected.ppa-quiz-option--correct {
	background: #d1fae5;
	border-color: #34d399;
}

.ppa-lp-quiz-native .ppa-quiz-option--selected.ppa-quiz-option--wrong {
	background: #fee2e2;
	border-color: #f87171;
}

.ppa-lp-quiz-native .ppa-quiz-option--disabled {
	cursor: default;
	opacity: 0.95;
}

.ppa-lp-quiz-native .ppa-quiz-badge {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 800;
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ppa-lp-quiz-native .ppa-quiz-badge--yes {
	background: #22c55e;
	color: #fff;
}

.ppa-lp-quiz-native .ppa-quiz-badge--no {
	background: #ef4444;
	color: #fff;
}

.ppa-lp-quiz-native .ppa-quiz-results {
	text-align: center;
	padding: 0.5rem 0 0;
}

.ppa-lp-quiz-native .ppa-quiz-results-score {
	font-size: 1.1rem;
	font-weight: 600;
	color: #334155;
	margin: 0 0 0.35rem;
}

.ppa-lp-quiz-native .ppa-quiz-results-bar-wrap {
	margin: 1rem 0 0;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

.ppa-lp-quiz-native .ppa-quiz-results-bar {
	height: 28px;
	background: #e9d5ff;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.ppa-lp-quiz-native .ppa-quiz-results-bar-fill {
	height: 100%;
	background: #1e40af;
	border-radius: 8px;
	transition: width 0.5s ease;
}

.ppa-lp-quiz-native .ppa-quiz-results-bar-label {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
