/* The sales room (/sales) and the store (/listed), one sheet for both:
   the muse page's system (src/muse/page.ts), as the gallery has it, hung like a
   show: dark frames under a soft spotlight, each with its label. Gold is kept
   for the record's price and the page's one way on; labels and the current
   pick are the cool violet, what just sold or is open the live green, and a
   house's card its own hue. */
:root {
	/* The frame: dark wood catching a little light from the top left. */
	--frame: linear-gradient(
		135deg,
		var(--card-up) 0%,
		var(--card) 35%,
		var(--card-hi) 65%,
		var(--void) 100%
	);
	--mat: color-mix(in srgb, var(--card) 40%, var(--void));
	/* The spotlight that falls on a piece: warm white, not gold. */
	--light: rgba(var(--bone-rgb), 0.1);
}
/* The glow behind a piece reaches past it; clipped at the page's sides, it
   can't widen the page where a piece stands near the screen's edge. */
main {
	max-width: 1320px;
	margin: 0 auto;
	padding: 28px var(--pad) calc(64px + env(safe-area-inset-bottom));
	overflow-x: clip;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
}
/* Section titles: italic Bodoni, the em in the title's own color. Heads
   vary by section: .up stands the title upright with its em italic in
   --soft, .cool colors the em, and site.css .lead-fig leads with a figure. */
h2 {
	margin: 4px 0 0;
	font: italic 600 clamp(32px, 7vw, 48px) / 1.05 var(--serif);
	letter-spacing: -0.02em;
	text-wrap: balance;
}
h2.up {
	font-style: normal;
	letter-spacing: -0.03em;
}
h2.up em {
	font-style: italic;
	color: var(--soft);
}
h2.cool em {
	color: var(--cool);
}
/* The houses' head (site.css .lead-fig): its line under the title. */
.lead-fig > p:not(.fig) {
	color: var(--soft);
	max-width: 560px;
}
.lede {
	max-width: 600px;
}
.lede a {
	color: var(--bone);
	text-decoration-color: var(--underline);
	text-underline-offset: 3px;
}

section {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}
.sec-head p:not(.label) {
	margin: 0;
	color: var(--soft);
	max-width: 560px;
}

/* The numbers under the title. */
.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.stats li {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border-radius: var(--r-lg);
	background: var(--card);
	box-shadow: var(--e-1);
}
.stats b {
	font: 700 clamp(21px, 5.6vw, 34px) / 1.1 var(--sans);
	letter-spacing: -0.02em;
	white-space: nowrap;
	color: var(--bone);
	font-variant-numeric: tabular-nums;
}
.stats span {
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cool);
}
@media (min-width: 760px) {
	.stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	/* Four across: the figure scales with the tile, so "0.0407 ETH" fits one at 760px. */
	.stats b {
		font-size: clamp(22px, 2.7vw, 34px);
	}
}

/* A framed piece: the frame, the mat, the art, and the light that falls on it
   (a soft glow that fades out on every side, so it has no edge). */
.piece {
	position: relative;
	display: grid;
	gap: 16px;
	align-content: start;
	text-decoration: none;
}
.piece::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: -12%;
	right: -12%;
	top: -14%;
	height: 70%;
	background: radial-gradient(closest-side, var(--light), transparent);
	pointer-events: none;
}
.frame {
	position: relative;
	z-index: 1;
	padding: var(--gw, 10px);
	border-radius: 4px;
	background: var(--frame);
	box-shadow:
		0 30px 60px -20px rgba(0, 0, 0, 0.85),
		0 12px 24px rgba(0, 0, 0, 0.5),
		inset 0 0 0 1px var(--line-hi),
		inset 0 1px 0 rgba(var(--bone-rgb), 0.08);
}
.frame .mat {
	padding: var(--mw, 6%);
	background: var(--mat);
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.8),
		inset 0 6px 18px rgba(0, 0, 0, 0.8);
}
.frame img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--card-hi);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
button.piece {
	padding: 0;
	font: inherit;
	color: inherit;
	text-align: inherit;
	background: none;
	border: 0;
	cursor: zoom-in;
}
/* Hovered, the frame stays put (the wall's tiles clip anything that moves out
   of them) and a light runs around its edge. */
@property --shine {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
.frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	padding: 2px;
	border-radius: inherit;
	pointer-events: none;
	background: conic-gradient(
		from var(--shine),
		transparent 0 62%,
		rgba(var(--bone-rgb), 0.3) 78%,
		var(--bone) 88%,
		rgba(var(--bone-rgb), 0.3) 94%,
		transparent
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) content-box exclude,
		linear-gradient(#000 0 0);
	opacity: 0;
	transition: opacity 0.35s;
}
@keyframes shine {
	to {
		--shine: 360deg;
	}
}
@media (hover: hover) {
	button.piece .frame {
		transition: box-shadow 0.35s;
	}
	button.piece:hover .frame {
		box-shadow:
			0 30px 60px -20px rgba(0, 0, 0, 0.85),
			0 12px 24px rgba(0, 0, 0, 0.5),
			inset 0 0 0 1px rgba(var(--bone-rgb), 0.28),
			inset 0 1px 0 rgba(var(--bone-rgb), 0.1);
	}
	button.piece:hover .frame::after {
		opacity: 1;
		animation: shine 2.6s linear infinite;
	}
}
button.piece:focus-visible .frame::after {
	opacity: 1;
	animation: shine 2.6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
	button.piece .frame::after {
		/* biome-ignore lint/complexity/noImportantStyles: reduced motion has to beat the more specific :hover and :focus-visible shine */
		animation: none !important;
		background: rgba(var(--bone-rgb), 0.6);
	}
}

/* The label beside each piece: the site's dark card with its kicker in the
   cool violet and the price large as a figure. Only the piece now showing
   lifts (--card-up, --e-2) and keeps its price in gold. */
.placard {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 10px;
	padding: 18px 20px;
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	color: var(--bone);
	box-shadow:
		var(--e-1),
		inset 0 0 0 1px var(--line);
}
.placard .pk {
	margin: 0;
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cool);
}
.placard h3 {
	margin: 0;
	font: italic 600 clamp(24px, 5vw, 34px) / 1.1 var(--serif);
	letter-spacing: -0.01em;
	color: var(--bone);
	overflow-wrap: anywhere;
}
.placard .meta {
	margin: 0;
	font: 400 var(--t-ui) var(--sans);
	color: var(--soft);
}
.placard .price {
	margin: 0;
	font: 700 clamp(30px, 7vw, 44px) / 1 var(--sans);
	letter-spacing: -0.02em;
	color: var(--bone);
	font-variant-numeric: tabular-nums;
}
.record .placard {
	background: linear-gradient(180deg, var(--card-up), var(--card-hi));
	box-shadow: var(--e-2);
}
.record .placard .price {
	color: var(--gold-hi);
}
.placard .price small {
	display: block;
	margin-bottom: 6px;
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dim);
}
.placard .when {
	margin: 0;
	font-size: var(--t-ui);
	color: var(--soft);
}
.placard .when b {
	color: var(--bone);
	font-weight: 600;
}
.placard .hands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
	font-size: var(--t-ui);
	color: var(--soft);
}
.placard .hands .user-chip {
	color: var(--bone);
}
.placard hr {
	width: 100%;
	margin: 2px 0;
	border: 0;
	border-top: 1px solid var(--line);
}
.sealed {
	display: inline-block;
	padding: 1px 8px;
	border-radius: var(--r-pill);
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cool);
	background: rgba(var(--cool-rgb), 0.12);
	vertical-align: 2px;
}
.acts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* The record: hung large, the placard beside it on wide screens. */
.record {
	display: grid;
	gap: 22px;
	align-items: end;
	padding: 28px 0 8px;
}
.record .piece {
	--gw: 12px;
}
.record .piece::before {
	top: -16%;
	height: 75%;
	background: radial-gradient(closest-side, rgba(var(--bone-rgb), 0.14), transparent);
}
@media (min-width: 900px) {
	.record {
		grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
		gap: 44px;
		padding-top: 44px;
	}
	.record .feat-side {
		margin-bottom: 8%;
	}
}

/* Now showing: the placard over a row of thumbnails, one per piece. The one
   showing is ringed in the cool violet and fills along its foot while it
   waits to turn. */
.feat-side {
	display: grid;
	gap: 14px;
	min-width: 0;
}
.feat-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.feat-thumb {
	position: relative;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--line-hi);
	opacity: 0.6;
	cursor: pointer;
	transition:
		opacity 0.25s,
		box-shadow 0.25s;
}
.feat-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.feat-thumb[aria-pressed="true"] {
	opacity: 1;
	box-shadow:
		0 0 0 2px var(--cool),
		var(--e-2);
}
.feat-thumb[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: var(--cool);
	transform-origin: left;
	animation: feat-prog 8s linear forwards;
}
.record.paused .feat-thumb[aria-pressed="true"]::after {
	animation: none;
	transform: scaleX(0);
}
@keyframes feat-prog {
	from {
		transform: scaleX(0);
	}
}
@media (hover: hover) {
	.feat-thumb:hover {
		opacity: 1;
	}
}
.feat-in {
	animation: feat-in 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes feat-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}
@media (prefers-reduced-motion: reduce) {
	.feat-in,
	.feat-thumb[aria-pressed="true"]::after {
		animation: none;
	}
}

/* The halls: the best of each tier, and the notable sales. A row that
   scrolls sideways on phones, a grid on wide screens. */
.hall {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(80vw, 340px);
	gap: 22px;
	margin: 0 calc(-1 * var(--pad));
	padding: 24px var(--pad) 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 var(--pad);
	scrollbar-width: none;
	list-style: none;
}
.hall::-webkit-scrollbar {
	display: none;
}
.hall > li {
	scroll-snap-align: start;
	display: grid;
}
.hall .piece {
	grid-template-rows: auto 1fr;
}
.hall .piece::before {
	top: -10%;
	height: 50%;
	opacity: 0.7;
}
.hall .piece {
	--gw: 8px;
}
.hall .placard {
	padding: 14px 16px;
	gap: 6px;
}
.hall .placard h3 {
	font-size: var(--d-1);
}
.hall .placard .price {
	font-size: var(--d-2);
}
@media (min-width: 900px) {
	.hall {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin: 0;
		padding: 24px 0 0;
		overflow: visible;
		row-gap: 40px;
	}
}

/* The wall: every sale, or what's listed now. */
.views {
	display: inline-flex;
	padding: 4px;
	gap: 4px;
	border-radius: var(--r-pill);
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	justify-self: start;
}
/* Sold and listed are two pages: the one you're on is filled, the other a link. */
.views > * {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border-radius: var(--r-pill);
	font: 600 var(--t-note) var(--sans);
	color: var(--soft);
	text-decoration: none;
}
.views small {
	margin-left: 6px;
	font: 400 var(--t-xs) var(--mono);
	color: var(--dim);
}
.views [aria-current] {
	color: var(--bone);
	background: rgba(var(--cool-rgb), 0.16);
}
.views [aria-current] small {
	color: var(--cool);
}
@media (hover: hover) {
	.views a:hover {
		color: var(--bone);
		background: rgba(var(--bone-rgb), 0.06);
	}
}
.wall {
	margin: 0;
	padding: 18px 0 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 44px 26px;
}
.wall > li {
	content-visibility: auto;
	contain-intrinsic-size: auto 440px;
	display: grid;
}
.wall .piece {
	--gw: 6px;
	--mw: 5%;
	gap: 12px;
}
.cap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 12px;
	padding: 0 2px;
}
.cap b {
	font: italic 600 var(--d-1) / 1.2 var(--serif);
	color: var(--bone);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cap .p {
	font: 700 var(--t-lead) / 1.35 var(--sans);
	color: var(--bone);
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.cap small {
	grid-column: 1 / -1;
	font: 400 var(--t-xs) var(--mono);
	color: var(--dim);
}
.cap .to {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-size: var(--t-ui);
	color: var(--soft);
}
.cap .to .user-chip {
	min-width: 0;
}
.empty {
	margin: 0;
	color: var(--soft);
}
.sentinel {
	height: 1px;
}
.loading-note {
	margin: 0;
	color: var(--soft);
}

/* While the sales load: each part in its own shape (site.css .skel), the
   ticker still, so the page does not move when they land. */
.ticker[aria-busy="true"] .tk-track {
	animation: none;
}
.stats .skel {
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
}
.tk-item .skel-art {
	border-radius: 11px;
}
.frame .skel-art {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}
.acts .skel {
	width: 132px;
	height: 48px;
	border-radius: var(--r-pill);
}
.acts .skel + .skel {
	width: 108px;
}
.cap .to .skel {
	line-height: 24px;
}
.chart-skel {
	position: absolute;
	inset: 16px 12px 8px;
	border-radius: var(--r-md);
}
.shelf .skel-art {
	border-radius: var(--r-sm);
}
.room-btn {
	justify-self: start;
	width: 148px;
	height: 40px;
	border-radius: var(--r-pill);
}
.house .skel-art {
	border-radius: var(--r-md);
}

/* The ticker: the latest sales sliding past under the site's bar as cards,
   each its art with a hairline edge (sales.ts drawTicker). Cards carry their
   own right margin, not a gap, so the second copy starts exactly half way and
   the loop has no seam. */
.ticker {
	gap: 10px;
	margin: -16px calc(-1 * var(--pad)) 0;
	padding: 12px 0 14px;
	box-shadow: 0 1px 0 var(--line);
	background: linear-gradient(180deg, rgba(var(--live-rgb), 0.05), transparent 70%);
}
.tk-live {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 var(--pad);
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--live);
}
.tk-live small {
	font: inherit;
	letter-spacing: 0.08em;
	text-transform: none;
	color: var(--dim);
}
.tk-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--live);
	box-shadow:
		0 0 0 3px rgba(var(--live-rgb), 0.18),
		0 0 8px rgba(var(--live-rgb), 0.8);
	animation: blink 1.6s ease-in-out infinite;
}
.tk-view {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 3%, #000 95%, transparent);
}
.tk-track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 6px 0 8px var(--pad);
	list-style: none;
	animation: tk var(--tk-dur, 60s) linear infinite;
}
.ticker:hover .tk-track,
.ticker:focus-within .tk-track {
	animation-play-state: paused;
}
@keyframes tk {
	to {
		transform: translateX(-50%);
	}
}
.tk-track li {
	margin-right: 14px;
}
.tk-item {
	display: grid;
	gap: 8px;
	width: 168px;
	padding: 8px 8px 10px;
	border-radius: var(--r-lg);
	font: inherit;
	text-align: left;
	color: var(--bone);
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	border: 0;
	box-shadow:
		var(--e-1),
		inset 0 0 0 1px var(--line);
	cursor: pointer;
	transition:
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s;
}
.tk-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
	border-radius: 11px;
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--line-hi);
}
.tk-item > span {
	display: grid;
	gap: 3px;
	min-width: 0;
	padding: 0 4px;
}
.tk-item b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 600 var(--t-note) / 1.25 var(--sans);
}
.tk-item .tk-p {
	font: 700 var(--t-lead) / 1.3 var(--sans);
	color: var(--bone);
	font-variant-numeric: tabular-nums;
}
.tk-item small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 400 var(--t-xs) / 1.5 var(--mono);
	color: var(--dim);
}
.tk-item.fresh {
	animation: tk-fresh 2s ease-out 4;
}
/* A sale that just landed glows in the live green a few times. */
@keyframes tk-fresh {
	0% {
		box-shadow:
			inset 0 0 0 1.5px var(--live),
			0 0 30px rgba(var(--live-rgb), 0.45);
	}
	100% {
		box-shadow:
			var(--e-1),
			inset 0 0 0 1px var(--line);
	}
}
@media (hover: hover) {
	.tk-item:hover {
		transform: translateY(-3px);
		background: linear-gradient(180deg, var(--card-up), var(--card-hi));
		box-shadow:
			var(--e-2),
			inset 0 0 0 1px var(--line-hi);
	}
}
@media (min-width: 760px) {
	.ticker {
		margin: -16px 0 0;
	}
	.tk-live {
		margin: 0;
	}
	.tk-track {
		padding-left: 0;
	}
	.tk-item {
		width: 196px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tk-view {
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.tk-track {
		animation: none;
	}
	.tk-track [aria-hidden]:not(.tk-sk) {
		display: none;
	}
}
.status .new-sales {
	padding: 4px 14px;
	border-radius: var(--r-pill);
	font-weight: 600;
	color: var(--void);
	background: var(--live);
	text-decoration: none;
}

/* Flips and the median, plain numbers on the labels and tiles. */
.flip,
.vs {
	margin: 0;
	font-size: var(--t-ui);
	color: var(--soft);
}
.flip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}
/* A resale's flip: a small tinted pill, live green up, warn coral down. */
.flip-b {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	padding: 2px 8px 2px 6px;
	border-radius: var(--r-pill);
	font: 700 var(--t-xs) / 1.4 var(--sans);
	font-variant-numeric: tabular-nums;
}
.flip-b svg {
	width: 9px;
	height: 9px;
	fill: currentColor;
}
.flip-b.up {
	color: var(--live);
	background: rgba(var(--live-rgb), 0.12);
}
.flip-b.down {
	color: var(--warn);
	background: rgba(var(--warn-rgb), 0.12);
}
.flip-b.down svg {
	transform: rotate(180deg);
}
.cap .to .flip-b {
	margin-left: auto;
}
.vs b {
	color: var(--bone);
	font-weight: 600;
}
.cap-vs {
	grid-column: 1 / -1;
	font: 500 var(--t-sm) var(--sans);
}
.cap-vs {
	color: var(--soft);
}

/* The market: the scatter and its legend. */
.chart-box {
	position: relative;
	height: clamp(260px, 42vw, 420px);
	padding: 16px 12px 8px 0;
	border-radius: var(--r-xl);
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(var(--cool-rgb), 0.1), transparent 60%), var(--card);
	box-shadow: var(--e-1);
}
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--t-ui);
	color: var(--soft);
}
.legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.legend i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	box-shadow: 0 0 8px currentColor;
}
.legend small {
	font: 400 var(--t-xs) var(--mono);
	color: var(--dim);
}

/* The collectors: the head beside the rooms on wide screens, held in view
   while they scroll past. A room is a card each, their name, what they
   spent, a shelf; the biggest buyer's lifts above the rest. */
@media (min-width: 1000px) {
	.collectors {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		column-gap: 56px;
		align-items: start;
	}
	.collectors .sec-head {
		position: sticky;
		top: calc(var(--bar-h, 64px) + 84px);
	}
	.collectors .rooms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.rooms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.room {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 18px;
	border-radius: var(--r-xl);
	background: var(--card);
	box-shadow: var(--e-1);
}
.room:first-child:not([aria-hidden]) {
	background: linear-gradient(180deg, var(--card-up), var(--card-hi));
	box-shadow: var(--e-2);
}
.room-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 12px;
}
.room-n {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font: 700 var(--t-note) var(--sans);
	font-variant-numeric: tabular-nums;
	color: var(--cool);
	background: rgba(var(--cool-rgb), 0.12);
}
.room .user-chip {
	font-size: var(--t-body);
	color: var(--bone);
}
.room-sum {
	grid-column: 2;
	margin: -6px 0 0;
	font-size: var(--t-ui);
	color: var(--soft);
}
.room-sum b {
	color: var(--bone);
	font-weight: 600;
}
.shelf {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: start;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.shelf button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--r-sm);
	background: none;
	box-shadow: 0 0 0 1px var(--line-hi);
	cursor: zoom-in;
	overflow: hidden;
}
.shelf img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--card-hi);
}
.shelf .more {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: var(--r-sm);
	font: 400 var(--t-sm) var(--mono);
	color: var(--dim);
	box-shadow: inset 0 0 0 1px var(--line);
}
.room .btn {
	justify-self: start;
	min-height: 40px;
	font-size: var(--t-ui);
}
.status .by {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 6px 2px 12px;
	border-radius: var(--r-pill);
	color: var(--bone);
	background: rgba(var(--cool-rgb), 0.16);
	text-decoration: none;
}
.status .by::after {
	content: "\00d7";
	font-size: var(--t-base);
	color: var(--soft);
}

/* The wall's top row, and the slideshow button. */
.wall-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.play {
	gap: 8px;
}
.play svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* The slideshow: the whole screen, one piece at a time, a cool bar running
   out to the next, and play or pause the one gold control. The controls fade
   when the pointer rests. */
.mg-dlg.show {
	padding: 0;
}
.mg-dlg.show .mg-panel {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	background: radial-gradient(60% 50% at 50% 0%, var(--light), transparent 70%), var(--void);
	box-shadow: none;
	transform: none;
}
.mg-dlg.show .mg-panel::before {
	display: none;
}
.mg-dlg.show[open] .mg-panel {
	animation: sh-in 0.5s ease both;
}
.mg-dlg.show .mg-close {
	top: 14px;
	right: 14px;
	transition: opacity 0.4s;
}
@keyframes sh-in {
	from {
		opacity: 0;
	}
}
.sh-bar {
	height: 3px;
	background: rgba(var(--cool-rgb), 0.14);
}
.sh-bar i {
	display: block;
	height: 100%;
	transform-origin: left;
	background: linear-gradient(90deg, rgba(var(--cool-rgb), 0.5), var(--cool));
	box-shadow: 0 0 10px rgba(var(--cool-rgb), 0.6);
	animation: sh-prog 7s linear forwards;
}
@keyframes sh-prog {
	from {
		transform: scaleX(0);
	}
}
.sh-stage {
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 24px 16px 8px;
	overflow: hidden;
}
.sh-slide {
	display: grid;
	justify-items: center;
	justify-content: center;
	align-items: center;
	gap: 20px;
	max-width: 100%;
	animation: sh-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sh-slide .piece {
	--gw: 12px;
	width: min(54vh, 88vw);
	cursor: default;
}
.sh-slide .placard {
	width: min(100%, 460px);
}
@media (min-width: 900px) {
	.sh-slide {
		grid-template-columns: auto minmax(300px, 400px);
		gap: 56px;
	}
	.sh-slide .placard {
		width: 100%;
	}
	.sh-slide .piece {
		width: min(76vh, 56vw);
	}
}
@keyframes sh-fade {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
}
.sh-ctl {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
	transition: opacity 0.4s;
}
.sh-ctl button {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--bone);
	background: rgba(var(--bone-rgb), 0.06);
	border: 0;
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.24);
	cursor: pointer;
}
.sh-ctl .sh-main {
	width: 58px;
	height: 58px;
	color: var(--void);
	background: var(--gold);
	box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.35);
}
.sh-ctl svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sh-main svg {
	fill: currentColor;
	stroke: none;
}
.sh-main .go,
.show.paused .sh-main .pause {
	display: none;
}
.show.paused .sh-main .go {
	display: block;
}
.sh-n {
	min-width: 88px;
	text-align: center;
	font: 400 var(--t-xs) var(--mono);
	color: var(--dim);
}
.show.idle,
.show.idle * {
	cursor: none;
}
.show.idle .sh-ctl,
.show.idle .mg-close {
	opacity: 0;
}
@media (hover: hover) {
	.sh-ctl button:not(.sh-main):hover {
		background: rgba(var(--bone-rgb), 0.1);
		box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.45);
	}
	.sh-ctl .sh-main:hover {
		background: var(--gold-hi);
	}
}
@media (prefers-reduced-motion: reduce) {
	.sh-slide,
	.sh-bar i {
		animation: none;
	}
}

/* The best open offers, under the numbers, in the live green: they stand open now. */
.offers-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 14px 0 0;
	font-size: var(--t-note);
	color: var(--soft);
}
.offers-line b {
	font-weight: 600;
	color: var(--live);
}
.offers-line .sep {
	color: var(--dim);
}

/* The houses: a card per patron Muse (li[data-house], houses.ts), its
   record's art beside its numbers, washed and ringed in the house's hue. */
.houses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.house {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border-radius: var(--r-lg);
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(var(--house-rgb), 0.14), transparent 70%), var(--card);
	box-shadow:
		var(--e-1),
		inset 0 0 0 1px rgba(var(--house-rgb), 0.22);
}
.house > button {
	padding: 0;
	border: 0;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--line-hi);
	cursor: zoom-in;
}
.house img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.house-b {
	display: grid;
	gap: 2px;
	min-width: 0;
}
.house h3 {
	margin: 0;
	font: italic 600 var(--d-2) / 1.15 var(--serif);
	color: var(--bone);
}
.house h3 a {
	text-decoration: none;
}
@media (hover: hover) {
	.house h3 a:hover {
		color: var(--house);
	}
}
.house .dom {
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--house);
}
.house p {
	margin: 4px 0 0;
	font-size: var(--t-ui);
	color: var(--soft);
}
.house p b {
	color: var(--bone);
	font-weight: 600;
}
.house .see {
	justify-self: start;
	margin-top: 6px;
	padding: 0;
	font: 500 var(--t-ui) var(--sans);
	color: var(--bone);
	background: none;
	border: 0;
	text-decoration: underline;
	text-decoration-color: rgba(var(--house-rgb), 0.6);
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Its kin, in the spotlight: each with its face, its line, and where it stands.
   The box sales.ts fills lays its rule, label and list out in the placard's
   own gap, like the sales above it. */
.kin-box {
	display: contents;
}
.kin {
	display: grid;
	gap: 8px;
	/* Out by each row's padding, so the faces line up with the label. */
	margin: 0 -6px;
	padding: 0;
	list-style: none;
}
.kin li > * {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	width: 100%;
	padding: 6px;
	border: 0;
	border-radius: var(--r-sm);
	font: inherit;
	text-align: left;
	text-decoration: none;
	color: inherit;
	background: none;
	cursor: pointer;
}
@media (hover: hover) {
	.kin li > *:hover {
		background: rgba(var(--bone-rgb), 0.05);
	}
}
.kin img {
	width: 44px;
	height: 44px;
	border-radius: var(--r-sm);
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--line-hi);
}
.kin b {
	display: block;
	font: 600 var(--t-note) / 1.2 var(--sans);
	color: var(--bone);
}
.kin span span {
	display: block;
	font-size: var(--t-sm);
	color: var(--soft);
}
.kin small {
	font: 400 var(--t-xs) var(--mono);
	color: var(--cool);
}

/* The sale peek: a small sale's card on hover or focus (sales.ts). */
.sale-peek {
	position: fixed;
	z-index: 60;
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	width: min(400px, calc(100vw - 16px));
	padding: 12px;
	border-radius: var(--r-lg);
	background: var(--card-up);
	box-shadow:
		var(--e-2),
		inset 0 0 0 1px var(--line-hi);
	pointer-events: none;
	animation: sale-peek-in 0.18s ease-out;
}
.sale-peek[hidden] {
	display: none;
}
.sale-peek > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-sm);
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--line-hi);
}
.sale-peek .placard {
	gap: 6px;
	padding: 2px 4px 2px 0;
	background: none;
	box-shadow: none;
}
.sale-peek .placard h3 {
	font-size: var(--d-1);
}
.sale-peek .placard .meta,
.sale-peek .placard .when,
.sale-peek .placard .hands,
.sale-peek .flip {
	font-size: var(--t-sm);
}
.sale-peek .placard .price {
	font-size: var(--d-2);
}
.sale-peek .placard .price small {
	margin-bottom: 4px;
}
@keyframes sale-peek-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

/* The spotlight: one piece and its placard, stepping through the wall. */
.sp .mg-panel {
	width: min(1180px, 100%);
	padding: 0;
	overflow: hidden;
	background:
		radial-gradient(70% 50% at 35% 0%, var(--light), transparent 70%),
		color-mix(in srgb, var(--card) 50%, var(--void));
}
.sp-in {
	display: grid;
	gap: 22px;
	padding: 46px 20px 24px;
}
.sp .piece {
	--gw: 10px;
	cursor: default;
}
.sp-art {
	display: grid;
	place-items: center;
}
.sp-side {
	display: grid;
	gap: 16px;
	align-content: start;
}
.sp-art .piece {
	width: min(100%, 72vh);
}
.sp-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}
.sp-nav span {
	font: 400 var(--t-xs) var(--mono);
	color: var(--dim);
}
.sp-nav button {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--bone);
	background: var(--card-up);
	border: 0;
	box-shadow: var(--e-1);
	cursor: pointer;
	transition: background-color 0.2s;
}
@media (hover: hover) {
	.sp-nav button:not(:disabled):hover {
		background: rgba(var(--cool-rgb), 0.2);
	}
}
.sp-nav button:disabled {
	opacity: 0.35;
	cursor: default;
}
.sp-nav svg,
.sp-x svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sp .placard ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: var(--t-ui);
	color: var(--soft);
}
.sp .placard ol li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: center;
}
.sp .placard ol b {
	color: var(--bone);
	font-weight: 600;
}
.sp .placard a:not(.btn):not(.user-chip) {
	color: var(--bone);
	text-decoration-color: var(--underline);
	text-underline-offset: 3px;
}
@media (min-width: 900px) {
	.sp-in {
		grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
		align-items: center;
		gap: 40px;
		padding: 48px 44px 40px;
	}
}

/* On a phone the wall hangs two across, as /muses does, each caption stacked:
   the name, then the price under it. */
@media (max-width: 559px) {
	.wall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 12px;
	}
	.wall > li {
		contain-intrinsic-size: auto 300px;
	}
	.wall .piece {
		--gw: 4px;
		gap: 8px;
	}
	.wall .cap {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
		padding: 0;
	}
	/* Bodoni stays at 20px and up, so the name two across is Figtree. */
	.wall .cap b {
		font: 600 var(--t-note) / 1.3 var(--sans);
	}
	.wall .cap .p {
		font-size: var(--t-body);
	}
	.wall .cap .p {
		text-align: left;
	}
	.wall .cap small {
		font-size: var(--t-xs);
	}
	.wall .cap .to {
		font-size: var(--t-sm);
	}
	.wall .cap-vs {
		font-size: var(--t-xs);
	}
}
/* The house rows' "see" link is small text: a finger gets a taller target
   without moving anything. */
@media (pointer: coarse) {
	.house .see {
		padding-block: 8px;
		margin-block: -8px;
	}
}
