/* Reference-inspired footer, scoped to preserve other Questy page footers. */
.site-footer.site-footer--questy {
	min-height: 0;
	padding: 36px 48px 40px;
	background: #111114;
	border-top: 1px solid rgba(183, 215, 246, 0.12);
	color: #e7edf5;
}

.questy-footer-grid {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.55fr) minmax(390px, 2fr);
	width: min(100%, 1248px);
	min-height: 250px;
	margin-inline: auto;
}

.questy-footer-brand {
	padding: 0 28px 0 0;
}

.questy-footer-logo {
	display: inline-flex;
	border-radius: 4px;
}

.questy-footer-logo img {
	display: block;
	width: 184px;
	height: 64px;
	object-fit: contain;
	object-position: left center;
}

.questy-footer-brand p {
	max-width: 185px;
	margin: 16px 0 0;
	color: #9aa6b8;
	font-size: 13px;
	line-height: 1.7;
}

.questy-footer-nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 2px clamp(24px, 4.6vw, 64px);
	border-inline-start: 1px solid rgba(183, 215, 246, 0.16);
}

.questy-footer-nav a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #e7edf5;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	text-underline-offset: 5px;
	transition: color 160ms ease;
}

.questy-footer-nav a:hover {
	color: #8acbff;
	text-decoration: underline;
}

.questy-footer-icon-link svg {
	flex: 0 0 21px;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: #4eacff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.questy-footer-community {
	min-width: 0;
	padding: 0 0 0 clamp(24px, 4.6vw, 64px);
	border-inline-start: 1px solid rgba(183, 215, 246, 0.16);
}

.questy-footer-community h2 {
	margin: 0 0 22px;
	color: #f5f7fb;
	font-size: 18px;
	font-weight: 600;
	line-height: 25px;
}

.questy-footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.questy-footer-social {
	display: inline-flex;
	flex: 0 0 52px;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid transparent;
	border-radius: 50%;
	text-decoration: none;
	transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.questy-footer-social svg {
	width: 27px;
	height: 27px;
}

.questy-footer-social.is-discord { color: #8588ff; background: #202139; }
.questy-footer-social.is-x { color: #f5f7fb; background: #242428; }
.questy-footer-social.is-instagram { color: #d7a28a; background: #332824; }
.questy-footer-social.is-facebook { color: #4d92ff; background: #192b46; }
.questy-footer-social.is-youtube { color: #ff4545; background: #3c171b; }
.questy-footer-social.is-twitch { color: #b080ff; background: #2b2040; }
.questy-footer-social.is-coming-soon { opacity: 0.62; cursor: default; }

a.questy-footer-social:hover {
	transform: translateY(-3px);
	border-color: rgba(78, 172, 255, 0.6);
	box-shadow: 0 0 20px rgba(20, 136, 252, 0.16);
}

.questy-footer-logo:focus-visible,
.questy-footer-nav a:focus-visible,
a.questy-footer-social:focus-visible {
	outline: 2px solid #8acbff;
	outline-offset: 5px;
}

.questy-footer-community-note {
	margin: 18px 0 0;
	color: #9aa6b8;
	font-size: 12px;
	line-height: 1.7;
}

@media (max-width: 1050px) {
	.questy-footer-grid {
		grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(280px, 1.3fr);
	}
	.questy-footer-nav { padding-inline: 28px; }
	.questy-footer-community { padding-inline-start: 28px; }
}

@media (max-width: 780px) {
	.site-footer.site-footer--questy { padding: 32px 24px; }
	.questy-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.questy-footer-brand { padding: 0 24px 28px 0; }
	.questy-footer-nav { padding: 0 0 28px 24px; }
	.questy-footer-community {
		grid-column: 1 / -1;
		padding: 28px 0 0;
		border-inline-start: 0;
		border-top: 1px solid rgba(183, 215, 246, 0.16);
	}
}

@media (max-width: 480px) {
	/* Leave the footer copy clear of the existing floating Daily Quests tab. */
	.site-footer.site-footer--questy { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.questy-footer-grid { grid-template-columns: minmax(0, 1fr); }
	.questy-footer-brand { padding: 0 0 28px; }
	.questy-footer-brand p { max-width: none; margin-top: 12px; }
	.questy-footer-nav {
		padding: 28px 0;
		border-inline-start: 0;
		border-top: 1px solid rgba(183, 215, 246, 0.16);
	}
	.questy-footer-socials { gap: 10px; }
	.questy-footer-social { flex-basis: 44px; width: 44px; height: 44px; }
	.questy-footer-social svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.questy-footer-nav a,
	.questy-footer-social { transition: none; }
	a.questy-footer-social:hover { transform: none; }
}
