/* The site's one system, loaded first by every page (the home page, the
   gallery, sales, the houses, the Altar, the docs, the legal pages, the 404 and
   the muse page src/muse/page.ts writes): the tokens, the page shell (body, links,
   focus, the display h1, the lede, the side padding, reduced motion) and the
   pieces every page shares: dark cards, gold pill buttons, mono labels,
   dropdowns. A page never declares its own :root colors, body or focus ring;
   its own <style> or sheet keeps only what is its own, after this. Faces are declared once, in
   header.css. */

:root {
	color-scheme: dark;
	--void: #050403;
	--void-rgb: 5, 4, 3;
	--card: #14110c;
	--card-hi: #1d1811;
	--gold: #e0b35a;
	/* A color's channels (--void-rgb, --gold-rgb, --gold-hi-rgb, --bone-rgb) are for its tints: rgba(var(--gold-rgb), 0.1). */
	--gold-rgb: 224, 179, 90;
	--gold-hi: #f3cf85;
	--gold-hi-rgb: 243, 207, 133;
	--bone: #efe6d2;
	--bone-rgb: 239, 230, 210;
	--soft: #cdbfa4;
	--ash: #b8ab91;
	--dim: #a79a82;
	/* Hairlines: --line between rows and around panels, --line-hi on inputs and chips.
	   A warm neutral, so an edge reads as an edge and not as gold. */
	--line: rgba(var(--bone-rgb), 0.1);
	--line-hi: rgba(var(--bone-rgb), 0.16);
	/* A link's underline. */
	--underline: rgba(var(--gold-rgb), 0.5);
	/* The receipt's thermal paper and the ink printed on it (/rewards). */
	--paper: #ece4d2;
	--ink: #1c1812;
	--ink-2: #463e32;
	/* Gold is for the god and a page's one main action. Everything else that
	   needs a hue takes one of these: --cool for labels, the current tab and
	   secondary marks (a night violet, the sky the god sits in), --live for
	   what is open or just happened, --warn for what went wrong. */
	--cool: #aab4ec;
	--cool-rgb: 170, 180, 236;
	--live: #5fd39a;
	--live-rgb: 95, 211, 154;
	--warn: #ff9a7a;
	--warn-rgb: 255, 154, 122;
	/* What happened, the way the toasts and the feeds color it: a bell rung
	   (sky), a blessing (violet, lighter for its text) and a burn (ember). */
	--bell: #6fb8ee;
	--bell-rgb: 111, 184, 238;
	--bless: #a98bf0;
	--bless-rgb: 169, 139, 240;
	--bless-hi: #c7b3f5;
	--burn: #ff7a52;
	--burn-rgb: 255, 122, 82;
	/* A house's own hue (HOUSE_COLORS in packages/muse/src/roles.ts, written
	   in below by the build as [data-house="<name>"]), and a muse's two colors
	   from its art (--muse-a-rgb, --muse-b-rgb, set on the muse page, read as
	   var(--muse-a-rgb, var(--house-rgb))). Outside a house --house is gold,
	   so a component can always use it. */
	--house: var(--gold);
	--house-rgb: var(--gold-rgb);
	/* Surfaces, lowest to highest: the page, a card, a card's inner well or
	   hover, and something raised above a card (a popover, a picked tile).
	   --e-1 and --e-2 are their edges and shadows: a faint top light and a
	   soft drop, so a card reads as a thing and not a hole. */
	--card-up: #262019;
	--e-1: inset 0 1px 0 rgba(var(--bone-rgb), 0.05), 0 1px 2px rgba(0, 0, 0, 0.4);
	--e-2: inset 0 1px 0 rgba(var(--bone-rgb), 0.07), 0 12px 32px -8px rgba(0, 0, 0, 0.6);
	/* Type sizes. Text is Figtree at one of these; Bodoni starts at --d-1.
	   --t-xs mono labels and fine print, --t-sm captions, --t-ui pills, tabs
	   and small buttons, --t-note a card's secondary lines, --t-base buttons,
	   --t-body the page's text, --t-lead the line under a title. */
	--t-xs: 12px;
	--t-sm: 13px;
	--t-ui: 14px;
	--t-note: 15px;
	--t-base: 16px;
	--t-body: 17px;
	--t-lead: 18px;
	--d-1: 22px;
	--d-2: 26px;
	--d-3: 32px;
	--d-4: 44px;
	/* Corners: --r-sm chips and small art, --r-md inputs and tile art, --r-lg
	   tiles and inner cards, --r-xl panels and cards. A thing inside another
	   takes the outer radius less the padding between them. */
	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-xl: 28px;
	--r-pill: 999px;
	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--sans: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--pad: 16px;
	/* The spacing scale. Every gap between things is one of these, never a
	   number typed in: s-1 for lines that belong together, s-2 for a label over
	   its title, s-3 for cards or buttons in a row, s-4 between a section's
	   blocks, and --gap between one section and the next. */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 16px;
	--s-4: 28px;
	/* The almond (a vesica, the shape old icons frame gods in), on the home page and the Altar. Width is 1/sqrt(3) of height. */
	--almond: polygon(
		50% 0%,
		54.46% 1.58%,
		58.78% 3.29%,
		62.93% 5.13%,
		66.91% 7.09%,
		70.71% 9.18%,
		74.31% 11.37%,
		77.71% 13.67%,
		80.9% 16.06%,
		83.87% 18.56%,
		86.6% 21.13%,
		89.1% 23.79%,
		91.35% 26.52%,
		93.36% 29.31%,
		95.11% 32.16%,
		96.59% 35.06%,
		97.81% 38%,
		98.77% 40.97%,
		99.45% 43.97%,
		99.86% 46.98%,
		100% 50%,
		99.86% 53.02%,
		99.45% 56.03%,
		98.77% 59.03%,
		97.81% 62%,
		96.59% 64.94%,
		95.11% 67.84%,
		93.36% 70.69%,
		91.35% 73.48%,
		89.1% 76.21%,
		86.6% 78.87%,
		83.87% 81.44%,
		80.9% 83.94%,
		77.71% 86.33%,
		74.31% 88.63%,
		70.71% 90.82%,
		66.91% 92.91%,
		62.93% 94.87%,
		58.78% 96.71%,
		54.46% 98.42%,
		50% 100%,
		45.54% 98.42%,
		41.22% 96.71%,
		37.07% 94.87%,
		33.09% 92.91%,
		29.29% 90.82%,
		25.69% 88.63%,
		22.29% 86.33%,
		19.1% 83.94%,
		16.13% 81.44%,
		13.4% 78.87%,
		10.9% 76.21%,
		8.65% 73.48%,
		6.64% 70.69%,
		4.89% 67.84%,
		3.41% 64.94%,
		2.19% 62%,
		1.23% 59.03%,
		0.55% 56.03%,
		0.14% 53.02%,
		0% 50%,
		0.14% 46.98%,
		0.55% 43.97%,
		1.23% 40.97%,
		2.19% 38%,
		3.41% 35.06%,
		4.89% 32.16%,
		6.64% 29.31%,
		8.65% 26.52%,
		10.9% 23.79%,
		13.4% 21.13%,
		16.13% 18.56%,
		19.1% 16.06%,
		22.29% 13.67%,
		25.69% 11.37%,
		29.29% 9.18%,
		33.09% 7.09%,
		37.07% 5.13%,
		41.22% 3.29%,
		45.54% 1.58%
	);
	--arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%207h10v10%22%2F%3E%3Cpath%20d%3D%22M7%2017%2017%207%22%2F%3E%3C%2Fsvg%3E");
}

[data-house="calliope"] {
	--house: #daa09f;
	--house-rgb: 218, 160, 159;
}
[data-house="clio"] {
	--house: #d3a784;
	--house-rgb: 211, 167, 132;
}
[data-house="erato"] {
	--house: #bbb37f;
	--house-rgb: 187, 179, 127;
}
[data-house="euterpe"] {
	--house: #9abd92;
	--house-rgb: 154, 189, 146;
}
[data-house="melpomene"] {
	--house: #7ec0b3;
	--house-rgb: 126, 192, 179;
}
[data-house="polyhymnia"] {
	--house: #7ebcd0;
	--house-rgb: 126, 188, 208;
}
[data-house="terpsichore"] {
	--house: #97b2de;
	--house-rgb: 151, 178, 222;
}
[data-house="thalia"] {
	--house: #b8a8d8;
	--house-rgb: 184, 168, 216;
}
[data-house="urania"] {
	--house: #d0a0bf;
	--house-rgb: 208, 160, 191;
}

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
}
html {
	-webkit-text-size-adjust: 100%;
}

/* The page: Figtree on the void. .halo adds the soft light from the top
   that the gallery, sales, the houses and the muse page hang under, in the
   house's hue where the page sets one (gold elsewhere), with a faint cool
   light from the side so the dark has some depth. On the muse page the two
   lights are the muse's own colors. */
body {
	min-height: 100svh;
	background: var(--void);
	color: var(--bone);
	font: 400 var(--t-body) / 1.6 var(--sans);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
body.halo {
	background:
		radial-gradient(
			80% 40% at 50% 0%,
			rgba(var(--muse-a-rgb, var(--house-rgb)), var(--halo, 0.12)),
			transparent 70%
		),
		radial-gradient(
			50% 50% at 100% 20%,
			rgba(var(--muse-b-rgb, var(--cool-rgb)), 0.05),
			transparent 70%
		),
		var(--void);
}
body.halo[data-house] {
	--halo: 0.2;
}
a {
	color: inherit;
}
:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}
[hidden] {
	/* biome-ignore lint/complexity/noImportantStyles: hidden must beat any display a component sets */
	display: none !important;
}
@media (min-width: 760px) {
	:root {
		--pad: 28px;
	}
}
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		/* biome-ignore lint/complexity/noImportantStyles: reduced motion wins over every page's motion */
		animation: none !important;
		/* biome-ignore lint/complexity/noImportantStyles: short, not none, so transitionend still fires */
		transition-duration: 0.01s !important;
	}
}

/* A page's title: big italic Bodoni, its last word in gold. */
h1 {
	margin: 10px 0 0;
	font: italic 600 clamp(48px, 12vw, 88px) / 0.98 var(--serif);
	letter-spacing: -0.03em;
}
h1 em {
	color: var(--gold);
}
/* The paragraph under a page's title. */
.lede {
	margin: 14px 0 0;
	max-width: 560px;
	font-size: var(--t-lead);
	color: var(--soft);
	text-wrap: pretty;
}
::selection {
	background: var(--gold);
	color: var(--void);
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* A section's label: small mono capitals in the cool violet, or the house's
   hue inside a house (.label.house). Gold stays for the god and the action. */
.label {
	margin: 0;
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cool);
}
.label.house {
	color: var(--house);
}

/* A section's head: its label, its title and the line under it, each with
   room to breathe. A page sets the title's face; the spacing is this. The
   gap is the whole of it, so the children bring no margins of their own: a
   bare h2 or p would otherwise add the browser's, and the head would stand
   at 29px where it says 8. The reset is :where, which carries no weight at
   all, so a page that means to space its own head (the sales h2) still
   wins. Every container here that sets a gap owns its spacing the same way. */
.sec-head {
	display: grid;
	gap: 8px;
	justify-items: start;
}
:where(.sec-head) > * {
	margin: 0;
}
/* A head led by its figure (.sec-head.lead-fig): the number big in Figtree
   (p.fig > b, its words under it as a .label), the title and line beside it
   from 760px. A page sizes the number with --fig. */
.fig {
	display: grid;
	gap: var(--s-2);
	justify-items: start;
}
.fig b {
	font: 700 var(--fig, clamp(88px, 22vw, 148px)) / 0.8 var(--sans);
	letter-spacing: -0.055em;
	font-variant-numeric: tabular-nums;
	color: var(--bone);
}
.fig .label {
	font-size: var(--t-note);
}
@media (min-width: 760px) {
	.sec-head.lead-fig {
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: 32px;
		align-items: end;
	}
	.lead-fig > .fig {
		grid-row: 1 / span 2;
	}
}

/* A page's sections a tap away in a row held under the bar (nav.jump
   data-toc, lit by toc.ts): the sales page and the studio. A .go link is the
   page's one way on, pushed to the end. */
html:has(.jump) {
	scroll-padding-top: calc(var(--bar-h, 64px) + 68px);
}
.jump {
	position: sticky;
	top: var(--bar-h, 64px);
	z-index: 20;
	/* Its chips scroll inside it, so it never widens the page. */
	min-width: 0;
	margin: 0 calc(-1 * var(--pad));
	padding: 10px var(--pad);
	background: rgba(var(--void-rgb), 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: var(--r-pill);
	font: 600 var(--t-ui) 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(--bone);
	background: rgba(var(--cool-rgb), 0.16);
	box-shadow: inset 0 0 0 1px rgba(var(--cool-rgb), 0.4);
}
.jump a.go {
	margin-left: auto;
	color: var(--void);
	background: var(--gold);
	box-shadow: none;
}
.jump a.go small {
	font: 400 var(--t-xs) var(--mono);
	color: rgba(var(--void-rgb), 0.7);
}
@media (hover: hover) {
	.jump a:not(.go):hover {
		color: var(--bone);
	}
	.jump a.go:hover {
		background: var(--gold-hi);
	}
}
/* A long page's sections down its side, where the screen has room beside
   the page (toc.ts builds the links, lights the one in view and sets
   data-off while the footer would run under it). .toc sits beside a column
   --toc-col wide from 1240px; .toc.wide beside the 1120px home page from
   1480px. On a phone the page simply scrolls. */
.toc {
	--toc-w: 196px;
	display: none;
	position: fixed;
	z-index: 10;
	top: calc(var(--bar-h, 64px) + 40px);
	left: max(var(--pad), calc(50% - var(--toc-col, 680px) / 2 - var(--toc-w) - 40px));
	width: var(--toc-w);
	max-height: calc(100vh - var(--bar-h, 64px) - 80px);
	overflow-y: auto;
	scrollbar-width: none;
	transition: opacity 0.3s;
}
.toc.wide {
	--toc-w: 156px;
	--toc-col: 1120px;
}
@media (min-width: 1240px) {
	.toc:not(.wide) {
		display: block;
	}
}
@media (min-width: 1480px) {
	.toc.wide {
		display: block;
	}
}
.toc[data-off] {
	opacity: 0;
	pointer-events: none;
}
.toc .label {
	margin: 0 0 10px 12px;
	color: var(--dim);
}
.toc ol {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.toc a {
	display: block;
	padding: 7px 12px;
	border-radius: var(--r-sm);
	font: 500 var(--t-ui) / 1.35 var(--sans);
	color: var(--dim);
	text-decoration: none;
	transition:
		color 0.2s,
		background-color 0.2s;
}
@media (hover: hover) {
	.toc a:hover {
		color: var(--bone);
	}
}
.toc a[aria-current] {
	color: var(--bone);
	background: rgba(var(--cool-rgb), 0.12);
}

/* An icon (public/lib/icons.ts): Lucide's strokes in the text's color, sized
   to the line. A page's own .i rules set a size or color after this. */
.i {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.18em;
}

/* Buttons: soft pills 48px tall, one gold and one quiet; a link out carries
   the arrow. .small for a secondary action inside a card. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	font: 600 var(--t-base) / 1.2 var(--sans);
	color: var(--void);
	background: var(--gold);
	border: 1px solid var(--gold);
	border-radius: var(--r-pill);
	cursor: pointer;
	text-decoration: none;
	transition:
		background-color 0.3s,
		color 0.3s,
		border-color 0.3s,
		opacity 0.3s,
		transform 0.15s;
}
.btn:active {
	transform: scale(0.98);
}
.btn.quiet {
	background: transparent;
	color: var(--bone);
	border-color: rgba(var(--bone-rgb), 0.24);
}
.btn.small {
	min-height: 40px;
	padding: 0 18px;
	font-size: var(--t-ui);
}
.btn:disabled {
	opacity: 0.6;
	cursor: default;
	background: transparent;
	color: var(--soft);
	border-color: var(--line);
}
/* A button to another site carries an arrow out of the page (an absolute
   link off musegod.org, or rel="external" on a path that redirects off it,
   like /patron_muse_os/), and one to a place on the same page points down. A
   button to one of the site's own pages has none. */
a.btn:is([href^="http:"], [href^="https:"], [href^="//"]):not([href^="https://musegod.org"])::after,
a.btn[rel~="external"]::after,
a.btn[href^="#"]::after {
	content: "";
	width: 11px;
	height: 11px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--arrow) center / contain no-repeat;
	mask: var(--arrow) center / contain no-repeat;
	transition: transform 0.3s;
}
.btn.quiet::after {
	color: var(--cool);
}
a.btn[href^="#"]::after {
	transform: rotate(135deg);
}
@media (hover: hover) {
	.btn:hover:not(:disabled) {
		background: var(--gold-hi);
		border-color: var(--gold-hi);
	}
	.btn.quiet:hover:not(:disabled) {
		background: rgba(var(--bone-rgb), 0.06);
		border-color: rgba(var(--bone-rgb), 0.45);
	}
	a.btn:hover::after {
		transform: translate(2px, -2px);
	}
	a.btn[href^="#"]:hover::after {
		transform: translateY(2px) rotate(135deg);
	}
}

/* Muse tiles (museTile in src/muse/tile.ts and public/muses/tile.ts): art, the
   name with its number at the right, then the tier and rank, in a grid that
   fits the width. A tile with a house (li[data-house]) has a dot and its
   number in the house's hue, and warms to it from below on hover. A tile from
   Legendary up (li.t-<tier>, whose --tg and --glow live.css sets) has a
   hairline in its tier's gradient and a soft glow in its color. */
.tiles {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}
.tiles li {
	content-visibility: auto;
	contain-intrinsic-size: auto 230px;
}
.tiles a {
	--tile: var(--card);
	--warm: transparent;
	display: grid;
	gap: 8px;
	padding: 8px;
	border-radius: var(--r-lg);
	background: radial-gradient(120% 50% at 50% 100%, var(--warm), transparent 70%), var(--tile);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s;
}
@media (hover: hover) {
	.tiles a:hover {
		--tile: var(--card-hi);
	}
	.tiles li[data-house] a:hover {
		--warm: rgba(var(--house-rgb), 0.2);
	}
}
/* The rarest tiles paint their glow past their box, so they skip the
   containment that would clip it. */
.tiles :is(.t-legendary, .t-mythic, .t-divine, .t-godhead, .t-ascended) {
	content-visibility: visible;
}
.tiles :is(.t-legendary, .t-mythic, .t-divine, .t-godhead, .t-ascended) > a {
	padding: 7px;
	border: 1px solid transparent;
	background:
		radial-gradient(120% 50% at 50% 100%, var(--warm), transparent 70%) padding-box,
		linear-gradient(var(--tile), var(--tile)) padding-box,
		linear-gradient(rgba(var(--void-rgb), 0.45), rgba(var(--void-rgb), 0.45)) border-box,
		var(--tg) border-box;
	box-shadow: 0 16px 36px -20px var(--glow, transparent);
}
.tiles :is(.t-divine, .t-godhead, .t-ascended) > a {
	background:
		radial-gradient(120% 50% at 50% 100%, var(--warm), transparent 70%) padding-box,
		linear-gradient(var(--tile), var(--tile)) padding-box,
		var(--tg) border-box;
	box-shadow: 0 18px 44px -18px var(--glow, transparent);
}
.tiles img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-md);
	background: var(--card-hi);
}
.tiles a > span {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 8px;
	row-gap: 2px;
	align-items: baseline;
	padding: 0 4px 4px;
	min-width: 0;
}
.tiles a > span > * {
	grid-column: 1 / -1;
}
.tiles a > span > b {
	grid-column: 1;
}
.tiles a > span > small.n {
	grid-column: 2;
	grid-row: 1;
	color: var(--house);
	font-variant-numeric: tabular-nums;
}
.tiles li[data-house] a > span > small.n::before,
.showcase li[data-house] a > span > small.n::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--house);
	vertical-align: 0.12em;
}
.tiles b {
	font: 600 var(--t-body) / 1.2 var(--sans);
	color: var(--bone);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tiles em {
	font: 500 var(--t-ui) / 1.2 var(--sans);
	color: var(--house);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tiles small {
	font: 400 var(--t-xs) var(--mono);
	color: var(--dim);
}
@media (min-width: 760px) {
	.tiles {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 14px;
	}
}

/* A wallet's muses (public/muses/showcase.ts): rarest first in a grid, the
   rarest one big once the list is a wallet's (.show), and its tiers counted
   (.showcase-tiers). The profile page and /flock's rare muses.
   Each art's hairline is in its house's hue (li[data-house], gold without
   one), and from Legendary up it glows in its tier's color (--glow,
   live.css). */
.showcase {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
@media (min-width: 760px) {
	.showcase {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}
}
@media (min-width: 1024px) {
	.showcase {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.showcase:empty {
	display: none;
}
.showcase .skel-art {
	border-radius: var(--r-lg);
}
.showcase-tiers {
	list-style: none;
	margin: 0 auto 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.showcase-tiers li {
	padding: 6px 12px;
	border-radius: var(--r-pill);
	font-size: var(--t-ui);
	color: var(--soft);
	background: rgba(var(--gold-rgb), 0.06);
	box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.2);
}
.showcase-tiers li b {
	color: var(--bone);
}
.showcase-tiers li.top {
	color: var(--gold-hi);
	box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.55);
}
.showcase-tiers li.top b {
	color: var(--gold-hi);
}
.showcase small {
	display: block;
	font-size: var(--t-xs);
}
.showcase.show li.feat {
	grid-column: 1 / -1;
}
.showcase.show li.feat img {
	box-shadow:
		inset 0 0 0 1px rgba(var(--house-rgb), 0.45),
		0 24px 70px -24px var(--glow, rgba(var(--gold-rgb), 0.4));
}
.showcase.show li.feat b {
	font: italic 600 clamp(28px, 7vw, 40px) / 1.1 var(--serif);
	color: var(--gold-hi);
	white-space: normal;
}
.showcase.show li.feat small {
	font-size: var(--t-note);
}
@media (min-width: 760px) {
	.showcase.show li.feat {
		grid-column: span 2;
		grid-row: span 2;
	}
}
.showcase a {
	display: block;
	color: inherit;
	text-decoration: none;
	border-radius: var(--r-md);
	outline-offset: 3px;
}
.showcase img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-lg);
	background: var(--card);
	box-shadow: inset 0 0 0 1px rgba(var(--house-rgb), 0.22);
}
.showcase li:where(.t-legendary, .t-mythic, .t-divine, .t-godhead, .t-ascended):not(.feat) img {
	box-shadow:
		inset 0 0 0 1px rgba(var(--house-rgb), 0.3),
		0 16px 40px -20px var(--glow, transparent);
}
.showcase a > span {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 8px;
	align-items: baseline;
	margin-top: 10px;
	font-size: var(--t-ui);
	line-height: 1.35;
	color: var(--soft);
}
.showcase a > span > * {
	grid-column: 1 / -1;
}
.showcase a > span > b {
	grid-column: 1;
}
.showcase a > span > small.n {
	grid-column: 2;
	grid-row: 1;
	font: 400 var(--t-sm) var(--mono);
	color: var(--house);
	font-variant-numeric: tabular-nums;
}
.showcase b {
	display: block;
	color: var(--bone);
	font-size: var(--t-body);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (hover: hover) {
	.showcase a:hover img {
		box-shadow:
			inset 0 0 0 1px rgba(var(--house-rgb), 0.5),
			0 0 22px rgba(var(--house-rgb), 0.18);
	}
}

/* A tooltip (public/lib/tip.ts, on any element with data-tip): a small dark
   card over its element, or under it (data-side), its arrow at the
   element's middle (--arrow). */
.tip {
	position: fixed;
	z-index: 95;
	max-width: min(320px, calc(100vw - 16px));
	padding: 10px 14px;
	border-radius: var(--r-md);
	background: var(--card-up);
	box-shadow:
		inset 0 0 0 1px rgba(var(--bone-rgb), 0.1),
		var(--e-2);
	font: 500 var(--t-ui) / 1.45 var(--sans);
	color: var(--bone);
	text-align: center;
	text-wrap: balance;
	pointer-events: none;
	animation: tip-in 0.14s ease-out;
}
.tip::after {
	content: "";
	position: absolute;
	left: calc(var(--arrow, 50%) - 5px);
	width: 10px;
	height: 10px;
	background: var(--card-up);
	box-shadow: inset 1px 1px 0 rgba(var(--bone-rgb), 0.1);
	transform: rotate(225deg);
	bottom: -5px;
}
.tip[data-side="bottom"]::after {
	top: -5px;
	bottom: auto;
	transform: rotate(45deg);
}
@keyframes tip-in {
	from {
		opacity: 0;
		transform: translateY(3px);
	}
}

/* A card: a dark panel with soft corners, lit faintly along its top edge. */
.card {
	padding: 24px 20px;
	border-radius: var(--r-xl);
	background: var(--card);
	box-shadow: var(--e-1);
}

/* Tabs (lib/land.ts): a row of pills over the panels, the open one filled. A row
   too wide for a phone scrolls sideways. .small for a switch inside a panel. */
.tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	border-radius: var(--r-pill);
	background: var(--void);
	box-shadow: inset 0 0 0 1px var(--line);
}
.tabs::-webkit-scrollbar {
	display: none;
}
.tabs [role="tab"] {
	flex: 1 0 auto;
	min-height: 40px;
	padding: 0 16px;
	font: 600 var(--t-note) var(--sans);
	color: var(--soft);
	background: none;
	border: 0;
	border-radius: var(--r-pill);
	cursor: pointer;
	transition:
		color 0.2s,
		background-color 0.2s;
}
.tabs.small [role="tab"] {
	min-height: 32px;
	padding: 0 14px;
	font-size: var(--t-ui);
}
.tabs [role="tab"]:focus-visible {
	outline-offset: -2px;
}
.tabs [aria-selected="true"] {
	color: var(--bone);
	background: rgba(var(--cool-rgb), 0.16);
}
@media (hover: hover) {
	.tabs [role="tab"]:hover {
		color: var(--bone);
	}
	.tabs [aria-selected="true"]:hover {
		color: var(--bone);
	}
}
/* A banner at the top of a page: one fact for the wallet that holds
   something, with the step that acts on it. A round icon says what it is
   about, the text holds a readable measure, and the step and live.css's
   .mg-close sit at its right on a wide screen; on a phone the step drops
   under the text. A soft cool fill, not gold: what it reports is usually the
   holder's own doing, so it reads as a note on their muse rather than an
   alarm, and gold stays the page's own action. Written by src/banner.ts
   (banners() stacks a page's set) and shown only to the person it is for by
   lib/banner.ts. */
.banners {
	display: grid;
	gap: 8px;
}
.banners:not(:has(> .banner:not([hidden]))) {
	display: none;
}
.banner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	grid-template-areas: "icon text act close";
	align-items: center;
	gap: 4px 16px;
	padding: 14px 8px 14px 16px;
	border-radius: var(--r-lg);
	background: rgba(var(--cool-rgb), 0.1);
	color: var(--bone);
}
.banner-icon {
	grid-area: icon;
	align-self: start;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(var(--cool-rgb), 0.16);
	color: var(--cool);
}
.banner-icon .i {
	width: 18px;
	height: 18px;
}
.banner-text {
	grid-area: text;
	display: grid;
	gap: 4px;
	min-width: 0;
}
:where(.banner-text) > * {
	margin: 0;
}
.banner-title {
	font: 600 var(--t-note) / 1.35 var(--sans);
	color: var(--bone);
	/* A one-line title sits level with the middle of the 36px icon. */
	padding-top: 7px;
}
.banner-text p:not(.banner-title) {
	max-width: 72ch;
	font-size: var(--t-ui);
	line-height: 1.55;
	color: var(--soft);
	text-wrap: pretty;
}
.banner code {
	font: 400 var(--t-sm) var(--mono);
	overflow-wrap: anywhere;
}
/* A wallet named in a line keeps the line's height. */
.banner .user-chip {
	gap: 6px;
}
.banner .user-chip .av {
	width: 1.3em;
	height: 1.3em;
}
.banner [data-act] {
	grid-area: act;
	white-space: nowrap;
}
.banner .mg-close {
	grid-area: close;
	position: static;
}
.banner [data-status]:empty {
	display: none;
}
/* A phone: the icon, the title and the X on one row, and the lines, the step
   and its status line under them at the banner's full width. */
@media (max-width: 639px) {
	.banner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: none;
		gap: 6px 12px;
		padding: 8px 4px 16px 12px;
	}
	.banner-text {
		display: contents;
	}
	.banner-icon,
	.banner-title,
	.banner .mg-close {
		grid-row: 1;
		align-self: center;
	}
	.banner-icon {
		grid-column: 1;
	}
	.banner-title {
		grid-column: 2;
		padding-top: 0;
	}
	.banner .mg-close {
		grid-column: 3;
	}
	.banner-text > :not(.banner-title),
	.banner [data-act] {
		grid-column: 1 / -1;
		margin-right: 8px;
	}
	.banner [data-status] {
		order: 1;
	}
	.banner [data-act] {
		grid-row: auto;
		justify-self: start;
		margin-top: 6px;
	}
}

/* Nothing to show yet: a quiet panel with one line (the flock pages, /admin). */
.empty-card {
	padding: 28px 20px;
	border-radius: var(--r-lg);
	background: var(--card);
	text-align: center;
}

/* Embers: gold sparks rising through a lit panel (the pot on /muses and /pot).
   The panel is position: relative with overflow: hidden and sets how far they
   rise (--rise); each <i> sets its place across (--x) and may set its size
   (--s), its time (--d) and its head start (--w). */
.embers {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}
.embers i {
	position: absolute;
	bottom: -6px;
	left: var(--x);
	width: var(--s, 3px);
	height: var(--s, 3px);
	border-radius: 50%;
	background: var(--gold-hi);
	box-shadow: 0 0 6px 1px rgba(var(--gold-hi-rgb), 0.6);
	opacity: 0;
	animation: ember var(--d, 7s) linear var(--w, 0s) infinite;
}
@keyframes ember {
	0% {
		transform: translateY(0);
		opacity: 0;
	}
	15% {
		opacity: 0.8;
	}
	100% {
		transform: translateY(calc(-1 * var(--rise, 110px)));
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.embers {
		display: none;
	}
}

/* A dropdown: every <select> on the site. The native picker opens on a phone;
   the box is ours, with one chevron 16px in from the right edge (Lucide's,
   written in by the build: src/build.ts withCssIcons). A page sets only its
   width, height or fill. */
select {
	appearance: none;
	-webkit-appearance: none;
	min-height: 48px;
	padding: 0 44px 0 14px;
	border: 1px solid var(--line-hi);
	border-radius: var(--r-md);
	font: 400 var(--t-base) var(--sans);
	color: var(--bone);
	background: var(--card) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23cdbfa4%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E") no-repeat right 16px center / 16px;
	text-overflow: ellipsis;
	cursor: pointer;
}
select option {
	color: var(--bone);
	background: var(--card);
}

/* The quiet line at the foot of a page. */
.foot-note {
	margin: 0;
	font-size: var(--t-ui);
	color: var(--dim);
}
.foot-note a {
	color: var(--soft);
}

/* Skeletons: the shape of what is still loading, in a soft gold shimmer, so
   the real thing lands without moving the page. The region that loads carries
   aria-busy="true" and each skeleton aria-hidden="true". A .skel holding
   placeholder text ("0.00 ETH") keeps that text's size in transparent ink, so
   it is exactly as wide and tall as the number that replaces it; .skel-line is
   a bar of text, .skel-art a muse's square, .skel-round a face. A page writes
   repeated rows once with <!--repeat N-->…<!--/repeat--> (src/build.ts).
   States that already mark their own element as loading (a face or banner in
   user.css, the online count in live.css) share the same fill. */
:root {
	--skel-lo: rgba(var(--gold-rgb), 0.07);
	--skel-hi: rgba(var(--gold-rgb), 0.18);
	--skel-flat: rgba(var(--gold-rgb), 0.11);
}
@keyframes shimmer {
	to {
		background-position-x: -200%;
	}
}
.skel,
.av.loading,
.cc-banner.loading,
.now.loading b {
	background:
		linear-gradient(90deg, var(--skel-lo) 25%, var(--skel-hi) 50%, var(--skel-lo) 75%) 0 50% / 200%
		100% repeat-x;
	animation: shimmer 1.4s linear infinite;
}
/* Placeholder text paints a band the height of its letters, not its whole
   line box, so lines set tight don't run into each other. */
.skel:not(:empty) {
	background-size: 200% 1em;
}
.skel {
	border-radius: var(--r-sm);
	/* biome-ignore lint/complexity/noImportantStyles: placeholder ink must beat any page's color for the number it stands in for */
	color: transparent !important;
	-webkit-text-fill-color: transparent;
	/* biome-ignore lint/complexity/noImportantStyles: and any glow on it */
	text-shadow: none !important;
	box-shadow: none;
	pointer-events: none;
	user-select: none;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.skel > * {
	visibility: hidden;
}
.skel-line {
	display: block;
	width: var(--w, 100%);
	max-width: 100%;
	height: 1em;
	margin: 0.2em 0;
}
.skel-art {
	display: block;
	width: 100%;
	aspect-ratio: 1;
}
.skel-round {
	border-radius: 50%;
}
/* A tile's skeleton (the gallery's, while its index loads) is a bare <a>
   holding .skel-art and its text in .skel ink. */
.tiles .skel-art {
	border-radius: var(--r-md);
}
@media (prefers-reduced-motion: reduce) {
	.skel,
	.av.loading,
	.cc-banner.loading,
	.now.loading b {
		background-image: linear-gradient(var(--skel-flat), var(--skel-flat));
	}
}

/* The segmented control, the one on the site: the receipt's and the activity's
   tabs, the community wall's filters and its grid-or-list view. */
.seg {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: var(--r-pill);
	background: rgba(var(--gold-rgb), 0.08);
	box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.2);
}
.seg button {
	min-height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--r-pill);
	background: none;
	color: var(--soft);
	font: 600 var(--t-ui) var(--sans);
	cursor: pointer;
	transition:
		background-color 0.2s,
		color 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.seg button[aria-pressed="true"] {
	background: var(--cool);
	color: var(--void);
}
@media (hover: hover) {
	.seg button:not([aria-pressed="true"]):hover {
		color: var(--bone);
	}
}

/* A panel: a rounded card a section puts a whole piece of work in (the muse
   finder, the claim box), with its own italic head. */
.panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	align-content: start;
	padding: 24px 20px;
	border-radius: var(--r-xl);
	background: var(--card);
	box-shadow: var(--e-1);
}
.claim-h {
	margin: 0;
	font: italic 600 clamp(28px, 7.4vw, 40px) / 1.05 var(--serif);
	letter-spacing: -0.02em;
}
.claim-h em {
	font-style: normal;
	color: var(--gold);
}
@media (min-width: 760px) {
	.panel {
		padding: 32px;
	}
}

/* A wallet or name.eth box: the rewards page's check-a-wallet. One field,
   one button. */
.check {
	display: grid;
	gap: 10px;
}
.check label {
	font-size: var(--t-base);
	font-weight: 600;
	color: var(--bone);
}
.check-row {
	display: flex;
	gap: 8px;
}
.check input {
	flex: 1;
	width: 0;
	min-width: 0;
	min-height: 56px;
	padding: 0 18px;
	font: 400 var(--t-base) var(--mono);
	color: var(--bone);
	background: var(--void);
	border: 1px solid rgba(var(--bone-rgb), 0.24);
	border-radius: var(--r-md);
	outline: none;
	transition: border-color 0.3s;
}
.check input::placeholder {
	color: var(--dim);
}
.check input:focus-visible {
	border-color: var(--cool);
	outline: 2px solid var(--cool);
	outline-offset: 2px;
}
.check .btn {
	min-height: 56px;
	padding: 0 24px;
}

/* A quiet chip for a side link: view tx, your card. */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	font: 600 var(--t-note) var(--sans);
	color: var(--bone);
	text-decoration: none;
	background: var(--card-hi);
	border: 1px solid var(--line-hi);
	border-radius: var(--r-pill);
	cursor: pointer;
	transition:
		color 0.3s,
		border-color 0.3s,
		background-color 0.3s;
}
.chip .i {
	width: 16px;
	height: 16px;
	color: var(--cool);
}
.chip:hover {
	border-color: rgba(var(--cool-rgb), 0.5);
	background: rgba(var(--cool-rgb), 0.1);
}

/* Each place a muse lives in, in its brand's hue (--hue): its tile on the
   muse page, its panel and chips on /worlds and its node on /places.
   OpenSea takes the site's bone instead of its blue (docs/playbook.md). */
:is(.place, .chip, .tile, .orb).hiveverse {
	--hue: #d9a441;
}
:is(.place, .chip, .tile, .orb).flock {
	--hue: var(--gold-hi);
}
:is(.place, .chip, .tile, .orb).terrakin {
	--hue: #cdb4f6;
}
:is(.place, .chip, .tile, .orb).musebook {
	--hue: #e08a63;
}
:is(.place, .chip, .tile, .orb).opensea {
	--hue: var(--bone);
}
:is(.place, .chip, .tile, .orb).x {
	--hue: #e7e9ea;
}
:is(.place, .chip, .tile, .orb).giphy {
	--hue: #5fd3f5;
}
:is(.place, .chip, .tile, .orb).klipy {
	--hue: #f8db3a;
}
:is(.place, .chip, .tile, .orb).agnt {
	--hue: var(--cool);
}
