/**
 * LunaSpin (/spin/ and /spin/<id>/): make a wheel, the build window, the spin
 * and the certificate. Builds on games.css (.mlg, panels, buttons) and takes
 * the ticket card's Cinzel / Cormorant faces (ticket-card.css) for the
 * certificate. Markup: inc/lunaspin-page.php; script: assets/js/lunaspin.js.
 */

.mls {
	--ls-display: "Lunardraw Cinzel", Cinzel, "Times New Roman", serif;
	--ls-serif: "Lunardraw Cormorant", "Cormorant Garamond", Georgia, serif;
	--ls-card: #0b1030;
	--ls-moon: #f3e9c6;
	--ls-crater: #e2d4a6;
	display: flex;
	flex-direction: column;
	gap: var(--ml-s6);
}

.mls [hidden] { display: none !important; }
.mls-mono { font-family: var(--ml-mono); overflow-wrap: anywhere; }
.mls-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ml-s3); }

/* ------------------------------------------------------------ backdrop (the wheel works over the city) */
body.ml-spin-page::before {
	background-image: url("../images/spin-bg.webp?v=1");
	background-image: image-set(url("../images/spin-bg.webp?v=1") 1x, url("../images/spin-bg@2x.webp?v=1") 2x);
}

.mls .mls-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mls-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ml-muted); }
.mls-center { text-align: center; }

/* ------------------------------------------------------------ hero */
.mls-hero { display: flex; flex-direction: column; gap: var(--ml-s3); max-width: 640px; padding-top: var(--ml-s4); }
.mls-kicker { margin: 0; display: flex; align-items: center; gap: var(--ml-s3); font: 600 12px var(--ml-sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--ml-ink); }
.mls-kicker::before, .mls-kicker::after { content: ""; width: 32px; height: 1px; background: rgba(var(--ml-ink-rgb), 0.5); }
.mls-wordmark {
	/* in the Lunardraw wordmark's own style: the Silkscreen pixel face, bold, spaced out */
	margin: 0;
	font: 700 clamp(34px, 7.4vw, 92px)/1 var(--ml-pixel);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}
/* LUNA in the Lunardraw violet, SPIN in a pink glow: one family, its own product */
.mls-wm-a { background: linear-gradient(180deg, #c9b6ff 0%, #a385ff 45%, #8a5cf9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mls-wm-b { background: linear-gradient(180deg, #ffc2f0 0%, #ff6fe0 55%, #d23cc0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mls-tagline { margin: 0; font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--ml-sans); color: var(--ml-ink); }
.mls-kicker, .mls-tagline, .mls-sub { text-shadow: 0 2px 10px rgba(2, 4, 13, 0.95), 0 0 2px rgba(2, 4, 13, 0.9); }
.mls-wordmark { filter: drop-shadow(0 0.06em 0 rgba(26, 8, 64, 0.95)) drop-shadow(0 0 18px rgba(138, 92, 249, 0.45)); } /* a hard pixel shadow, then a soft violet glow */
.mls-sub { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.55; color: rgba(var(--ml-ink-rgb), 0.85); }
.mls-sim {
	margin: var(--ml-s2) 0 0;
	padding: var(--ml-s2) var(--ml-s3);
	border: 1px solid rgba(var(--ml-gold-rgb), 0.45);
	border-radius: var(--ml-r-sm);
	background: rgba(var(--ml-panel-rgb), 0.85);
	font-size: 13px;
	line-height: 1.5;
	color: var(--ml-ink);
}
.mls-sim strong { color: var(--ml-gold); font-weight: 600; }
.mls-sim-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ml-gold); vertical-align: 1px; }

.mls-error {
	margin: 0;
	padding: var(--ml-s3) var(--ml-s4);
	border-radius: var(--ml-r-sm);
	border: 1px solid var(--ml-alert);
	background: var(--ml-raised);
	color: var(--ml-ink);
}

/* ------------------------------------------------------------ make a wheel */
.mls-make { display: flex; flex-wrap: wrap; gap: var(--ml-s8); align-items: flex-start; }
.mls-form {
	flex: 1 1 440px;
	max-width: 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.55);
	border-radius: 16px;
	background: rgba(14, 12, 44, 0.86);
	box-shadow: 0 0 0 1px rgba(var(--ml-violet-rgb), 0.15), 0 0 28px rgba(var(--ml-violet-rgb), 0.35);
}
.mls-form-title { margin: 0 0 4px; padding-bottom: 16px; border-bottom: 1px solid rgba(var(--ml-violet-bright-rgb), 0.25); display: flex; align-items: center; gap: 12px; font: 700 26px/1.2 var(--ml-sans); color: var(--ml-ink); }
.mls-form-title .mls-i { width: 30px; height: 30px; color: var(--ml-violet-bright); }
.mls-make-side { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: var(--ml-s6); align-items: center; }
.mls-side { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--ml-s6); }

.mls-field { display: flex; flex-direction: column; gap: var(--ml-s2); border: 0; margin: 0; padding: 0; min-width: 0; }
.mls-field > label, .mls-field legend, .mls-row > label:not(.mls-ghost-btn) {
	padding: 0;
	font: 600 14px var(--ml-sans);
	color: var(--ml-ink);
}
.mls-field legend { margin-bottom: var(--ml-s2); }
.mls input[type="text"], .mls input[type="number"], .mls textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.45);
	border-radius: 8px;
	background: rgba(4, 6, 22, 0.85);
	color: var(--ml-ink);
	font: 14px/20px var(--ml-sans);
}
.mls textarea { resize: vertical; font-family: var(--ml-mono); }
.mls input::placeholder, .mls textarea::placeholder { color: rgba(var(--ml-muted-rgb), 0.7); }
.mls input:focus-visible, .mls textarea:focus-visible, .mls button:focus-visible, .mls a:focus-visible, .mls-segs label:focus-within, .mls-pair label:focus-within, .mls-ghost-btn:focus-within {
	outline: none;
	box-shadow: 0 0 0 2px var(--ml-cyan);
}
.mls-count { font-size: 12px; color: var(--ml-muted); }
.mls-csv-row { justify-content: flex-start; flex-wrap: nowrap; }
.mls-ghost-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.45);
	border-radius: 8px;
	background: rgba(var(--ml-raised-rgb), 0.7);
	color: var(--ml-ink);
	font: 600 13px var(--ml-sans);
	cursor: pointer;
}
.mls-ghost-btn .mls-i { width: 17px; height: 17px; }
.mls-winners input { width: 90px; }

/* joined mode buttons */
.mls-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.35); border-radius: 8px; overflow: hidden; background: rgba(4, 6, 22, 0.6); }
.mls-segs > * {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 4px 6px;
	border-left: 1px solid rgba(var(--ml-violet-bright-rgb), 0.25);
	font: 500 13px/1.2 var(--ml-sans);
	text-align: center;
	color: var(--ml-ink);
	cursor: pointer;
}
.mls-segs > *:first-child { border-left: 0; }
.mls-segs input { position: absolute; opacity: 0; pointer-events: none; }
.mls-segs label:has(input:checked) { background: linear-gradient(180deg, #7a45f5, #5b2fd6); box-shadow: inset 0 0 0 1px #b99bff; color: #fff; }
.mls-segs .is-soon, .mls-segs .is-off { color: var(--ml-muted); cursor: not-allowed; font-size: 12px; }
.mls-segs small { margin-top: 2px; padding: 0 6px; border-radius: 99px; background: rgba(var(--ml-muted-rgb), 0.2); font-size: 10px; line-height: 14px; }
@media (max-width: 520px) { .mls-segs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mls-segs > :nth-child(4) { border-left: 0; } .mls-segs > :nth-child(n+4) { border-top: 1px solid rgba(var(--ml-violet-bright-rgb), 0.25); } }

/* two-way toggles with icons */
.mls-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ml-s3); }
.mls-pair label { position: relative; cursor: pointer; }
.mls-pair input { position: absolute; opacity: 0; pointer-events: none; }
.mls-pair label > span {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.4);
	border-radius: 8px;
	background: rgba(4, 6, 22, 0.6);
	font: 500 14px var(--ml-sans);
	color: var(--ml-ink);
}
.mls-pair label:has(input:checked) > span { border-color: #b99bff; background: linear-gradient(180deg, rgba(122, 69, 245, 0.75), rgba(91, 47, 214, 0.75)); box-shadow: 0 0 14px rgba(var(--ml-violet-rgb), 0.45); }
.mls-pair label:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }

.mls-note { display: flex; gap: 12px; padding: 14px 0 0; border-top: 1px solid rgba(var(--ml-violet-bright-rgb), 0.2); font-size: 12px; line-height: 1.5; color: var(--ml-muted); }
.mls-note .mls-i { width: 26px; height: 26px; color: var(--ml-violet-bright); }
.mls-note strong { display: block; margin-bottom: 2px; font: 600 14px var(--ml-sans); color: var(--ml-ink); }

.mls-lock {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	border: 1px solid #c4a8ff;
	border-radius: 10px;
	background: linear-gradient(180deg, #9b5cff 0%, #7a39f0 55%, #6a2be0 100%);
	box-shadow: 0 0 22px rgba(var(--ml-violet-rgb), 0.6);
	color: #fff;
	font: 700 20px var(--ml-sans);
	cursor: pointer;
}
.mls-lock:hover { filter: brightness(1.08); }
.mls-lock:disabled { cursor: progress; filter: saturate(0.6); }
.mls-lock .mls-i { width: 24px; height: 24px; }

/* the preview card */
.mls-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 520px;
	padding: 20px 24px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.5);
	border-radius: 14px;
	background: rgba(14, 12, 44, 0.86);
	box-shadow: 0 0 22px rgba(var(--ml-violet-rgb), 0.3);
}
.mls-prev-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 17px var(--ml-sans); color: var(--ml-ink); }
.mls-prev-card h2 .mls-i { color: var(--ml-violet-bright); }
.mls-pill { padding: 4px 12px; border: 1px solid rgba(var(--ml-ink-rgb), 0.3); border-radius: 99px; font-size: 12px; color: var(--ml-ink); }
.mls-prev-body { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 22px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.18); border-radius: 10px; background: rgba(4, 6, 22, 0.5); font-size: 14px; line-height: 1.5; color: rgba(var(--ml-ink-rgb), 0.85); }
.mls-prev-body .mls-i { width: 44px; height: 44px; color: var(--ml-violet-bright); stroke-width: 1.4; }
.mls-prev-body p { margin: 0; }

/* how it's fair */
.mls-fair { margin-top: var(--ml-s6); }
.mls-fair > h2 { display: flex; align-items: center; justify-content: center; gap: var(--ml-s4); margin: 0 0 var(--ml-s6); font: 700 clamp(22px, 2.4vw, 28px) var(--ml-sans); color: var(--ml-ink); }
.mls-fair > h2::before, .mls-fair > h2::after { content: ""; flex: 0 1 220px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ml-violet-bright-rgb), 0.7)); }
.mls-fair > h2::after { transform: scaleX(-1); }
.mls-fair ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mls-fair li {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px 22px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.45);
	border-radius: 12px;
	background: rgba(14, 12, 44, 0.86);
}
.mls-fair li + li::before { content: "›"; position: absolute; left: -28px; top: 50%; transform: translateY(-50%); font: 300 30px var(--ml-sans); color: var(--ml-ink); }
.mls-fair li > .mls-i { width: 40px; height: 40px; color: var(--ml-ink); stroke-width: 1.5; }
.mls-fair h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font: 700 16px var(--ml-sans); color: var(--ml-ink); }
.mls-fair h3 span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid #b99bff; border-radius: 50%; font-size: 12px; color: #d9c8ff; }
.mls-fair p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(var(--ml-ink-rgb), 0.8); }
@media (max-width: 900px) { .mls-fair ol { grid-template-columns: minmax(0, 1fr); gap: 14px; } .mls-fair li + li::before { display: none; } }

/* ------------------------------------------------------------ the wheel */
.mls-wheel-box { display: flex; justify-content: center; width: 100%; }
.mls-stagebox { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--ml-s3); }
.mls-wheel { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; }
.mls-wheel.is-big { max-width: 620px; }
.mls-wheel > svg:not(.mls-pointer), .mls-spinner { position: absolute; inset: 0; width: 100%; height: 100%; }
.mls-rim-svg { filter: drop-shadow(0 0 18px rgba(166, 92, 255, 0.55)); }
.mls-rim-out { fill: var(--mls-rim-fill, #1a1446); stroke: var(--mls-rim-edge, #3a2f8a); stroke-width: 4; }
.mls-rim-band { fill: none; stroke: #0b0a26; stroke-width: 26; }
.mls-rim-in { fill: #080720; stroke: var(--mls-rim-line, #6d4fe0); stroke-width: 3; }
.mls-lamps rect { fill: var(--mls-lamp-a, #ff6fe0); }
.mls-lamps-b rect { fill: var(--mls-lamp-b, #b98bff); }
.mls-lamps-a { animation: mls-chase 1.4s steps(2, jump-none) infinite; }
.mls-lamps-b { animation: mls-chase 1.4s steps(2, jump-none) infinite reverse; }
.is-spinning .mls-lamps-a, .is-spinning .mls-lamps-b { animation-duration: 0.35s; }
@keyframes mls-chase { from { opacity: 1; } to { opacity: 0.35; } }
.mls-spinner { will-change: transform; }
.mls-spinner.is-turning, .mls-reel-strip.is-turning { transition: transform 6s cubic-bezier(0.12, 0.72, 0.1, 1); }
.mls-spinner svg { display: block; width: 100%; height: 100%; }
.mls-seg { stroke: var(--mls-seam, rgba(220, 205, 255, 0.55)); stroke-width: 1.5; }
.mls-seg-t { fill: var(--seg-ink, #fff); font-family: var(--ml-sans); font-weight: 700; text-anchor: middle; }
.is-win .mls-seg { fill: var(--ml-gold); }
.is-win .mls-seg-t { fill: var(--ml-void); }
.is-light .is-win .mls-seg { fill: #fff; }
.mls-hub-glow { fill: none; stroke: var(--mls-ring, #a463ff); stroke-opacity: 0.35; stroke-width: 14; }
.mls-hub { fill: var(--mls-hub-fill, #120f38); stroke: var(--mls-ring, #a463ff); stroke-width: 6; }
.mls-hub-ring { fill: none; stroke: var(--mls-ring, #a463ff); stroke-width: 6; }
.mls-pointer { position: absolute; left: 50%; top: -1.5%; width: 9.5%; height: auto; transform: translateX(-50%); z-index: 2; overflow: visible; }
.mls-pointer-glow { fill: none; stroke: rgba(232, 184, 62, 0.35); stroke-width: 10; stroke-linejoin: round; }
.mls-pointer-f { fill: #f2b632; stroke: #8a5a08; stroke-width: 2.5; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
	.mls-spinner.is-turning, .mls-reel-strip.is-turning { transition: none; }
	.mls-lamps-a, .mls-lamps-b { animation: none; }
}

.mls-balls { width: 100%; max-width: 640px; margin-inline: auto; }
/* no box: the machine is see-through around its edge and stands straight on the page behind it */
.mls-balls canvas { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 1086; }
.mls-stage.is-wide .mls-balls { max-width: 640px; }

.mls-reel {
	position: relative;
	width: min(520px, 100%);
	height: 420px;
	overflow: hidden;
	border: 2px solid var(--ml-electric);
	border-radius: var(--ml-r-md);
	background: var(--ml-panel);
	box-shadow: 0 0 20px rgba(var(--ml-electric-rgb), 0.7);
}
.mls-reel-band { position: absolute; left: 0; right: 0; top: 182px; height: 56px; border-block: 2px solid var(--ml-gold); background: var(--ml-raised); }
.mls-reel-strip { position: relative; }
.mls-reel-row { height: 56px; display: flex; align-items: center; justify-content: center; padding: 0 var(--ml-s4); font: 22px var(--ml-mono); color: var(--ml-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mls-reel-row.is-win { color: var(--ml-gold); }

/* ------------------------------------------------------------ the moon */
.mls-moon {
	position: absolute;
	right: -18px;
	top: -18px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 36% 42%, var(--ls-crater) 0 7%, transparent 7.5%),
		radial-gradient(circle at 58% 62%, var(--ls-crater) 0 9%, transparent 9.5%),
		radial-gradient(circle at 62% 32%, var(--ls-crater) 0 4.5%, transparent 5%),
		var(--ls-moon);
	pointer-events: none;
}
.mls-moon-sm { position: static; width: 56px; height: 56px; flex: none; }
.mls-moon-lg { width: 200px; height: 200px; right: -40px; top: -40px; }

/* ------------------------------------------------------------ build window */
.mls-build {
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--ml-violet);
	border-radius: var(--ml-r-md);
	background: var(--ml-panel-bg);
	box-shadow: 0 0 16px rgba(var(--ml-violet-rgb), 0.5);
	overflow: hidden;
}
.mls-build-card { flex: 1 1 380px; min-width: 0; padding: var(--ml-s6); display: flex; flex-direction: column; gap: var(--ml-s4); border-right: 1px solid var(--ml-line); }
.mls-build-id { font-family: var(--ml-mono); letter-spacing: 0.08em; }
.mls-live { font-family: var(--ml-mono); font-size: 13px; color: var(--ml-live); }
.mls-cardlet {
	position: relative;
	overflow: hidden;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--ml-s4);
	padding: 28px;
	border: 1px solid var(--ml-gold);
	border-radius: var(--ml-r-md);
	background: var(--ls-card);
}
.mls-cert-kicker { position: relative; font-family: var(--ls-display); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ml-gold); }
.mls-cardlet-title { position: relative; max-width: 330px; font: 600 30px/34px var(--ls-serif); color: var(--ml-ink); }
.mls-facts { margin: 0; display: flex; flex-wrap: wrap; gap: var(--ml-s4) var(--ml-s6); font: 18px var(--ls-serif); }
.mls-facts div { display: flex; flex-direction: column; }
.mls-facts dt { font: 600 11px var(--ls-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ml-muted); }
.mls-facts dd { margin: 0; }
.mls-slot { display: flex; flex-direction: column; align-items: center; gap: var(--ml-s1); padding: 20px; border: 1px dashed var(--ml-gold); border-radius: var(--ml-r-sm); text-align: center; }
.mls-slot-k { font: 600 13px var(--ls-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ml-gold); }
.mls-slot-v { font: italic 22px var(--ls-serif); }

.mls-build-steps { flex: 1 1 420px; min-width: 0; padding: var(--ml-s6) var(--ml-s8); display: flex; flex-direction: column; gap: var(--ml-s4); }
.mls-build-head { justify-content: flex-start; flex-wrap: nowrap; }
.mls-build-title { margin: 0 0 var(--ml-s1); font-family: var(--ml-pixel); font-weight: 400; font-size: 20px; line-height: 24px; letter-spacing: 0.04em; text-transform: uppercase; }
.mls-steps, .mls-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--ml-s1); }
.mls-steps li, .mls-ticks li { display: flex; gap: 14px; padding: 10px 12px; border-radius: var(--ml-r-sm); }
.mls-steps li > span:last-child, .mls-ticks li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mls-step-t { font-family: var(--ml-mono); font-size: 15px; letter-spacing: 0.04em; color: var(--ml-muted); }
.mls-step-d { font-size: 13px; line-height: 18px; color: var(--ml-muted); }
.mls-steps li.is-done .mls-step-t, .mls-steps li.is-wait .mls-step-t { color: var(--ml-ink); }
.mls-steps li.is-wait { background: var(--ml-raised); }
.mls-steps li.is-fail .mls-step-t { color: var(--ml-alert); }

.mls-ico { display: none; flex: none; width: 20px; height: 20px; margin-top: 1px; }
.mls-ico svg { width: 20px; height: 20px; display: block; }
.mls-ico-done circle { fill: var(--ml-live); }
.mls-ico-done path, .mls-ico-fail path, .mls-ico-sim path { fill: none; stroke: var(--ml-void); stroke-width: 2.2; }
.mls-ico-todo circle { fill: none; stroke: var(--ml-line); stroke-width: 2; }
.mls-ico-fail circle { fill: var(--ml-alert); }
.mls-ico-sim circle { fill: var(--ml-muted); }
.mls-ico-wait { box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ml-line); border-top-color: var(--ml-cyan); animation: mls-rot 900ms linear infinite; }
@keyframes mls-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mls-ico-wait { animation: none; border-color: var(--ml-cyan); } }
li.is-done > .mls-ico-done, li.is-wait > .mls-ico-wait, li.is-todo > .mls-ico-todo, li.is-fail > .mls-ico-fail, li.is-sim > .mls-ico-sim { display: block; }
li:not([class]) > .mls-ico-todo { display: block; }

.mls-share-now, .mls-receipts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ml-s3);
	padding: var(--ml-s3) var(--ml-s4);
	border: 1px solid var(--ml-line);
	border-radius: var(--ml-r-sm);
	background: var(--ml-raised);
	font-size: 14px;
}
.mls-share-now > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mls-share-k { font-family: var(--ml-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ml-gold); }
.mls-slow, .mls-void { margin: 0; padding: 10px 12px; border-radius: var(--ml-r-sm); background: var(--ml-tile); font-size: 14px; }
.mls-void { border: 1px solid var(--ml-muted); }

/* ------------------------------------------------------------ the spin */
.mls-stage { display: flex; flex-wrap: wrap; gap: var(--ml-s8); align-items: center; }
.mls-stage-wheel { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: var(--ml-s3); text-align: center; }
.mls-stage-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--ml-s6); }
.mls-winner {
	display: flex;
	flex-direction: column;
	gap: var(--ml-s3);
	padding: var(--ml-s6);
	border: 1px dashed var(--ml-line);
	border-radius: var(--ml-r-md);
	background: var(--ml-panel-bg);
}
.mls-winner.is-in { border: 1px solid var(--ml-gold); animation: mls-pop 500ms ease-out both; }
@keyframes mls-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mls-winner.is-in { animation: none; } }
.mls-winner-k { font-family: var(--ml-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ml-gold); }
.mls-winner-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--ml-s2); max-height: 360px; overflow: auto; }
.mls-winner-list li { display: flex; flex-direction: column; }
.mls-winner-list li:first-child .mls-wn { font-family: var(--ml-mono); font-size: clamp(32px, 5vw, 60px); line-height: 1.1; color: var(--ml-gold); text-shadow: 0 0 24px rgba(var(--ml-gold-rgb), 0.6); overflow-wrap: anywhere; }
.mls-winner-list .mls-wn { font-family: var(--ml-mono); font-size: 20px; color: var(--ml-ink); overflow-wrap: anywhere; }
.mls-wm { font-size: 13px; color: var(--ml-muted); }

/* ------------------------------------------------------------ the certificate */
.mls-cert-view { display: flex; flex-direction: column; gap: var(--ml-s6); }
.mls-cert-row { display: flex; flex-wrap: wrap; gap: var(--ml-s6); align-items: stretch; }
@font-face {
	font-family: "Lunardraw Cormorant";
	src: url("../fonts/CormorantGaramond-500-italic.woff2") format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}
.mls-cert [hidden] { display: none !important; }
.mls-cert {
	--cert-gold: #f2c75c;
	--cert-lilac: #b9a6ff;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	flex: 3 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 40px 44px 30px;
	border: 1.5px solid rgba(178, 140, 255, 0.85);
	border-radius: 28px;
	background:
		linear-gradient(100deg, rgba(5, 4, 18, 0.72) 0%, rgba(5, 4, 18, 0.45) 45%, rgba(5, 4, 18, 0) 75%),
		linear-gradient(0deg, rgba(5, 4, 18, 0.55) 0%, rgba(5, 4, 18, 0) 30%),
		url("../images/cert-bg.webp") 78% 0 / cover no-repeat,
		#07061a;
	box-shadow: 0 0 0 1px rgba(122, 69, 245, 0.25), 0 0 34px rgba(150, 100, 255, 0.45), inset 0 0 40px rgba(122, 69, 245, 0.12);
	color: #ece8ff;
	font-family: var(--ls-serif);
}
/* the Lunardraw logo, as in the site header: the Silkscreen pixel face, bold, violet, spaced out */
.mls-cert-brand { display: flex; align-items: center; font: 700 clamp(18px, 2.6vw, 24px)/1.2 var(--ml-pixel); letter-spacing: 0.08em; text-transform: uppercase; color: #8a5cf9; filter: drop-shadow(0 2px 0 rgba(10, 4, 34, 0.9)); }
.mls-cert-head { margin: 4px 0 0; font: 600 clamp(26px, 4.4vw, 46px)/1.05 var(--ls-display); letter-spacing: 0.06em; text-transform: uppercase; color: #e4dcff; text-shadow: 0 0 18px rgba(170, 140, 255, 0.35); }
.mls-cert-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.mls-pill-gold, .mls-cert .mls-badge {
	padding: 5px 18px;
	border-radius: 999px;
	font: 600 14px var(--ls-display);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.mls-pill-gold { border: 1.5px solid var(--cert-gold); color: var(--cert-gold); }
.mls-cert .mls-badge { border: 1.5px solid rgba(185, 166, 255, 0.6); background: rgba(122, 69, 245, 0.35); color: #e4dcff; font-size: 12px; padding-top: 6px; }
.mls-cert .mls-badge.is-fail { border-color: var(--ml-alert); background: rgba(255, 90, 90, 0.2); color: #ffd0d0; }
.mls-cert-title { margin: 0; max-width: 620px; font: 600 clamp(30px, 4.6vw, 52px)/1.1 var(--ls-serif); color: #fbf8ff; overflow-wrap: anywhere; }
.mls-cert-win {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	margin-top: 4px;
	padding: 16px 34px;
	border: 1.5px solid rgba(242, 199, 92, 0.9);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(40, 28, 70, 0.6), rgba(18, 12, 44, 0.6));
	box-shadow: 0 0 24px rgba(242, 199, 92, 0.35), inset 0 0 18px rgba(242, 199, 92, 0.12);
}
.mls-cert-k { padding-right: 18px; border-right: 1px solid rgba(242, 199, 92, 0.45); font: 600 15px var(--ls-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--cert-gold); }
.mls-cert-name { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.mls-cert-name > span {
	min-width: 0;
	font: 700 clamp(40px, 6vw, 74px)/1.05 var(--ls-serif);
	background: linear-gradient(180deg, #fff1bf 0%, #f2c75c 45%, #c98d1c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 14px rgba(242, 199, 92, 0.45));
	overflow-wrap: anywhere;
	text-align: center;
}
.mls-laurel { flex: none; width: 26px; height: 52px; fill: var(--cert-gold); stroke: var(--cert-gold); stroke-width: 1.2; }
.mls-laurel path:first-child { fill: none; }
.mls-laurel.is-r { transform: scaleX(-1); }
.mls-cert-entry { padding-left: 18px; border-left: 1px solid rgba(242, 199, 92, 0.45); font: italic 500 24px var(--ls-serif); color: #efeaff; white-space: nowrap; }
.mls-cert .mls-cert-names { margin: 0 34px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: w 1; }
.mls-cert .mls-cert-names li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; counter-increment: w; }
.mls-cert .mls-cert-names li::before { content: counter(w) "."; min-width: 1.6em; font: 600 16px var(--ls-display); color: var(--cert-lilac); }
.mls-cert .mls-cert-names .mls-wn { font: 600 26px/1.15 var(--ls-serif); color: var(--cert-gold); overflow-wrap: anywhere; }
.mls-cert .mls-cert-names .mls-wm { font: italic 18px var(--ls-serif); color: #cfc6f2; }
.mls-cert-rule { display: flex; align-items: center; gap: 14px; color: var(--cert-gold); margin: 6px 0 0; }
.mls-cert-rule::before, .mls-cert-rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 199, 92, 0.7), transparent); }
.mls-cert-rule span { font-size: 18px; text-shadow: 0 0 10px rgba(242, 199, 92, 0.8); }
.mls-cert-spinbox { display: flex; flex-direction: column; gap: 2px; }
.mls-cert-spin { font: 600 clamp(22px, 3vw, 34px) var(--ls-display); letter-spacing: 0.03em; text-transform: uppercase; color: #ece8ff; }
.mls-cert-sub { font: 20px var(--ls-serif); color: var(--cert-lilac); }
.mls-cert .mls-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 4px 0 0; padding-bottom: 18px; border-bottom: 1px solid rgba(242, 199, 92, 0.45); font: 500 22px var(--ls-serif); }
.mls-cert .mls-facts div { padding: 0 40px; border-left: 1px solid rgba(185, 166, 255, 0.35); }
.mls-cert .mls-facts div:first-child { padding-left: 0; border-left: 0; }
.mls-cert .mls-facts dt { margin-bottom: 4px; font: 600 13px var(--ls-display); letter-spacing: 0.2em; color: var(--cert-lilac); }
.mls-cert-times { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.mls-cert-when { display: flex; flex-direction: column; gap: 8px; padding-right: 24px; font: 21px var(--ls-serif); color: #efeaff; }
.mls-cert-when > span { display: flex; align-items: center; gap: 14px; }
.mls-cert-when svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--cert-lilac); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mls-result-pill { display: inline-flex; align-items: center; gap: 14px; padding: 10px 28px; border: 1.5px solid rgba(185, 166, 255, 0.8); border-radius: 999px; background: rgba(122, 69, 245, 0.18); font: 600 15px var(--ls-display); letter-spacing: 0.24em; text-transform: uppercase; color: #ece8ff; box-shadow: 0 0 16px rgba(150, 100, 255, 0.35); }
.mls-result-pill svg { width: 22px; height: 22px; fill: none; stroke: var(--cert-gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mls-result-pill.is-ok { border-color: rgba(52, 227, 162, 0.8); box-shadow: 0 0 16px rgba(52, 227, 162, 0.3); }
.mls-result-pill.is-ok svg { stroke: #34e3a2; }
.mls-result-pill.is-fail { border-color: var(--ml-alert); color: #ffd0d0; }
.mls-result-pill.is-fail svg, .mls-result-pill.is-gone svg { display: none; }
.mls-cert-note { margin: 0; padding-top: 14px; border-top: 1px solid rgba(185, 166, 255, 0.22); font: 17px/1.4 var(--ls-serif); color: var(--cert-lilac); }
.mls-cert-note:empty { display: none; }
.mls-cert-pow { display: flex; align-items: center; gap: 22px; margin-top: 4px; }
.mls-cert-pow::before, .mls-cert-pow::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 199, 92, 0.75)); }
.mls-cert-pow::after { background: linear-gradient(90deg, rgba(242, 199, 92, 0.75), transparent); }
.mls-cert-pow span { font: 600 14px var(--ls-display); letter-spacing: 0.3em; text-transform: uppercase; color: var(--cert-gold); }
@media (max-width: 700px) {
	.mls-cert { padding: 28px 22px 22px; border-radius: 22px; }
	.mls-cert {
		background:
			linear-gradient(180deg, rgba(5, 4, 18, 0.45) 0%, rgba(5, 4, 18, 0.55) 25%, #07061a 42%),
			url("../images/cert-bg-960.webp") 92% 0 / 260% auto no-repeat,
			#07061a;
	}
	.mls-cert-win { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 14px 18px; border-radius: 28px; text-align: center; }
	.mls-cert-k, .mls-cert-entry { padding: 0; border: 0; }
	.mls-cert .mls-cert-names { margin: 0 8px; }
	.mls-cert .mls-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.mls-cert .mls-facts div { padding: 0; border: 0; }
	.mls-cert-when { padding-right: 0; font-size: 18px; }
	.mls-cert-pow { gap: 12px; }
	.mls-cert-pow span { letter-spacing: 0.18em; font-size: 12px; }
}

.mls-seal { flex: 2 1 340px; min-width: 0; }
.mls-ticks li { background: var(--ml-raised); padding: var(--ml-s4); }
.mls-ticks .mls-step-t { color: var(--ml-ink); }
.mls-tick-by { font-family: var(--ml-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ml-muted); }
.mls-ticks li.is-done .mls-tick-by { color: var(--ml-live); }
.mls-ticks li.is-fail .mls-tick-by { color: var(--ml-alert); }

.mls-sharebar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--ml-s3); }
.mls-sharebar-t { margin-right: auto; font-family: var(--ml-mono); letter-spacing: 0.08em; text-transform: uppercase; }

.mls-proof { flex: 3 1 520px; min-width: 0; }
.mls-proof-list { margin: 0; }
.mls-proof-list > div { display: flex; align-items: center; gap: var(--ml-s3); padding: var(--ml-s2) 0; border-bottom: 1px solid var(--ml-line); }
.mls-proof-list > div:last-child { border-bottom: 0; }
.mls-proof-list dt { width: 160px; flex: none; font-family: var(--ml-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ml-muted); }
.mls-proof-list dd { margin: 0; flex: 1; min-width: 0; font-size: 13px; }
.mls-copy { min-width: 44px; min-height: 44px; border: 1px solid var(--ml-line); border-radius: var(--ml-r-sm); background: transparent; color: var(--ml-violet-bright); font: 11px var(--ml-mono); letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
.mls-h3 { margin: var(--ml-s4) 0 0; font-family: var(--ml-mono); font-weight: 400; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.mls-cmd { margin: 0; padding: var(--ml-s4); border: 1px solid var(--ml-line); border-radius: var(--ml-r-sm); background: var(--ml-void); color: var(--ml-electric-glow); font: 13px/20px var(--ml-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .mls-proof-list > div { flex-wrap: wrap; } .mls-proof-list dt { width: 100%; } }

.mls-entries summary { list-style: none; cursor: pointer; display: inline-flex; max-width: 100%; white-space: normal; text-align: left; }
.mls-gone { margin: 0; padding: var(--ml-s3) var(--ml-s4); border: 1px dashed var(--ml-muted); border-radius: var(--ml-r-sm); background: var(--ml-raised); font-size: 14px; line-height: 1.5; color: var(--ml-ink); }
.mls-entries summary::-webkit-details-marker { display: none; }
.mls-entries ol { margin: var(--ml-s3) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--ml-s2); max-height: 420px; overflow: auto; counter-reset: e; }
.mls-entries li { counter-increment: e; padding: var(--ml-s2); border-radius: var(--ml-r-xs); background: var(--ml-raised); font-size: 13px; overflow-wrap: anywhere; }
.mls-entries li::before { content: counter(e, decimal-leading-zero) " "; color: var(--ml-muted); }
.mls-entries li.is-win { background: var(--ml-gold); color: var(--ml-void); }
.mls-entries li.is-win::before { color: var(--ml-void); }

.mls-amiin { display: flex; flex-direction: column; gap: var(--ml-s2); }
.mls-amiin label { font-family: var(--ml-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.mls-amiin-out { margin: 0; padding: var(--ml-s3); border-radius: var(--ml-r-sm); background: var(--ml-raised); font-size: 14px; }
.mls-amiin-out.is-yes { color: var(--ml-live); }
.mls-amiin-out.is-no { color: var(--ml-alert); }

.mls-hist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--ml-s2); }
.mls-hist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ml-s3); padding: var(--ml-s3); border-radius: var(--ml-r-sm); background: var(--ml-raised); font-size: 14px; }
.mls-hist-r.is-answered { color: var(--ml-gold); }
.mls-hist-r.is-void, .mls-hist-r.is-waiting { color: var(--ml-muted); }
.mls-danger.is-armed { border-color: var(--ml-alert); color: var(--ml-alert); }
.mls-legal { max-width: 880px; }

@media (max-width: 900px) {
	.mls-build-card { border-right: 0; border-bottom: 1px solid var(--ml-line); }
	.mls-build-steps { padding: var(--ml-s6); }
}

/* ---------------------------------------------------------- reveal gallery */
.mls-reveals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ml-s3); }
.mls-reveal { position: relative; cursor: pointer; min-width: 0; }
.mls-reveal.is-signature { grid-column: 1 / -1; }
.mls-reveal input { position: absolute; opacity: 0; pointer-events: none; }
.mls-reveal > span {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: auto auto auto;
	column-gap: 12px;
	align-items: center;
	height: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.4);
	border-radius: 10px;
	background: rgba(4, 6, 22, 0.6);
	color: var(--ml-ink);
}
.mls-reveal-art { grid-row: 1 / 4; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: rgba(var(--ml-violet-rgb), 0.18); }
.mls-reveal-art .mls-i { width: 26px; height: 26px; color: var(--ml-violet-bright); }
.mls-reveal-art canvas { width: 36px; height: 45px; image-rendering: pixelated; }
.mls-reveal-k { font: 500 10px var(--ml-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ml-muted); }
.mls-reveal strong { font: 600 14px var(--ml-sans); overflow-wrap: anywhere; }
.mls-reveal small { font-size: 12px; line-height: 1.35; color: var(--ml-muted); }
.mls-reveal.is-signature > span { grid-template-columns: 64px minmax(0, 1fr); background: linear-gradient(120deg, rgba(255, 111, 224, 0.14), rgba(100, 200, 242, 0.1) 60%, rgba(4, 6, 22, 0.6)); }
.mls-reveal.is-signature .mls-reveal-art { width: 64px; height: 56px; }
.mls-reveal.is-signature .mls-reveal-k { color: #ffd072; }
.mls-reveal.is-signature strong { font-size: 17px; }
.mls-reveal:has(input:checked) > span { border-color: #b99bff; background: linear-gradient(180deg, rgba(122, 69, 245, 0.7), rgba(91, 47, 214, 0.7)); box-shadow: 0 0 14px rgba(var(--ml-violet-rgb), 0.45); }
.mls-reveal:has(input:checked) small, .mls-reveal:has(input:checked) .mls-reveal-k { color: #e9e2ff; }
.mls-reveal:has(input:focus-visible) > span { outline: 2px solid var(--ml-cyan, #64c8f2); outline-offset: 2px; }
.mls-reveal.is-soon { cursor: not-allowed; opacity: 0.55; }
.mls-art-ufo::before { content: ""; width: 30px; height: 10px; border-radius: 50%; background: #64c8f2; box-shadow: 0 -6px 0 -1px #b47cff; }
.mls-art-claw::before { content: ""; width: 18px; height: 22px; border: 3px solid #ffd072; border-top-width: 8px; border-bottom: 0; border-radius: 2px 2px 8px 8px; }
@media (max-width: 380px) { .mls-reveals { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------- Moonling Mayhem */
.mls-moonlings { width: 100%; display: flex; flex-direction: column; gap: var(--ml-s2); }
.mls-moonlings canvas { display: block; width: 100%; height: auto; aspect-ratio: 960 / 420; border-radius: 12px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.35); image-rendering: pixelated; background: #0d0b2e; }
.mls-moonlings .mls-hint:empty { display: none; }
.mls-sample { align-self: center; margin-top: var(--ml-s3); }
.mls-stage.is-wide { flex-direction: column; align-items: stretch; }
.mls-stage.is-wide .mls-stage-wheel { flex: 1 1 auto; width: 100%; }
.mls-stage.is-wide .mls-wheel-big { max-width: none; width: 100%; }
.mls-stage.is-wide .mls-stage-side { flex: 1 1 auto; }
.mls-stage.is-wide { padding: var(--ml-s4); border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.25); border-radius: 16px; background: rgba(4, 6, 22, 0.78); backdrop-filter: blur(6px); gap: var(--ml-s6); }

/* ---------------------------------------------------------- wheel style */
.mls-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: var(--ml-s2); }
.mls-swatch { position: relative; cursor: pointer; }
.mls-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.mls-swatch > span { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.35); border-radius: 8px; background: rgba(4, 6, 22, 0.6); font: 500 13px var(--ml-sans); color: var(--ml-ink); }
.mls-swatch i { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.mls-swatch i.is-custom { background: conic-gradient(#ff5c5c, #ffd072, #5cff9a, #5cc8ff, #b05cff, #ff5c5c); }
.mls-swatch:has(input:checked) > span { border-color: #b99bff; background: rgba(122, 69, 245, 0.45); box-shadow: 0 0 12px rgba(var(--ml-violet-rgb), 0.4); }
.mls-swatch:has(input:focus-visible) > span { outline: 2px solid var(--ml-cyan, #64c8f2); outline-offset: 2px; }
.mls-custom { display: flex; flex-wrap: wrap; gap: var(--ml-s4); margin-top: var(--ml-s3); }
.mls-custom label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ml-muted); cursor: pointer; }
.mls-custom input[type="color"] { width: 44px; height: 32px; padding: 2px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.45); border-radius: 6px; background: rgba(4, 6, 22, 0.6); cursor: pointer; }
.mls-hubpick { display: flex; align-items: center; gap: var(--ml-s4); margin-top: var(--ml-s4); }
.mls-hub-k { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ml-muted); }
.mls-hub-thumb { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 3px solid #a463ff; background: #120f38; }
.mls-hub-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mls-opts { display: flex; flex-direction: column; gap: 10px; margin-top: var(--ml-s4); }
.mls-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mls-opt-k { min-width: 64px; font-size: 13px; color: var(--ml-muted); }
.mls-mini { display: inline-flex; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.4); border-radius: 8px; overflow: hidden; }
.mls-mini label { position: relative; cursor: pointer; }
.mls-mini label + label { border-left: 1px solid rgba(var(--ml-violet-bright-rgb), 0.3); }
.mls-mini input { position: absolute; opacity: 0; pointer-events: none; }
.mls-mini span { display: block; padding: 7px 12px; font: 500 13px var(--ml-sans); color: var(--ml-ink); background: rgba(4, 6, 22, 0.6); }
.mls-mini label:has(input:checked) span { background: rgba(122, 69, 245, 0.55); }
.mls-mini label:has(input:focus-visible) span { outline: 2px solid var(--ml-cyan, #64c8f2); outline-offset: -2px; }
.mls-opt-pick input[type="color"] { width: 44px; height: 32px; padding: 2px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.45); border-radius: 6px; background: rgba(4, 6, 22, 0.6); cursor: pointer; }
.mls-hub-logo { image-rendering: pixelated; }

/* ------------------------------------------------------------ spin page layout (1.68.0)
   On a spin page (.mls.is-spin-view) the big hero shrinks to a slim header; the stage puts the
   machine or wheel beside a side card (Moonling's wide race keeps the full width, card below);
   the certificate has its share actions and seal in a column beside it; the proof runs full width
   with the entries and history in a row of cards under it. */

/* the backdrop fills the screen here, darkening towards the bottom so panels read over it */
body.ml-spin-page::before { background-size: cover; background-position: center top; }
body.ml-spin-page::after {
	content: "";
	position: fixed;
	inset: 0;
	top: var(--ml-backdrop-top, 0px);
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(4, 5, 18, 0.1) 0%, rgba(4, 5, 18, 0.45) 50%, rgba(4, 5, 18, 0.82) 100%);
}

/* the slim header */
.mls-hero-new { display: none; }
.mls.is-spin-view .mls-hero { flex-direction: row; flex-wrap: wrap; align-items: center; max-width: none; gap: var(--ml-s2) var(--ml-s4); padding-top: var(--ml-s2); }
.mls.is-spin-view .mls-kicker,
.mls.is-spin-view .mls-sub { display: none; }
.mls.is-spin-view .mls-wordmark { font-size: clamp(24px, 3vw, 36px); }
.mls.is-spin-view .mls-tagline { font-size: 15px; font-weight: 600; color: rgba(var(--ml-ink-rgb), 0.85); }
.mls.is-spin-view .mls-hero-new { display: inline-flex; margin-left: auto; }
.mls.is-spin-view .mls-sim { flex: 1 1 100%; order: 5; max-width: 760px; padding: 6px 12px; font-size: 12px; }

/* the stage: the show on the left, a side card on the right */
.mls-stage:not(.is-wide) { align-items: center; gap: var(--ml-s8); }
.mls-stage:not(.is-wide) .mls-stage-wheel { flex: 3 1 460px; }
.mls-stage-side {
	padding: var(--ml-s6);
	gap: var(--ml-s4);
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.3);
	border-radius: 16px;
	background: rgba(4, 6, 22, 0.82);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.mls-stage.is-wide .mls-stage-side { padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.mls-stage-side > .mlg-panel-title { font: 700 22px/1.25 var(--ml-sans); color: var(--ml-ink); overflow-wrap: anywhere; }
.mls-stage-side .mls-winner { padding: var(--ml-s4); }
.mls-stage-side > .mls-row { justify-content: stretch; }
.mls-stage-side > .mls-row > .mlg-btn { flex: 1 1 0; justify-content: center; }
.mls-stage-side > .mls-row > [data-to-cert] { flex-basis: 100%; }
.mls-stage.is-wide .mls-stage-side > .mls-row > [data-to-cert] { flex-basis: auto; flex-grow: 2; }

/* the certificate, with its share actions and seal beside it */
.mls-cert-aside { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--ml-s6); }
.mls-cert-aside .mls-seal { flex: 1 1 auto; }
.mls-cert-aside .mls-sharebar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ml-s3); }
.mls-cert-aside .mls-sharebar-t,
.mls-cert-aside .mls-sharebar [data-copy-url],
.mls-cert-aside .mls-sharebar [data-watch] { grid-column: 1 / -1; }
.mls-cert-aside .mls-sharebar-t { margin: 0; font-size: 13px; }
.mls-cert-aside .mls-sharebar .mlg-btn { justify-content: center; text-align: center; }
.mls-cert-aside .mls-ticks li { padding: var(--ml-s3) var(--ml-s4); }

/* the proof full width (hashes fit on one line), the other panels in a row under it */
.mls-cert-view .mls-proof { flex: 1 1 100%; }
.mls-cert-view .mls-proof-list dt { width: 180px; }
.mls-cert-view .mls-side { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: var(--ml-s6); }
.mls-cert-view .mls-legal { margin: 0 auto; text-align: center; }
.mls-again { margin: 0; text-align: center; }
@media (max-width: 640px) {
	.mls.is-spin-view .mls-hero-new { margin-left: 0; }
	.mls-cert-aside .mls-sharebar { grid-template-columns: 1fr; }
}
/* the side card's words centred: the title, WINNER, the names and their entry lines */
.mls-stage-side > .mlg-panel-title { text-align: center; }
.mls-stage-side .mls-winner { align-items: center; text-align: center; }
.mls-stage-side .mls-winner-list { align-self: stretch; }
.mls-stage-side .mls-winner-list li { align-items: center; }

/* the certificate-to-be in the build window (1.70.0): the certificate's own card, scaled to the
   column, with "Waiting for the moon…" breathing in the gold band until the answer lands */
.mls-cert-pending { flex: none; gap: 14px; padding: 28px 30px 22px; border-radius: 24px; }
.mls-cert-pending .mls-cert-brand { font-size: 18px; }
.mls-cert-pending .mls-cert-head { font-size: clamp(22px, 2.4vw, 30px); }
.mls-cert-pending .mls-pill-gold { font-size: 12px; padding: 4px 14px; }
.mls-cert-pending .mls-cert-title { font-size: clamp(24px, 2.8vw, 34px); }
.mls-cert-pending .mls-cert-win { grid-template-columns: auto minmax(0, 1fr); padding: 12px 24px; gap: 14px; }
.mls-cert-pending .mls-cert-k { font-size: 13px; padding-right: 14px; }
.mls-cert-pending .mls-laurel { width: 20px; height: 40px; }
.mls-cert .mls-cert-name > .mls-cert-wait {
	font: italic 500 clamp(20px, 2.2vw, 26px)/1.2 var(--ls-serif);
	background: none;
	color: #e8dcff;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	filter: none;
	animation: mls-breathe 2.4s ease-in-out infinite;
}
@keyframes mls-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mls-cert .mls-cert-name > .mls-cert-wait { animation: none; } }
.mls-cert-pending .mls-facts { font-size: 18px; }
.mls-cert-pending .mls-cert-note { padding-top: 0; border-top: 0; font-family: var(--ml-mono); font-size: 12px; color: var(--cert-lilac); overflow-wrap: anywhere; }
.mls-build-card { justify-content: flex-start; }
@media (max-width: 700px) {
	.mls-cert-pending { padding: 22px 18px 18px; }
	.mls-cert-pending .mls-cert-win { grid-template-columns: 1fr; justify-items: center; border-radius: 22px; }
	.mls-cert-pending .mls-cert-k { padding: 0 0 6px; border-right: 0; border-bottom: 1px solid rgba(242, 199, 92, 0.45); }
}

/* the build window's moon (1.70.2): the Lunardraw pixel moon ball, upright, its glow breathing while it waits */
.mls-build-moon {
	flex: none;
	width: 56px;
	height: 56px;
	image-rendering: pixelated;
	filter: drop-shadow(0 0 10px rgba(163, 133, 255, 0.6)) drop-shadow(0 0 22px rgba(138, 92, 249, 0.35));
	animation: mls-moon-glow 2.6s ease-in-out infinite;
}
@keyframes mls-moon-glow {
	0%, 100% { filter: drop-shadow(0 0 6px rgba(163, 133, 255, 0.45)) drop-shadow(0 0 14px rgba(138, 92, 249, 0.2)); }
	50% { filter: drop-shadow(0 0 12px rgba(163, 133, 255, 0.75)) drop-shadow(0 0 26px rgba(138, 92, 249, 0.45)); }
}
@media (prefers-reduced-motion: reduce) { .mls-build-moon { animation: none; } }


/* ------------------------------------------------------------------ the spin fits the screen (1.76.0)
   lunaspin.js (fitStage) adds .is-fit on desktops and laptops and sets --mls-show-h, the height
   left for the show under the header, so the show, the winner and the buttons need no scrolling.
   .is-fit-side: Moonling Mayhem with its side card beside the race instead of under it. */
.mls-stage.is-fit .mls-winner { min-height: var(--mls-win-min, 0px); justify-content: center; }
.mls-stage.is-fit .mls-winner-list { max-height: var(--mls-list-max, 360px); }
.mls-stage.is-fit .mls-moonlings canvas { width: min(100%, calc(var(--mls-show-h, 9999px) * 960 / 420)); margin-inline: auto; }
.mls-stage.is-fit .mls-balls { max-width: min(640px, calc(var(--mls-show-h, 9999px) * 1000 / 1086)); }
.mls-stage.is-fit .mls-wheel.is-big { max-width: min(620px, var(--mls-show-h, 9999px)); }

.mls-stage.is-wide.is-fit-side { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 24px; }
.mls-stage.is-wide.is-fit-side .mls-stage-wheel { flex: 1 1 0; width: auto; }
.mls-stage.is-wide.is-fit-side .mls-stage-side { flex: 0 0 320px; gap: var(--ml-s4); }
.mls-stage.is-wide.is-fit-side .mls-stage-side > .mls-row > [data-to-cert] { flex-basis: 100%; flex-grow: 1; }

/* a short window (a laptop): less air above the spin, and the test note on one line */
.mls.is-spin-view .mls-sim { max-width: none; }
@media (min-width: 900px) and (max-height: 820px) {
	body.ml-spin-page .ml-page:has(.mls.is-spin-view) { padding-top: var(--ml-s2); }
	.mls.is-spin-view .mls-hero { padding-top: 0; }
}

/* ---- one spin: its title is the heading (1.77.0) ----
   Wordmark left, the draw's own title in the middle, "Create another spin" right. The certificate
   view keeps the plain slim header, because the certificate carries the title itself. */
.mls-now { display: none; }
.mls.is-spin-view:not(.is-cert-view) .mls-hero { display: grid; grid-template-columns: 1fr minmax(0, auto) 1fr; align-items: center; gap: var(--ml-s2) var(--ml-s6); }
.mls.is-spin-view:not(.is-cert-view) .mls-tagline { display: none; }
.mls.is-spin-view:not(.is-cert-view) .mls-wordmark { grid-column: 1; justify-self: start; }
.mls.is-spin-view:not(.is-cert-view) .mls-now { grid-column: 2; display: block; min-width: 0; text-align: center; }
.mls.is-spin-view:not(.is-cert-view) .mls-hero-new { grid-column: 3; justify-self: end; margin-left: 0; }
.mls.is-spin-view:not(.is-cert-view) .mls-sim { grid-column: 1 / -1; }
.mls-now-title {
	margin: 0;
	font: 800 clamp(28px, 3.3vw, 46px)/1.08 var(--ml-sans);
	letter-spacing: -0.01em;
	color: var(--ml-ink);
	text-wrap: balance;
	overflow-wrap: anywhere;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	padding-bottom: 0.08em; /* room for descenders under the clamp */
	text-shadow: 0 2px 0 rgba(26, 8, 64, 0.9), 0 0 22px rgba(2, 4, 13, 0.95), 0 0 3px rgba(2, 4, 13, 0.9);
}
.mls.is-long-title .mls-now-title { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; }
.mls-now-meta { display: inline-block; margin: 6px 0 0; padding: 3px 12px; border-radius: 999px; font: 600 13px/1.3 var(--ml-sans); color: rgba(var(--ml-ink-rgb), 0.9); background: rgba(8, 6, 26, 0.72); }
/* a button you can read over the city */
.mls.is-spin-view .mls-hero-new { background: rgba(12, 9, 36, 0.9); border-color: var(--ml-violet); }
.mls.is-spin-view .mls-hero-new:hover { background: rgba(38, 24, 92, 0.95); border-color: var(--ml-violet-bright); }
/* narrow windows and phones: the wordmark and the button share a row (and wrap rather than collide), the title under them */
@media (max-width: 760px) {
	.mls.is-spin-view:not(.is-cert-view) .mls-hero { display: flex; flex-wrap: wrap; justify-content: space-between; }
	.mls.is-spin-view:not(.is-cert-view) .mls-now { flex: 1 1 100%; order: 3; }
}
@media (max-width: 480px) {
	.mls.is-spin-view:not(.is-cert-view) .mls-hero { column-gap: var(--ml-s3); }
	.mls.is-spin-view:not(.is-cert-view) .mls-wordmark { font-size: 20px; }
	.mls.is-spin-view .mls-hero-new { min-height: 36px; padding: 0 12px; font-size: 13px; }
}

/* ---- the make page, easier (1.79.0) ----
   Three numbered steps, the show's preview and the Lock & spin button side by side with the form
   (they stay on screen while the form scrolls), and the options most people never touch folded away. */
.mls:not(.is-spin-view) .mls-hero { gap: var(--ml-s2); max-width: 780px; padding-top: var(--ml-s2); }
.mls:not(.is-spin-view) .mls-wordmark { font-size: clamp(34px, 5vw, 64px); }
.mls:not(.is-spin-view) .mls-tagline { font-size: clamp(20px, 2.2vw, 26px); }
.mls:not(.is-spin-view) .mls-sub { max-width: 760px; font-size: 15px; line-height: 1.5; }
.mls:not(.is-spin-view) .mls-hero { margin-bottom: var(--ml-s2); }
/* Play sample sits on the corner of the preview, not under it */
.mls-make-side .mls-moonlings { position: relative; }
.mls-make-side .mls-sample { position: absolute; top: 10px; right: 10px; margin: 0; min-height: 34px; padding: 0 14px; font-size: 13px; background: rgba(12, 9, 36, 0.9); border-color: var(--ml-violet); }
.mls-make { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: var(--ml-s8); align-items: start; }
.mls-form { max-width: none; gap: 22px; }
.mls-make-side { position: sticky; top: 84px; gap: var(--ml-s4); } /* clear of the site's own sticky header */
.mls-make-side .mls-wheel { max-width: 430px; }
.mls-make-side .mls-balls { max-width: 370px; }
/* the steps */
.mls-part > legend, div.mls-part > .mls-row:first-child > label { display: flex; align-items: center; gap: 10px; font: 700 17px/1.25 var(--ml-sans); color: var(--ml-ink); }
.mls-step-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border: 1.5px solid #b99bff; border-radius: 50%; font: 700 13px var(--ml-sans); color: #d9c8ff; }
.mls-csv-row { flex-wrap: wrap; gap: var(--ml-s2); }
button.mls-ghost-btn { cursor: pointer; }
.mls-winners { justify-content: flex-start; align-items: center; }
.mls .mls-winners input[type="number"] { width: 88px; flex: none; }
.mls-winners .mls-hint { flex: 1 1 160px; }
.mls-titlebox { display: flex; flex-direction: column; gap: 6px; margin-top: var(--ml-s2); }
.mls-optional { margin-left: 4px; font-weight: 400; font-size: 12px; color: var(--ml-muted); }
.mls-segs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* the shows: five small tiles in a row; the chosen one is described once, underneath */
.mls-reveals { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ml-s2); }
.mls-reveal > span { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 12px 4px 10px; text-align: center; }
.mls-reveal-art { width: 44px; height: 44px; }
.mls-reveal strong { font: 600 12px/1.2 var(--ml-sans); }
.mls-reveal small { display: none; }
.mls-reveal-note { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(var(--ml-ink-rgb), 0.9); }
@media (max-width: 480px) { .mls-reveals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .mls-reveals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* options that are folded away */
.mls-more { padding-top: 14px; border-top: 1px solid rgba(var(--ml-violet-bright-rgb), 0.2); }
.mls-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; list-style: none; font: 600 14px var(--ml-sans); color: var(--ml-ink); }
.mls-more > summary::-webkit-details-marker { display: none; }
.mls-more > summary::before { content: "+"; flex: none; width: 14px; font: 400 18px/1 var(--ml-sans); color: var(--ml-violet-bright); }
.mls-more[open] > summary::before { content: "–"; }
.mls-more > summary small { font: 400 12px var(--ml-sans); color: var(--ml-muted); }
.mls-more > summary:focus-visible { outline: 2px solid var(--ml-cyan, #64c8f2); outline-offset: 4px; border-radius: 4px; }
.mls-more-body { display: flex; flex-direction: column; gap: var(--ml-s3); margin-top: 14px; }
p.mls-note { margin: 0; }
p.mls-note strong { display: inline; margin: 0; font: 600 12px var(--ml-sans); color: var(--ml-ink); }
/* the action: what will be locked, and the button */
.mls-go { box-sizing: border-box; width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.55); border-radius: 14px; background: rgba(12, 10, 40, 0.94); box-shadow: 0 0 22px rgba(var(--ml-violet-rgb), 0.3); }
.mls-go-status { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1.35 var(--ml-sans); color: var(--ml-muted); text-align: center; }
.mls-go-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--ml-muted-rgb), 0.7); }
.mls-go-status.is-ready { color: var(--ml-ink); }
.mls-go-status.is-ready::before { background: #3ddc97; box-shadow: 0 0 8px rgba(61, 220, 151, 0.7); }
.mls-go-status.is-nudge { color: var(--ml-gold); }
.mls-go-status.is-nudge::before { background: var(--ml-gold); }
.mls-lock.is-wait { filter: saturate(0.5) brightness(0.78); box-shadow: none; }
/* one column: the form, the preview, then the action, which rides the bottom of the window */
@media (max-width: 1000px) {
	.mls-make { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--ml-s6); }
	.mls-form { box-sizing: border-box; width: 100%; max-width: 640px; }
	.mls-make-side { display: contents; }
	.mls-preview-slot:not(:empty) { margin: 4px 0; }
	.mls-preview-slot .mls-sample { position: absolute; top: 10px; right: 10px; margin: 0; min-height: 34px; padding: 0 14px; font-size: 13px; background: rgba(12, 9, 36, 0.9); border-color: var(--ml-violet); }
	.mls-preview-slot .mls-moonlings { position: relative; }
	.mls-preview-slot .mls-wheel { max-width: 360px; }
	.mls-preview-slot .mls-balls { max-width: 320px; }
	.mls-go { position: sticky; bottom: 10px; z-index: 6; max-width: 640px; padding: 12px 14px; background: #0d0b2a; box-shadow: 0 -6px 26px rgba(2, 4, 13, 0.75), 0 0 22px rgba(var(--ml-violet-rgb), 0.35); }
	.mls-go .mls-hint { display: none; }
}
@media (max-width: 480px) { .mls-form { padding: 20px 16px; } .mls-go-status { font-size: 13px; } }
/* a short desktop window: the side column can't stay whole on screen, so it scrolls with the page */
@media (min-width: 1001px) and (max-height: 760px) { .mls-make-side { position: static; } }

/* ---- the pixel-art wheel (1.80.0) ----
   The rim, lamps and slices are painted on a 150 × 150 grid (two canvases, shown unsmoothed);
   the names and the centre photo turn over them. */
.mls-wheel.is-pixel > canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.mls-wheel.is-pixel::before { content: ""; position: absolute; inset: 1.5%; border-radius: 50%; box-shadow: 0 0 26px rgba(166, 92, 255, 0.55); }
.mls-wheel.is-pixel .mls-seg-t { font-family: var(--ml-mono); font-weight: 400; letter-spacing: 0.01em; }
.mls-wheel.is-pixel .mls-pointer { top: -3%; width: 11%; }
.mls-wheel.is-pixel .mls-pointer-o { fill: #5a3a06; }
.mls-wheel.is-pixel .mls-pointer-f { fill: #f2b632; stroke: none; }
.mls-wheel.is-pixel .mls-pointer-h { fill: #ffe08a; }
/* four shows in the picker (the painted ball machine is no longer offered) */
.mls-reveals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .mls-reveals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .mls-reveal > span { padding: 10px 2px 8px; } .mls-reveal strong { font-size: 11px; } }
@media (max-width: 340px) { .mls-reveals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a turned wheel's square corners must not widen the page (they did on phones) */
.mls-wheel-box { overflow-x: clip; }

/* ---- the make page fits the first screen (1.81.0) ----
   A slim header (wordmark and tagline on one row), the form in two columns on a wide window
   (names | choices and the button), and the preview beside it. Nothing is cut by the window's
   bottom edge when the page opens; fitMake() in the script does the last of the fitting. */
.mls:not(.is-spin-view) { gap: var(--ml-s4); }
body.ml-spin-page .ml-page:has(.mls:not(.is-spin-view)) { padding-top: var(--ml-s4); }
.mls:not(.is-spin-view) .mls-hero { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px var(--ml-s4); max-width: none; padding-top: 0; margin-bottom: 0; }
.mls:not(.is-spin-view) .mls-kicker { display: none; }
.mls:not(.is-spin-view) .mls-wordmark { font-size: clamp(28px, 3vw, 42px); }
.mls:not(.is-spin-view) .mls-tagline { font-size: clamp(16px, 1.6vw, 21px); }
.mls:not(.is-spin-view) .mls-sub { flex: 1 1 100%; max-width: none; font-size: 14px; line-height: 1.45; }
.mls:not(.is-spin-view) .mls-sim { flex: 1 1 100%; margin-top: 4px; padding: 5px 12px; font-size: 12px; }
/* the action lives at the foot of the form and rides the bottom of the window when the form is taller than it */
.mls-col { display: contents; }
.mls-form .mls-go { position: sticky; bottom: 10px; z-index: 6; max-width: none; margin: 0 -8px; padding: 12px 14px; background: #0d0b2a; box-shadow: 0 -6px 26px rgba(2, 4, 13, 0.75), 0 0 22px rgba(var(--ml-violet-rgb), 0.35); }
.mls-form .mls-go .mls-hint { display: block; }
.mls-make-side .mls-wheel { max-width: min(520px, var(--mls-prev-max, 520px)); }
@media (min-width: 1181px) {
	body.ml-spin-page .entry-content:has(.mls:not(.is-spin-view)), .mls:not(.is-spin-view) { max-width: 1400px; }
	.mls-make { grid-template-columns: minmax(0, 740px) minmax(0, 1fr); gap: var(--ml-s6); }
	.mls-form { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0; padding: 16px 24px; }
	.mls-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
	.mls-col-a .mls-ghost-btn { min-height: 34px; padding: 0 10px; font-size: 12px; }
	.mls-col-a .mls-csv-row { flex-wrap: nowrap; }
	.mls-col-a { padding-right: 24px; }
	.mls-col-b { padding-left: 24px; border-left: 1px solid rgba(var(--ml-violet-bright-rgb), 0.2); }
	.mls-col-a .mls-part { flex: 1 1 auto; }
	.mls-col-a textarea { flex: 1 1 auto; min-height: 96px; }
	.mls-reveal > span { padding: 9px 4px 8px; gap: 6px; }
	.mls-reveal-art { width: 38px; height: 38px; }
	.mls-form .mls-more { padding-top: 12px; }
	.mls-form .mls-go { bottom: 8px; margin: auto 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(var(--ml-violet-bright-rgb), 0.2); border-radius: 0; background: #0f0d2e; box-shadow: none; }
	.mls-form .mls-lock { min-height: 50px; font-size: 18px; }
}
/* a tall, wide screen has room for a bigger header */
@media (min-width: 1181px) and (min-height: 900px) {
	body.ml-spin-page .ml-page:has(.mls:not(.is-spin-view)) { padding-top: var(--ml-s8); }
	.mls:not(.is-spin-view) { gap: var(--ml-s6); }
	.mls:not(.is-spin-view) .mls-hero { gap: 6px var(--ml-s6); }
	.mls:not(.is-spin-view) .mls-wordmark { font-size: clamp(40px, 4.2vw, 60px); }
	.mls:not(.is-spin-view) .mls-tagline { font-size: clamp(20px, 2vw, 26px); }
	.mls:not(.is-spin-view) .mls-sub { font-size: 15px; }
}
/* a short, wide window: the one-line description gives its room to the form */
@media (min-width: 1181px) and (max-height: 700px) { .mls:not(.is-spin-view) .mls-sub, .mls-show-hint { display: none; } }
@media (max-width: 1000px) {
	.mls-form .mls-go { gap: 8px; padding: 10px 12px; }
	.mls-form .mls-go .mls-hint { font-size: 11px; line-height: 1.3; }
	.mls-form .mls-lock { min-height: 52px; }
}
/* the foot of the first screen on a tall window */
.mls-fair-link { display: none; }
@media (min-width: 1181px) {
	.mls-make { grid-template-rows: auto 1fr; }
	.mls-fair-link { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; grid-column: 1 / -1; align-self: end; justify-self: center; padding: 6px 14px 4px; font: 600 13px var(--ml-sans); color: rgba(var(--ml-ink-rgb), 0.85); text-decoration: none; text-shadow: 0 1px 8px rgba(2, 4, 13, 0.95); }
	.mls-fair-link::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
	.mls-fair-link:hover { color: #fff; }
	.mls-fair-link:focus-visible { outline: 2px solid var(--ml-cyan, #64c8f2); outline-offset: 2px; border-radius: 6px; }
}

/* ---- the waiting screen (1.82.0) ----
   The chosen show warms up on the left; on the right, one big line says what is happening now,
   in plain words, a slim bar shows the five steps, then the share link. */
.mls-build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: stretch; }
.mls-warm { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; }
.mls-warm-show { width: 100%; display: flex; flex-direction: column; align-items: center; }
.mls-warm-show.is-pixel .mls-moonlings { width: 100%; max-width: calc(var(--mls-warm-h, 9999px) * 960 / 420); }
.mls-warm-show.is-pixel .mls-moonlings canvas { width: 100%; }
.mls-warm-show.is-wheel .mls-wheel { width: min(100%, 520px, var(--mls-warm-h, 520px)); max-width: none; }
.mls-warm-show.is-balls .mls-balls { max-width: min(460px, calc(var(--mls-warm-h, 9999px) * 1000 / 1086)); }
.mls-wheel.is-warm .mls-spinner { animation: mls-idle-turn 48s linear infinite; }
@keyframes mls-idle-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mls-wheel.is-warm .mls-spinner { animation: none; } }
.mls-wait { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 22px; border-left: 1px solid var(--ml-line); background: rgba(8, 6, 26, 0.45); }
.mls-wait-now { padding: 16px 18px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.5); border-radius: 14px; background: rgba(122, 69, 245, 0.14); box-shadow: 0 0 22px rgba(var(--ml-violet-rgb), 0.25); }
.mls-wait-t { margin: 0; font: 700 clamp(22px, 2.1vw, 28px)/1.15 var(--ml-sans); color: var(--ml-ink); }
.mls-wait-d { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: rgba(var(--ml-ink-rgb), 0.88); }
.mls-wait-time { margin: 10px 0 0; font: 12px var(--ml-mono); color: var(--ml-muted); }
/* dots that fill in while it works */
.mls-wait-now.is-busy .mls-wait-t::after { content: "..."; display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap; animation: mls-dots 1.4s steps(4, end) infinite; }
@keyframes mls-dots { to { width: 1.05em; } }
@media (prefers-reduced-motion: reduce) { .mls-wait-now.is-busy .mls-wait-t::after { animation: none; width: auto; } }
.mls-wait-now.is-done { border-color: rgba(232, 184, 62, 0.75); background: rgba(232, 184, 62, 0.12); box-shadow: 0 0 22px rgba(232, 184, 62, 0.25); }
.mls-wait-now.is-done .mls-wait-t { color: var(--ml-gold); }
.mls-wait-now.is-void { border-color: var(--ml-alert); background: rgba(255, 90, 110, 0.08); box-shadow: none; }
/* the five steps as a slim bar: green when done, lit while it happens; the names are for screen readers */
.mls-steps-bar { flex-direction: row; gap: 5px; }
.mls-steps-bar li { position: relative; flex: 1; height: 7px; padding: 0; border-radius: 4px; background: rgba(var(--ml-violet-bright-rgb), 0.18); overflow: hidden; }
.mls-steps-bar li > .mls-ico, .mls-steps-bar .mls-step-d { display: none !important; }
.mls-steps-bar li > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mls-steps-bar li.is-done { background: var(--ml-live); }
.mls-steps-bar li.is-wait { background: linear-gradient(90deg, rgba(100, 200, 242, 0.25), var(--ml-cyan, #64c8f2), rgba(100, 200, 242, 0.25)); background-size: 200% 100%; animation: mls-bar 1.6s linear infinite; }
@keyframes mls-bar { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .mls-steps-bar li.is-wait { animation: none; background: var(--ml-cyan, #64c8f2); } }
.mls-steps-bar li.is-fail { background: var(--ml-alert); }
.mls-wait .mls-share-now { gap: 8px 12px; padding: 10px 12px; border-color: rgba(232, 184, 62, 0.55); background: rgba(232, 184, 62, 0.08); }
.mls-wait .mls-share-now .mls-share-k { font-size: 10px; }
.mls-wait .mls-share-now .mls-mono { font-size: 12px; overflow-wrap: anywhere; }
.mls-wait .mls-share-now .mlg-btn { min-height: 38px; padding: 0 14px; }
.mls-wait-id { margin: 0; font: 11px/1.5 var(--ml-mono); color: var(--ml-muted); }
@media (max-width: 899px) {
	.mls-build { grid-template-columns: minmax(0, 1fr); }
	.mls-warm { padding: 14px 12px 8px; }
	.mls-warm-show.is-wheel .mls-wheel { width: min(100%, 340px); }
	.mls-wait { border-left: 0; border-top: 1px solid var(--ml-line); padding: 18px 16px; }
}
/* a void spin: no show to warm up, so the panel stands alone in the middle */
.mls-build.is-void { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.mls-build.is-void .mls-warm { display: none; }
.mls-build.is-void .mls-wait { width: 100%; max-width: 520px; box-sizing: border-box; border: 0; background: none; padding: 28px 22px; }
.mls-wait-time:empty { display: none; }

/* ---- plainer and friendlier (1.83.0) ---- */
/* under Lock & spin: free, no wallet */
.mls-go-foot strong { font-weight: 600; color: #7ee2b1; }
/* the stage's buttons: View certificate across, then Copy result link and Replay side by side */
.mls-stage-side > .mls-row { flex-wrap: wrap; }
.mls-stage-side > .mls-row > [data-to-cert] { flex: 1 1 100%; }
.mls-stage-side > .mls-row > .mlg-btn-ghost { flex: 1 1 0; }
/* the plain verdict above the certificate */
.mls-verdict { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.45); border-radius: 14px; background: rgba(10, 9, 34, 0.95); }
.mls-verdict-ico { flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; background: rgba(var(--ml-muted-rgb), 0.35) center / 18px no-repeat; }
.mls-verdict-t { margin: 0; font: 700 clamp(20px, 2vw, 24px)/1.2 var(--ml-sans); color: var(--ml-ink); }
.mls-verdict-d { margin: 4px 0 0; max-width: 78ch; font-size: 15px; line-height: 1.5; color: rgba(var(--ml-ink-rgb), 0.86); }
.mls-verdict.is-ok { border-color: rgba(61, 220, 151, 0.6); background: linear-gradient(90deg, rgba(61, 220, 151, 0.14), rgba(61, 220, 151, 0) 60%), rgba(10, 9, 34, 0.95); }
.mls-verdict.is-ok .mls-verdict-ico { background-color: #3ddc97; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2306130d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mls-verdict.is-wait .mls-verdict-ico { box-sizing: border-box; background: none; border: 3px solid rgba(var(--ml-muted-rgb), 0.4); border-top-color: var(--ml-cyan, #64c8f2); animation: mls-rot 900ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .mls-verdict.is-wait .mls-verdict-ico { animation: none; border-color: var(--ml-cyan, #64c8f2); } }
.mls-verdict.is-sim { border-color: rgba(232, 184, 62, 0.55); }
.mls-verdict.is-sim .mls-verdict-ico { background-color: #e8b83e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v7M12 17.5v.5' fill='none' stroke='%2306130d' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mls-verdict.is-fail { border-color: var(--ml-alert); background: rgba(40, 8, 20, 0.9); }
.mls-verdict.is-fail .mls-verdict-ico { background-color: var(--ml-alert); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mls-verdict.is-gone .mls-verdict-ico { background-color: rgba(var(--ml-muted-rgb), 0.6); }
@media (max-width: 600px) { .mls-verdict { padding: 14px 14px; gap: 10px; } .mls-verdict-d { font-size: 14px; } }

/* ---- Teams (1.84.0) ---- */
.mls-segs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mls-segs > * { padding-inline: 4px; }
@media (max-width: 520px) { .mls-segs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mls-segs > :nth-child(3) { border-left: 0; } .mls-segs > :nth-child(n+3) { border-top: 1px solid rgba(var(--ml-violet-bright-rgb), 0.25); } }
/* the stage: one card per team, filling in as the show deals */
.mls-winner-list.is-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.mls-winner:has(.mls-winner-list.is-teams) { gap: var(--ml-s2); padding: 14px 14px 12px; }
.mls-winner-list.is-teams li.mls-team { display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.35); border-radius: 10px; background: rgba(122, 69, 245, 0.1); text-align: left; }
.mls-team-k { font: 400 11px var(--ml-pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ml-gold); }
.mls-team-names { display: flex; flex-wrap: wrap; gap: 2px 0; min-width: 0; }
.mls-team-m { font: 14px/1.35 var(--ml-mono); color: var(--ml-ink); overflow-wrap: anywhere; animation: mls-team-in 260ms ease-out; }
.mls-team-m:not(:last-child)::after { content: "·"; margin: 0 6px; color: rgba(var(--ml-ink-rgb), 0.45); }
@keyframes mls-team-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .mls-team-m { animation: none; } }
/* the certificate: the teams under the gold band */
.mls-cert .mls-cert-teams { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 34px; }
.mls-cert .mls-cert-team { padding: 10px 14px; border: 1px solid rgba(242, 199, 92, 0.45); border-radius: 12px; background: rgba(10, 8, 30, 0.55); }
.mls-cert .mls-cert-team-k { margin: 0 0 4px; font: 600 13px var(--ls-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cert-gold); }
.mls-cert .mls-cert-team ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mls-cert .mls-cert-team li { font: 600 19px/1.25 var(--ls-serif); color: var(--ml-ink); overflow-wrap: anywhere; }
.mls-cert .mls-cert-team li.is-more { font: italic 15px var(--ls-serif); color: var(--cert-lilac); }
@media (max-width: 700px) { .mls-cert .mls-cert-teams { margin: 0 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
/* wide windows: the Winners or Teams number sits on the "Choose what to draw" line, so picking
   Pick several or Teams doesn't add a row (the first screen stays whole); its hint is for screen readers */
@media (min-width: 1181px) {
	.mls-col-b > fieldset.mls-part:first-child { position: relative; }
	.mls-col-b .mls-winners { position: absolute; top: -32px; right: 0; flex-wrap: nowrap; gap: 8px; }
	.mls-col-b .mls-winners label { font-size: 13px; color: rgba(var(--ml-ink-rgb), 0.85); }
	.mls-col-b .mls-winners input[type="number"] { width: 66px; min-height: 30px; padding: 2px 8px; }
	.mls-col-b .mls-winners .mls-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.mls-stage .mls-winner:has(.mls-winner-list.is-teams) { justify-content: flex-start; }

/* ------------------------------------------------------------ 1.85.0: the certificate page, compact
   The card is shaped like the share picture and opens full size on a click; the share actions and a
   short seal sit beside it; the details (results, proof, entries, every spin) are tabs under it. */
.mls-cert-view { gap: var(--ml-s5, 20px); }
.mls-cert-view .mls-verdict { padding: 12px 18px; }
.mls-cert-view .mls-verdict-ico { width: 26px; height: 26px; }
.mls-cert-view .mls-verdict-t { font-size: 19px; }
.mls-cert-view .mls-verdict-d { margin-top: 2px; font-size: 14px; line-height: 1.45; }

/* the small card */
.mls-cert.mls-cert-mini {
	flex: 3 1 600px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"brand zoom"
		"head pills"
		"title title"
		"win win"
		"names names"
		"spin times"
		"facts times"
		"pow pow";
	align-content: space-between;
	gap: 12px 20px;
	padding: 24px 30px 18px;
	border-radius: 22px;
	cursor: zoom-in;
	transition: box-shadow 160ms ease, border-color 160ms ease;
}
.mls-cert-mini:hover { border-color: rgba(206, 180, 255, 1); box-shadow: 0 0 0 1px rgba(122, 69, 245, 0.35), 0 0 44px rgba(150, 100, 255, 0.6), inset 0 0 40px rgba(122, 69, 245, 0.12); }
.mls-cert-mini .mls-cert-brand { grid-area: brand; font-size: 16px; }
.mls-cert-mini .mls-cert-head { grid-area: head; align-self: center; margin: 0; font-size: clamp(17px, 1.7vw, 22px); }
.mls-cert-mini .mls-cert-pills { grid-area: pills; align-self: center; justify-content: flex-end; gap: 8px; }
.mls-cert-mini .mls-pill-gold, .mls-cert-mini .mls-badge { flex: none; white-space: nowrap; font-size: 11px; line-height: 1.5; padding: 3px 12px; }
.mls-cert-mini .mls-cert-title { grid-area: title; max-width: none; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mls-cert-mini .mls-cert-win { grid-area: win; margin: 2px 0 0; padding: 10px 26px; gap: 16px; }
.mls-cert-mini .mls-cert-k { font-size: 13px; padding-right: 16px; }
.mls-cert-mini .mls-cert-name > span { font-size: clamp(34px, 3.8vw, 52px); }
.mls-cert-mini .mls-laurel { width: 20px; height: 40px; }
.mls-cert-mini .mls-cert-entry { font-size: 20px; padding-left: 16px; }
/* other winners: one line under the band, the rest on the Winners tab and the full-size card */
.mls-cert-mini:has(.mls-cert-names[hidden]) { grid-template-areas: "brand zoom" "head pills" "title title" "win win" "spin times" "facts times" "pow pow"; }
.mls-cert-mini .mls-cert-names { grid-area: names; margin: 0 26px; flex-direction: row; flex-wrap: wrap; gap: 0 18px; max-height: 1.6em; overflow: hidden; }
.mls-cert-mini .mls-cert-names li::before { font-size: 13px; min-width: 0; }
.mls-cert-mini .mls-cert-names .mls-wn { font-size: 19px; }
.mls-cert-mini .mls-cert-names .mls-wm,
.mls-cert-mini .mls-cert-teams,
.mls-cert-mini .mls-cert-rule,
.mls-cert-mini .mls-cert-sub,
.mls-cert-mini .mls-cert-when,
.mls-cert-mini .mls-cert-note { display: none !important; }
.mls-cert-mini .mls-cert-spinbox { grid-area: spin; align-self: end; }
.mls-cert-mini .mls-cert-spin { font-size: 15px; letter-spacing: 0.08em; color: var(--cert-lilac); }
.mls-cert-mini .mls-facts { grid-area: facts; margin: 0; padding: 0; border: 0; }
.mls-cert-mini .mls-facts div { padding: 0 22px; }
.mls-cert-mini .mls-facts dt { margin-bottom: 2px; font-size: 11px; }
.mls-cert-mini .mls-facts dd { font-size: 17px; }
.mls-cert-mini .mls-cert-times { grid-area: times; align-self: end; justify-content: flex-end; }
.mls-cert-mini .mls-result-pill { padding: 8px 18px; gap: 10px; font-size: 12px; letter-spacing: 0.2em; }
.mls-cert-mini .mls-result-pill svg { width: 18px; height: 18px; }
.mls-cert-mini .mls-cert-pow { grid-area: pow; margin: 2px 0 0; }
.mls-cert-mini .mls-cert-pow span { font-size: 12px; }

/* Enlarge: the corner button; the whole card is a target too */
.mls-cert-zoom {
	grid-area: zoom;
	justify-self: end;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px 6px 10px;
	border: 1px solid rgba(185, 166, 255, 0.55);
	border-radius: 999px;
	background: rgba(10, 8, 30, 0.6);
	color: #e4dcff;
	font: 600 12px/1 var(--ml-sans);
	letter-spacing: 0.02em;
	cursor: pointer;
}
.mls-cert-zoom svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mls-cert-mini:hover .mls-cert-zoom, .mls-cert-zoom:hover { border-color: var(--cert-gold); color: var(--cert-gold); }
.mls-cert-zoom:focus-visible { outline: 2px solid var(--cert-gold); outline-offset: 2px; }

/* beside the card: share, then the seal */
.mls-cert-view .mls-cert-aside { flex: 1 1 340px; gap: var(--ml-s4, 16px); }
.mls-cert-view .mls-cert-aside .mlg-panel { padding: 18px 20px; gap: 12px; }
.mls-cert-aside .mls-sharebar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mls-cert-aside .mls-sharebar [data-watch] { grid-column: auto; }
.mls-cert-aside .mls-sharebar-t, .mls-cert-aside .mls-sharebar [data-copy-url] { grid-column: 1 / -1; }
.mls-cert-aside .mls-sharebar .mlg-btn { min-height: 40px; padding: 8px 10px; font-size: 13px; }
.mls-cert-aside .mls-sharebar [data-copy-url] { min-height: 44px; font-size: 15px; }
.mls-seal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mls-seal-head .mlg-panel-title { margin: 0; }
.mls-linkbtn { padding: 0; border: 0; background: none; color: var(--ml-violet-bright, #b9a6ff); font: 500 13px var(--ml-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mls-linkbtn:hover { color: var(--ml-ink); }
.mls-cert-view .mls-seal .mls-ticks { gap: 6px; }
.mls-cert-view .mls-seal .mls-ticks li { gap: 12px; padding: 10px 14px; }
.mls-cert-view .mls-seal .mls-step-t { font: 600 14px/1.35 var(--ml-sans); letter-spacing: 0; }
.mls-cert-view .mls-seal .mls-tick-by { font-size: 11px; line-height: 1.4; }
.mls-cert-view .mls-seal:not(.is-open) .mls-step-d { display: none; }
.mls-cert-view .mls-seal [data-recheck] { min-height: 40px; }
.mls-cert-view .mls-seal [data-f="oracleNote"] { margin: 0; }

/* the details, as tabs */
.mls-tabs { display: flex; flex-direction: column; }
.mls-tablist { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ml-line); }
.mls-tablist::-webkit-scrollbar { display: none; }
.mls-tabbtn {
	flex: none;
	margin-bottom: -1px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: 12px 12px 0 0;
	background: none;
	color: var(--ml-muted);
	font: 600 15px var(--ml-sans);
	cursor: pointer;
}
.mls-tabbtn:hover { color: var(--ml-ink); }
.mls-tabbtn[aria-selected="true"] { border-color: var(--ml-line); background: var(--ml-surface, rgba(14, 12, 40, 0.96)); color: var(--ml-ink); box-shadow: inset 0 2px 0 var(--ml-gold, #f2c75c); }
.mls-tabbtn:focus-visible { outline: 2px solid var(--ml-gold, #f2c75c); outline-offset: -2px; }
.mls-tabs .mls-tab { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.mls-tablist[hidden] + .mls-tab { border-top: 1px solid var(--ml-line); border-radius: var(--ml-r, 16px); }
.mls-tabs .mls-tab.is-off { display: none; }
.mls-tabs .mls-tab > .mlg-panel-title { font-size: 17px; }
.mls-tabs .mls-proof { flex: none; }
.mls-tabs [data-tab="entries"] .mlg-panel-title, .mls-tabs [data-tab="proof"] > .mlg-panel-title, .mls-tabs [data-tab="history"] .mlg-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mls-tabs .mls-hist { max-width: 760px; }

/* the results tab */
.mls-results-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; counter-reset: r; }
.mls-results-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border: 1px solid var(--ml-line); border-radius: 10px; background: var(--ml-raised); counter-increment: r; }
.mls-results-list li::before { content: counter(r) "."; min-width: 1.6em; font: 600 14px var(--ml-mono); color: var(--ml-gold, #f2c75c); }
.mls-results-list li:first-child { border-color: rgba(242, 199, 92, 0.7); }
.mls-results-list .mls-wn { font: 600 17px/1.25 var(--ml-sans); color: var(--ml-ink); overflow-wrap: anywhere; }
.mls-results-list .mls-wm { font-size: 13px; color: var(--ml-muted); }
.mls-results-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mls-results-teams[hidden], .mls-results-list[hidden] { display: none; }
.mls-results-teams .mls-cert-team { padding: 12px 16px; border: 1px solid rgba(242, 199, 92, 0.45); border-radius: 12px; background: var(--ml-raised); }
.mls-results-teams .mls-cert-team-k { margin: 0 0 6px; font: 600 13px var(--ml-sans); letter-spacing: 0.06em; color: var(--ml-gold, #f2c75c); }
.mls-results-teams ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.mls-results-teams li { font-size: 16px; color: var(--ml-ink); overflow-wrap: anywhere; }
.mls-results-teams li.is-more { font-size: 13px; color: var(--ml-muted); }

/* full size: the card in a dialog */
html.mls-noscroll { overflow: hidden; }
.mls-lightbox { width: min(940px, 94vw); max-width: none; max-height: 96vh; margin: auto; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.mls-lightbox::backdrop { background: rgba(4, 3, 14, 0.84); backdrop-filter: blur(6px); }
.mls-lightbox[open] { display: flex; flex-direction: column; gap: 10px; animation: mls-pop 200ms ease-out; }
.mls-lightbox-bar { display: flex; justify-content: flex-end; gap: 10px; }
.mls-lightbox-bar .mlg-btn { min-height: 40px; }
.mls-lightbox-body { min-height: 0; max-height: calc(96vh - 50px); overflow: auto; border-radius: 28px; overscroll-behavior: contain; }
.mls-lightbox .mls-cert.is-big { flex: none; cursor: default; }
@keyframes mls-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.mls-lightbox[open] { animation: none; }
	.mls-cert-mini { transition: none; }
}

@media (max-width: 1100px) {
	.mls-cert.mls-cert-mini { flex-basis: 100%; }
	.mls-cert-view .mls-cert-aside { flex-direction: row; flex-wrap: wrap; }
	.mls-cert-view .mls-cert-aside > section { flex: 1 1 320px; }
}
@media (max-width: 700px) {
	.mls-cert.mls-cert-mini {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand zoom"
			"head head"
			"pills pills"
			"title title"
			"win win"
			"names names"
			"spin spin"
			"facts facts"
			"times times"
			"pow pow";
		padding: 18px 16px 14px;
		gap: 10px;
	}
	.mls-cert-mini:has(.mls-cert-names[hidden]) { grid-template-areas: "brand zoom" "head head" "pills pills" "title title" "win win" "spin spin" "facts facts" "times times" "pow pow"; }
	.mls-cert-mini .mls-cert-pills { justify-content: flex-start; }
	.mls-cert-mini .mls-cert-win { padding: 10px 14px; gap: 4px; border-radius: 22px; }
	.mls-cert-mini .mls-cert-name > span { font-size: 36px; }
	.mls-cert-mini .mls-cert-entry { font-size: 17px; }
	.mls-cert-mini .mls-cert-names { margin: 0 6px; justify-content: center; }
	.mls-cert-mini .mls-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
	.mls-cert-mini .mls-facts div { padding: 0 0 0 10px; border-left: 1px solid rgba(185, 166, 255, 0.35); }
	.mls-cert-mini .mls-facts div:first-child { padding-left: 0; border-left: 0; }
	.mls-cert-mini .mls-facts dd { font-size: 15px; overflow-wrap: anywhere; }
	.mls-cert-mini .mls-cert-times { justify-content: flex-start; }
	.mls-cert-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.mls-cert-zoom { padding: 8px; }
	.mls-cert-aside .mls-sharebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mls-cert-aside .mls-sharebar .mlg-btn { font-size: 12px; padding: 8px 6px; }
	.mls-tabbtn { padding: 10px 14px; font-size: 14px; }
	.mls-lightbox { width: 100vw; max-height: 100vh; }
	.mls-lightbox-body { max-height: calc(100vh - 54px); border-radius: 18px; }
	.mls-lightbox-bar { padding: 8px 8px 0; }
}

/* 1.85.1: the certificate is the hero. The verdict heads the seal beside the card (no full-width row
   above it), Copy link moves to the header, and the downloads sit under the seal. */
.mls-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mls-hero-copy { display: none; }
.mls.is-cert-view .mls-hero-copy { display: inline-flex; margin-left: auto; }
.mls.is-cert-view .mls-hero-new { margin-left: 0; }
.mls.is-cert-view .mls-hero { padding-top: 0; row-gap: 6px; }
.mls-cert-view .mls-seal { gap: 10px; overflow: hidden; }
.mls-cert-view .mls-seal .mls-verdict { margin: -18px -20px 0; padding: 14px 20px 12px; border: 0; border-bottom: 1px solid var(--ml-line); border-radius: 0; gap: 12px; }
.mls-cert-view .mls-seal .mls-verdict-t { font-size: 18px; }
.mls-cert-view .mls-seal .mls-verdict-d { font-size: 13px; line-height: 1.45; }
.mls-seal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.mls-seal-foot [data-recheck] { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.mls-cert-view .mls-cert-aside .mls-sharebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; background: none; }
.mls-cert-view .mls-cert-aside .mls-sharebar .mlg-btn { min-height: 38px; padding: 6px 8px; font-size: 13px; justify-content: center; text-align: center; background: rgba(12, 9, 36, 0.9); }
.mls-cert-view .mls-cert-row { align-items: flex-start; }
@media (max-width: 700px) {
	.mls.is-cert-view .mls-hero-copy { min-height: 36px; padding: 0 14px; font-size: 13px; }
}
/* the Test mode line (stand-in copies only) is left off spin pages: the certificate's own pills and tick 2 say "simulated" */
.mls.is-spin-view .mls-sim { display: none; }

/* 1.86.0: on LunaSpin pages the header's logo is LunaSpin's (lunaspin_header_logo()) and the menu's LunaSpin
   link reads Lunardraw (home); the hero's own wordmark is left to screen readers, so the name isn't shown twice */
.ml-brand .ml-brand-lunaspin { margin: 0; white-space: nowrap; }
.ml-brand .ml-brand-lunaspin a { display: inline-block; text-decoration: none; filter: drop-shadow(0 2px 0 rgba(26, 8, 64, 0.95)) drop-shadow(0 0 10px rgba(138, 92, 249, 0.4)); }
.ml-brand .ml-brand-lunaspin a:focus-visible { outline: 2px solid var(--ml-violet-bright, #b9a6ff); outline-offset: 4px; }
.mls .mls-hero .mls-wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 1.86.2: the make page's opening lines on a glass strip, so they read over the city: the tagline on the
   left, one short line beside it on wide screens (stacked on narrow ones) */
.mls:not(.is-spin-view) .mls-hero {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 4px 28px;
	max-width: none;
	margin: var(--ml-s2) 0 var(--ml-s3);
	padding: 14px 22px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.3);
	border-radius: 16px;
	background: rgba(8, 6, 28, 0.78);
	backdrop-filter: blur(6px);
}
.mls:not(.is-spin-view) .mls-tagline { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; white-space: nowrap; text-shadow: none; }
.mls:not(.is-spin-view) .mls-sub { display: block !important; max-width: 56ch; padding-left: 28px; border-left: 1px solid rgba(var(--ml-violet-bright-rgb), 0.35); font-size: 15px; line-height: 1.45; color: rgba(var(--ml-ink-rgb), 0.82); text-shadow: none; }
@media (max-width: 900px) {
	.mls:not(.is-spin-view) .mls-hero { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
	.mls:not(.is-spin-view) .mls-tagline { white-space: normal; }
	.mls:not(.is-spin-view) .mls-sub { padding-left: 0; border-left: 0; font-size: 14px; }
}
@media (min-width: 901px) and (max-height: 760px) {
	.mls:not(.is-spin-view) .mls-hero { margin: 6px 0 10px; padding: 8px 18px; }
	.mls:not(.is-spin-view) .mls-tagline { font-size: 20px; }
	.mls:not(.is-spin-view) .mls-sub { font-size: 14px; line-height: 1.35; }
}

/* 1.86.4: the spin's heading (waiting screen and show) on the same glass strip as the make page:
   the title on the left in the certificate's serif, gold, the line under it, the button on the right */
.mls.is-spin-view:not(.is-cert-view) .mls-hero {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px 24px;
	margin: var(--ml-s2) 0 var(--ml-s3);
	padding: 12px 22px;
	border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.3);
	border-radius: 16px;
	background: rgba(8, 6, 28, 0.78);
	backdrop-filter: blur(6px);
}
.mls.is-spin-view:not(.is-cert-view) .mls-now { flex: 1 1 auto; order: 0; text-align: left; }
.mls.is-spin-view:not(.is-cert-view) .mls-hero-new { flex: none; margin-left: auto; }
.mls.is-spin-view:not(.is-cert-view) .mls-now-title {
	font: 600 clamp(28px, 3vw, 42px)/1.12 var(--ls-serif);
	letter-spacing: 0.005em;
	background: linear-gradient(180deg, #fff1bf 0%, #f2c75c 50%, #d39a2a 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	filter: drop-shadow(0 0 12px rgba(242, 199, 92, 0.25));
}
.mls.is-spin-view.is-long-title:not(.is-cert-view) .mls-now-title { font-size: clamp(22px, 2.2vw, 30px); }
.mls.is-spin-view:not(.is-cert-view) .mls-now-meta { display: block; margin: 2px 0 0; padding: 0; background: none; border-radius: 0; font-size: 13px; color: rgba(var(--ml-ink-rgb), 0.75); }
@media (max-width: 760px) {
	.mls.is-spin-view:not(.is-cert-view) .mls-hero { flex-wrap: wrap; padding: 12px 16px; }
	.mls.is-spin-view:not(.is-cert-view) .mls-now { flex: 1 1 100%; }
	.mls.is-spin-view:not(.is-cert-view) .mls-hero-new { margin-left: 0; }
}

/* 1.86.7: a LunaSpin certificate carries no Lunardraw logo: the heading leads the card */
.mls-cert.mls-cert-mini { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "names names" "spin times" "facts times" "pow pow"; }
.mls-cert-mini:has(.mls-cert-names[hidden]) { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "spin times" "facts times" "pow pow"; }
.mls-cert-mini .mls-cert-pills { justify-content: flex-start; }
.mls-cert-mini .mls-cert-head { font-size: clamp(18px, 1.8vw, 24px); }
@media (max-width: 700px) {
	.mls-cert.mls-cert-mini { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "names names" "spin spin" "facts facts" "times times" "pow pow"; }
	.mls-cert-mini:has(.mls-cert-names[hidden]) { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "spin spin" "facts facts" "times times" "pow pow"; }
}
/* the certificate's heading: the LunaSpin pixel wordmark, then CERTIFICATE */
.mls-cert-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0.45em; }
.mls-cert-logo { font: 700 1.12em/1 var(--ml-pixel); letter-spacing: 0.06em; filter: drop-shadow(0 0.07em 0 rgba(26, 8, 64, 0.95)) drop-shadow(0 0 10px rgba(138, 92, 249, 0.35)); white-space: nowrap; }

/* 1.87.0: Pick several on the certificate: 2nd on a silver plaque and 3rd on a bronze one, side by side
   under the gold band, then the rest (4., 5., …) */
.mls-cert-more { display: flex; flex-direction: column; gap: 10px; }
.mls-podium { display: flex; justify-content: center; gap: 14px; margin: 0 34px; }
.mls-plaque {
	--pl-edge: rgba(214, 222, 238, 0.85);
	--pl-glow: rgba(214, 222, 238, 0.25);
	--pl-ink: linear-gradient(180deg, #ffffff 0%, #d9dfeb 50%, #9ea8bd 100%);
	--pl-k: #dfe5f1;
	flex: 1 1 0;
	max-width: calc(50% - 7px);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 8px 20px;
	border: 1.5px solid var(--pl-edge);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(40, 34, 70, 0.6), rgba(16, 12, 40, 0.6));
	box-shadow: 0 0 16px var(--pl-glow), inset 0 0 12px var(--pl-glow);
}
.mls-plaque.is-bronze {
	--pl-edge: rgba(214, 140, 82, 0.9);
	--pl-glow: rgba(214, 140, 82, 0.25);
	--pl-ink: linear-gradient(180deg, #ffe0bf 0%, #e0985c 50%, #a35a26 100%);
	--pl-k: #eab389;
}
.mls-plaque-k { padding-right: 12px; border-right: 1px solid var(--pl-edge); font: 600 13px var(--ls-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pl-k); }
.mls-plaque-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font: 700 28px/1.15 var(--ls-serif); background: var(--pl-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mls-plaque-entry { font: italic 500 16px var(--ls-serif); color: #e6e1f7; white-space: nowrap; }
.mls-cert.has-podium .mls-cert-names { counter-reset: w 3; }
/* the small card: the plaques and the rest take one area, under the band */
.mls-cert-mini .mls-cert-more { grid-area: more; gap: 6px; }
.mls-cert-mini .mls-podium { margin: 0; gap: 12px; }
.mls-cert-mini .mls-plaque { padding: 5px 16px; gap: 10px; }
.mls-cert-mini .mls-plaque-k { font-size: 11px; padding-right: 10px; }
.mls-cert-mini .mls-plaque-name { font-size: 22px; }
.mls-cert-mini .mls-plaque-entry { font-size: 14px; }
.mls-cert-mini .mls-cert-more .mls-cert-names { margin: 0 26px; }
.mls-cert.mls-cert-mini { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "spin times" "facts times" "pow pow"; }
.mls-cert.mls-cert-mini.has-more { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "more more" "spin times" "facts times" "pow pow"; }
.mls-cert.mls-cert-mini.has-podium { gap: 9px 20px; }
@media (max-width: 700px) {
	.mls-podium { flex-direction: column; align-items: stretch; margin: 0 8px; }
	.mls-plaque { max-width: none; padding: 6px 14px; }
	.mls-plaque-name { font-size: 22px; }
	.mls-cert.mls-cert-mini { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "spin spin" "facts facts" "times times" "pow pow"; }
	.mls-cert.mls-cert-mini.has-more { grid-template-areas: "head zoom" "pills pills" "title title" "win win" "more more" "spin spin" "facts facts" "times times" "pow pow"; }
}

/* 1.87.1: the lower part of the certificate page reads over the city: the tab bar sits on the same dark
   glass as the panel under it, the legal line on its own strip, and "Create another spin" is a solid button */
.mls-tablist { padding: 6px 6px 0; border: 1px solid var(--ml-line); border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(8, 6, 28, 0.88); backdrop-filter: blur(6px); }
.mls-tabbtn { color: rgba(var(--ml-ink-rgb), 0.8); }
.mls-tabbtn:hover { background: rgba(var(--ml-violet-bright-rgb), 0.12); }
.mls-tabs .mls-tab { border-top: 1px solid var(--ml-line); }
.mls-tabs .mls-tab > .mlg-panel-title { color: var(--ml-ink); }
.mls-cert-view .mls-legal { padding: 10px 18px; border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.2); border-radius: 12px; background: rgba(8, 6, 28, 0.85); color: rgba(var(--ml-ink-rgb), 0.82); font-size: 13px; line-height: 1.5; }
.mls-again .mlg-btn { min-height: 48px; padding: 0 28px; font-size: 15px; box-shadow: 0 0 0 4px rgba(8, 6, 28, 0.6), 0 6px 24px rgba(122, 69, 245, 0.45); }
.mls-results.is-podium .mls-results-list li:nth-child(2) { border-color: rgba(214, 222, 238, 0.75); }
.mls-results.is-podium .mls-results-list li:nth-child(2)::before { color: #dfe5f1; }
.mls-results.is-podium .mls-results-list li:nth-child(3) { border-color: rgba(214, 140, 82, 0.8); }
.mls-results.is-podium .mls-results-list li:nth-child(3)::before { color: #eab389; }
/* 1.87.2: no slogan on the certificate page: the buttons alone, on the right */
.mls.is-cert-view .mls-tagline { display: none; }
.mls.is-cert-view .mls-hero { justify-content: flex-end; }

/* 1.88.0: the make page, tidied after a review */
/* LunaSpin needs no wallet: the site's Connect wallet and Connect agent buttons are left off its pages */
body.ml-spin-page .ml-header .ml-header-actions { display: none; }
/* "How it's fair" on a narrow screen: the side lines shrink rather than squeeze the words onto three lines */
.mls-fair > h2 { white-space: nowrap; }
.mls-fair > h2::before, .mls-fair > h2::after { min-width: 0; }
@media (max-width: 480px) { .mls-fair > h2::before, .mls-fair > h2::after { flex-basis: 40px; } }
/* the one line under More options */
.mls-more-why { margin: 6px 0 0; }
/* phones: the pinned Lock & spin bar is just the status and the button (the top bar already says free, no wallet) */
@media (max-width: 600px) {
	.mls-go { bottom: 8px; gap: 6px; padding: 8px 10px; }
	.mls-form .mls-go .mls-go-foot { display: none; }
	.mls-go-status { font-size: 12px; }
	.mls-go .mls-lock { min-height: 46px; font-size: 18px; }
}
/* questions */
.mls-faq { margin-top: var(--ml-s8, 32px); }
.mls-faq > h2 { margin: 0 0 var(--ml-s4); text-align: center; font: 700 clamp(22px, 2.4vw, 28px) var(--ml-sans); color: var(--ml-ink); }
.mls-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: start; }
.mls-faq details { border: 1px solid rgba(var(--ml-violet-bright-rgb), 0.3); border-radius: 12px; background: rgba(8, 6, 28, 0.85); }
.mls-faq summary { position: relative; padding: 14px 44px 14px 18px; cursor: pointer; list-style: none; font: 600 15px/1.35 var(--ml-sans); color: var(--ml-ink); }
.mls-faq summary::-webkit-details-marker { display: none; }
.mls-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--ml-sans); color: var(--ml-violet-bright, #b9a6ff); }
.mls-faq details[open] summary::after { content: "–"; }
.mls-faq summary:focus-visible { outline: 2px solid var(--ml-gold, #f2c75c); outline-offset: -2px; border-radius: 12px; }
.mls-faq details p { margin: 0; padding: 0 18px 16px; font-size: 14px; line-height: 1.55; color: rgba(var(--ml-ink-rgb), 0.85); }
@media (max-width: 760px) { .mls-faq-list { grid-template-columns: minmax(0, 1fr); } }

/* 1.88.3: on phones and tablets, gradient-clipped text under a drop-shadow filter can render dark
   (seen on Android Chrome: the header's LUNASPIN and the spin's gold title looked dim). There the
   wordmark and titles use solid colours with a text shadow instead. */
@media (hover: none) and (pointer: coarse) {
	.ml-brand .ml-brand-lunaspin a,
	.mls-cert-logo,
	.mls.is-spin-view:not(.is-cert-view) .mls-now-title { filter: none; }
	.mls-wm-a { background: none; color: #a98cff; }
	.mls-wm-b { background: none; color: #ff7ae4; }
	.ml-brand .ml-brand-lunaspin a, .mls-cert-logo { text-shadow: 0 2px 0 rgba(26, 8, 64, 0.95), 0 0 10px rgba(138, 92, 249, 0.45); }
	.mls.is-spin-view:not(.is-cert-view) .mls-now-title { background: none; color: #f2c75c; text-shadow: 0 1px 0 rgba(60, 30, 0, 0.6), 0 0 14px rgba(242, 199, 92, 0.3); }
}

/* ------------------------------------------------------------ 1.89.2: at most 10,000 names */
/* Under the names box when the list reaches the limit, or a paste or CSV went past it (capNames() in lunaspin.js). */
.mls .mls-cap { color: #ffd072; }
.mls .mls-cap[hidden] { display: none; }

/* ------------------------------------------------------------ 1.90.3: the waiting line doesn't jump */
/* The dots after "Recorded on Midnight" grew inline and, near the edge, wrapped onto a line of their own, so the
   panel jumped up and down (Jack's video, 18 Nov). Room is kept for them at the end of the line, and they take
   no width of their own, so the words wrap the same with or without them. */
.mls-wait-now .mls-wait-t { padding-right: 1.1em; }
.mls-wait-now.is-busy .mls-wait-t::after { margin-right: -1.05em; }

/* ------------------------------------------------------------ 1.91.0: naming a baby (1.92.0: or a pet) */
/* A line under the names box while it's empty: one ready-made list per spin, boy, girl, cat or dog (data-baby in lunaspin.js). */
.mls .mls-baby { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px; }
.mls .mls-baby[hidden] { display: none; }
.mls .mls-baby-btn { padding: 0; border: 0; background: none; font: inherit; color: #c9b8ff; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.mls .mls-baby-btn:hover { color: #fff; }
.mls .mls-baby-btn:focus-visible { outline: 2px solid var(--ml-cyan); outline-offset: 2px; border-radius: 3px; }
.mls .mls-baby-btn:disabled { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------ 1.93.0: ready-made lists as a shelf of cards */
/* While the names box is empty: Baby boy, Baby girl, Cat names, Dog names, each a card with a pixel picture.
   Under the preview on a wide window; under the names box on a narrow one (placePreview() moves it). */
.mls .mls-sets { box-sizing: border-box; width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.mls .mls-sets[hidden] { display: none; }
.mls .mls-sets-title { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 13px var(--ml-sans); color: var(--ml-ink); }
.mls .mls-sets-title::before, .mls .mls-sets-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ml-violet-bright-rgb), 0.45)); }
.mls .mls-sets-title::after { background: linear-gradient(90deg, rgba(var(--ml-violet-bright-rgb), 0.45), transparent); }
.mls .mls-sets-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mls .mls-set {
	--set: 201, 184, 255;
	display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
	min-width: 0; margin: 0; padding: 9px 12px 9px 9px; text-align: left; cursor: pointer;
	border: 1px solid rgba(var(--set), 0.42); border-radius: 12px;
	background: linear-gradient(160deg, rgba(var(--set), 0.14), rgba(4, 6, 22, 0.82) 55%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(2, 4, 13, 0.45);
	color: var(--ml-ink); font: inherit;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.mls .mls-set-boy { --set: 90, 168, 255; }
.mls .mls-set-girl { --set: 255, 122, 228; }
.mls .mls-set-cat { --set: 255, 179, 92; }
.mls .mls-set-dog { --set: 232, 178, 122; }
.mls .mls-set:hover { transform: translateY(-2px); border-color: rgba(var(--set), 0.9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(2, 4, 13, 0.5), 0 0 18px rgba(var(--set), 0.28); }
.mls .mls-set:focus-visible { outline: 2px solid var(--ml-cyan); outline-offset: 2px; }
.mls .mls-set:disabled { opacity: 0.6; cursor: progress; transform: none; }
.mls .mls-set-art { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; background: rgba(var(--set), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--set), 0.3); }
.mls .mls-set-svg { width: 32px; height: 32px; display: block; filter: drop-shadow(0 2px 0 rgba(2, 4, 13, 0.55)); }
.mls .mls-set strong { align-self: end; font: 600 14px/1.2 var(--ml-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mls .mls-set small { align-self: start; font-size: 11.5px; line-height: 1.3; color: rgba(var(--set), 0.95); }
@media (prefers-reduced-motion: reduce) { .mls .mls-set, .mls .mls-set:hover { transition: none; transform: none; } }
/* between the two layouts the side column is narrower: two by two */
@media (min-width: 1001px) and (max-width: 1180px) { .mls .mls-make-side .mls-sets-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* under the names box (narrow windows): the same cards, two by two; on the smallest phones the picture sits over the name */
.mls .mls-sets-slot:not(:empty) { margin: 2px 0 4px; }
.mls .mls-sets-slot .mls-sets { max-width: none; gap: 8px; }
.mls .mls-sets-slot .mls-sets-title { font-size: 12px; }
.mls .mls-sets-slot .mls-sets-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mls .mls-sets-slot .mls-set small { white-space: nowrap; }
@media (max-width: 640px) {
	.mls .mls-sets-slot .mls-set { grid-template-columns: 38px minmax(0, 1fr); column-gap: 9px; padding: 7px 8px 7px 7px; }
	.mls .mls-sets-slot .mls-set-art { width: 38px; height: 38px; }
	.mls .mls-sets-slot .mls-set-svg { width: 28px; height: 28px; }
	.mls .mls-sets-slot .mls-set strong { font-size: 13.5px; }
}
@media (max-width: 380px) {
	.mls .mls-sets-slot .mls-set { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; justify-items: center; row-gap: 3px; padding: 9px 4px 8px; text-align: center; }
	.mls .mls-sets-slot .mls-set-art { grid-row: auto; }
	.mls .mls-sets-slot .mls-set strong { font-size: 13px; }
}
/* the race previews (Moonling Mayhem, UFO, Claw) give up height for the shelf too, like the wheel */
.mls-make-side .mls-moonlings { max-width: calc(var(--mls-prev-max, 9999px) * 960 / 420); margin-inline: auto; }
