/*
 * Wizard Links: the link page. Colors default to the Fake Wizard brand; a theme can
 * override any --fwl-* variable on .fwl or :root.
 */

.fwl {
	--fwl-max: 580px;
	--fwl-text: #FFFFFF;
	--fwl-muted: #CFE6FF;
	--fwl-accent: #F2C230;
	--fwl-btn-color: #0A9AF2;
	--fwl-btn-ink: #FFFFFF;
	--fwl-ring: rgba(255, 255, 255, .85);
	--fwl-outline-bg: rgba(5, 9, 43, .6);
	--fwl-radius: 16px;
	--fwl-font-head: inherit;
	--fwl-font-body: inherit;

	box-sizing: border-box;
	width: 100%;
	max-width: var(--fwl-max);
	margin: 0 auto;
	color: var(--fwl-text);
	font-family: var(--fwl-font-body);
	text-align: center;
}
.fwl *,
.fwl *::before,
.fwl *::after { box-sizing: inherit; }

/* ---------- Profile ---------- */

.fwl-profile { margin-bottom: 24px; }

.fwl-avatar {
	display: block;
	width: 112px;
	height: 112px;
	margin: 0 auto 14px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--fwl-btn-color);
	box-shadow: 0 0 0 3px var(--fwl-ring), 0 8px 24px rgba(0, 0, 0, .35);
}

.fwl-name {
	margin: 0 0 6px;
	font-family: var(--fwl-font-head);
	font-size: clamp(24px, 6vw, 30px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--fwl-text);
}

.fwl-bio {
	margin: 0 auto;
	max-width: 30em;
	font-size: 16px;
	line-height: 1.45;
	color: var(--fwl-muted);
}

.fwl-socials {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-top: 14px;
}
.fwl-social {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--fwl-text);
	transition: color .15s, background-color .15s, transform .15s;
}
.fwl-social:hover,
.fwl-social:focus-visible {
	color: var(--fwl-accent);
	background: rgba(255, 255, 255, .08);
	transform: translateY(-2px);
}
.fwl-icon {
	width: 24px;
	height: 24px;
	display: block;
}

/* ---------- Items ---------- */

.fwl-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fwl-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 18px 0 2px;
	font-family: var(--fwl-font-head);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fwl-accent);
}
.fwl-heading::before,
.fwl-heading::after,
.fwl-video__label::before,
.fwl-video__label::after {
	content: "";
	width: 6px;
	height: 6px;
	background: currentColor;
	transform: rotate(45deg);
}

/* ---------- Buttons ---------- */

.fwl-btn {
	position: relative;
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	align-items: center;
	gap: 8px;
	min-height: 62px;
	padding: 8px 10px;
	border-radius: var(--fwl-radius);
	background: var(--fwl-btn-color);
	color: var(--fwl-btn-ink);
	text-decoration: none;
	box-shadow: inset 0 0 0 2px var(--fwl-ring), 0 4px 0 rgba(0, 0, 0, .28);
	transition: transform .15s, box-shadow .15s, background-color .15s;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
}
.fwl-btn:hover,
.fwl-btn:focus-visible {
	color: var(--fwl-btn-ink);
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 2px var(--fwl-ring), 0 6px 0 rgba(0, 0, 0, .28), 0 0 0 3px var(--fwl-accent);
}
.fwl-btn:active {
	transform: translateY(2px);
	box-shadow: inset 0 0 0 2px var(--fwl-ring), 0 1px 0 rgba(0, 0, 0, .28);
}
.fwl-btn:focus-visible { outline: none; }

.fwl-btn__media {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
}
.fwl-btn__img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: calc(var(--fwl-radius) - 6px);
}
.fwl-btn__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px 0;
	min-width: 0;
}
.fwl-btn__title {
	font-family: var(--fwl-font-head);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}
.fwl-btn__sub {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	opacity: .85;
}

/* Outline */
.fwl-btn--outline {
	background: var(--fwl-outline-bg);
	color: var(--fwl-text);
	box-shadow: inset 0 0 0 2px var(--fwl-btn-color);
}
.fwl-btn--outline:hover,
.fwl-btn--outline:focus-visible {
	color: var(--fwl-text);
	background: rgba(14, 18, 80, .85);
	box-shadow: inset 0 0 0 2px var(--fwl-btn-color), 0 0 0 3px var(--fwl-accent);
}
.fwl-btn--outline:active { box-shadow: inset 0 0 0 2px var(--fwl-btn-color); }

/* Featured */
.fwl-btn--featured {
	min-height: 78px;
	box-shadow: inset 0 0 0 3px var(--fwl-accent), 0 4px 0 rgba(0, 0, 0, .28), 0 0 28px rgba(242, 194, 48, .25);
}
.fwl-btn--featured .fwl-btn__title { font-size: 20px; font-weight: 900; }
.fwl-btn--featured:hover,
.fwl-btn--featured:focus-visible {
	box-shadow: inset 0 0 0 3px var(--fwl-accent), 0 6px 0 rgba(0, 0, 0, .28), 0 0 36px rgba(242, 194, 48, .45);
}
.fwl-btn--featured.has-img {
	grid-template-columns: 1fr;
	padding: 10px 10px 12px;
}
.fwl-btn--featured.has-img .fwl-btn__media,
.fwl-btn--featured.has-img .fwl-btn__img {
	width: 100%;
	height: auto;
}
.fwl-btn--featured.has-img .fwl-btn__img { aspect-ratio: 16 / 9; }
.fwl-btn--featured.has-img .fwl-btn__end { display: none; }

/* Highlight animations */
.fwl-anim--pulse { animation: fwl-pulse 2.4s ease-in-out infinite; }
.fwl-anim--wiggle { animation: fwl-wiggle 3.5s ease-in-out infinite; }
.fwl-anim--shine::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
	transform: translateX(-100%);
	animation: fwl-shine 3s ease-in-out infinite;
	pointer-events: none;
}
.fwl-anim--pulse:hover,
.fwl-anim--wiggle:hover { animation-play-state: paused; }

@keyframes fwl-pulse {
	0%, 100% { scale: 1; }
	50% { scale: 1.035; }
}
@keyframes fwl-wiggle {
	0%, 80%, 100% { rotate: 0deg; }
	84% { rotate: -2deg; }
	88% { rotate: 2deg; }
	92% { rotate: -1.5deg; }
	96% { rotate: 1deg; }
}
@keyframes fwl-shine {
	0%, 55% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* ---------- YouTube ---------- */

.fwl-video {
	margin: 0;
	text-align: left;
}
.fwl-video__label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 8px;
	font-family: var(--fwl-font-head);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-align: center;
	color: var(--fwl-accent);
}
.fwl-video__player,
.fwl-video__frame {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--fwl-radius);
	overflow: hidden;
	background: #000;
	box-shadow: 0 0 0 2px var(--fwl-ring), 0 4px 0 rgba(0, 0, 0, .28);
}
.fwl-video__player img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s, filter .3s;
}
.fwl-video__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}
.fwl-video__play svg { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); transition: transform .15s; }
.fwl-video__player:hover img,
.fwl-video__player:focus-visible img { transform: scale(1.03); filter: brightness(.85); }
.fwl-video__player:hover .fwl-video__play svg,
.fwl-video__player:focus-visible .fwl-video__play svg { transform: scale(1.12); }
.fwl-video__title {
	margin: 10px 2px 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--fwl-text);
}

@media (prefers-reduced-motion: reduce) {
	.fwl *,
	.fwl *::after {
		animation: none !important;
		transition: none !important;
	}
}
