/* Entry gate overlay */
.ndfe-gate {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: Georgia, "Times New Roman", serif;
}

.ndfe-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 18, 28, 0.92);
	backdrop-filter: blur(6px);
}

.ndfe-gate__panel {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #f7f4ef;
	color: #1a1f2c;
	padding: 36px 32px 32px;
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ndfe-gate__title {
	margin: 0 0 10px;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.ndfe-gate__message {
	margin: 0 0 24px;
	font-size: 1rem;
	line-height: 1.5;
	color: #3d4656;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ndfe-gate__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ndfe-gate__label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	color: #1a1f2c;
}

.ndfe-gate__input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #c8c2b8;
	border-radius: 3px;
	font-size: 1rem;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	background: #fff;
	color: #1a1f2c;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ndfe-gate__input:focus {
	border-color: #1a4d3e;
	box-shadow: 0 0 0 3px rgba(26, 77, 62, 0.2);
}

.ndfe-gate__error {
	margin: 0;
	padding: 10px 12px;
	background: #fdecea;
	color: #8a1f11;
	border-radius: 3px;
	font-size: 0.9rem;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ndfe-gate__button {
	margin-top: 4px;
	appearance: none;
	border: none;
	cursor: pointer;
	padding: 14px 18px;
	background: #1a4d3e;
	color: #f7f4ef;
	font-size: 1rem;
	font-weight: 600;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	border-radius: 3px;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.ndfe-gate__button:hover:not(:disabled) {
	background: #143d31;
}

.ndfe-gate__button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

body.ndfe-locked {
	overflow: hidden !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}

body.ndfe-locked input,
body.ndfe-locked textarea {
	-webkit-user-select: text !important;
	user-select: text !important;
}

/* Prevent interaction with page under overlay */
.ndfe-gate ~ * {
	/* overlay is last in footer; page already painted underneath */
}

@media (max-width: 480px) {
	.ndfe-gate__panel {
		padding: 28px 20px 24px;
	}

	.ndfe-gate__title {
		font-size: 1.45rem;
	}
}
