html, body {
	width: 100%;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;

	height: 100vh;
	height: calc(var(--vh));
}
* {
	box-sizing: border-box;
}
*, article, div, footer, header, p, section {
	margin: 0;
	padding: 0;
}
.container {
	width: 100vw;
	height: 100vh;
	height: calc(var(--vh));
}
.loading-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 30px 0;
	min-height: 200px;
}
.spinner {
	width: 70px;
	height: 70px;
	border: 7px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #4facfe;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}
.loading-text {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 15px;
	color: #4facfe;
}
.progress-container {
	width: 80%;
	max-width: 400px;
	height: 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	overflow: hidden;
}
.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4facfe, #00f2fe);
	border-radius: 10px;
	transition: width 1s ease;
}
.hidden {
	display: none;
}
#ifb {
	z-index: -2;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: #fff;
}
#pf {
	z-index: 1;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}
#frm {
	width: 100%;
	height: 100vh;
	height: calc(var(--vh));
	position: relative;
}
.substratum {
	z-index: -2;
	position: absolute;
}
/* ===== Moved from JS inline styles ===== */

/* Fallback loading overlay (when using OSS fallback) */
#fallback-loading-overlay.fallback-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
#fallback-loading-overlay .fallback-loading-card {
	max-width: 520px;
	width: 100%;
	background: #fff;
	border-radius: 16px;
	padding: 18px 16px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
	"Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
#fallback-loading-overlay .fallback-loading-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #111;
}
#fallback-loading-overlay .fallback-loading-message {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}
#fallback-loading-overlay .fallback-loading-note {
	font-size: 12px;
	color: #888;
	margin-top: 10px;
}

/* Block overlay (503 / ESA challenge / intercept) */
#block-overlay.block-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
#block-overlay .block-card {
	max-width: 520px;
	width: 100%;
	background: #fff;
	border-radius: 16px;
	padding: 20px 18px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
	"Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
#block-overlay .block-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #111;
}
#block-overlay .block-message {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin-bottom: 10px;
}
#block-overlay .block-ip {
	font-size: 13px;
	color: #666;
	margin-top: 6px;
}
#block-overlay .block-tip {
	font-size: 12px;
	color: #888;
	margin-top: 12px;
}

