.hp {
	--hp-u: min(1px, calc((100vw - 40px) / 526), calc((100vh - 40px) / 813));
	--hp-t: calc(1.1507 * var(--hp-u));
	--hp-f: calc(1.11 * var(--hp-u));
	--hp-bg: #0a0806;
	--hp-accent: #f3981f;
	--hp-text: #f6efe6;
	--hp-muted: #b7ac9d;
	--hp-gold: linear-gradient(90deg, #ffc271 0%, #ff9242 100%);

	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 8, 6, 0.82);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
	font-family:
		"Figtree",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
}

.hp.is-open {
	opacity: 1;
	visibility: visible;
}

.hp__overlay {
	position: absolute;
	inset: 0;
}

.hp__dialog {
	position: relative;
	flex-shrink: 0;
	width: calc(526 * var(--hp-u));
	height: calc(704 * var(--hp-u));
	margin-top: calc(109 * var(--hp-u));
	transform: translateY(10px) scale(0.98);
	transition: transform 0.25s ease;
}

.hp.is-open .hp__dialog {
	transform: none;
}

.hp__close {
	position: absolute;
	top: calc(-98 * var(--hp-u));
	right: 0;
	z-index: 3;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--hp-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hp__close:hover {
	background: rgba(255, 255, 255, 0.1);
}

.hp__card {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 170, 60, 0.3);
	border-radius: calc(30 * var(--hp-u));
	background: var(--hp-bg);
	box-shadow: 0 calc(14 * var(--hp-u)) calc(54 * var(--hp-u)) calc(10 * var(--hp-u)) rgba(255, 178, 77, 0.23);
}

.hp .hp__dialog .hp__scene {
	position: absolute;
	top: 28.69%;
	left: -62.74%;
	width: 162.74%;
	height: 60.8%;
	max-width: none;
	object-fit: cover;
}

.hp__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--hp-bg) 29.791%, rgba(10, 8, 6, 0.1) 54.146%, rgba(10, 8, 6, 0) 66.363%, var(--hp-bg) 86.471%);
	pointer-events: none;
}

.hp__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	padding: calc(68 * var(--hp-u)) calc(25.8 * var(--hp-u)) calc(28.5 * var(--hp-u));
}

.hp__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
}

.hp__badge {
	display: inline-flex;
	margin-bottom: calc(14 * var(--hp-t));
	padding: calc(8 * var(--hp-t)) calc(20 * var(--hp-t));
	border: 1px solid #34291c;
	border-radius: calc(30 * var(--hp-t));
	background: #1e1811;
	color: var(--hp-accent);
	font-size: calc(12 * var(--hp-t));
	letter-spacing: calc(2.16 * var(--hp-t));
	line-height: 1;
	white-space: nowrap;
}

.hp__title {
	margin: 0;
	font-size: calc(54 * var(--hp-t));
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.hp__title span {
	font-size: calc(56 * var(--hp-t));
	background: var(--hp-gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hp__title .hp__title-or {
	font-size: calc(24 * var(--hp-t));
}

.hp__doors {
	margin: calc(8 * var(--hp-t)) 0 0;
	color: var(--hp-text);
	font-size: calc(28 * var(--hp-t));
	line-height: 1.3;
}

.hp__teaser {
	margin: calc(4 * var(--hp-t)) 0 0;
	color: var(--hp-accent);
	font-size: calc(14 * var(--hp-t));
	letter-spacing: calc(2.16 * var(--hp-t));
	line-height: 1;
}

.hp__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(25.16 * var(--hp-u));
	width: 100%;
	margin-top: auto;
}

.hp__features {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: calc(22 * var(--hp-f));
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp__feature {
	display: flex;
	align-items: center;
	gap: calc(10.5 * var(--hp-f));
}

.hp__feature:nth-child(2) {
	align-items: flex-start;
}

.hp .hp__dialog .hp__feature-icon {
	flex-shrink: 0;
	width: auto;
	height: calc(28.5 * var(--hp-f));
}

.hp__feature-text {
	display: flex;
	flex-direction: column;
	gap: calc(3 * var(--hp-f));
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.hp__feature-label {
	color: var(--hp-text);
	font-size: calc(12 * var(--hp-f));
}

.hp__feature-value {
	color: var(--hp-accent);
	font-size: calc(10 * var(--hp-f));
	letter-spacing: calc(1.63 * var(--hp-f));
}

.hp__cta {
	order: -1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: calc(65 * var(--hp-u));
	padding: 0 calc(45.5 * var(--hp-u)) 0 calc(57.5 * var(--hp-u));
	border-radius: calc(12 * var(--hp-u));
	background: linear-gradient(180deg, #ffc36a 0%, #ff8a1e 60%, #f37500 100%);
	box-shadow: 0 calc(12 * var(--hp-u)) calc(36 * var(--hp-u)) calc(-9.6 * var(--hp-u)) rgba(255, 138, 30, 0.45);
	color: #1a0f02;
	font-size: calc(20 * var(--hp-u));
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.hp__cta:hover,
.hp__cta:focus-visible {
	color: #1a0f02;
	transform: translateY(-1px);
	box-shadow: 0 14px 34px -8px rgba(255, 138, 30, 0.55);
}

.hp .hp__dialog .hp__bat,
.hp .hp__dialog .hp__bat-percent {
	position: absolute;
	max-width: none;
	object-fit: cover;
	pointer-events: none;
}

.hp .hp__dialog .hp__bat {
	top: calc(-76.82 * var(--hp-u));
	left: calc(-11.94 * var(--hp-u));
	width: calc(302.6 * var(--hp-u));
	height: calc(169.6 * var(--hp-u));
	object-position: 50% 100%;
	transform: rotate(13.13deg);
}

.hp .hp__dialog .hp__bat-percent {
	top: calc(237.63 * var(--hp-u));
	left: calc(129.32 * var(--hp-u));
	width: calc(128.6 * var(--hp-u));
	height: calc(85.74 * var(--hp-u));
	transform: rotate(-5.21deg);
}
