.mht-mbti-app,
.mht-mbti-gate {
	--mht-primary: #2471e7;
	--mht-primary-dark: #0a1c40;
	--mht-success: #71e07e;
	--mht-accent: #ff7145;
	--mht-primary-light: #e8f0fd;
	--mht-navy-tint: #f4f6fa;
	--mht-border: #e1e6ef;
	--mht-text-primary: #0a1c40;
	--mht-text-muted: #5c6b85;

	font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 640px;
	margin: 0 auto;
	padding: 32px;
	background: #ffffff;
	border: 1px solid var(--mht-border);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(10, 28, 64, 0.04), 0 8px 24px rgba(10, 28, 64, 0.06);
	color: var(--mht-text-primary);
	box-sizing: border-box;
}

.mht-mbti-app *,
.mht-mbti-gate * {
	box-sizing: border-box;
}

.mht-mbti-loading,
.mht-mbti-error {
	text-align: center;
	color: var(--mht-text-muted);
	padding: 40px 0;
}

.mht-mbti-error {
	color: var(--mht-accent);
}

.mht-mbti-progress {
	height: 6px;
	background: var(--mht-navy-tint);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 12px;
}

.mht-mbti-progress-bar {
	height: 100%;
	background: var(--mht-primary);
	transition: width 0.3s ease;
}

.mht-mbti-question-count {
	font-size: 13px;
	color: var(--mht-text-muted);
	margin-bottom: 8px;
}

.mht-mbti-question-text {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 24px;
}

.mht-mbti-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mht-mbti-option {
	text-align: left;
	padding: 16px 20px;
	border: 1.5px solid var(--mht-border);
	border-radius: 12px;
	background: #ffffff;
	font-size: 15px;
	font-family: inherit;
	color: var(--mht-text-primary);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.mht-mbti-option:hover {
	border-color: var(--mht-primary);
	background: var(--mht-primary-light);
}

/* Result screen */
.mht-mbti-result {
	text-align: center;
}

.mht-mbti-result-type {
	font-size: 40px;
	font-weight: 700;
	color: var(--mht-primary);
	letter-spacing: 0.05em;
}

.mht-mbti-avatar {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.mht-mbti-avatar svg {
	width: 72px;
	height: 72px;
}

.mht-mbti-result-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--mht-text-primary);
	margin-bottom: 12px;
}

.mht-mbti-result-desc {
	color: var(--mht-text-muted);
	font-size: 15px;
	line-height: 1.6;
	max-width: 480px;
	margin: 0 auto 32px;
}

.mht-mbti-rings {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.mht-mbti-ring {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mht-mbti-ring-visual {
	position: relative;
	width: 88px;
	height: 88px;
}

.mht-mbti-ring-svg {
	width: 88px;
	height: 88px;
	transform: rotate(-90deg);
	display: block;
}

.mht-mbti-ring-track {
	fill: none;
	stroke: var(--mht-primary-light);
	stroke-width: 8;
}

.mht-mbti-ring-progress {
	fill: none;
	stroke: var(--mht-primary);
	stroke-width: 8;
	stroke-linecap: round;
}

.mht-mbti-ring:nth-child(2) .mht-mbti-ring-progress { stroke: var(--mht-success); }
.mht-mbti-ring:nth-child(3) .mht-mbti-ring-progress { stroke: var(--mht-accent); }
.mht-mbti-ring:nth-child(4) .mht-mbti-ring-progress { stroke: var(--mht-primary-dark); }

.mht-mbti-ring-label {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.mht-mbti-ring-pct {
	font-size: 15px;
	font-weight: 700;
}

.mht-mbti-ring-letter {
	font-size: 11px;
	color: var(--mht-text-muted);
}

.mht-mbti-ring-caption {
	margin-top: 14px;
	font-size: 11px;
	color: var(--mht-text-muted);
	text-align: center;
}

/* Gate (login/purchase prompt) */
.mht-mbti-gate {
	text-align: center;
	padding: 48px 32px;
}

.mht-mbti-gate p {
	color: var(--mht-text-muted);
	margin-bottom: 20px;
}

.mht-mbti-btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--mht-primary);
	color: #ffffff;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.mht-mbti-btn:hover {
	background: #1c5ecf;
	color: #ffffff;
}

/* Social share section */
.mht-mbti-share {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--mht-border);
	text-align: center;
}

.mht-mbti-share-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--mht-text-primary);
	margin-bottom: 14px;
}

.mht-mbti-share-canvas {
	width: 100%;
	max-width: 300px;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: 16px;
	display: block;
	margin: 0 auto 16px;
	box-shadow: 0 4px 16px rgba(10, 28, 64, 0.12);
}

.mht-mbti-share-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.mht-mbti-share-caption-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--mht-text-muted);
	margin-bottom: 6px;
}

.mht-mbti-share-caption {
	width: 100%;
	max-width: 480px;
	display: block;
	margin: 0 auto;
	padding: 12px 14px;
	border: 1.5px solid var(--mht-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 13px;
	color: var(--mht-text-primary);
	background: var(--mht-navy-tint);
	resize: vertical;
}

.mht-mbti-share-copy {
	display: block;
	margin: 8px auto 0;
	background: none;
	border: none;
	color: var(--mht-primary);
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.mht-mbti-share-copy:hover {
	text-decoration: underline;
}

.mht-mbti-share-instagram-note {
	max-width: 480px;
	margin: 16px auto 0;
	font-size: 12px;
	color: var(--mht-text-muted);
	line-height: 1.6;
}

.mht-mbti-lang-row {
	max-width: 600px;
	margin: 0 auto 12px;
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 480px) {
	.mht-mbti-rings {
		grid-template-columns: repeat(2, 1fr);
	}
}
