/* Join-the-tower page for visitors without access */
.pact-gate {
	position: relative; overflow: hidden; isolation: isolate;
	max-width: 640px; margin: 0 auto; padding: 28px 24px 34px; text-align: center;
	border-radius: 24px; color: #fff;
	background: radial-gradient(120% 120% at 0% 0%, #6d28d9 0%, #4338ca 45%, #1e1b4b 100%);
	box-shadow: 0 24px 50px -26px rgba(30, 27, 75, .85);
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.pact-gate *, .pact-gate *::before, .pact-gate *::after { box-sizing: border-box; }
.pact-gate-art { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 8px; overflow: visible; }

.pact-gate-kicker {
	display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px;
	background: #f5b301; color: #1e1b4b; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.pact-gate h2.pact-gate-title {
	margin: 0 0 10px !important; padding: 0 !important; border: 0 !important;
	color: #fff !important; font-family: inherit !important; font-size: 30px !important; font-weight: 800 !important; line-height: 1.15 !important; letter-spacing: -.01em !important; text-transform: none !important;
}
.pact-gate p.pact-gate-text { margin: 0 auto 18px !important; max-width: 440px; color: #c7d2fe !important; font-size: 16px !important; }
.pact-gate ul.pact-gate-points { list-style: none !important; margin: 0 0 24px !important; padding: 0 !important; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pact-gate ul.pact-gate-points li {
	margin: 0 !important; padding: 6px 12px !important; border-radius: 999px; list-style: none !important;
	background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 600;
}
.pact-gate ul.pact-gate-points li::before { content: none !important; }

.pact-gate a.pact-gate-btn {
	position: relative; overflow: hidden; display: inline-flex !important; align-items: center; gap: 8px;
	padding: 15px 32px !important; border-radius: 999px !important; text-decoration: none !important;
	background: linear-gradient(135deg, #fde68a, #f5b301) !important; color: #1e1b4b !important;
	font-weight: 800 !important; font-size: 17px !important; box-shadow: 0 10px 24px -10px rgba(245, 179, 1, .9) !important;
	transition: transform .15s;
}
.pact-gate a.pact-gate-btn:hover { transform: translateY(-2px) scale(1.03); }
.pact-gate a.pact-gate-btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
	animation: pact-gate-shine 3s ease-in-out infinite;
}
.pact-gate p.pact-gate-login { margin: 16px 0 0 !important; color: #c7d2fe !important; font-size: 14px !important; }
.pact-gate p.pact-gate-login a { color: #fde68a !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

/* Animation */
.pact-gate-crown { animation: pact-gate-bob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pact-gate-glow { animation: pact-gate-pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pact-gate-stars circle { animation: pact-gate-twinkle 3s ease-in-out infinite; }
.pact-gate-stars circle:nth-child(2n) { animation-delay: -1.1s; }
.pact-gate-stars circle:nth-child(3n) { animation-delay: -2s; }
.pact-gate-win { animation: pact-gate-flicker 4s ease-in-out infinite; }
.pact-gate-win.w2 { animation-delay: -1s; } .pact-gate-win.w3 { animation-delay: -2s; } .pact-gate-win.w4 { animation-delay: -3s; }
.pact-gate-flag { animation: pact-gate-wave 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
.pact-gate-flag.f3 { animation-delay: -.7s; }
.pact-gate-cloud { animation: pact-gate-drift 14s ease-in-out infinite alternate; }
.pact-gate-cloud.c2 { animation-duration: 18s; animation-direction: alternate-reverse; }

@keyframes pact-gate-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes pact-gate-pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes pact-gate-twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }
@keyframes pact-gate-flicker { 0%, 100% { opacity: .95; } 45% { opacity: .7; } 50% { opacity: 1; } 55% { opacity: .75; } }
@keyframes pact-gate-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(-6deg) scaleX(.9); } }
@keyframes pact-gate-drift { from { transform: translateX(-12px); } to { transform: translateX(16px); } }
@keyframes pact-gate-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
	.pact-gate *, .pact-gate *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 520px) {
	.pact-gate { padding: 22px 16px 28px; border-radius: 20px; }
	.pact-gate h2.pact-gate-title { font-size: 25px !important; }
	.pact-gate a.pact-gate-btn { width: 100%; justify-content: center; }
}
