.joq-wrap {
	box-sizing: border-box;
	max-width: 760px;
	margin: 28px auto;
	padding: 0 16px;
	color: #263238;
	font-family: inherit;
}

.joq-wrap *,
.joq-wrap *::before,
.joq-wrap *::after {
	box-sizing: inherit;
}

.joq-card {
	border: 1px solid #dce8e4;
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
	box-shadow: 0 12px 30px rgba(38, 50, 56, 0.08);
	padding: 28px;
}

.joq-result-card {
	position: relative;
	overflow: hidden;
	border-color: #f1d7a6;
	background:
		radial-gradient(circle at top right, rgba(255, 220, 139, 0.42), transparent 34%),
		linear-gradient(180deg, #ffffff 0%, #fff9ef 45%, #f4fbf9 100%);
	box-shadow: 0 16px 36px rgba(118, 83, 28, 0.13);
}

.joq-result-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 6px;
	background: linear-gradient(90deg, #ffb545, #7dcac0, #e05f42);
	content: "";
}

.joq-screen {
	display: none;
}

.joq-screen-active {
	display: block;
}

.joq-kicker {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	border-radius: 999px;
	background: #fff0d7;
	color: #7a4b00;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	padding: 6px 12px;
}

.joq-title {
	margin: 0 0 22px;
	color: #1f3a3d;
	font-size: 28px;
	line-height: 1.25;
	letter-spacing: 0;
}

.joq-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.joq-select {
	width: 100%;
	min-height: 48px;
	margin-bottom: 18px;
	border: 1px solid #bfd3ce;
	border-radius: 8px;
	background: #ffffff;
	color: #263238;
	font-size: 16px;
	padding: 10px 12px;
}

.joq-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	padding: 12px 18px;
	text-align: center;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.joq-button:hover,
.joq-button:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.joq-button-primary {
	background: #ffb545;
	box-shadow: 0 8px 18px rgba(204, 117, 0, 0.18);
	color: #2d240f;
}

.joq-button-primary:hover,
.joq-button-primary:focus {
	background: #ffa929;
	color: #2d240f;
}

.joq-button-light {
	border-color: #b8d7d0;
	background: #ffffff;
	color: #245d61;
}

.joq-button-light:hover,
.joq-button-light:focus {
	background: #eef9f6;
	color: #17494d;
}

.joq-message {
	min-height: 22px;
	margin: 12px 0 0;
	color: #a04436;
	font-weight: 700;
}

.joq-progress {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	color: #546e6f;
	font-size: 14px;
	font-weight: 700;
}

.joq-word {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.joq-word-jp {
	color: #e05f42;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.15;
}

.joq-romaji {
	color: #527174;
	font-size: 18px;
	font-weight: 700;
}

.joq-question {
	margin: 0 0 18px;
	color: #1f3a3d;
	font-size: 22px;
	line-height: 1.35;
	letter-spacing: 0;
}

.joq-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.joq-choice {
	width: 100%;
	min-height: 56px;
	border: 2px solid #d7e7e3;
	border-radius: 8px;
	background: #ffffff;
	color: #263238;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	padding: 12px;
	text-align: left;
}

.joq-choice:hover,
.joq-choice:focus {
	border-color: #7dcac0;
	background: #f2fbf9;
}

.joq-choice-correct {
	border-color: #4da56a;
	background: #e9f8ee;
	color: #1f6335;
}

.joq-choice-wrong {
	border-color: #d66a5c;
	background: #fff0ee;
	color: #92382e;
}

.joq-choice:disabled {
	cursor: default;
	opacity: 1;
}

.joq-feedback {
	margin-top: 18px;
	border-top: 1px solid #e1ece9;
	padding-top: 18px;
}

.joq-result {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 800;
}

.joq-result-correct {
	color: #247a43;
}

.joq-result-wrong {
	color: #b64436;
}

.joq-explanation {
	margin: 0 0 14px;
	line-height: 1.7;
}

.joq-example {
	border-left: 4px solid #7dcac0;
	background: #f4fbf9;
	padding: 12px 14px;
}

.joq-example p {
	margin: 0 0 6px;
	line-height: 1.6;
}

.joq-example p:last-child {
	margin-bottom: 0;
}

.joq-example-jp {
	font-size: 18px;
	font-weight: 700;
}

.joq-example-romaji {
	color: #527174;
	font-style: italic;
}

.joq-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.joq-next-actions {
	margin-top: 12px;
}

.joq-badge {
	display: inline-flex;
	margin: 0;
	border-radius: 8px;
	background: #e8f7f5;
	color: #245d61;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
	padding: 14px 16px;
}

.joq-score-message {
	margin: 16px 0 0;
	color: #3c5557;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}

.joq-next-section {
	margin-top: 22px;
	border: 1px solid rgba(184, 215, 208, 0.9);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.74);
	padding: 18px;
}

.joq-section-title {
	margin: 0;
	color: #1f3a3d;
	font-size: 20px;
	line-height: 1.35;
	letter-spacing: 0;
}

.joq-article-links {
	margin-top: 18px;
	border-top: 1px solid #e4ece9;
	padding-top: 16px;
}

.joq-links-title {
	margin: 0 0 10px;
	color: #527174;
	font-size: 15px;
	line-height: 1.35;
	letter-spacing: 0;
}

.joq-article-links ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.joq-article-links li {
	margin: 0;
}

.joq-article-links a {
	display: block;
	border: 1px solid #d8e9e5;
	border-radius: 8px;
	background: #ffffff;
	color: #245d61;
	font-weight: 700;
	line-height: 1.45;
	padding: 11px 12px;
	text-decoration: none;
}

.joq-article-links a:hover,
.joq-article-links a:focus {
	border-color: #7dcac0;
	background: #eef9f6;
	color: #17494d;
	text-decoration: none;
}

@media (max-width: 640px) {
	.joq-wrap {
		margin: 18px auto;
		padding: 0 12px;
	}

	.joq-card {
		padding: 20px;
	}

	.joq-title {
		font-size: 23px;
	}

	.joq-word-jp {
		font-size: 34px;
	}

	.joq-choices {
		grid-template-columns: 1fr;
	}

	.joq-button,
	.joq-actions .joq-button {
		width: 100%;
	}

	.joq-actions {
		flex-direction: column;
	}

	.joq-next-section {
		padding: 14px;
	}
}
