/* biome-ignore-all lint/style/noDescendingSpecificity: the header and footer rules read top to bottom; the later, more general ones are deliberate */
/* The site's one header (src/header.ts writes it into every page, header.ts
   runs it). A grid, so nothing moves when the online pill or the copied state
   changes a side's width: phones have the name and the end; wider screens add
   the links as a fixed middle column. It sticks to the top of every page; on
   the home page it floats over the hero and turns solid once the hero is past.

   The bar and the footer keep their own side padding (--hb-pad) rather than
   the page's, so they sit in exactly the same place on every page and moving
   between pages moves nothing in them. Every face the site uses is declared
   here, once for every page.

   Bodoni Moda is one static cut at weight 600 and optical size 28: heavy
   enough, with hairlines thick enough, to read light on dark at any size.
   It is cut from the variable masters in assets/fonts with fontTools'
   instancer (wght 600, opsz 28). Nothing sets Bodoni under 20px; smaller
   text is Figtree. The footer's big name is the one exception: its own face,
   "musegod" only, at weight 400 with the optical size left free. */
@font-face {
	font-family: "Bodoni Moda";
	font-style: italic;
	font-weight: 600;
	font-display: swap;
	src: url(/fonts/bodoni-moda-italic-600.woff2) format("woff2");
}
@font-face {
	font-family: "Bodoni Moda";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(/fonts/bodoni-moda-600.woff2) format("woff2");
}
/* Terrakin's face (OFL, fonts/OFL-Fraunces.txt), only for Terrakin's own card on a muse page. */
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(/fonts/fraunces-600.woff2) format("woff2");
}
@font-face {
	font-family: "Fraunces";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/fraunces-italic-400.woff2) format("woff2");
}
@font-face {
	font-family: "Bodoni Moda Mark";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/bodoni-moda-mark.woff2) format("woff2");
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url(/fonts/figtree-var-basic.woff2) format("woff2");
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/ibm-plex-mono-400-latin.woff2) format("woff2");
}
.bar,
.site-foot {
	--hb-pad: 16px;
}
.bar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px;
	min-height: 64px;
	padding: max(10px, env(safe-area-inset-top)) var(--hb-pad) 10px;
	font-size: var(--t-base);
	line-height: normal;
	background: rgba(var(--void-rgb), 0.9);
	box-shadow: 0 1px 0 rgba(var(--gold-rgb), 0.12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition:
		background-color 0.4s,
		box-shadow 0.4s;
}
.bar.intro {
	position: fixed;
	left: 0;
	right: 0;
	background: linear-gradient(to bottom, rgba(var(--void-rgb), 0.9), rgba(var(--void-rgb), 0));
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	pointer-events: none;
}
.bar.intro > * {
	pointer-events: auto;
}
.bar.intro.solid {
	background: rgba(var(--void-rgb), 0.9);
	box-shadow: 0 1px 0 rgba(var(--gold-rgb), 0.12);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.bar .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.bar .name {
	grid-column: 1;
	justify-self: start;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 0;
	font: 400 var(--t-sm) var(--mono);
	letter-spacing: 0.42em;
	color: var(--gold);
	text-decoration: none;
	white-space: nowrap;
}
.bar .name a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}
/* The god's face as the mark: a small round portrait in a thin gold ring. */
.bar .mark {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow:
		0 0 0 1px rgba(var(--gold-rgb), 0.55),
		0 0 12px rgba(var(--gold-rgb), 0.25);
}
.bar .i {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
/* Phones: the links rise from the bottom as a sheet, over a dim scrim, in
   the order a newcomer needs them: start here, find a muse, what to do once
   it's yours, the token, then the docs and the links out. Each place has a
   line under it saying what it's for. Wider up, the same groups open as
   menus from a short row (below). */
.bar nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: calc(100svh - var(--bar-h, 64px) - 8px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
	border-radius: var(--r-xl) var(--r-xl) 0 0;
	background: var(--card);
	box-shadow:
		0 0 0 1px rgba(var(--gold-rgb), 0.18),
		0 -18px 50px rgba(0, 0, 0, 0.6);
	transform: translateY(105%);
	visibility: hidden;
	transition:
		transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
		visibility 0s 0.35s;
}
.bar nav.open {
	transform: none;
	visibility: visible;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* The sheet scrolls rather than squeezing its rows. */
.bar nav > * {
	flex-shrink: 0;
}
.bar .menu-scrim {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}
.bar.menu-open {
	/* A backdrop filter makes the bar the box its fixed children sit in, which
	   would pin the sheet and the scrim to the bar; open, the bar drops it. */
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: rgba(var(--void-rgb), 0.98);
}
.bar.menu-open .menu-scrim {
	opacity: 1;
	pointer-events: auto;
}
.bar .nav-start,
.bar .nav-i {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 48px;
	padding: 8px 16px;
	border-radius: var(--r-md);
	color: var(--bone);
	text-decoration: none;
	transition:
		color 0.3s,
		background-color 0.3s;
}
.bar .nav-i b,
.bar .nav-start b {
	display: flex;
	align-items: center;
	gap: 6px;
	font: 600 var(--t-lead) / 1.25 var(--sans);
}
.bar .nav-i b .i {
	width: 14px;
	height: 14px;
	color: var(--cool);
}
.bar .nav-i small,
.bar .nav-start small {
	font: 400 var(--t-ui) / 1.35 var(--sans);
	color: var(--ash);
}
/* A volume pill sits centered on its whole row, clear of both lines
   and the row's edge; wider up it rides the title line (below). */
.bar .nav-pill {
	position: relative;
	padding-right: 156px;
}
.bar .nav-pill .vol {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
}
.bar .nav-start {
	display: block;
	margin-bottom: 4px;
	padding: 12px 16px;
	background: rgba(var(--gold-rgb), 0.1);
}
.bar .nav-start span {
	font: 500 var(--t-note) var(--sans);
	color: var(--soft);
}
.bar .nav-start b {
	display: inline;
	color: var(--gold-hi);
}
.bar .nav-start small {
	display: block;
	margin-top: 4px;
}
.bar .nav-start:hover,
.bar .nav-i:hover {
	background: rgba(var(--bone-rgb), 0.05);
}
.bar .nav-i[aria-current] {
	color: var(--bone);
	background: rgba(var(--cool-rgb), 0.14);
}
/* The menus' buttons are for the row wider up; on phones every group is open. */
.bar .nav-t {
	display: none;
}
.bar .nav-p,
.bar .nav-c {
	display: grid;
	gap: 2px;
}
/* A small cool label over each group, like every .label. */
.bar .nav-h {
	margin: 12px 16px 2px;
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cool);
}
.bar .nav-docs {
	margin-top: 8px;
}
/* The last 24 hours on a menu link (header.ts): the Muses' ETH on Sales,
   $MUSEGOD's dollars on pools.fun. The gold twin of the online pill. Three bars play like a level meter, a sheen crosses it
   now and then, and a new number ticks up into place. */
.bar .vol {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	min-height: 26px;
	padding: 0 10px 0 9px;
	overflow: hidden;
	border-radius: var(--r-pill);
	font: 500 var(--t-xs) var(--sans);
	white-space: nowrap;
	color: #f7e3b5;
	background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.2), rgba(var(--gold-rgb), 0.05));
	box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.42);
	transition: box-shadow 0.35s;
}
.bar .vol[hidden] {
	display: none;
}
.bar .vol b {
	font-weight: 700;
	color: #fff4d6;
	font-variant-numeric: tabular-nums;
}
.bar .vol b.tick {
	animation: tick-up 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar .vol-u {
	margin-left: -2px;
	color: var(--gold-hi);
}
.bar .vol-t {
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.08em;
	color: rgba(var(--gold-hi-rgb), 0.7);
}
.bar .vol-eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	width: 11px;
	height: 11px;
	margin-right: 2px;
}
.bar .vol-eq i {
	flex: 1;
	height: 100%;
	border-radius: 1px;
	background: linear-gradient(#fff1c9, var(--gold));
	box-shadow: 0 0 6px rgba(var(--gold-hi-rgb), 0.7);
	transform-origin: bottom;
	animation: vol-eq 1.1s ease-in-out infinite;
}
.bar .vol-eq i:nth-child(2) {
	animation-duration: 0.8s;
	animation-delay: -0.3s;
}
.bar .vol-eq i:nth-child(3) {
	animation-duration: 1.3s;
	animation-delay: -0.6s;
}
@keyframes vol-eq {
	0%,
	100% {
		transform: scaleY(0.3);
	}
	50% {
		transform: scaleY(1);
	}
}
.bar .vol::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		transparent 30%,
		rgba(255, 240, 200, 0.35) 50%,
		transparent 70%
	);
	transform: translateX(-120%);
	animation: vol-sheen 6s ease-in-out 2s infinite;
	pointer-events: none;
}
@keyframes vol-sheen {
	0%,
	70% {
		transform: translateX(-120%);
	}
	100% {
		transform: translateX(120%);
	}
}
@media (hover: hover) {
	.bar .nav-i:hover .vol {
		box-shadow:
			inset 0 0 0 1px rgba(var(--gold-hi-rgb), 0.75),
			0 0 22px rgba(var(--gold-rgb), 0.35);
	}
}
/* Under the links: the two contract addresses, OpenSea and X side by side,
   and the Discord as a small banner with the god on his throne in its right
   half. */
.menu-more {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-top: 8px;
	padding-top: 8px;
	box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), 0.14);
}
.menu-more .ca-row,
.menu-more .menu-discord {
	grid-column: 1 / -1;
}
.menu-more a,
.ca-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--r-sm);
	background: none;
	font: 500 var(--t-base) var(--sans);
	color: var(--soft);
	text-decoration: none;
	cursor: pointer;
}
.ca-row code {
	font: 400 var(--t-sm) var(--mono);
	color: var(--cool);
}
.menu-more a .i {
	width: 14px;
	height: 14px;
	color: var(--cool);
}
.menu-more a:hover,
.ca-row:hover {
	color: var(--bone);
	background: rgba(var(--bone-rgb), 0.05);
}
.menu-more .menu-discord {
	position: relative;
	isolation: isolate;
	min-height: 72px;
	margin-top: 4px;
	overflow: hidden;
	background: var(--card-hi);
	box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.18);
}
.menu-discord span {
	display: grid;
	gap: 2px;
}
.menu-discord b {
	font: 600 var(--t-base) / 1.25 var(--sans);
	color: var(--bone);
}
.menu-discord small {
	font: 400 var(--t-sm) / 1.35 var(--sans);
	color: var(--ash);
}
.menu-discord img {
	position: absolute;
	top: 0;
	right: 0;
	z-index: -1;
	width: 55%;
	height: 100%;
	object-fit: cover;
	-webkit-mask: linear-gradient(to right, transparent, #000 45%);
	mask: linear-gradient(to right, transparent, #000 45%);
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.menu-more .menu-discord:hover {
	background: var(--card-hi);
	box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.4);
}
.menu-discord:hover img {
	transform: scale(1.04);
}
/* A wallet's face (lib/face.ts userAvatar): its OpenSea picture, or with none, an
   orb in a colour of its own, taken from the address, so no two blanks
   look alike. Every face on the site uses it: the wall, the toasts, the
   table, the Altar's seats and the bar's profile chip. Here rather than in
   user.css because the chip is on every page. */
.av {
	background: radial-gradient(
		circle at 30% 25%,
		hsl(var(--h, 40) 70% 72%),
		hsl(var(--h, 40) 55% 32%)
	);
}
.av :is(img, video) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* While its picture loads, a face is a shimmering skeleton (site.css .skel),
   not a coloured orb that then jumps to a photo; the picture fades in over it. */
.av.loading {
	background-color: #15110b;
}
.av.loading :is(img, video) {
	opacity: 0;
}
.av :is(img, video) {
	transition: opacity 0.3s;
}
/* A face whose picture is the NFT its wallet set on OpenSea (lib/face.ts,
   src/user.ts .av-hex): OpenSea's rounded hexagon, in a gold ring with a
   light turning round it. The hexagon sits inside the face's circle, so the
   circle's own clip and outer rings fall away. --av-ring is the ring's
   width, wider on the bigger faces. */
@property --av-turn {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
.av.av-hex {
	--av-shape: polygon(
		43.5% 3.75%,
		45.13% 2.93%,
		46.75% 2.34%,
		48.38% 1.99%,
		50% 1.87%,
		51.62% 1.99%,
		53.25% 2.34%,
		54.87% 2.93%,
		56.5% 3.75%,
		86.81% 21.25%,
		88.33% 22.25%,
		89.65% 23.36%,
		90.76% 24.59%,
		91.68% 25.94%,
		92.39% 27.4%,
		92.9% 28.98%,
		93.2% 30.68%,
		93.3% 32.5%,
		93.3% 67.5%,
		93.2% 69.32%,
		92.9% 71.02%,
		92.39% 72.6%,
		91.68% 74.06%,
		90.76% 75.41%,
		89.65% 76.64%,
		88.33% 77.75%,
		86.81% 78.75%,
		56.5% 96.25%,
		54.87% 97.07%,
		53.25% 97.66%,
		51.62% 98.01%,
		50% 98.13%,
		48.38% 98.01%,
		46.75% 97.66%,
		45.13% 97.07%,
		43.5% 96.25%,
		13.19% 78.75%,
		11.67% 77.75%,
		10.35% 76.64%,
		9.24% 75.41%,
		8.32% 74.06%,
		7.61% 72.6%,
		7.1% 71.02%,
		6.8% 69.32%,
		6.7% 67.5%,
		6.7% 32.5%,
		6.8% 30.68%,
		7.1% 28.98%,
		7.61% 27.4%,
		8.32% 25.94%,
		9.24% 24.59%,
		10.35% 23.36%,
		11.67% 22.25%,
		13.19% 21.25%
	);
	box-sizing: border-box;
	padding: var(--av-ring, 2px);
	clip-path: var(--av-shape);
	background: conic-gradient(
		from var(--av-turn),
		rgba(var(--gold-rgb), 0.35),
		var(--gold) 45%,
		var(--gold-hi) 72%,
		var(--bone) 82%,
		rgba(var(--gold-rgb), 0.35)
	);
	animation: av-turn 4s linear infinite;
}
.av.av-hex :is(img, video) {
	clip-path: var(--av-shape);
}
@keyframes av-turn {
	to {
		--av-turn: 360deg;
	}
}
.bar-end {
	/* Every pill and button at the bar's end stands this tall. */
	--pill: 40px;
	grid-column: -2;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
/* How many are here right now (live.js), in the bar only once it's 10 or
   more, "online" in its tooltip. On wide screens it is the people icon with
   the live dot on its shoulder, the icon cut away around the dot so the two
   never touch, and the count. On phones it is a slim pill of the dot and the
   count. The bar hides it from 760px to 959px, where the links fill the row.
   The pill's look is live.css's .now. */
.bar .now-bar {
	display: none;
	align-items: center;
	gap: 8px;
	height: var(--pill);
	padding: 0 14px 0 12px;
	border-radius: var(--r-pill);
	font: 500 var(--t-sm) var(--sans);
}
.now-ic {
	position: relative;
	display: grid;
	color: #a8dcc1;
}
.now-ic .i {
	width: 18px;
	height: 18px;
	-webkit-mask: radial-gradient(circle at 18px 0, transparent 5.5px, #000 6px);
	mask: radial-gradient(circle at 18px 0, transparent 5.5px, #000 6px);
}
.now-ic .now-dot {
	position: absolute;
	top: -3.5px;
	right: -3.5px;
	width: 7px;
	height: 7px;
}
@media (max-width: 759px) {
	.bar .now-bar:not([hidden]) {
		display: inline-flex;
		gap: 6px;
		height: 26px;
		padding: 0 10px 0 9px;
		font-size: var(--t-xs);
	}
	.bar .now-bar .i {
		display: none;
	}
	.bar .now-bar .now-dot {
		position: relative;
		top: auto;
		right: auto;
		width: 6px;
		height: 6px;
	}
}
/* The one thing to do now, collect a muse (DROP_CTA, its tooltip): OpenSea's
   ship in white on a dark grey circle (opensea-ship.svg, the white of
   opensea-mark.svg), lit gold on hover. The mark is cropped tight to the ship
   and is wider than it is tall, so the width is set to about 45% of the
   circle and the height follows, and the translate repeats the nudge OpenSea
   gives the ship inside its own round mark. */
.bar-cta {
	display: grid;
	place-items: center;
	flex: none;
	width: var(--pill);
	height: var(--pill);
	border-radius: 50%;
	background: linear-gradient(180deg, rgba(var(--bone-rgb), 0.16), rgba(var(--bone-rgb), 0.06));
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.14);
	transition:
		box-shadow 0.3s,
		transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bar-cta img {
	display: block;
	width: 18px;
	height: auto;
	transform: translate(4%, -4.2%);
}
.bar-cta:hover {
	transform: translateY(-1px);
	box-shadow:
		inset 0 0 0 1px rgba(var(--gold-hi-rgb), 0.6),
		0 0 22px rgba(var(--gold-rgb), 0.35);
}
/* The contract addresses (CAs): a pill that opens a card under it, on hover
   where there's a mouse and on a click anywhere, the same panel as the Muses
   and Token menus (header.ts, and their rules from 760px below), held to
   the pill's right edge. The card holds the token, then the Muses
   collection, each with its picture, its whole address, a copy button and
   its pages on OpenSea and the explorer. In the bar from 960px; the phone
   menu has a row for each. */
.cas {
	position: relative;
	display: none;
}
.cas-t {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: var(--pill);
	padding: 0 14px;
	border: 0;
	border-radius: var(--r-pill);
	background: rgba(var(--bone-rgb), 0.05);
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.14);
	font: 600 var(--t-sm) var(--sans);
	color: var(--soft);
	cursor: pointer;
	transition:
		color 0.3s,
		box-shadow 0.3s;
}
.cas-t .i {
	width: 15px;
	height: 15px;
	color: var(--cool);
}
.cas-t:hover,
.cas-t[aria-expanded="true"] {
	color: var(--bone);
	box-shadow: inset 0 0 0 1px rgba(var(--cool-rgb), 0.45);
}
.cas-card {
	right: 0;
	z-index: 2;
	display: grid;
	gap: 4px;
	width: 540px;
	white-space: normal;
}
@media (hover: hover) {
	.cas:hover .cas-t {
		color: var(--bone);
	}
}
.cas-row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border-radius: var(--r-md);
	transition: background-color 0.2s;
}
.cas-row:hover {
	background: rgba(var(--bone-rgb), 0.05);
}
.cas-row > img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow:
		0 0 0 2px var(--card),
		0 0 0 3px rgba(var(--gold-rgb), 0.45);
}
.cas-txt {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.cas-txt b {
	font: 600 var(--t-base) / 1.2 var(--sans);
	color: var(--bone);
}
.cas-txt small {
	font: 400 var(--t-sm) / 1.3 var(--sans);
	color: var(--ash);
}
.cas-txt code {
	font: 400 var(--t-xs) / 1.4 var(--mono);
	color: var(--cool);
	white-space: nowrap;
	user-select: all;
}
.cas-acts {
	display: flex;
	gap: 6px;
}
.cas-copy,
.cas-x {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--card-hi);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--soft);
	text-decoration: none;
	cursor: pointer;
	transition:
		color 0.2s,
		background-color 0.2s,
		box-shadow 0.2s;
}
.cas-copy .i,
.cas-x .i {
	grid-area: 1 / 1;
	width: 16px;
	height: 16px;
}
.cas-os img {
	grid-area: 1 / 1;
	width: 16px;
	height: auto;
	transform: translate(4%, -4.2%);
}
.cas-copy {
	background: rgba(var(--cool-rgb), 0.14);
	color: var(--cool);
}
.cas-copy .ok,
.cas-copy.copied .i:not(.ok) {
	display: none;
}
.cas-copy.copied .ok {
	display: block;
}
.cas-copy.copied {
	background: rgba(var(--live-rgb), 0.2);
	color: var(--live);
}
.cas-copy:hover,
.cas-x:hover {
	color: var(--bone);
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.4);
}

/* The profile chip (header.ts), after the CTA once a wallet is connected:
   its face in a gold ring and its name, in a pill whose gold rim slowly
   turns. On hover the pill glows, the rim speeds up and a light passes
   over it. */
@property --me-turn {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
.me {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: var(--pill);
	max-width: 168px;
	padding: 0 16px 0 4px;
	border-radius: var(--r-pill);
	overflow: hidden;
	background: linear-gradient(
		135deg,
		rgba(var(--gold-rgb), 0.18),
		rgba(var(--gold-rgb), 0.05) 60%,
		rgba(var(--gold-hi-rgb), 0.12)
	);
	font: 600 var(--t-ui) var(--sans);
	color: var(--bone);
	text-decoration: none;
	transition: box-shadow 0.4s;
}
.me::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	padding: 1px;
	border-radius: inherit;
	background: conic-gradient(
		from var(--me-turn),
		rgba(var(--gold-rgb), 0.2),
		var(--gold-hi) 12%,
		rgba(var(--gold-rgb), 0.2) 30%,
		rgba(var(--gold-rgb), 0.2) 50%,
		var(--gold) 62%,
		rgba(var(--gold-rgb), 0.2) 80%
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: me-turn 8s linear infinite;
}
.me::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		105deg,
		transparent 30%,
		rgba(var(--gold-hi-rgb), 0.3) 50%,
		transparent 70%
	);
	transform: translateX(-110%);
}
.me .av {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow:
		0 0 0 2px var(--void),
		0 0 0 3px rgba(var(--gold-hi-rgb), 0.75);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.me-n {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.me:hover {
	box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.35);
}
.me:hover::before {
	animation-duration: 2.5s;
}
.me:hover::after {
	transform: translateX(110%);
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.me:hover .av {
	transform: scale(1.06);
}
/* With no wallet connected: the profile button in the chip's place, a circle
   like the OpenSea one beside it, and the card it opens (header.ts). */
.me-in {
	display: grid;
	place-items: center;
	flex: none;
	width: var(--pill);
	height: var(--pill);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(var(--bone-rgb), 0.06);
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.16);
	color: var(--bone);
	cursor: pointer;
	transition:
		box-shadow 0.3s,
		transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.me-in .i {
	width: 22px;
	height: 22px;
}
.me-in:hover {
	transform: translateY(-1px);
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.4);
}
.me-dlg .mg-panel {
	display: grid;
	justify-items: center;
	gap: 14px;
	width: min(100%, 420px);
	padding: 36px 24px 24px;
	text-align: center;
}
.me-dlg .i {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.me-dlg-ic {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(var(--gold-rgb), 0.12);
	box-shadow: 0 0 40px -8px rgba(var(--gold-rgb), 0.5);
	color: var(--gold-hi);
}
.me-dlg-ic .i {
	width: 32px;
	height: 32px;
}
.me-dlg h2 {
	margin: 0;
	font: italic 600 var(--d-4) / 1.05 var(--serif);
	color: var(--bone);
}
.me-dlg h2 em {
	color: var(--gold-hi);
}
.me-dlg p {
	margin: 0;
	max-width: 32ch;
	font-size: var(--t-note);
	line-height: 1.5;
	color: var(--soft);
}
.me-dlg ul {
	display: grid;
	gap: 8px;
	width: 100%;
	margin: 4px 0;
	padding: 0;
	list-style: none;
	text-align: left;
}
.me-dlg li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--r-md);
	background: var(--card-hi);
	font-size: var(--t-note);
	color: var(--bone);
}
.me-dlg li .i {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--cool);
}
.me-dlg .btn {
	width: 100%;
}
.me-dlg .btn .i {
	width: 18px;
	height: 18px;
}
@keyframes me-turn {
	to {
		--me-turn: 360deg;
	}
}
/* The name joins the face only from 1200px, so the row never runs into the
   links. */
@media (max-width: 1199px) {
	.me {
		gap: 0;
		padding: 0 4px;
	}
	.me-n {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.me::before {
		animation: none;
	}
	.me::after {
		display: none;
	}
}
.menu-btn {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	margin-right: -10px;
	border: 0;
	border-radius: var(--r-sm);
	background: none;
	color: var(--bone);
	cursor: pointer;
}
.menu-btn .i {
	width: 22px;
	height: 22px;
}
.menu-btn .x,
.menu-btn[aria-expanded="true"] .m {
	display: none;
}
.menu-btn[aria-expanded="true"] .x {
	display: block;
}
.bar a:focus-visible,
.bar button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}
/* Anchors land below the bar: live.js keeps --bar-h at its real height. */
html {
	scroll-padding-top: calc(var(--bar-h, 64px) + 12px);
}
/* Very narrow phones: the mark alone, so the button and the menu fit. */
@media (max-width: 360px) {
	.bar .name {
		font-size: 0;
		letter-spacing: 0;
	}
}
/* Tablets: a panel that drops from the menu button, phone-width, rather than
   a sheet stretched across the screen. */
@media (min-width: 600px) and (max-width: 759px) {
	.bar nav {
		top: calc(var(--bar-h, 64px) + 8px);
		left: auto;
		right: var(--hb-pad);
		bottom: auto;
		width: 380px;
		max-height: calc(100svh - var(--bar-h, 64px) - 24px);
		padding-bottom: 12px;
		border-radius: var(--r-lg);
		opacity: 0;
		transform: translateY(-8px);
		transition:
			transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
			opacity 0.25s,
			visibility 0s 0.25s;
	}
	.bar nav.open {
		opacity: 1;
		transition:
			transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
			opacity 0.25s;
	}
}
@media (min-width: 760px) {
	.bar,
	.site-foot {
		--hb-pad: 28px;
	}
}
@media (min-width: 900px) {
	.bar,
	.site-foot {
		--hb-pad: 32px;
	}
}
/* The links join the bar from 760px as a short row: Start here, two menus
   (Muses and Token) and Docs. A menu opens on hover where there's a mouse
   and on a click or tap anywhere (header.ts), as a card of its groups with
   each place's line under it. header.ts closes the phone menu on the same
   line. */
@media (min-width: 760px) {
	.bar {
		grid-template-columns: 1fr auto 1fr;
		min-height: 72px;
	}
	.bar nav,
	.bar nav.open {
		grid-column: 2;
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 4px;
		max-height: none;
		overflow: visible;
		padding: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
		transform: none;
		visibility: visible;
		transition: none;
	}
	.bar .nav-start,
	.bar .nav-docs,
	.bar .nav-t {
		display: inline-flex;
		flex-direction: row;
		align-items: center;
		gap: 4px;
		min-height: 40px;
		margin: 0;
		padding: 0 14px;
		border: 0;
		border-radius: var(--r-pill);
		background: none;
		white-space: nowrap;
		font: 500 var(--t-note) var(--sans);
		color: var(--ash);
		cursor: pointer;
		transition:
			color 0.3s,
			background-color 0.3s;
	}
	.bar .nav-start span,
	.bar .nav-start small,
	.bar .nav-docs small {
		display: none;
	}
	.bar .nav-start b,
	.bar .nav-docs b {
		font: inherit;
		color: inherit;
	}
	.bar .nav-t .chev {
		width: 14px;
		height: 14px;
		margin-right: -4px;
		transition: transform 0.25s;
	}
	.bar .nav-t[aria-expanded="true"] .chev {
		transform: rotate(180deg);
	}
	.bar .nav-start:hover,
	.bar .nav-docs:hover,
	.bar .nav-t:hover,
	.bar .nav-t[aria-expanded="true"] {
		color: var(--bone);
		background: rgba(var(--bone-rgb), 0.05);
	}
	/* The page you're on, or the menu it's in: gold on a soft gold fill. */
	.bar .nav-start[aria-current],
	.bar .nav-docs[aria-current],
	.bar .nav-t.here {
		color: var(--bone);
		background: rgba(var(--cool-rgb), 0.14);
	}
	.bar .nav-m {
		position: relative;
	}
	/* A menu's panel, and the CAs card: the same card under its button,
	   shifted by --x (a menu is centered on its button, the card held to its
	   right edge). */
	.bar .nav-p,
	.bar .cas-card {
		position: absolute;
		top: calc(100% + 14px);
		padding: 10px;
		border-radius: var(--r-lg);
		background: var(--card-hi);
		box-shadow:
			0 0 0 1px rgba(var(--bone-rgb), 0.1),
			var(--e-2),
			0 24px 60px rgba(var(--void-rgb), 0.6);
		opacity: 0;
		visibility: hidden;
		transform: translate(var(--x, 0), -6px);
		transition:
			opacity 0.2s,
			transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1),
			visibility 0s 0.2s;
	}
	.bar .nav-p {
		--x: -50%;
		left: 50%;
		grid-template-columns: repeat(2, 272px);
		gap: 4px 8px;
	}
	/* A strip over the gap, so the pointer can cross from the button to the card. */
	.bar :is(.nav-p, .cas-card)::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 16px;
	}
	.bar :is(.nav-t, .cas-t)[aria-expanded="true"] + :is(.nav-p, .cas-card) {
		opacity: 1;
		visibility: visible;
		transform: translate(var(--x, 0), 0);
		transition:
			opacity 0.2s,
			transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	.bar .nav-c {
		align-content: start;
	}
	.bar .nav-h {
		margin: 6px 14px 4px;
		font-size: var(--t-sm);
	}
	.bar .nav-i {
		min-height: 0;
		padding: 12px 14px;
		border-radius: var(--r-sm);
	}
	.bar .nav-i b {
		font-size: var(--t-body);
	}
	.bar .nav-pill {
		padding-right: 14px;
	}
	.bar .nav-pill b {
		min-height: 30px;
	}
	.bar .nav-pill .vol {
		position: relative;
		top: auto;
		right: auto;
		transform: none;
		margin-left: auto;
	}
	.menu-more,
	.menu-scrim,
	.menu-btn {
		display: none;
	}
}
@media (min-width: 760px) and (hover: hover) {
	.bar :is(.nav-m, .cas):hover :is(.nav-p, .cas-card) {
		opacity: 1;
		visibility: visible;
		transform: translate(var(--x, 0), 0);
		transition:
			opacity 0.2s,
			transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	.bar .nav-m:hover .nav-t {
		color: var(--bone);
	}
}
/* The CAs join the bar from 960px, and the online pill comes back there,
   where the row still fits with them, so the bar never runs past the screen. */
@media (min-width: 960px) {
	.cas {
		display: block;
	}
	.bar .now-bar:not([hidden]) {
		display: inline-flex;
	}
}
/* In the bar it also opens from no width, so the buttons beside it slide
   over rather than jump. */
.bar .now-bar.arrive {
	overflow: hidden;
	animation: now-bar-arrive 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes now-bar-arrive {
	from {
		max-width: 0;
		padding-inline: 0;
		margin-right: -8px;
		opacity: 0;
	}
	to {
		max-width: 160px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bar nav {
		transition: none;
	}
	.bar .vol-eq i,
	.bar .vol::after,
	.bar .vol b.tick {
		animation: none;
	}
	.bar .vol-eq i {
		transform: scaleY(0.7);
	}
}

/* The footer (src/header.ts footer()), on every page: the seal and the
   contract address, the links, and a muse drawn at random, over a dark gold
   glow and a little dust, then the name in gold across the whole width. */
.site-foot {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin-top: 64px;
	padding: 56px var(--hb-pad) calc(28px + env(safe-area-inset-bottom));
	background:
		radial-gradient(90% 70% at 15% 0%, rgba(var(--gold-rgb), 0.14), transparent 60%),
		radial-gradient(70% 60% at 100% 100%, rgba(var(--burn-rgb), 0.08), transparent 60%), #0a0806;
	box-shadow: inset 0 1px 0 rgba(var(--gold-rgb), 0.18);
	font: var(--t-note) / 1.5 var(--sans);
	color: var(--soft);
}
.site-foot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(/glitter.webp) 0 0 / 320px repeat;
	opacity: 0.35;
	-webkit-mask: linear-gradient(to bottom, #000, transparent 70%);
	mask: linear-gradient(to bottom, #000, transparent 70%);
}
.sf-in {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	gap: 40px;
}
.sf-brand {
	display: grid;
	align-content: start;
	gap: 12px;
	justify-items: start;
}
.sf-brand p {
	margin: 0;
	font: italic 600 var(--d-1) / 1.25 var(--serif);
	color: var(--bone);
}
.sf-seal {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}
.sf-seal img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow:
		0 0 0 1px rgba(var(--gold-rgb), 0.5),
		0 0 30px rgba(var(--gold-rgb), 0.2);
}
.sf-seal span {
	font: 400 var(--t-sm) var(--mono);
	letter-spacing: 0.5em;
	color: var(--gold);
}
/* The token's and the Muses' addresses, a pill each that copies it. */
.sf-cas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sf-ca {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--r-pill);
	background: rgba(var(--bone-rgb), 0.05);
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.14);
	font: 400 var(--t-sm) var(--mono);
	color: var(--bone);
	cursor: pointer;
}
.sf-ca .i {
	width: 15px;
	height: 15px;
	color: var(--cool);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sf-ca b {
	font-weight: 400;
	color: var(--cool);
}
@media (hover: hover) {
	.sf-ca:hover {
		background: rgba(var(--bone-rgb), 0.1);
	}
}
.sf-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 20px;
}
.sf-cols p,
.sf-social p {
	margin: 0 0 10px;
	font: 400 var(--t-xs) / 1.3 var(--mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--cool);
}
.sf-cols ul,
.sf-social ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sf-cols ul {
	display: grid;
	gap: 2px;
}
/* The god's own places, under the name rather than in a column of their own:
   a row that wraps where the brand runs out, standing off the pills above it. */
.sf-social {
	margin-top: 20px;
}
.sf-social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
}
.sf-cols li,
.sf-social li {
	margin: 0;
}
.sf-cols a,
.sf-social a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	color: var(--soft);
	text-decoration: none;
	transition: color 0.2s;
}
.sf-cols a:hover,
.sf-social a:hover {
	color: var(--bone);
}
.sf-cols a .i,
.sf-social a .i {
	width: 13px;
	height: 13px;
	color: var(--dim);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.site-foot a:focus-visible,
.site-foot button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}
.site-foot .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.sf-small {
	max-width: 1120px;
	margin: 24px auto 0;
	font-size: var(--t-sm);
	color: var(--dim);
}
/* The small print's links (legal, and llms.txt for agents): plain and quiet, not a feature. */
.sf-small a {
	color: inherit;
	text-underline-offset: 3px;
}
/* The small print sits tight under the mark, where the mark's italic g drops
   its tail past the line box at about 57vw. The reserve wraps a line short of
   the tail rather than under it, and never moves a line that already ends
   before it: the first term while the footer spans the window, the second once
   it stops at 1120px and its left edge walks inward. A phone's mark is too
   small to reach down this far. */
@media (min-width: 420px) {
	.sf-small {
		padding-right: min(calc(43.5vw - 24px), calc(560px - 6.5vw));
	}
}
/* The name across the whole width, in the gold of the seal, the footer's
   last word on every page. Its glyphs rise above its tight line box over
   the draw button, so it takes no pointer events. */
.sf-mark {
	pointer-events: none;
	margin: 64px calc(-1 * var(--hb-pad)) 0;
	text-align: center;
	font:
		italic 400 25.4vw / 0.78 "Bodoni Moda Mark",
		var(--serif);
	letter-spacing: -0.05em;
	color: var(--gold);
	white-space: nowrap;
	user-select: none;
}
/* The random muse (header.ts): a small card set slightly askew that leans
   toward the pointer with the holo foil, face down until it turns over.
   The divine tiers come up with a gold glow. */
.sf-draw {
	margin: 0;
	display: grid;
	justify-items: start;
	align-content: start;
	gap: 12px;
}
.sf-draw figcaption {
	font: 400 var(--t-xs) var(--mono);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}
.sf-card {
	display: block;
	width: 176px;
	perspective: 900px;
	rotate: -2.5deg;
	color: inherit;
	text-decoration: none;
	transition: rotate 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.sf-face {
	--sf-edge: rgba(var(--gold-rgb), 0.4);
	--sf-halo: rgba(var(--gold-rgb), 0.12);
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--r-md);
	background: #000;
	box-shadow:
		0 0 0 1px var(--sf-edge),
		0 0 34px var(--sf-halo),
		0 18px 30px -12px rgba(0, 0, 0, 0.8);
	transition: box-shadow 0.4s;
}
.sf-art {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sf-meta {
	display: grid;
	gap: 3px;
	margin-top: 12px;
}
.sf-meta b {
	font: italic 600 var(--d-1) / 1.15 var(--serif);
	color: var(--bone);
	overflow-wrap: anywhere;
}
.sf-meta small {
	font-size: var(--t-sm);
	line-height: 1.4;
	color: var(--dim);
}
.sf-draw:not(.drawn) .sf-meta b {
	color: var(--dim);
}
.sf-draw[data-tier="ascended"] .sf-face,
.sf-draw[data-tier="godhead"] .sf-face,
.sf-draw[data-tier="divine"] .sf-face {
	--sf-edge: rgba(var(--gold-hi-rgb), 0.85);
	--sf-halo: rgba(var(--gold-hi-rgb), 0.38);
}
.sf-draw[data-tier="mythic"] .sf-face,
.sf-draw[data-tier="legendary"] .sf-face {
	--sf-edge: rgba(201, 167, 240, 0.6);
	--sf-halo: rgba(201, 167, 240, 0.2);
}
.sf-again {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin-top: 2px;
	padding: 0 14px 0 12px;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	box-shadow: inset 0 0 0 1px rgba(var(--bone-rgb), 0.16);
	font: 500 var(--t-sm) var(--sans);
	color: var(--soft);
	cursor: pointer;
	transition:
		background-color 0.2s,
		color 0.2s;
}
.sf-again .i {
	width: 15px;
	height: 15px;
	color: var(--cool);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: rotate 0.35s;
}
.sf-again:disabled {
	cursor: default;
	opacity: 0.55;
}
@media (hover: hover) {
	.sf-card:hover {
		rotate: 0deg;
	}
	.sf-again:not(:disabled):hover {
		background: rgba(var(--bone-rgb), 0.06);
		color: var(--bone);
	}
	.sf-again:not(:disabled):hover .i {
		rotate: 180deg;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sf-card,
	.sf-again .i {
		transition: none;
	}
}

@media (min-width: 760px) {
	.site-foot {
		padding-top: 72px;
	}
	.sf-in {
		grid-template-columns: minmax(240px, 1fr) auto;
		gap: 48px 56px;
	}
	.sf-cols {
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (min-width: 1080px) {
	.sf-in {
		grid-template-columns: minmax(220px, 1fr) minmax(0, 2.1fr) auto;
	}
	.sf-cols {
		grid-column: auto;
		grid-row: auto;
	}
}
