@font-face {
	font-family: "Fahkwang";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("./brand/fonts/fahkwang-400-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Fahkwang";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("./brand/fonts/fahkwang-600-latin.woff2") format("woff2");
}

:root {
	--cream: #f5f1ea;
	--paper: rgba(255, 252, 247, 0.78);
	--text: #1c2e2b;
	--muted: #5c6b68;
	--line: rgba(28, 46, 43, 0.12);
	--accent: #822229;
	--accent-press: #6b1c22;
	--hero: #1c2e2b;
	--err: #b4232c;
	--ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
	--display: "Fahkwang", "Palatino Linotype", Palatino, serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
	background: var(--cream);
	color: var(--text);
	font-family: var(--ui);
	-webkit-font-smoothing: antialiased;
}

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.page {
	height: 100%;
	overflow: hidden;
}

.gate {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: max(28px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.gate-photo,
.gate-veil {
	position: absolute;
	inset: 0;
}

.gate-photo {
	background: var(--hero) url("./brand/hero.jpg") center / cover no-repeat;
}

.gate-veil {
	background: linear-gradient(180deg, rgba(28, 46, 43, 0.16) 0%, rgba(28, 46, 43, 0.28) 100%);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.topbar {
	position: absolute;
	top: max(18px, env(safe-area-inset-top));
	left: 22px;
	z-index: 2;
}

.mark {
	display: block;
	height: auto;
}

.mark-small {
	width: 92px;
	filter: drop-shadow(0 1px 10px rgba(245, 241, 234, 0.7));
}

.mark-card {
	width: 86px;
	margin: 0 auto 18px;
}

.mark-island {
	width: 28px;
	height: auto;
}

.card {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	padding: 36px 28px 32px;
	text-align: center;
	background: var(--paper);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 28px;
	box-shadow: 0 24px 80px rgba(28, 46, 43, 0.28);
	backdrop-filter: blur(28px) saturate(1.4);
	-webkit-backdrop-filter: blur(28px) saturate(1.4);
}

.kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
}

h1 {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: clamp(28px, 6vw, 40px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.lead {
	margin: 0 0 28px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.45;
}

.pin-wrap {
	position: relative;
	margin: 0 0 22px;
}

.pin-slots {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

.pin-slots span {
	height: 52px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.72);
	color: var(--text);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pin-slots span.filled {
	border-color: rgba(130, 34, 41, 0.35);
	background: #fff;
}

.pin-wrap input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	border: 0;
	font-size: 24px;
	letter-spacing: 1.6rem;
	text-align: center;
}

button {
	appearance: none;
	width: 100%;
	padding: 15px 22px;
	border: 0;
	border-radius: 980px;
	background: var(--accent);
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
}

button:active {
	background: var(--accent-press);
}

.error {
	color: var(--err);
	margin: 14px 0 0;
	font-size: 14px;
}

.stage {
	position: relative;
	height: 100%;
	overflow: hidden;
	background: #000;
}

video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.island {
	position: absolute;
	top: max(16px, env(safe-area-inset-top));
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 32px);
	padding: 8px 14px 8px 10px;
	border-radius: 980px;
	background: rgba(28, 46, 43, 0.55);
	color: #f5f1ea;
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(18px) saturate(1.4);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.dock {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	padding: 0 20px max(22px, env(safe-area-inset-bottom));
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}

.dock button {
	width: auto;
	min-width: 148px;
	background: rgba(255, 252, 247, 0.92);
	color: var(--accent);
}

.dock button:active {
	background: #fff;
}

@media (max-width: 420px) {
	.card {
		padding: 28px 18px 24px;
		border-radius: 24px;
	}

	.pin-slots {
		gap: 6px;
	}

	.pin-slots span {
		height: 46px;
		border-radius: 12px;
		font-size: 20px;
	}
}
