#sceneHeaderTitle {
	font-family: "Pinyon Script" !important;
	font-weight: 400 !important;
	font-style: normal;
}


@font-face {
	font-family: "Waltograph";
	src: url("font/Waltograph.woff2") format("woff2"),
	     url("font/Waltograph.woff") format("woff"),
	     url("font/Waltograph.ttf") format("truetype"),
	     url("font/Waltograph.eot") format("embedded-opentype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg-a: #120f1f;
	--bg-b: #2a1938;
	--gold: #f3d98b;
	--cream: #fff8e8;
	--ink: #17131f;
	--btn-glow: rgba(243, 217, 139, 0.45);
	--overlay-bg: rgba(12, 8, 20, 0.84);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: radial-gradient(circle at 30% 20%, #3f2959, var(--bg-b) 40%, var(--bg-a) 100%);
	font-family: "Montserrat", sans-serif;
	color: var(--cream);
}

.hidden {
	display: none !important;
}

#app {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	isolation: isolate;
}

@supports (height: 100svh) {
	#app {
		height: 100svh;
	}
}

@supports (height: 100dvh) {
	#app {
		height: 100dvh;
	}
}

.canvas {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	height: calc(100vw * 1850 / 1080);
	overflow: hidden;
	border-radius: clamp(0px, 1vw, 12px);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 90px rgba(0, 0, 0, 0.55);
}

@media (max-aspect-ratio: 1080/1850) {
	.canvas {
		width: calc(100vh * 1080 / 1850);
		height: 100vh;
	}

	@supports (height: 100svh) {
		.canvas {
			width: calc(100svh * 1080 / 1850);
			height: 100svh;
		}
	}

	@supports (height: 100dvh) {
		.canvas {
			width: calc(100dvh * 1080 / 1850);
			height: 100dvh;
		}
	}
}

#cover {
	position: fixed;
	inset: 0;
	z-index: 20;
	background: #000;
	opacity: 1;
	transition: opacity 220ms ease;
}

#cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	user-select: none;
	-webkit-user-drag: none;
}

.cover-vignette {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(85 0 129 / 85%), rgba(0, 0, 0, 0.1) 15%, rgb(161 35 122 / 0%));
	pointer-events: none;
}

.cover-text {
	height: 100%;
	width: 100%;
	box-sizing: border-box;
	padding: 40px 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	text-shadow: 0 3px 20px rgba(0, 0, 0, 0.8);
	pointer-events: none;
}

.cover-text h1{
	font-family: "Pinyon Script", "Waltograph", cursive;
	letter-spacing: 0.05em;
    font-weight: 400;
	font-size: clamp(6rem, 8vw, 3.5rem);
	line-height: 5rem;
	color: var(--gold);
	max-width: 90%;
	margin: 0 auto;
}

.cover-text p {
	font-size: clamp(0.92rem, 2.6vw, 1.18rem);
	line-height: 1;
	font-weight: 500;
}

#coverSubtitle {
	font-weight: 700;
	font-size: clamp(3rem, 2.6vw, 1.18rem);
	margin-bottom: 0.3rem;
}

#coverText {
	font-size: clamp(0.86rem, 2.4vw, 1.02rem);
	opacity: 0.95;
}

#openInvite {
	position: absolute;
	inset: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 21;
}

#stage {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: #000;
}

#inviteVideo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

.scene-header {
	position: absolute;
	left: 50%;
	top: 8.5%;
	transform: translate(-50%, -16px);
	text-align: center;
	z-index: 4;
	opacity: 0;
	transition: opacity 320ms ease, transform 320ms ease;
	pointer-events: none;
	/* text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45); */
}

.scene-header.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.scene-header.is-visible #sceneHeaderTitle {
	font-family: "Pinyon Script", "Waltograph", cursive;
	font-weight: 400;
	font-style: normal;
	animation: sceneTitleIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.scene-header.is-visible #sceneHeaderSubtitle {
	animation: sceneSubtitleIn 520ms ease 140ms both;
}

#sceneHeaderTitle img{
	max-width: 100%;
	height: auto;
}

#sceneHeaderTitle {
	font-family: "Pinyon Script", "Waltograph", cursive;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0.05em;
	font-size: clamp(6rem, 6vw, 3.0rem);
	line-height: 5rem;
	color: #a600ce;
	max-width: 90%;
	margin: 0 auto;
}

#sceneHeaderSubtitle {
	font-size: clamp(0.92rem, 6vw, 3rem);
	line-height: 1;
	font-weight: 800;
    text-transform: uppercase;
}

@keyframes sceneTitleIn {
	from {
		opacity: 0;
		transform: translateY(-14px) scale(0.92);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes sceneSubtitleIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sceneGlowPulse {
	0%, 100% {
		text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45), 0 0 0 rgba(255, 245, 223, 0);
	}
	50% {
		text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 245, 223, 0.45);
	}
}

#hotspots {
	position: absolute;
	inset: 0;
	pointer-events: none;
	user-select: none;
	z-index: 3;
}

.final-info {
	position: absolute;
	left: 51%;
	top: 15%;
	transform: translate(-50%, 24px);
	width: min(50%, 540px);
	height: auto;
	opacity: 0;
	z-index: 4;
	pointer-events: none;
	/* filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.26)); */
	transition: opacity 380ms ease, transform 380ms ease;
}

.final-info.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	animation: finalInfoIn 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both, finalInfoFloat 3.2s ease-in-out 650ms infinite;
}

.hotspot {
	position: absolute;
	border: 0;
	pointer-events: auto;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center 0%;
	background-size: 90% auto;
	cursor: pointer;
	border-radius: 12px;
	outline: none;
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 360ms ease, transform 360ms ease, box-shadow 180ms ease;
}

.hotspot::after {
	content: attr(data-label);
	position: absolute;
	left: 50%;
	bottom: 3rem;
	transform: translateX(-50%);
	font-family: "Alexandria", "Montserrat", sans-serif;
	font-size: clamp(0.6rem, 1.0vw, 0.72rem);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: 0.015em;
	color: #fff7e8;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
	pointer-events: none;
	white-space: normal;
	text-align: center;
	width: 112%;
}

#hotspots.is-visible .hotspot {
	opacity: 1;
	transform: translateY(0);
}

#hotspots.is-visible .hotspot:nth-child(1) {
	transition-delay: 0ms;
}

#hotspots.is-visible .hotspot:nth-child(2) {
	transition-delay: 90ms;
}

#hotspots.is-visible .hotspot:nth-child(3) {
	transition-delay: 180ms;
}

#hotspots.is-visible .hotspot:nth-child(4) {
	transition-delay: 270ms;
}

.hotspot:focus-visible,
.hotspot:hover {
	filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) brightness(1.05);
	transform: translateY(-2px);
}

.hotspot:nth-child(1) {
	left: 10%;
	top: 78.5%;
	width: 17%;
	height: 20%;
	background-image: url("img/icone-manual.png");
}

.hotspot:nth-child(2) {
	left: 31%;
	top: 78.5%;
	width: 17%;
	height: 20%;
	background-image: url("img/icone-localizacao.png");
}

.hotspot:nth-child(3) {
	left: 52%;
	top: 78.5%;
	width: 17%;
	height: 20%;
	background-image: url("img/icone-confirmacao.png");
}

.hotspot:nth-child(4) {
	left: 73%;
	top: 78.5%;
	width: 17%;
	height: 20%;
	background-image: url("img/icone-presente.png");
}

.hotspot-hint {
	position: absolute;
	left: 50%;
	bottom: 1.1%;
	transform: translate(-50%, 16px);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(14, 9, 22, 0.68);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff8ef;
	font-family: "Alexandria", "Montserrat", sans-serif;
	font-size: clamp(0.64rem, 1.9vw, 0.85rem);
	font-weight: 700;
	white-space: nowrap;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	z-index: 4;
	opacity: 0;
	transition: opacity 360ms ease, transform 360ms ease;
	pointer-events: none;
}

.hotspot-hint.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.touch-icon {
	position: relative;
	width: 14px;
	height: 20px;
	border: 2px solid rgba(255, 248, 239, 0.95);
	border-radius: 9px;
	display: inline-block;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.touch-icon::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 3px;
	transform: translateX(-50%);
	width: 4px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 248, 239, 0.95);
}

.stage-notice {
	position: absolute;
	left: 50%;
	top: 15%;
	transform: translate(-50%, 20px);
	width: min(50%, 520px);
	padding: 10px 14px;
	border-radius: 14px;
	background: rgba(17, 11, 28, 0.74);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff8ef;
	text-align: center;
	font-size: clamp(0.76rem, 2.2vw, 0.94rem);
	line-height: 1.35;
	font-weight: 700;
	white-space: pre-line;
	opacity: 0;
	z-index: 4;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	transition: opacity 360ms ease, transform 360ms ease;
	pointer-events: none;
}

.stage-notice.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	background: var(--overlay-bg);
	backdrop-filter: blur(5px);
	padding: clamp(12px, 2.4vw, 28px);
}

.overlay.active {
	display: flex;
	animation: fadeIn 220ms ease;
}

.overlay-card {
	position: relative;
	width: 100%;
	border-radius: 20px;
	border: none;
	height: 90%;
	background-image: url("img/moldura.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
	background-color: transparent;
	overflow: hidden;
	animation: riseIn 250ms ease;
}

.overlay-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.overlay-media {
	width: 100%;
	object-fit: cover;
	display: block;
}

.overlay-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	top: 15%;
	max-width: 55%;
	margin: 0 auto;
	padding: 1.2rem 1.2rem 1.4rem;
	overflow: auto;
}

.overlay-title {
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(1.6rem, 8vw, 4rem);
	color: #6700c1;
	line-height: 1;
	font-weight: bold;
	margin-bottom: 0.55rem;
	letter-spacing: 0.02em;
}

.overlay-text {
	font-size: clamp(0.94rem, 7.9vw, 1.3rem);
	line-height: 1.2;
	color: #7e5936;
	font-weight: 600;
	white-space: pre-line;
	margin-top: 2rem;
}

.overlay-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.25rem;
	cursor: pointer;
}

#toast {
	position: fixed;
	left: 50%;
	bottom: 7%;
	transform: translateX(-50%);
	z-index: 110;
	display: none;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	padding: 10px 14px;
	border-radius: 11px;
	font-size: 0.92rem;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.cover-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes riseIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes finalInfoIn {
	from {
		opacity: 0;
		transform: translate(-50%, 28px) scale(0.94);
		/* filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2)); */
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0) scale(1);
		/* filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3)); */
	}
}

@keyframes finalInfoFloat {
	0%,
	100% {
		transform: translate(-50%, 0);
		/* filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3)); */
	}
	50% {
		transform: translate(-50%, -5px);
		/* filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35)); */
	}
}
