.page-template-page-hogwarts {
	background: #070914;
}

.page-template-page-hogwarts .site-brand-main,
.page-template-page-hogwarts .scrollDown {
	display: none;
}

.page-template-page-hogwarts #masthead {
	height: auto !important;
	min-height: 0 !important;
	background: #080b13 !important;
}

.page-template-page-hogwarts #masthead::before,
.page-template-page-hogwarts #masthead > .wc-header-media {
	display: none;
}

.page-template-page-hogwarts .site-content {
	max-width: none;
	margin: 0;
	padding: 0;
}

.page-template-page-hogwarts .site-footer {
	position: relative;
	z-index: 2;
	max-width: none;
	margin: 0;
	padding: 24px 5vw;
	background: #050711;
	color: rgba(255, 255, 255, .62);
	border-top: 1px solid rgba(229, 194, 115, .14);
}

.wc-hogwarts-hub,
.wc-hogwarts-hub * {
	box-sizing: border-box;
}

.wc-hogwarts-hub {
	--gold: #e7c878;
	--ivory: #fff8e7;
	--ink: #0a0d19;
	position: relative;
	background: #080b18;
	color: var(--ivory);
	overflow: hidden;
}

.wc-hogwarts-scene {
	position: relative;
	min-height: calc(100vh - 70px);
	padding: clamp(72px, 10vh, 126px) 24px 54px;
	background-image:
		linear-gradient(180deg, rgba(4, 7, 18, .16) 0%, rgba(4, 7, 18, .38) 37%, #080b18 93%),
		linear-gradient(90deg, rgba(4, 7, 18, .25), transparent 32%, transparent 68%, rgba(4, 7, 18, .25)),
		url('../images/hogwarts/hogwarts-hub.webp');
	background-size: cover;
	background-position: 50% 25%;
	isolation: isolate;
}

.wc-hogwarts-scene::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(circle at 50% 12%, rgba(79, 111, 216, .14), transparent 38%);
	animation: wc-hogwarts-breathe 12s ease-in-out infinite alternate;
}

.wc-hogwarts-scene::after {
	content: '';
	position: absolute;
	z-index: -1;
	inset: 40% 0 0;
	background: linear-gradient(180deg, transparent, rgba(5, 7, 16, .34) 25%, #080b18 97%);
	pointer-events: none;
}

.wc-hogwarts-shell {
	position: relative;
	z-index: 1;
	width: min(1240px, 100%);
	margin: 0 auto;
}

.wc-hogwarts-intro {
	max-width: 790px;
	margin: 0 auto clamp(128px, 22vh, 230px);
	text-align: center;
	text-shadow: 0 3px 24px rgba(0, 0, 0, .68);
}

.wc-hogwarts-seal {
	width: 70px;
	height: 70px;
	margin: 0 auto 18px;
	padding: 10px;
	border: 1px solid rgba(231, 200, 120, .62);
	border-radius: 50%;
	background: rgba(8, 11, 24, .46);
	box-shadow: 0 0 0 6px rgba(231, 200, 120, .07), 0 12px 35px rgba(0, 0, 0, .35);
	backdrop-filter: blur(8px);
}

.wc-hogwarts-seal svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: var(--gold);
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wc-hogwarts-eyebrow {
	margin: 0 0 10px;
	color: var(--gold);
	font-size: clamp(.78rem, 1.4vw, .94rem);
	font-weight: 600;
	letter-spacing: .02em;
}

.wc-hogwarts-intro h1 {
	margin: 0;
	color: #fff9ec;
	font-size: clamp(2.25rem, 6vw, 5.1rem);
	font-weight: 900;
	line-height: 1.25;
	text-wrap: balance;
}

.wc-hogwarts-lead {
	max-width: 680px;
	margin: 15px auto 0;
	color: rgba(255, 250, 237, .83);
	font-size: clamp(.96rem, 1.8vw, 1.16rem);
	font-weight: 400;
	line-height: 2;
	text-wrap: balance;
}

.wc-hogwarts-scroll {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 25px;
	padding: 8px 18px;
	color: rgba(255, 248, 230, .82) !important;
	border: 1px solid rgba(231, 200, 120, .3);
	border-radius: 999px;
	background: rgba(7, 10, 22, .36);
	font-size: .78rem;
	text-decoration: none;
	backdrop-filter: blur(8px);
	transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.wc-hogwarts-scroll:hover,
.wc-hogwarts-scroll:focus-visible {
	color: #fff !important;
	border-color: rgba(231, 200, 120, .75);
	background: rgba(7, 10, 22, .68);
}

.wc-hogwarts-scroll svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	animation: wc-hogwarts-nudge 1.8s ease-in-out infinite;
}

.wc-hogwarts-portals {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 17px;
	scroll-margin-top: 90px;
}

.wc-hogwarts-card {
	--card-accent: #e4bd5e;
	--card-glow: 228, 189, 94;
	position: relative;
	min-width: 0;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 24px;
	background:
		linear-gradient(150deg, rgba(var(--card-glow), .13), transparent 42%),
		linear-gradient(160deg, rgba(20, 25, 45, .84), rgba(7, 10, 22, .91));
	box-shadow: 0 22px 60px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .07);
	overflow: hidden;
	backdrop-filter: blur(16px) saturate(125%);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}

.wc-hogwarts-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 82% 6%, rgba(var(--card-glow), .16), transparent 34%);
	opacity: .7;
	pointer-events: none;
	transition: opacity .3s ease;
}

.wc-hogwarts-card::after {
	content: '';
	position: absolute;
	right: 23px;
	bottom: 0;
	left: 23px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
	box-shadow: 0 0 16px rgba(var(--card-glow), .6);
	opacity: .62;
}

.wc-hogwarts-card--patronus {
	--card-accent: #84e8ff;
	--card-glow: 104, 217, 245;
}

.wc-hogwarts-card--profile {
	--card-accent: #c6a1ff;
	--card-glow: 174, 125, 244;
}

.wc-hogwarts-card--room {
	--card-accent: #f59c7c;
	--card-glow: 231, 116, 80;
}

.wc-hogwarts-card:hover,
.wc-hogwarts-card:focus-within {
	transform: translateY(-9px);
	border-color: rgba(var(--card-glow), .5);
	box-shadow: 0 28px 70px rgba(0, 0, 0, .48), 0 0 30px rgba(var(--card-glow), .09), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.wc-hogwarts-card:hover::before,
.wc-hogwarts-card:focus-within::before {
	opacity: 1;
}

.wc-hogwarts-card > a,
.wc-hogwarts-card > .wc-hogwarts-card-body {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: 330px;
	height: 100%;
	padding: 25px 23px 22px;
	flex-direction: column;
	align-items: flex-start;
	color: #fff !important;
	text-decoration: none;
}

.wc-hogwarts-card-actions {
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	margin-top: auto;
}

.wc-hogwarts-card-actions .wc-hogwarts-card-cta {
	margin-top: 0;
	color: rgba(255, 255, 255, .92) !important;
	text-decoration: none;
}

.wc-hogwarts-card-edit {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-right: auto;
	padding: 6px 9px;
	color: rgba(220, 202, 250, .86) !important;
	border: 1px solid rgba(var(--card-glow), .28);
	border-radius: 999px;
	background: rgba(var(--card-glow), .07);
	font-size: .67rem;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.wc-hogwarts-card-edit:hover,
.wc-hogwarts-card-edit:focus-visible {
	color: #fff !important;
	border-color: rgba(var(--card-glow), .62);
	background: rgba(var(--card-glow), .16);
}

.wc-hogwarts-card-edit svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wc-hogwarts-card-number {
	position: absolute;
	top: 19px;
	left: 20px;
	color: rgba(255, 255, 255, .28);
	font-size: .72rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.wc-hogwarts-card-icon {
	display: grid;
	width: 62px;
	height: 62px;
	margin-bottom: 22px;
	place-items: center;
	color: var(--card-accent);
	border: 1px solid rgba(var(--card-glow), .35);
	border-radius: 18px;
	background: rgba(var(--card-glow), .09);
	box-shadow: inset 0 0 22px rgba(var(--card-glow), .06), 0 9px 26px rgba(0, 0, 0, .18);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

.wc-hogwarts-card:hover .wc-hogwarts-card-icon,
.wc-hogwarts-card:focus-within .wc-hogwarts-card-icon {
	transform: rotate(-4deg) translateY(-2px);
	box-shadow: inset 0 0 22px rgba(var(--card-glow), .13), 0 0 24px rgba(var(--card-glow), .18);
}

.wc-hogwarts-card-icon svg {
	width: 39px;
	height: 39px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wc-hogwarts-card-kicker {
	display: block;
	min-height: 22px;
	margin-bottom: 7px;
	color: var(--card-accent);
	font-size: .7rem;
	font-weight: 600;
	line-height: 1.7;
}

.wc-hogwarts-card h2 {
	margin: 0 0 11px;
	color: #fffaf0;
	font-size: clamp(1.18rem, 1.7vw, 1.43rem);
	font-weight: 800;
	line-height: 1.55;
}

.wc-hogwarts-card p {
	margin: 0 0 22px;
	color: rgba(238, 241, 249, .69);
	font-size: .78rem;
	font-weight: 400;
	line-height: 2;
}

.wc-hogwarts-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: rgba(255, 255, 255, .92);
	font-size: .76rem;
	font-weight: 650;
}

.wc-hogwarts-card-cta i {
	color: var(--card-accent);
	font-size: 1.1rem;
	font-style: normal;
	transition: transform .25s ease;
}

.wc-hogwarts-card:hover .wc-hogwarts-card-cta i,
.wc-hogwarts-card:focus-within .wc-hogwarts-card-cta i {
	transform: translateX(-4px);
}

.wc-hogwarts-footnote {
	margin: 32px 0 0;
	color: rgba(255, 255, 255, .44);
	font-size: .75rem;
	text-align: center;
}

.wc-hogwarts-footnote span {
	margin-left: 8px;
	color: rgba(231, 200, 120, .75);
}

.wc-hogwarts-stars {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.wc-hogwarts-stars span {
	position: absolute;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #ffe4a1;
	box-shadow: 0 0 12px 3px rgba(255, 218, 131, .45);
	opacity: .25;
	animation: wc-hogwarts-float 8s ease-in-out infinite, wc-hogwarts-twinkle 2.8s ease-in-out infinite alternate;
}

.wc-hogwarts-stars span:nth-child(1) { right: 6%; top: 20%; animation-delay: -2s; }
.wc-hogwarts-stars span:nth-child(2) { right: 14%; top: 52%; animation-delay: -6s; }
.wc-hogwarts-stars span:nth-child(3) { right: 29%; top: 12%; animation-delay: -4s; }
.wc-hogwarts-stars span:nth-child(4) { right: 41%; top: 40%; animation-delay: -1s; }
.wc-hogwarts-stars span:nth-child(5) { right: 54%; top: 17%; animation-delay: -7s; }
.wc-hogwarts-stars span:nth-child(6) { right: 66%; top: 45%; animation-delay: -3s; }
.wc-hogwarts-stars span:nth-child(7) { right: 77%; top: 11%; animation-delay: -5s; }
.wc-hogwarts-stars span:nth-child(8) { right: 88%; top: 35%; animation-delay: -.5s; }
.wc-hogwarts-stars span:nth-child(9) { right: 21%; top: 70%; animation-delay: -4.5s; }
.wc-hogwarts-stars span:nth-child(10) { right: 72%; top: 72%; animation-delay: -1.5s; }

.wc-hogwarts-quiz {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	direction: rtl;
}

.wc-hogwarts-quiz:target,
.wc-hogwarts-quiz.is-open {
	display: flex;
}

.wc-hogwarts-quiz-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 4, 12, .87);
	backdrop-filter: blur(10px);
	cursor: default;
}

.wc-hogwarts-quiz-panel {
	position: relative;
	z-index: 1;
	width: min(900px, 100%);
	max-height: min(88vh, 920px);
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid rgba(217, 176, 86, .42);
	border-radius: 28px;
	background:
		linear-gradient(rgba(255, 251, 235, .96), rgba(242, 229, 198, .98)),
		repeating-linear-gradient(0deg, rgba(86, 56, 25, .03) 0 1px, transparent 1px 4px);
	box-shadow: 0 30px 100px rgba(0, 0, 0, .72), inset 0 0 60px rgba(112, 72, 26, .09);
	color: #2a2119;
	overflow: auto;
	overscroll-behavior: contain;
}

.wc-hogwarts-quiz-panel::before {
	content: '';
	position: absolute;
	inset: 12px;
	pointer-events: none;
	border: 1px solid rgba(111, 76, 35, .16);
	border-radius: 19px;
}

.wc-hogwarts-quiz-close {
	position: sticky;
	z-index: 5;
	top: 0;
	float: left;
	display: grid;
	width: 42px;
	height: 42px;
	margin: -7px 0 0 -7px;
	place-items: center;
	color: #59452d !important;
	border: 1px solid rgba(79, 54, 29, .18);
	border-radius: 50%;
	background: rgba(255, 252, 239, .82);
	text-decoration: none;
	box-shadow: 0 5px 18px rgba(65, 42, 19, .09);
}

.wc-hogwarts-quiz-close:hover,
.wc-hogwarts-quiz-close:focus-visible {
	color: #1e160e !important;
	background: #fffdf4;
}

.wc-hogwarts-quiz-close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

.wc-hogwarts-quiz-panel > header {
	padding: 2px 44px 24px;
	text-align: center;
}

.wc-hogwarts-quiz-spark {
	color: #9b6b26;
	font-size: 1.5rem;
}

.wc-hogwarts-quiz-panel > header p {
	margin: 4px 0 3px;
	color: #9b6b26;
	font-size: .75rem;
	font-weight: 700;
}

.wc-hogwarts-quiz-panel > header h2 {
	margin: 0;
	color: #271d14;
	font-size: clamp(1.35rem, 3vw, 2.1rem);
	line-height: 1.6;
}

.wc-hogwarts-quiz-content {
	position: relative;
	clear: both;
	color: #2a2119;
}

.wc-hogwarts-quiz-content a {
	color: #704a16;
}

body.wc-hogwarts-quiz-visible {
	overflow: hidden;
}

@keyframes wc-hogwarts-breathe {
	from { opacity: .72; }
	to { opacity: 1; }
}

@keyframes wc-hogwarts-nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

@keyframes wc-hogwarts-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(8px, -28px, 0); }
}

@keyframes wc-hogwarts-twinkle {
	from { opacity: .15; }
	to { opacity: .8; }
}

@media (max-width: 1050px) {
	.wc-hogwarts-portals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wc-hogwarts-intro {
		margin-bottom: clamp(110px, 18vh, 180px);
	}

	.wc-hogwarts-card > a {
		min-height: 292px;
	}
}

@media (max-width: 680px) {
	.wc-hogwarts-scene {
		min-height: 100vh;
		padding: 58px 16px 38px;
		background-position: 50% 8%;
		background-size: auto 760px;
		background-repeat: no-repeat;
	}

	.wc-hogwarts-intro {
		margin-bottom: 130px;
	}

	.wc-hogwarts-seal {
		width: 61px;
		height: 61px;
	}

	.wc-hogwarts-intro h1 {
		font-size: clamp(2rem, 11vw, 3.1rem);
	}

	.wc-hogwarts-lead {
		font-size: .9rem;
		line-height: 1.9;
	}

	.wc-hogwarts-portals {
		grid-template-columns: 1fr;
		gap: 13px;
	}

	.wc-hogwarts-card {
		border-radius: 20px;
	}

	.wc-hogwarts-card > a,
	.wc-hogwarts-card > .wc-hogwarts-card-body {
		min-height: 0;
		padding: 20px;
	}

	.wc-hogwarts-card-icon {
		width: 54px;
		height: 54px;
		margin-bottom: 17px;
		border-radius: 16px;
	}

	.wc-hogwarts-card-icon svg {
		width: 34px;
		height: 34px;
	}

	.wc-hogwarts-card-kicker {
		min-height: 0;
	}

	.wc-hogwarts-card h2 {
		font-size: 1.18rem;
	}

	.wc-hogwarts-card p {
		margin-bottom: 16px;
		font-size: .76rem;
	}

	.wc-hogwarts-card-actions {
		flex-wrap: wrap;
	}

	.wc-hogwarts-quiz {
		align-items: flex-end;
		padding: 0;
	}

	.wc-hogwarts-quiz-panel {
		width: 100%;
		max-height: 92vh;
		padding: 23px 18px 30px;
		border-radius: 24px 24px 0 0;
	}

	.wc-hogwarts-quiz-panel::before {
		inset: 8px;
	}

	.wc-hogwarts-quiz-panel > header {
		padding: 0 34px 18px;
	}

	.page-template-page-hogwarts .site-footer {
		padding-inline: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wc-hogwarts-scene::before,
	.wc-hogwarts-stars span,
	.wc-hogwarts-scroll svg {
		animation: none !important;
	}

	.wc-hogwarts-card,
	.wc-hogwarts-card-icon,
	.wc-hogwarts-card-cta i {
		transition-duration: .01ms !important;
	}
}
