/* STAGE 1: ENTRANCE SCREEN */
.entrance-stage {
	position: relative;
	z-index: 10;
	min-height: 100dvh;
	display: grid;
	place-items: center;
	padding: 48px 20px;
	overflow: hidden;
}

.entrance-content {
	position: relative;
	z-index: 12;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 620px;
	padding: 36px 26px;
	transition: opacity 0.6s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
}

.entrance-content.is-leaving {
	opacity: 0;
	transform: scale(0.94);
	pointer-events: none;
}

.entrance-crest {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.crest-year {
	font-family: var(--font-serif);
	font-size: 0.82rem;
	letter-spacing: 0.24em;
	color: var(--xmas-gold-light);
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.crest-holly {
	width: 18px;
	height: 10px;
	position: relative;
	display: inline-block;
}

.crest-holly::before,
.crest-holly::after {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 0 75% 0 75%;
	background: linear-gradient(135deg, #2d7a56, #174B35);
	border: 1px solid rgba(214, 173, 85, 0.55);
}

.crest-holly::after {
	left: 7px;
	transform: rotate(70deg);
}

.entrance-subtitle {
	margin: 0 0 28px;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(0.98rem, 2.3vw, 1.18rem);
	color: rgba(255, 253, 247, 0.86);
	letter-spacing: 0.03em;
}

.entrance-btn-wrap {
	position: relative;
	padding: 12px;
}

/* Hover gold halo */
.entrance-btn-wrap::before {
	content: "";
	position: absolute;
	inset: -14px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(214, 173, 85, 0.55) 0%, rgba(243, 220, 155, 0.16) 45%, transparent 72%);
	opacity: 0;
	transform: scale(0.86);
	filter: blur(14px);
	transition: opacity 0.55s var(--ease-cinematic), transform 0.55s var(--ease-cinematic);
	pointer-events: none;
}

.entrance-btn-wrap:hover::before,
.entrance-btn-wrap:focus-within::before {
	opacity: 1;
	transform: scale(1.12);
}

.entrance-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(82vw, 350px);
	padding: 22px 42px;
	border-radius: 999px;
	border: 2px solid var(--xmas-gold);
	background:
		radial-gradient(circle at 50% 0%, rgba(243, 220, 155, 0.25), transparent 65%),
		linear-gradient(145deg, #c9282e 0%, #B82025 48%, #851317 100%);
	color: var(--snow-white);
	box-shadow:
		0 14px 36px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 253, 247, 0.42),
		0 0 22px rgba(214, 173, 85, 0.25);
	overflow: hidden;
	transition:
		transform 0.4s var(--ease-bounce),
		box-shadow 0.45s var(--ease-cinematic),
		border-color 0.45s ease;
}

.entrance-btn:hover,
.entrance-btn:focus-visible {
	transform: translateY(-3px) scale(1.03);
	border-color: var(--xmas-gold-light);
	box-shadow:
		0 20px 44px rgba(0, 0, 0, 0.55),
		0 0 38px rgba(243, 220, 155, 0.72),
		0 0 70px rgba(214, 173, 85, 0.35),
		inset 0 1px 0 rgba(255, 253, 247, 0.65);
}

.entrance-btn:active {
	transform: scale(0.98);
}

.entrance-btn__frame {
	position: absolute;
	inset: 5px;
	border-radius: 999px;
	border: 1px solid rgba(243, 220, 155, 0.45);
	pointer-events: none;
}

.entrance-btn__shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 25%, rgba(255, 253, 247, 0.35) 50%, transparent 75%);
	transform: translateX(-120%);
	transition: transform 0.85s var(--ease-cinematic);
	pointer-events: none;
}

.entrance-btn:hover .entrance-btn__shine {
	transform: translateX(120%);
}

.entrance-btn__text {
	position: relative;
	z-index: 1;
	font-family: var(--font-serif);
	font-size: clamp(1.22rem, 3.6vw, 1.65rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-shadow: 0 2px 10px rgba(45, 7, 9, 0.65);
}

.entrance-note {
	margin: 26px 0 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(255, 253, 247, 0.78);
}

/* CINEMATIC DOUBLE DOORS */
.doors-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 50% 50%, rgba(15, 48, 34, 0.96), rgba(5, 17, 12, 0.99));
	perspective: 1800px;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.45s ease;
}

.doors-overlay.is-visible {
	opacity: 1;
}

.doors-stage {
	position: relative;
	width: min(92vw, 660px);
	height: min(82vh, 720px);
	display: flex;
	transform-style: preserve-3d;
	transform: scale(0.92);
	transition: transform 2.1s cubic-bezier(0.25, 0.85, 0.35, 1);
}

.doors-overlay.is-opening .doors-stage {
	transform: scale(1.42);
}

.door-glow-core {
	position: absolute;
	inset: 8% 12%;
	background: radial-gradient(circle at 50% 50%, #fffdf7 0%, #f6df9d 32%, rgba(214, 173, 85, 0.45) 60%, transparent 80%);
	opacity: 0;
	filter: blur(18px);
	transform: scale(0.5);
	transition: opacity 1.1s ease, transform 1.6s var(--ease-cinematic);
	pointer-events: none;
}

.doors-overlay.is-opening .door-glow-core {
	opacity: 1;
	transform: scale(1.75);
}

.door {
	position: relative;
	width: 50%;
	height: 100%;
	background:
		linear-gradient(180deg, rgba(255, 253, 247, 0.08) 0%, transparent 25%),
		linear-gradient(155deg, #215f44 0%, #174B35 45%, #0c2b1e 100%);
	border: 3px solid var(--xmas-gold);
	box-shadow:
		inset 0 0 40px rgba(0, 0, 0, 0.55),
		0 25px 60px rgba(0, 0, 0, 0.65);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 26px 20px;
	transform-style: preserve-3d;
	transition: transform 1.45s cubic-bezier(0.22, 0.9, 0.32, 1);
}

.door--left {
	transform-origin: left center;
	border-radius: 14px 0 0 8px;
	border-right-width: 1.5px;
}

.door--right {
	transform-origin: right center;
	border-radius: 0 14px 8px 0;
	border-left-width: 1.5px;
}

.doors-overlay.is-opening .door--left {
	transform: rotateY(-108deg);
}

.doors-overlay.is-opening .door--right {
	transform: rotateY(108deg);
}

.door__panel {
	width: 100%;
	border: 1.5px solid rgba(214, 173, 85, 0.55);
	border-radius: 8px;
	box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 253, 247, 0.12);
	background: linear-gradient(160deg, rgba(255, 253, 247, 0.04), rgba(0, 0, 0, 0.18));
}

.door__panel--top {
	height: 44%;
}

.door__panel--bottom {
	height: 44%;
}

.door__wreath {
	position: absolute;
	top: 23%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: clamp(58px, 12vw, 96px);
	height: clamp(58px, 12vw, 96px);
	border-radius: 50%;
	border: clamp(10px, 2vw, 15px) solid #1d6443;
	box-shadow:
		0 6px 16px rgba(0, 0, 0, 0.45),
		inset 0 0 0 2px rgba(214, 173, 85, 0.65),
		0 0 0 2px rgba(214, 173, 85, 0.5);
}

.door__wreath::after {
	content: "";
	position: absolute;
	bottom: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 18px;
	height: 14px;
	background: var(--xmas-red);
	border-radius: 4px;
	box-shadow: 0 0 0 1.5px var(--xmas-gold);
}

.door__handle {
	position: absolute;
	top: 52%;
	width: 12px;
	height: 48px;
	border-radius: 999px;
	background: linear-gradient(180deg, #f3dc9b 0%, #D6AD55 55%, #8f671c 100%);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

.door--left .door__handle {
	right: 14px;
}

.door--right .door__handle {
	left: 14px;
}

.flash-curtain {
	position: fixed;
	inset: 0;
	background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fffdf7 45%, #f5df9c 100%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.65s ease;
}

.doors-overlay.is-flash .flash-curtain {
	opacity: 1;
}

.doors-overlay.is-fading-out {
	opacity: 0;
	transition: opacity 0.9s ease;
}
