@charset "utf-8";

@import url("../../fonts/NanumBarunGothic.css");

:root {
	--tw-bg-start: #edf3fc;
	--tw-bg-mid: #f7f9fc;
	--tw-bg-end: #f6f8fc;
	--tw-surface: #ffffff;
	--tw-surface-soft: #f8fbff;
	--tw-text: #1f2937;
	--tw-muted: #64748b;
	--tw-line: #d9e1ec;
	--tw-primary: #1f4b99;
	--tw-primary-dark: #163a70;
	--tw-primary-soft: #eef5ff;
	--tw-danger-soft: #f1f5f9;
	--tw-shadow: 0 18px 45px rgba(18, 38, 63, 0.14);
	--tw-radius-lg: 22px;
	--tw-radius-md: 14px;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
}

body {
	display: flex;
	min-height: 100vh;
	min-height: 100dvh;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 24px 14px;
	background:
		radial-gradient(circle at top left, rgba(31, 75, 153, 0.08), transparent 30%),
		linear-gradient(180deg, var(--tw-bg-start) 0%, var(--tw-bg-mid) 220px, var(--tw-bg-end) 100%);
	color: var(--tw-text);
	font-family: "NanumBarunGothic", "NanumGothic", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.u-noscript-overlay {
	margin: 0;
	padding: 10% 0 0 0;
	position: fixed;
	width: 100%;
	height: 100%;
	background: #1f2937;
	z-index: 6;
	text-align: center;
	font-size: large;
	color: #333;
}

.u-noscript-box {
	margin: 10px auto;
	padding: 20px;
	width: 640px;
	background: #fff;
	border: 1px solid #000;
	border-radius: 10px;
	line-height: 150%;
}

.u-link-blue-underline {
	color: #51767c;
	text-decoration: underline;
}

.container {
	position: relative;
	width: min(92vw, 760px);
	margin: 0 auto;
	padding: 34px;
	background: linear-gradient(180deg, var(--tw-surface) 0%, var(--tw-surface-soft) 100%);
	border: 1px solid rgba(217, 225, 236, 0.92);
	border-radius: var(--tw-radius-lg);
	box-shadow: var(--tw-shadow);
	text-align: center;
	overflow: hidden;
}

.container::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, #1f4b99, #4f7fd8, #9bbcf4);
}

.title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	text-align: left;
	color: var(--tw-muted);
	font-size: 0.98rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.title::before {
	content: "✦";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--tw-primary-soft);
	color: var(--tw-primary);
	font-size: 0.9rem;
}

hr {
	width: 100%;
	margin: 18px 0 0;
	border: 0;
	border-top: 1px solid var(--tw-line);
}

#word-display {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 132px;
	margin: 22px 0 28px;
	padding: 24px 26px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(217, 225, 236, 0.86);
	border-radius: var(--tw-radius-md);
	color: var(--tw-text);
	font-size: clamp(1.08rem, 2.5vw, 1.28rem);
	font-weight: 700;
	line-height: 1.75;
	letter-spacing: -0.02em;
	word-break: keep-all;
	text-align: left;
	box-shadow: 0 8px 22px rgba(18, 38, 63, 0.06);
}

.button-group {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	padding-top: 2px;
	gap: 10px;
}

button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.2;
	transition: transform 0.18s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

button:hover {
	transform: translateY(-1px);
}

button:focus-visible {
	outline: 3px solid rgba(31, 75, 153, 0.25);
	outline-offset: 3px;
}

.close-btn {
	background-color: var(--tw-danger-soft);
	border-color: var(--tw-line);
	color: var(--tw-text);
}

.close-btn:hover {
	background-color: #e8eef7;
	border-color: #cbd5e1;
}

.next-btn {
	background-color: var(--tw-primary);
	color: #fff;
	box-shadow: 0 10px 22px rgba(31, 75, 153, 0.24);
}

.next-btn:hover {
	background-color: var(--tw-primary-dark);
	box-shadow: 0 12px 26px rgba(31, 75, 153, 0.3);
}

.no-script-notice {
	position: fixed;
	inset: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #f8fafc;
	text-align: center;
	color: #334155;
}

.no-script-notice p {
	width: min(640px, 100%);
	margin: 0 auto;
	padding: 22px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 14px;
	line-height: 1.7;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.no-script-notice a {
	color: #1f4b99;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 640px) {
	body {
		align-items: stretch;
		padding: 14px;
	}

	.container {
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: 100%;
		min-height: calc(100dvh - 28px);
		padding: 28px 18px;
		border-radius: 18px;
	}

	#word-display {
		min-height: 170px;
		padding: 22px 18px;
		font-size: 1.08rem;
	}

	.button-group {
		gap: 8px;
	}

	button {
		flex: 1 1 150px;
		padding-inline: 14px;
	}
}
