/* Holographic cards (holo.js). A card tilts in 3D toward the pointer or the
   gyro; a rainbow foil and a white glare follow it, and the art inside
   shifts against the tilt for depth. Every value comes from the variables
   holo.js sets, so the resting card is flat and unlit. */
.holo-on {
	--rx: 0deg;
	--ry: 0deg;
	--mx: 50%;
	--my: 50%;
	--dx: 0;
	--dy: 0;
	--o: 0;
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transform-style: preserve-3d;
	will-change: transform;
}
.holo-foil,
.holo-glare {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
}
/* The foil: bands of colour that slide with the pointer, dodged into the
   card so they light the art instead of covering it. */
.holo-foil {
	background:
		linear-gradient(
			115deg,
			transparent 18%,
			hsl(2 90% 70%) 28%,
			hsl(45 95% 68%) 35%,
			hsl(120 80% 70%) 42%,
			hsl(190 90% 70%) 49%,
			hsl(265 85% 74%) 56%,
			hsl(330 90% 72%) 63%,
			transparent 76%
		)
		var(--mx) var(--my) / 300% 300% no-repeat;
	mix-blend-mode: color-dodge;
	opacity: calc(var(--o) * 0.32);
	-webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000 10%, rgba(0, 0, 0, 0.35) 70%);
	mask: radial-gradient(circle at var(--mx) var(--my), #000 10%, rgba(0, 0, 0, 0.35) 70%);
}
.holo-glare {
	background: radial-gradient(
		circle at var(--mx) var(--my),
		rgba(255, 255, 255, 0.5),
		rgba(255, 255, 255, 0.08) 35%,
		transparent 60%
	);
	mix-blend-mode: overlay;
	opacity: var(--o);
}

/* An Altar seat's card (mgSeatCard). */
.sc {
	position: relative;
	display: block;
	width: min(340px, 80vw);
	aspect-ratio: 5 / 7;
	border-radius: 22px;
	overflow: hidden;
	isolation: isolate;
	background: #0d0a06;
	color: #f6eedd;
	box-shadow:
		inset 0 0 0 1px rgba(243, 207, 133, 0.45),
		0 30px 60px rgba(0, 0, 0, 0.6),
		0 0 50px rgba(224, 179, 90, calc(0.08 + var(--o, 0) * 0.18));
	font-family: var(--sans, Figtree, system-ui, sans-serif);
}
.sc-art {
	position: absolute;
	inset: -8%;
	width: 116%;
	height: 116%;
	object-fit: cover;
	transform: translate3d(calc(var(--dx, 0) * -14px), calc(var(--dy, 0) * -14px), 0);
}
.sc-shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to bottom,
			rgba(8, 6, 3, 0.82),
			rgba(8, 6, 3, 0.3) 24%,
			transparent 36%,
			transparent 52%,
			rgba(8, 6, 3, 0.94) 80%
		),
		radial-gradient(120% 80% at 50% 40%, transparent 50%, rgba(8, 6, 3, 0.6));
}
.sc-top,
.sc-foot {
	position: absolute;
	left: 18px;
	right: 18px;
	display: flex;
	transform: translate3d(calc(var(--dx, 0) * 6px), calc(var(--dy, 0) * 6px), 0);
}
.sc-top {
	top: 16px;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}
.sc-k {
	font: 500 11px var(--mono, "IBM Plex Mono", ui-monospace, monospace);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #f3cf85;
}
.sc-n {
	font: 600 76px / 0.95 var(--serif, "Bodoni Moda", Georgia, serif);
	letter-spacing: -0.02em;
	background: linear-gradient(170deg, #fff4d6, #f3cf85 45%, #b98a33);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}
.sc-n small {
	margin-right: 6px;
	font: italic 600 22px var(--serif, "Bodoni Moda", Georgia, serif);
}
.sc-foot {
	bottom: 16px;
	align-items: center;
	gap: 10px;
}
.sc-face {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow:
		0 0 0 2px #0d0a06,
		0 0 0 3px rgba(243, 207, 133, 0.7);
}
.sc-who {
	min-width: 0;
	flex: 1;
	display: grid;
	gap: 1px;
	font-size: 13px;
	color: #d9ccb2;
}
.sc-who b {
	font-size: 16px;
	font-weight: 700;
	color: #fff6e3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sc-of {
	flex: none;
	align-self: flex-end;
	font: 500 12px var(--mono, "IBM Plex Mono", ui-monospace, monospace);
	color: #b8a98c;
	font-variant-numeric: tabular-nums;
}
/* Seat 1 and the last seat: gold foil, and a warmer glow. */
.sc.gold {
	box-shadow:
		inset 0 0 0 1.5px rgba(255, 226, 150, 0.8),
		0 30px 60px rgba(0, 0, 0, 0.6),
		0 0 60px rgba(243, 207, 133, calc(0.18 + var(--o, 0) * 0.25));
}
.sc.gold .holo-foil {
	background:
		linear-gradient(
			115deg,
			transparent 15%,
			#fff1c2 30%,
			#e0b35a 42%,
			#a8741f 52%,
			#f6d995 62%,
			#fff8e1 72%,
			transparent 85%
		)
		var(--mx) var(--my) / 300% 300% no-repeat;
	opacity: calc(0.12 + var(--o) * 0.5);
}

/* The open card, in the site's one dialog (live.css .mg-dlg): on wide
   screens no panel, just the card over the dimmed page with its actions
   below; on phones the bottom sheet from live.css holds it. */
.holo-panel {
	display: grid;
	justify-items: center;
	gap: 22px;
	padding: 56px 16px 8px;
}
@media (min-width: 641px) {
	.mg-panel.holo-panel {
		background: none;
		border: 0;
		box-shadow: none;
	}
}
@media (max-width: 640px) {
	.holo-panel {
		padding: 44px 16px max(24px, calc(env(safe-area-inset-bottom) + 16px));
	}
}
.holo-dlg .sc {
	width: min(360px, 82vw, calc((100dvh - 180px) * 5 / 7));
}
.holo-acts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.holo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(224, 179, 90, 0.1);
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.45);
	color: #f6eedd;
	font: 600 15px var(--sans, Figtree, system-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.holo-btn.primary {
	background: #e0b35a;
	box-shadow: none;
	color: #140e06;
}
.holo-btn:focus-visible {
	outline: 2px solid #e0b35a;
	outline-offset: 2px;
}
@media (hover: hover) {
	.holo-btn:not(.primary):hover {
		background: rgba(224, 179, 90, 0.2);
	}
}
@media (prefers-reduced-motion: reduce) {
	.holo-on {
		transform: none;
	}
}

/* A share card (holo.js shareCard): the drawn card, large, over a skeleton of
   its own words that shimmers until the image arrives. */
.share-card {
	--sh-k: #f3cf85;
	--sh-rgb: 224, 179, 90;
	position: relative;
	width: min(880px, 92vw, calc((100dvh - 200px) * 1200 / 630));
	aspect-ratio: 1200 / 630;
	border-radius: 18px;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 80% at 50% 45%, rgba(var(--sh-rgb), 0.16), transparent 70%), #0c0906;
	box-shadow:
		inset 0 0 0 1px rgba(var(--sh-rgb), 0.5),
		0 30px 60px rgba(0, 0, 0, 0.6),
		0 0 50px rgba(var(--sh-rgb), calc(0.1 + var(--o, 0) * 0.2));
}
.share-card.tone-ember {
	--sh-k: #ff9a74;
	--sh-rgb: 255, 122, 82;
}
.shc-skel {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: clamp(4px, 1.2vw, 12px);
	text-align: center;
	transition: opacity 0.4s;
}
.shc-skel::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%) 0 0 /
		250% 100%;
	animation: shc-sweep 1.6s linear infinite;
}
.shc-k {
	font: 700 clamp(11px, 1.8vw, 18px) var(--sans, Figtree, system-ui, sans-serif);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sh-k);
}
.shc-fig {
	font: 800 clamp(40px, 10vw, 104px) / 1 var(--sans, Figtree, system-ui, sans-serif);
	letter-spacing: -0.03em;
	color: #f6eedd;
}
.shc-line {
	font: 600 clamp(14px, 2.4vw, 24px) var(--sans, Figtree, system-ui, sans-serif);
	color: #d9ccb2;
}
.share-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.4s;
}
.share-card.ready img {
	opacity: 1;
}
.share-card.ready .shc-skel {
	opacity: 0;
}
@keyframes shc-sweep {
	to {
		background-position: -250% 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.shc-skel::after {
		animation: none;
	}
}
