html.hwp-lock,
html.hwp-lock body {
	overflow: hidden;
}

.hwp-overlay {
	--hwp-blur: 8px;
	--hwp-darken: 0.48;
	--hwp-accent: #8190d8;
	--hwp-title-size: 52px;
	position: fixed;
	inset: 0;
	z-index: 999999;
	overflow: hidden;
	background-color: #0b0d14;
	color: #eef0f6;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hwp-overlay.hwp-hidden {
	display: none;
}

.hwp-overlay.is-leaving {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.hwp-overlay *,
.hwp-overlay *::before,
.hwp-overlay *::after {
	box-sizing: border-box;
}

/* Background layer: clipped so blur/scale can never overflow or add scrollbars. */
.hwp-stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: #0b0d14;
	background-image:
		radial-gradient(circle at 18% 12%, rgba(129, 144, 216, 0.18), transparent 42%),
		radial-gradient(circle at 82% 88%, rgba(129, 144, 216, 0.14), transparent 46%),
		linear-gradient(135deg, #141724, #0b0d14 60%, #10121d);
}

.hwp-backdrop {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(var(--hwp-blur));
	transform: scale(1.15);
}

.hwp-veil {
	position: absolute;
	inset: 0;
	background-color: rgba(8, 10, 18, var(--hwp-darken));
}

/* Scroll area: centers content, scrolls internally when it is taller than the viewport. */
.hwp-scroll {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 48px 24px;
}

.hwp-content {
	width: 100%;
	max-width: 1020px;
	margin: auto;
	text-align: center;
}

.hwp-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 1.5em;
	margin: 0 auto 34px;
	font-size: min(var(--hwp-title-size), 10vw);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.hwp-type {
	white-space: pre-wrap;
	word-break: break-word;
}

.hwp-type::after {
	content: '';
	display: inline-block;
	width: 0.09em;
	height: 1em;
	margin-left: 0.05em;
	background: var(--hwp-accent);
	border-radius: 1px;
	vertical-align: -0.12em;
	animation: hwp-blink 0.9s steps(1) infinite;
}

@keyframes hwp-blink {
	0%, 49% { opacity: 1; }
	50%, 100% { opacity: 0; }
}

.hwp-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	margin-top: 10px;
}

.hwp-card {
	flex: 1 1 250px;
	max-width: 340px;
	min-width: 0;
	padding: 24px 22px;
	text-align: left;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	background: rgba(20, 23, 36, 0.42);
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: hwp-rise 0.7s ease both;
}

.hwp-card:nth-child(1) { animation-delay: 0.08s; }
.hwp-card:nth-child(2) { animation-delay: 0.18s; }
.hwp-card:nth-child(3) { animation-delay: 0.28s; }

.hwp-card--linked {
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hwp-card--linked:hover {
	transform: translateY(-4px);
	border-color: rgba(129, 144, 216, 0.42);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

@keyframes hwp-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.hwp-card-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	color: #ffffff;
}

.hwp-card-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.75;
	color: rgba(235, 238, 246, 0.82);
}

.hwp-card-body p {
	margin: 0 0 8px;
}

.hwp-card-body p:last-child {
	margin-bottom: 0;
}

.hwp-card-body a {
	color: var(--hwp-accent);
	text-decoration: none;
}

.hwp-card-body a:hover {
	text-decoration: underline;
}

.hwp-hint {
	margin: 30px 0 0;
	font-size: 14px;
	line-height: 1.8;
	letter-spacing: 0.14em;
	color: rgba(235, 238, 246, 0.55);
	animation: hwp-pulse 2.2s ease-in-out infinite;
}

@keyframes hwp-pulse {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

@media (max-width: 720px) {
	.hwp-scroll {
		padding: 36px 18px;
	}

	.hwp-title {
		margin-bottom: 26px;
	}

	.hwp-cards {
		gap: 12px;
	}

	.hwp-card {
		flex: 1 1 100%;
		max-width: none;
		padding: 18px 16px;
	}

	.hwp-hint {
		margin-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hwp-overlay,
	.hwp-type::after,
	.hwp-card,
	.hwp-hint {
		animation: none !important;
		transition: none !important;
	}
}
