/* The sales room (/sales/) and the store (/listed/), one sheet for both:
   the muse page's system (src/muse.ts), as the gallery has it, hung like a
   show: dark frames with a faint gold hairline under a soft spotlight, each with
   its label. Gold stays sparing so the art carries the color. */
:root {
	/* The frame: dark wood catching a little light from the top left. */
	--frame: linear-gradient(135deg, #2b2318 0%, #17120c 35%, #221b12 65%, #0f0c08 100%);
	--hair: rgba(224, 179, 90, 0.22);
	--mat: #0c0a07;
}
body {
	min-height: 100svh;
	background:
		radial-gradient(80% 40% at 50% 0%, rgba(224, 179, 90, 0.1), transparent 70%), var(--void);
	color: var(--bone);
	font: 400 17px / 1.6 var(--sans);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
main {
	max-width: 1320px;
	margin: 0 auto;
	padding: 28px var(--pad) calc(64px + env(safe-area-inset-bottom));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
}
main a {
	color: inherit;
}
main :focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}
h1 {
	margin: 6px 0 0;
	font: italic 600 clamp(48px, 12vw, 88px) / 0.98 var(--serif);
	letter-spacing: -0.03em;
}
h1 em,
h2 em {
	color: var(--gold);
}
h2 {
	margin: 4px 0 0;
	font: italic 600 clamp(32px, 7vw, 48px) / 1.05 var(--serif);
	letter-spacing: -0.02em;
}
.lede {
	margin: 10px 0 0;
	max-width: 600px;
	font-size: 18px;
	color: var(--soft);
	text-wrap: pretty;
}
.lede a {
	color: var(--gold);
	text-underline-offset: 3px;
}
.lede a:hover {
	color: var(--gold-hi);
}
main [hidden] {
	display: none !important;
}

/* The page's sections a tap away, held under the bar; the one in view is lit. */
html {
	scroll-padding-top: calc(var(--bar-h, 64px) + 68px);
}
.jump {
	position: sticky;
	top: var(--bar-h, 64px);
	z-index: 20;
	margin: 0 calc(-1 * var(--pad));
	padding: 10px var(--pad);
	background: rgba(5, 4, 3, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--line);
}
.jump ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.jump ul::-webkit-scrollbar {
	display: none;
}
.jump a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	font: 600 14px var(--sans);
	color: var(--soft);
	text-decoration: none;
	white-space: nowrap;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	transition:
		color 0.2s,
		background 0.2s;
}
.jump a[aria-current] {
	color: var(--gold-hi);
	background: rgba(224, 179, 90, 0.14);
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.35);
}
.jump a.go {
	margin-left: auto;
	color: var(--void);
	background: var(--gold);
	box-shadow: none;
}
.jump a.go small {
	font: 400 12px var(--mono);
	color: rgba(5, 4, 3, 0.7);
}
@media (hover: hover) {
	.jump a:not(.go):hover {
		color: var(--bone);
	}
	.jump a.go:hover {
		background: var(--gold-hi);
	}
}
section {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}
.sec-head {
	display: grid;
	gap: 2px;
}
.sec-head p:not(.label) {
	margin: 6px 0 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: 2px;
	padding: 14px 16px;
	border-radius: 20px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
}
.stats b {
	font: 600 clamp(26px, 6vw, 34px) / 1.1 var(--serif);
	color: var(--gold-hi);
	font-variant-numeric: lining-nums tabular-nums;
}
.stats span {
	font: 400 12px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dim);
}
@media (min-width: 760px) {
	.stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* 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, rgba(255, 226, 170, 0.13), 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(--hair),
		inset 0 1px 0 rgba(255, 240, 200, 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(243, 207, 133, 0.35) 78%,
		#fff1cf 88%,
		rgba(243, 207, 133, 0.35) 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(224, 179, 90, 0.4),
			inset 0 1px 0 rgba(255, 240, 200, 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 {
		animation: none !important;
		background: rgba(243, 207, 133, 0.7);
	}
}

/* The label beside each piece: the site's dark card, a gold hairline, the price large in gold. */
.placard {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 10px;
	padding: 18px 20px;
	border-radius: 20px;
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	color: var(--bone);
	box-shadow:
		inset 0 0 0 1px rgba(224, 179, 90, 0.22),
		0 18px 40px rgba(0, 0, 0, 0.55);
}
.placard .pk {
	margin: 0;
	font: 400 11px var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
}
.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 14px var(--sans);
	color: var(--soft);
}
.placard .price {
	margin: 0;
	font: 600 clamp(30px, 7vw, 44px) / 1 var(--serif);
	color: var(--gold-hi);
	font-variant-numeric: lining-nums;
}
.placard .price small {
	display: block;
	margin-bottom: 6px;
	font: 400 11px var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--dim);
}
.placard .when {
	margin: 0;
	font-size: 14px;
	color: var(--soft);
}
.placard .when b {
	color: var(--gold-hi);
	font-weight: 600;
}
.placard .hands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
	font-size: 14px;
	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: 999px;
	font: 400 11px var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-hi);
	background: rgba(224, 179, 90, 0.12);
	border: 1px solid rgba(224, 179, 90, 0.35);
	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(255, 226, 170, 0.18), 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 gold 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: 12px;
	overflow: hidden;
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--hair);
	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(--gold),
		0 6px 16px rgba(0, 0, 0, 0.5);
}
.feat-thumb[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: var(--gold-hi);
	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: 22px;
}
.hall .placard .price {
	font-size: 28px;
}
@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: 999px;
	background: var(--card);
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.22);
	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: 999px;
	font: 600 15px var(--sans);
	color: var(--soft);
	text-decoration: none;
}
.views small {
	margin-left: 6px;
	font: 400 12px var(--mono);
	color: var(--dim);
}
.views [aria-current] {
	color: var(--void);
	background: var(--gold);
}
.views [aria-current] small {
	color: rgba(5, 4, 3, 0.7);
}
@media (hover: hover) {
	.views a:hover {
		color: var(--bone);
		background: rgba(224, 179, 90, 0.08);
	}
}
.tools {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto;
}
.tools input,
.tools select {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 14px;
	font: 400 16px var(--sans);
	color: var(--bone);
	background: var(--card);
	border: 1px solid rgba(224, 179, 90, 0.22);
}
.tools input::placeholder {
	color: var(--dim);
}
.tools select {
	width: auto;
}
.tools label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.status {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 0;
	color: var(--soft);
}
.status b {
	font: 600 26px var(--serif);
	color: var(--gold-hi);
}
.status button {
	padding: 0;
	font: inherit;
	color: var(--soft);
	background: none;
	border: 0;
	text-decoration: underline;
	text-decoration-color: rgba(224, 179, 90, 0.5);
	text-underline-offset: 3px;
	cursor: pointer;
}
.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: 2px 12px;
	padding: 0 2px;
}
.cap b {
	font: italic 600 20px / 1.2 var(--serif);
	color: var(--bone);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cap .p {
	font: 600 20px / 1.2 var(--serif);
	color: var(--gold-hi);
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: lining-nums;
}
.cap small {
	grid-column: 1 / -1;
	font: 400 12px var(--mono);
	color: var(--dim);
}
.cap .to {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	font-size: 14px;
	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: 999px;
}
.acts .skel + .skel {
	width: 108px;
}
.cap .to .skel {
	line-height: 24px;
}
.chart-skel {
	position: absolute;
	inset: 16px 12px 8px;
	border-radius: 14px;
}
.shelf .skel-art {
	border-radius: 10px;
}
.room-btn {
	justify-self: start;
	width: 148px;
	height: 40px;
	border-radius: 999px;
}
.house .skel-art {
	border-radius: 14px;
}

/* The ticker: the latest sales sliding past under the site's bar as cards,
   each its art with a hairline edge (sales.js 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;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(224, 179, 90, 0.06), transparent 70%);
}
.tk-live {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 var(--pad);
	font: 400 11px var(--mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
}
.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: #5fd39a;
	box-shadow:
		0 0 0 3px rgba(95, 211, 154, 0.18),
		0 0 8px rgba(95, 211, 154, 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: 18px;
	font: inherit;
	text-align: left;
	color: var(--bone);
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	border: 0;
	box-shadow:
		inset 0 0 0 1px rgba(224, 179, 90, 0.2),
		0 10px 24px rgba(0, 0, 0, 0.45);
	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(--hair);
}
.tk-item > span {
	display: grid;
	gap: 1px;
	min-width: 0;
	padding: 0 4px;
}
.tk-item b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 600 15px / 1.25 var(--sans);
}
.tk-item .tk-p {
	font: 600 20px / 1.2 var(--serif);
	color: var(--gold-hi);
	font-variant-numeric: lining-nums;
}
.tk-item small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font: 400 11px / 1.5 var(--mono);
	color: var(--dim);
}
.tk-item.fresh {
	animation: tk-fresh 2s ease-out 4;
}
@keyframes tk-fresh {
	0% {
		box-shadow:
			inset 0 0 0 1.5px var(--gold-hi),
			0 0 30px rgba(243, 207, 133, 0.55);
	}
	100% {
		box-shadow:
			inset 0 0 0 1px rgba(224, 179, 90, 0.2),
			0 10px 24px rgba(0, 0, 0, 0.45);
	}
}
@media (hover: hover) {
	.tk-item:hover {
		transform: translateY(-3px);
		box-shadow:
			inset 0 0 0 1px rgba(243, 207, 133, 0.55),
			0 16px 30px rgba(0, 0, 0, 0.55);
	}
}
@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: 999px;
	font-weight: 600;
	color: var(--void);
	background: var(--gold);
	text-decoration: none;
}

/* Flips and the median, plain numbers on the labels and tiles. */
.flip,
.vs {
	margin: 0;
	font-size: 14px;
	color: var(--soft);
}
.flip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}
/* A resale's flip: a small tinted pill, green up, coral down. */
.flip-b {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	padding: 2px 8px 2px 6px;
	border-radius: 999px;
	font: 700 12px / 1.4 var(--sans);
	font-variant-numeric: tabular-nums;
}
.flip-b svg {
	width: 9px;
	height: 9px;
	fill: currentColor;
}
.flip-b.up {
	color: #8fe0b0;
	background: rgba(143, 224, 176, 0.12);
	box-shadow: inset 0 0 0 1px rgba(143, 224, 176, 0.28);
}
.flip-b.down {
	color: #eba08f;
	background: rgba(235, 160, 143, 0.12);
	box-shadow: inset 0 0 0 1px rgba(235, 160, 143, 0.28);
}
.cap .to .flip-b {
	margin-left: auto;
}
.vs b {
	color: var(--gold-hi);
	font-weight: 600;
}
.cap-vs {
	grid-column: 1 / -1;
	font: 500 13px 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: 24px;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(224, 179, 90, 0.1), transparent 60%), var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
}
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	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 12px var(--mono);
	color: var(--dim);
}

/* The collectors' rooms: a card each, their name, what they spent, a shelf. */
.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: 24px;
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.18);
}
.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 15px var(--sans);
	font-variant-numeric: tabular-nums;
	color: var(--gold-hi);
	background: rgba(224, 179, 90, 0.1);
	box-shadow: inset 0 0 0 1px var(--hair);
}
.room .user-chip {
	font-size: 17px;
	color: var(--bone);
}
.room-sum {
	grid-column: 2;
	margin: -6px 0 0;
	font-size: 14px;
	color: var(--soft);
}
.room-sum b {
	color: var(--gold-hi);
	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: 10px;
	background: none;
	box-shadow: 0 0 0 1px var(--hair);
	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: 10px;
	font: 400 13px var(--mono);
	color: var(--dim);
	box-shadow: inset 0 0 0 1px var(--line);
}
.room .btn {
	justify-self: start;
	min-height: 40px;
	font-size: 14px;
}
.status .by {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 6px 2px 12px;
	border-radius: 999px;
	color: var(--gold-hi);
	background: rgba(224, 179, 90, 0.1);
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.35);
	text-decoration: none;
}
.status .by::after {
	content: "\00d7";
	font-size: 16px;
	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 gold bar running
   out to the next. 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%, rgba(255, 226, 170, 0.1), 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(224, 179, 90, 0.14);
}
.sh-bar i {
	display: block;
	height: 100%;
	transform-origin: left;
	background: linear-gradient(90deg, #b98a33, #fff4d6);
	box-shadow: 0 0 10px rgba(243, 207, 133, 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(--gold-hi);
	background: rgba(224, 179, 90, 0.08);
	border: 0;
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.35);
	cursor: pointer;
}
.sh-ctl .sh-main {
	width: 58px;
	height: 58px;
	color: var(--void);
	background: var(--gold);
	box-shadow: 0 0 24px rgba(224, 179, 90, 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.go {
	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 12px 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:hover {
		box-shadow:
			inset 0 0 0 1px var(--gold-hi),
			0 0 18px rgba(224, 179, 90, 0.3);
	}
}
@media (prefers-reduced-motion: reduce) {
	.sh-slide,
	.sh-bar i {
		animation: none;
	}
}

/* The best open offers, under the numbers. */
.offers-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 14px 0 0;
	font-size: 15px;
	color: var(--soft);
}
.offers-line b {
	font-weight: 600;
	color: var(--gold-hi);
}
.offers-line .sep {
	color: var(--dim);
}

/* The houses: a card per patron Muse, its record's art beside its numbers. */
.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: 22px;
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	box-shadow: inset 0 0 0 1px rgba(224, 179, 90, 0.16);
}
.house > button {
	padding: 0;
	border: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--hair);
	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 24px / 1.15 var(--serif);
	color: var(--bone);
}
.house h3 a {
	text-decoration: none;
}
@media (hover: hover) {
	.house h3 a:hover {
		color: var(--gold-hi);
	}
}
.house .dom {
	font: 400 11px var(--mono);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}
.house p {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--soft);
}
.house p b {
	color: var(--gold-hi);
	font-weight: 600;
}
.house .see {
	justify-self: start;
	margin-top: 6px;
	padding: 0;
	font: 500 14px var(--sans);
	color: var(--bone);
	background: none;
	border: 0;
	text-decoration: underline;
	text-decoration-color: rgba(224, 179, 90, 0.5);
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Its kin, in the spotlight: each with its face, its line, and where it stands. */
.kin {
	display: grid;
	gap: 8px;
	margin: 0;
	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: 12px;
	font: inherit;
	text-align: left;
	text-decoration: none;
	color: inherit;
	background: none;
	cursor: pointer;
}
@media (hover: hover) {
	.kin li > *:hover {
		background: rgba(224, 179, 90, 0.06);
	}
}
.kin img {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--hair);
}
.kin b {
	display: block;
	font: 600 15px / 1.2 var(--sans);
	color: var(--bone);
}
.kin span span {
	display: block;
	font-size: 13px;
	color: var(--soft);
}
.kin small {
	font: 400 12px var(--mono);
	color: var(--gold);
}

/* The sale peek: a small sale's card on hover or focus (sales.js). */
.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: 20px;
	background: linear-gradient(180deg, var(--card-hi), var(--card));
	box-shadow:
		inset 0 0 0 1px rgba(224, 179, 90, 0.28),
		0 22px 48px rgba(0, 0, 0, 0.65);
	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: 12px;
	background: var(--card-hi);
	box-shadow: 0 0 0 1px var(--hair);
}
.sale-peek .placard {
	gap: 6px;
	padding: 2px 4px 2px 0;
	background: none;
	box-shadow: none;
}
.sale-peek .placard h3 {
	font-size: 22px;
}
.sale-peek .placard .meta,
.sale-peek .placard .when,
.sale-peek .placard .hands,
.sale-peek .flip {
	font-size: 13px;
}
.sale-peek .placard .price {
	font-size: 28px;
}
.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%, rgba(255, 226, 170, 0.12), transparent 70%), #0b0907;
}
.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 12px var(--mono);
	color: var(--dim);
}
.sp-nav button {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--void);
	background: var(--gold);
	border: 0;
	cursor: pointer;
}
.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: 14px;
	color: var(--soft);
}
.sp .placard ol li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: baseline;
}
.sp .placard ol b {
	color: var(--gold-hi);
	font-weight: 600;
}
.sp .placard a:not(.btn):not(.user-chip) {
	color: var(--bone);
	text-decoration-color: rgba(224, 179, 90, 0.5);
	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;
	}
}
@media (min-width: 760px) {
	:root {
		--pad: 28px;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
