/* musegod.org/lists/<slug>: how to enter an X list and the check of one entry. */
.xl {
	max-width: 880px;
	margin: 0 auto;
	padding: 28px var(--pad) calc(56px + env(safe-area-inset-bottom));
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}
.xl .intro {
	display: grid;
	gap: 8px;
}
:where(.xl .intro) > * {
	margin: 0;
}
.xl-check {
	padding: 24px 20px;
}
.xl-meta {
	margin: 0;
	color: var(--soft);
	font-size: var(--t-note);
}
.xl-how {
	display: grid;
	gap: 20px;
	padding: 24px 20px;
}
.xl-how p {
	margin: 0;
}
.steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
	display: grid;
	gap: 14px;
}
@media (min-width: 760px) {
	.steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.steps li {
	counter-increment: step;
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border-radius: var(--r-md);
	background: rgba(var(--gold-rgb), 0.06);
}
.steps li b {
	color: var(--bone);
	font-size: var(--t-base);
}
.steps li b::before {
	content: counter(step) ". ";
	color: var(--gold);
}
.steps li span {
	font-size: var(--t-note);
	line-height: 1.5;
	color: var(--soft);
}
.xl-check {
	display: grid;
	gap: 16px;
}
.xl-check .claim-h {
	margin: 0;
}
.xl-result:empty {
	display: none;
}
.xl-none {
	margin: 0;
	color: var(--soft);
	font-size: var(--t-note);
}
.xl-entry {
	display: grid;
	gap: 16px;
	padding: 16px;
}
@media (min-width: 640px) {
	.xl-entry {
		grid-template-columns: 200px minmax(0, 1fr);
	}
}
.xl-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--r-md);
}
.xl-body {
	display: grid;
	gap: 10px;
	align-content: start;
}
:where(.xl-body) > * {
	margin: 0;
}
.xl-who {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: var(--t-ui);
}
.xl-state {
	font-size: var(--t-lead);
	font-weight: 700;
	color: var(--soft);
}
.xl-state.approved {
	color: var(--live);
}
.xl-state.passed {
	color: var(--dim);
}
.xl-checks {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 6px;
}
.xl-c {
	display: flex;
	gap: 8px;
	font-size: var(--t-note);
	color: var(--soft);
}
.xl-mark {
	width: 1.2em;
	text-align: center;
	font-weight: 700;
}
.xl-c.ok .xl-mark {
	color: var(--live);
}
.xl-c.no .xl-mark {
	color: var(--warn);
}
.xl-c.no {
	color: var(--bone);
}
.xl-note {
	padding: 10px 12px;
	border-radius: var(--r-sm);
	background: rgba(var(--cool-rgb), 0.1);
	color: var(--bone);
	font-size: var(--t-note);
}
.xl-fix {
	color: var(--soft);
	font-size: var(--t-sm);
}

/* A result reads at a glance: a coloured line for where it stands, the steps
   left with a button each, what is met as chips, and when it is read again. */
.xl-entry.fix {
	background:
		linear-gradient(160deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.03) 60%),
		var(--card);
}
.xl-entry.set {
	background:
		linear-gradient(160deg, rgba(var(--cool-rgb), 0.12), rgba(var(--cool-rgb), 0.03) 60%),
		var(--card);
}
.xl-entry.in {
	background:
		linear-gradient(160deg, rgba(var(--live-rgb), 0.16), rgba(var(--live-rgb), 0.04) 60%),
		var(--card);
}
.xl-state.fix {
	color: var(--gold-hi);
}
.xl-state.set {
	color: var(--cool);
}
.xl-state.in {
	color: var(--live);
}
.xl-state.out {
	color: var(--dim);
}
.xl-steps {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 8px;
}
.xl-step {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border-radius: var(--r-md);
	background: rgba(var(--warn-rgb), 0.1);
}
.xl-step.wait {
	background: rgba(var(--bone-rgb), 0.06);
}
.xl-n {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: var(--r-pill);
	background: rgba(var(--gold-rgb), 0.2);
	color: var(--gold-hi);
	font-weight: 700;
	font-size: var(--t-sm);
}
.xl-step-t {
	display: grid;
	gap: 2px;
}
.xl-step-t b {
	color: var(--bone);
	font-size: var(--t-note);
}
.xl-step-t small {
	color: var(--soft);
	font-size: var(--t-sm);
	line-height: 1.45;
}
.xl-met {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.xl-chip {
	padding: 3px 10px;
	border-radius: var(--r-pill);
	background: rgba(var(--live-rgb), 0.14);
	color: var(--live);
	font-size: var(--t-xs);
}
.xl-sweep {
	color: var(--soft);
	font-size: var(--t-sm);
	line-height: 1.5;
}
@media (max-width: 520px) {
	.xl-step {
		grid-template-columns: 28px minmax(0, 1fr);
	}
	.xl-step .btn {
		grid-column: 2;
		justify-self: start;
	}
}

/* The list's artwork across the top. */
.xl-hero {
	margin: 0;
	border-radius: var(--r-xl);
	overflow: hidden;
	box-shadow: var(--e-2);
	aspect-ratio: 21 / 9;
	background: var(--card);
}
.xl-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
}

/* The four steps: a tile each in its own hue, a big number behind, an icon. */
.xl-s.cool {
	--s: var(--cool);
	--s-rgb: var(--cool-rgb);
}
.xl-s.gold {
	--s: var(--gold-hi);
	--s-rgb: var(--gold-rgb);
}
.xl-s.bless {
	--s: var(--bless-hi);
	--s-rgb: var(--bless-rgb);
}
.xl-s.live {
	--s: var(--live);
	--s-rgb: var(--live-rgb);
}
.xl-steps4 {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
	.xl-steps4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.xl-s {
	position: relative;
	overflow: hidden;
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 16px;
	border-radius: var(--r-lg);
	background: linear-gradient(160deg, rgba(var(--s-rgb), 0.18), rgba(var(--s-rgb), 0.04) 70%);
	transition: transform 0.2s;
}
@media (hover: hover) {
	.xl-s:hover {
		transform: translateY(-3px) rotate(-0.6deg);
	}
}
.xl-s-n {
	position: absolute;
	right: 10px;
	bottom: -14px;
	font: italic 600 72px / 1 var(--serif);
	color: rgba(var(--s-rgb), 0.16);
	pointer-events: none;
}
.xl-s-ic {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	border-radius: var(--r-pill);
	background: rgba(var(--s-rgb), 0.2);
	color: var(--s);
}
.xl-s-ic .i {
	width: 22px;
	height: 22px;
}
.xl-s b {
	color: var(--bone);
	font-size: var(--t-base);
}
.xl-s span:last-child {
	position: relative;
	color: var(--soft);
	font-size: var(--t-sm);
	line-height: 1.45;
}

/* The featured wall: the picks, big, a little tilted, like a pinboard. */
.xl-wall {
	display: grid;
	gap: 16px;
}
.xl-wall-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.xl-wall-item a {
	display: grid;
	gap: 6px;
	text-decoration: none;
}
.xl-wall-item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-md);
	box-shadow: var(--e-2);
	transition: transform 0.2s;
}
.xl-wall-item:nth-child(odd) img {
	transform: rotate(-1.2deg);
}
.xl-wall-item:nth-child(even) img {
	transform: rotate(1deg);
}
@media (hover: hover) {
	.xl-wall-item a:hover img {
		transform: rotate(0) scale(1.03);
	}
}
.xl-wall-who {
	color: var(--soft);
	font-size: var(--t-sm);
}

/* A video entry shows its preview frame with a play mark over it. */
.xl-art,
.xl-wall-art {
	position: relative;
	display: block;
}
.xl-art.video::after,
.xl-wall-art.video::after {
	content: "▶";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: var(--r-pill);
	background: rgba(var(--void-rgb), 0.6);
	color: var(--bone);
	font-size: var(--t-base);
	pointer-events: none;
}

/* The race: a clock to the close, and the spots left as a filling bar. */
.xl-race {
	display: grid;
	gap: 14px;
	margin-top: 8px;
	padding: 16px;
	border-radius: var(--r-lg);
	background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.16), rgba(var(--bless-rgb), 0.12));
}
@media (min-width: 640px) {
	.xl-race {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 24px;
	}
}
.xl-clock {
	display: flex;
	gap: 8px;
}
.xl-clock span {
	display: grid;
	justify-items: center;
	min-width: 58px;
	padding: 8px 6px;
	border-radius: var(--r-md);
	background: rgba(var(--void-rgb), 0.55);
}
.xl-clock b {
	font: 700 var(--d-2) / 1 var(--sans);
	font-variant-numeric: tabular-nums;
	color: var(--gold-hi);
}
.xl-clock small {
	margin-top: 4px;
	color: var(--soft);
	font-size: var(--t-xs);
}
.xl-left {
	display: grid;
	gap: 8px;
}
.xl-left p {
	margin: 0;
	color: var(--soft);
	font-size: var(--t-note);
}
.xl-left b {
	font: 700 var(--d-2) / 1 var(--sans);
	color: var(--bone);
	font-variant-numeric: tabular-nums;
}
.xl-bar {
	height: 10px;
	border-radius: var(--r-pill);
	background: rgba(var(--void-rgb), 0.55);
	overflow: hidden;
}
.xl-bar span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: var(--r-pill);
	background: linear-gradient(90deg, var(--gold), var(--gold-hi));
	transition: width 0.8s;
}
.xl-race.done .xl-clock b {
	color: var(--dim);
}

/* The draw machine on a collab drop's page: the block, its hash as a grid
   of 64 tinted characters, the first place's mod, the tickets with the
   winners lit in place order, and each place's math. */
.xl-machine {
	display: block;
	border-radius: var(--r-xl);
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(var(--bless-rgb), 0.16), transparent 60%),
		radial-gradient(90% 70% at 0% 100%, rgba(var(--gold-rgb), 0.14), transparent 60%), var(--card);
	border: 1px solid var(--line);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.xl-machine {
	padding: 0;
}
.xl-machine > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	cursor: pointer;
	list-style: none;
}
.xl-machine > summary::-webkit-details-marker {
	display: none;
}
.xl-m-sum {
	display: grid;
	gap: 8px;
	flex: 1;
	min-width: 0;
}
.xl-m-sum .label {
	margin: 0;
}
.xl-m-peek {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	color: var(--soft);
	font-size: var(--t-ui);
	font-variant-numeric: tabular-nums;
}
.xl-m-strip {
	flex: 0 1 260px;
	min-width: 160px;
	gap: 2px;
	font-size: 10px;
}
.xl-m-strip .xl-h {
	border-radius: 3px;
}
.xl-m-open {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: none;
	border-radius: 50%;
	background: rgba(var(--bone-rgb), 0.06);
	color: var(--soft);
	transition: transform 0.25s var(--ease);
}
.xl-machine[open] .xl-m-open {
	transform: rotate(180deg);
}
.xl-machine > summary:hover .xl-m-open {
	color: var(--gold-hi);
}
.xl-m-body {
	display: grid;
	gap: 18px;
	padding: 0 18px 22px;
}
@media (min-width: 640px) {
	.xl-machine > summary {
		padding: 20px 28px;
	}
	.xl-m-body {
		padding: 0 28px 28px;
	}
}
.xl-machine .sec-head {
	display: grid;
	gap: 6px;
}
.xl-machine .sec-head > * {
	margin: 0;
}
.xl-m-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.xl-pulse {
	display: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--live);
	box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0.6);
}
.xl-machine.live .xl-pulse {
	display: inline-block;
	animation: xl-pulse 1.6s infinite;
}
@keyframes xl-pulse {
	70% {
		box-shadow: 0 0 0 9px rgba(var(--live-rgb), 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0);
	}
}
.xl-k {
	margin: 0;
	color: var(--dim);
	font-size: var(--t-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.xl-rig {
	display: grid;
	gap: 14px;
	padding: 16px;
	border-radius: var(--r-lg);
	background: rgba(var(--void-rgb), 0.55);
}
@media (min-width: 720px) {
	.xl-rig {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 12px 24px;
	}
	.xl-rig-mod {
		grid-column: 1 / -1;
	}
}
.xl-rig-block {
	display: grid;
	gap: 2px;
}
.xl-block-n {
	font: 700 var(--d-2) / 1.1 var(--sans);
	font-variant-numeric: tabular-nums;
	color: var(--bone);
	text-decoration: none;
}
.xl-block-n:hover {
	color: var(--gold-hi);
}
.xl-hash-wrap {
	display: grid;
	gap: 6px;
	min-width: 0;
}
.xl-hash {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	gap: 3px;
	font: 600 var(--t-sm) / 1 var(--mono);
}
.xl-h {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 5px;
	color: color-mix(in oklab, var(--bone) calc(55% + var(--v, 0) * 45%), transparent);
	background: color-mix(
		in oklab,
		color-mix(in oklab, var(--bless) calc(100% - var(--v, 0) * 100%), var(--gold))
			calc(10% + var(--v, 0) * 30%),
		transparent
	);
	transition: background 0.3s;
}
.xl-rig-mod {
	margin: 0;
	color: var(--soft);
	font-size: var(--t-note);
	font-variant-numeric: tabular-nums;
}
.xl-rig-mod b {
	color: var(--bone);
}
.xl-gold,
.xl-rig-mod .xl-gold {
	color: var(--gold-hi);
}
.xl-tix-wrap {
	display: grid;
	gap: 8px;
}
.xl-tix {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.xl-tix li {
	position: relative;
	display: grid;
	place-items: center;
	height: 28px;
	border-radius: 7px;
	background: rgba(var(--bone-rgb), 0.05);
	color: var(--dim);
	font: 600 var(--t-xs) / 1 var(--sans);
	font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
	.xl-tix {
		grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
		gap: 6px;
	}
	.xl-tix li {
		height: 34px;
		border-radius: 8px;
	}
}
.xl-tix li.won {
	background: linear-gradient(160deg, var(--gold-hi), var(--gold));
	color: var(--ink);
	box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.45);
	animation: xl-win 0.5s var(--ease) both;
}
.xl-tix li.won::after {
	content: attr(data-place);
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: var(--r-pill);
	background: var(--void);
	color: var(--gold-hi);
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}
@keyframes xl-win {
	from {
		background: rgba(var(--bone-rgb), 0.05);
		color: var(--dim);
		box-shadow: none;
		transform: scale(0.85);
	}
	60% {
		transform: scale(1.12);
	}
	to {
		transform: none;
	}
}
.xl-places {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.xl-places li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 12px;
	border-radius: var(--r-md);
	background: rgba(var(--bone-rgb), 0.04);
}
.xl-place {
	min-width: 3.2ch;
	color: var(--gold-hi);
	font: 600 italic var(--t-lead) / 1 var(--serif);
}
.xl-place-t {
	display: grid;
	gap: 2px;
	flex: 1 1 180px;
	min-width: 0;
}
.xl-place-t b {
	color: var(--bone);
	font-size: var(--t-ui);
}
.xl-place-t small {
	color: var(--dim);
	font: var(--t-xs) / 1.3 var(--mono);
	overflow-wrap: anywhere;
}
.xl-math {
	color: var(--soft);
	font-size: var(--t-note);
	line-height: 1.55;
}
.xl-math ol {
	margin: 8px 0 10px;
	padding-left: 20px;
}
.xl-math p {
	margin: 0;
}
@media (prefers-reduced-motion: reduce) {
	.xl-tix li.won,
	.xl-machine.live .xl-pulse {
		animation: none;
	}
}

/* The skeletons while the page reads: the clock, the check (a list's), the
   steps and the folded draw (a drop's), whose hash cells light in a wave. */
.xl-wait {
	display: grid;
	gap: 32px;
}
.xl-wait .xl-for-drop,
.xl-wait .xl-for-list {
	display: none;
}
.xl[data-kind="drop"] .xl-wait .xl-for-drop,
.xl[data-kind="list"] .xl-wait .xl-for-list {
	display: grid;
}
.xl[data-kind="drop"] .xl-wait .xl-w-s:nth-child(4) {
	display: none;
}
.xl-wait .xl-clock small {
	margin-top: 6px;
}
.xl-wait .xl-bar span {
	width: 100%;
	border-radius: var(--r-pill);
}
.xl-w-h {
	--w: 45%;
	height: 1.6em;
}
.xl-w-in {
	height: 48px;
	border-radius: var(--r-pill);
}
.xl-w-s {
	gap: 8px;
}
.xl-w-ic {
	width: 36px;
	height: 36px;
}
.xl-w-art {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-md);
}
.xl-w-sum {
	display: grid;
	gap: 10px;
	padding: 18px;
}
.xl-w-hash {
	max-width: 260px;
	gap: 2px;
}
.xl-w-hash .xl-h {
	border-radius: 3px;
	animation: xl-scan 1.8s ease-in-out infinite;
	animation-delay: calc(var(--c, 0) * 70ms);
}
@keyframes xl-scan {
	0%,
	100% {
		background: rgba(var(--bless-rgb), 0.08);
	}
	35% {
		background: rgba(var(--gold-rgb), 0.4);
	}
}
.xl-w-hash .xl-h:nth-child(2) {
	--c: 1;
}
.xl-w-hash .xl-h:nth-child(3) {
	--c: 2;
}
.xl-w-hash .xl-h:nth-child(4) {
	--c: 3;
}
.xl-w-hash .xl-h:nth-child(5) {
	--c: 4;
}
.xl-w-hash .xl-h:nth-child(6) {
	--c: 5;
}
.xl-w-hash .xl-h:nth-child(7) {
	--c: 6;
}
.xl-w-hash .xl-h:nth-child(8) {
	--c: 7;
}
.xl-w-hash .xl-h:nth-child(9) {
	--c: 8;
}
.xl-w-hash .xl-h:nth-child(10) {
	--c: 9;
}
.xl-w-hash .xl-h:nth-child(11) {
	--c: 10;
}
.xl-w-hash .xl-h:nth-child(12) {
	--c: 11;
}
.xl-w-hash .xl-h:nth-child(13) {
	--c: 12;
}
.xl-w-hash .xl-h:nth-child(14) {
	--c: 13;
}
.xl-w-hash .xl-h:nth-child(15) {
	--c: 14;
}
.xl-w-hash .xl-h:nth-child(16) {
	--c: 15;
}
@media (prefers-reduced-motion: reduce) {
	.xl-w-hash .xl-h {
		animation: none;
		background: rgba(var(--gold-rgb), 0.11);
	}
}
