/* The invite claim and the viewfinder behind it. */

/* The invite claim: two ways in, and the full-screen viewfinder behind one. */
.tj-claim-pick {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-top: 10px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface2);
	color: var(--ink);
	font-family: 'Barlow', sans-serif;
	font-weight: 600;
	font-size: 14.5px;
	text-align: left;
	cursor: pointer;
}

.tj-claim-pick-on {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.tj-claim-pick-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
}

.tj-claim-pick-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tj-claim-pick-title {
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.2;
}

.tj-claim-pick-sub {
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.35;
}

.tj-claim-panel {
	margin-top: 12px;
}

.tj-claim-overlay {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
	background: #0a0c0e;
}

/* The overlay's own display:flex would otherwise beat the browser's
   default for the hidden attribute, leaving the closed viewfinder
   sitting over the page and swallowing clicks meant for what's under it. */
.tj-claim-overlay[hidden] {
	display: none;
}

.tj-claim-overlay video {
	width: min(88vw, 420px);
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 20px;
	background: #000;
}

.tj-claim-aim {
	color: #fff;
	font-size: 14.5px;
	text-align: center;
	opacity: .85;
}

.tj-claim-note {
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 13.5px;
	text-align: center;
}

.tj-claim-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}
