body.gated { overflow: hidden; }

#gate {
	position: fixed;
	inset: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
	align-items: center;
	align-content: safe center;
	overflow: auto;
	padding: 100px clamp(32px, 8vw, 135px) 30px;
	background: linear-gradient(90deg, transparent 44%, #050e1d66), url('./home-landscape.webp') center / cover no-repeat #081526;
	transition: opacity 0.45s ease;
}
#gate.leaving { opacity: 0; pointer-events: none; }
.home-brand {
	position: absolute;
	top: max(24px, env(safe-area-inset-top));
	left: clamp(24px, 4.7vw, 82px);
	display: flex;
	align-items: center;
	gap: 16px;
	color: #fce5b5;
	text-shadow: 0 3px 12px #040b16;
}
.home-brand > img { width: 52px; height: 52px; object-fit: contain; }
#gate-title { width: clamp(270px, 24vw, 365px); margin: 0; font: 400 26px/1 Marcellus, Georgia, serif; }
#gate-title img { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 6px #031328b0); }
#home-account {
	position: relative;
	grid-column: 2;
	width: 100%;
	padding: 25px 26px 17px;
	border: 1px solid #b99b65;
	border-radius: 22px;
	background: radial-gradient(ellipse at 50% 0, #29435d91, transparent 64%),
		linear-gradient(150deg, #111f34fa, #071427fa 70%);
	box-shadow: 0 23px 72px #020711a6, inset 0 0 0 4px #dfbd7814;
	font: 15px/1.45 var(--lobby-interface, system-ui);
}
#home-account::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 50%;
	width: min(160px, 55%);
	height: 1px;
	background: linear-gradient(90deg, transparent, #ffe5a3, transparent);
	transform: translateX(-50%);
	pointer-events: none;
}
#home-account .account-body { padding: 0; }
#home-account #account-close { display: none; }
#home-account #account-title {
	margin: 0 0 12px;
	color: #ffe5ae;
	font: 600 clamp(30px, 3.2vw, 42px)/1.05 var(--lobby-display, Georgia);
	text-wrap: balance;
}
#home-account #account-intro {
	margin-bottom: 10px;
	color: #cedeef;
}
#home-account .account-methods { gap: 8px; margin: 0 0 12px; }
#home-account .account-methods button {
	min-height: 44px;
	padding: 4px 8px;
	border: 1px solid #617a97a6;
	border-radius: 8px;
	background: #0b192d;
	color: #d2e1f1;
	font: 650 14px/1.3 var(--lobby-interface, system-ui);
}
#home-account .account-methods button:hover { background: #1d334b; }
#home-account .account-methods button[aria-pressed="true"] {
	border-color: #d7b36f;
	background: linear-gradient(#32465a, #1b3047);
	box-shadow: inset 0 1px 0 #fff1c438;
	color: #ffdf9d;
}
#home-account .account-modes button {
	min-height: 38px;
	font: 650 14px/1.3 var(--lobby-interface, system-ui);
}
#home-account .account-body label { color: #eff4fa; font-weight: 600; }
#home-account .account-body input:not([type="checkbox"]) {
	background: #081629;
	border-color: #9eb9d65e;
	color: #eff4fa;
}
#home-account .account-body input::placeholder { color: #9aafc7; font-size: 14px; }
#home-account .account-body input:focus-visible:not([type="checkbox"]) {
	border-color: #f1c780;
	outline-offset: 1px;
}
#home-account .go {
	color: #24200e;
	border: 1px solid #f5d699;
	border-radius: 9px;
	background: linear-gradient(#f2d895, #daad5d);
	box-shadow: inset 0 0 0 2px #ffedb666, 0 3px 14px #05090f55;
	font: 800 16px system-ui;
	text-shadow: none;
}
#home-account .go::after { content: none; }
#home-account .account-link { color: #ebd6a9; }
#home-account #account-forgot-row { margin-top: -7px; }
#home-account #account-links { justify-content: space-between; gap: 0 10px; }
.home-entry { display: flex; justify-content: center; margin-top: 14px; padding-top: 8px; border-top: 1px solid #bca06b45; }
#enter { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: #e1eaf5; font: 500 14px system-ui; }
#enter span + span { margin-left: 6px; color: #fce5b5; }
#enter:focus-visible { outline: 2px solid #efd296; outline-offset: 3px; }
#enter:disabled { opacity: .6; }
.home-note {
	display: block;
	grid-column: 2;
	margin: 24px 0 0;
	color: #d0dbe8;
	text-align: right;
	font: 12px/1.4 system-ui, sans-serif;
	text-shadow: 0 2px 5px #010711;
}
@media (orientation: portrait) {
	#gate {
		display: block;
		padding: clamp(120px, 27svh, 260px) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
		background: linear-gradient(#0211242b, transparent 45%, #06132474), url('./home-portrait.webp') center top / cover no-repeat #081526;
	}
	#gate:has(.show-account) {
		align-content: start;
		padding-top: max(88px, calc(env(safe-area-inset-top) + 68px));
	}
	.home-brand { top: max(19px, env(safe-area-inset-top)); left: max(20px, env(safe-area-inset-left)); gap: 10px; }
	.home-brand > img { width: 38px; height: 38px; }
	#gate-title { width: clamp(195px, 60vw, 272px); font-size: 23px; }
	#home-account { max-width: 440px; margin: 0 auto; padding: 18px 16px 12px; border-radius: 17px; }
	.home-note { margin-top: 14px; text-align: center; font-size: 11px; }
}
@media (orientation: landscape) and (max-height: 550px) {
	#gate { padding-block: 73px 20px; }
	.home-brand { top: 15px; }
	.home-brand > img { width: 37px; height: 37px; }
	#gate-title { width: clamp(215px, 28vw, 290px); font-size: 21px; }
}
