/**
 * Lunardraw ticket card (assets/js/ticket-card.js): the purchase window's ticket
 * and the My tickets cards. The printable JPG is drawn by the same script on a
 * canvas to match.
 */
@font-face {
	font-family: "Lunardraw Cinzel";
	src: url("../fonts/Cinzel-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lunardraw Cormorant";
	src: url("../fonts/CormorantGaramond-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Lunardraw Cormorant";
	src: url("../fonts/CormorantGaramond-600.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}

.mltc {
	--tc-serif: "Lunardraw Cormorant", "Cormorant Garamond", Georgia, serif;
	--tc-display: "Lunardraw Cinzel", Cinzel, "Times New Roman", serif;
	--tc-ink: #f4f1ff;
	--tc-soft: #cbbcff;
	--tc-dim: #a99ad8;
	--tc-line: rgba(163, 133, 255, 0.28);
	--tc-perf: 100%;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 26px 28px 20px;
	color: var(--tc-ink);
	text-align: left;
	background: #070615;
	border: 1.5px solid rgba(163, 133, 255, 0.85);
	border-radius: 22px;
	box-shadow: 0 0 0 1px rgba(138, 92, 249, 0.25), 0 0 34px rgba(138, 92, 249, 0.45), inset 0 0 40px rgba(138, 92, 249, 0.12);
}
/* the side notches at the perforation */
.mltc::before,
.mltc::after {
	content: "";
	position: absolute;
	z-index: 3;
	bottom: calc(var(--tc-foot, 118px) - 13px);
	width: 24px;
	height: 24px;
	background: var(--tc-notch, #05040f);
	border: 1.5px solid rgba(163, 133, 255, 0.85);
	border-radius: 50%;
}
.mltc::before {
	left: -13px;
}
.mltc::after {
	right: -13px;
}

.mltc-art {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: #070615;
	background-position: 80% top;
	background-repeat: no-repeat;
	background-size: cover;
}
.mltc-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(5, 4, 15, 0.55), rgba(5, 4, 15, 0.12) 60%, rgba(5, 4, 15, 0)), linear-gradient(180deg, rgba(60, 40, 150, 0.12), rgba(60, 40, 150, 0.2));
}
.mltc--single .mltc-art {
	background-position: center top;
}
.mltc-ground {
	display: none;
}
/* a tall ticket: the photo's sky and moon at the top, fading out, and its hills along the bottom */
.mltc--multi .mltc-art {
	background-position: 88% 0;
	background-size: 240% auto;
	-webkit-mask-image: linear-gradient(180deg, #000 0, #000 300px, transparent 470px);
	mask-image: linear-gradient(180deg, #000 0, #000 300px, transparent 470px);
}
.mltc--multi .mltc-ground {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	display: block;
	height: 150px;
	pointer-events: none;
	background-position: 30% 100%;
	background-repeat: no-repeat;
	background-size: 200% auto;
	opacity: 0.85;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px);
	mask-image: linear-gradient(180deg, transparent 0, #000 70px);
}

.mltc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.mltc-brand,
.mltc-private {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
.mltc-brand {
	font-family: var(--tc-serif);
	font-size: 26px;
	font-weight: 600;
}
.mltc-brand svg {
	width: 30px;
	height: 30px;
	color: #d9ccff;
	filter: drop-shadow(0 0 6px rgba(201, 184, 255, 0.8));
}
.mltc-private {
	padding: 6px 12px;
	background: rgba(9, 8, 30, 0.72);
	border: 1px solid rgba(163, 133, 255, 0.35);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	color: var(--tc-soft);
	letter-spacing: 0.22em;
	text-transform: uppercase;
}
.mltc-private svg {
	width: 14px;
	height: 14px;
}

.mltc-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.mltc-word {
	margin: 0;
	font-family: var(--tc-display);
	font-size: clamp(44px, 7vw, 72px);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-shadow: 0 0 22px rgba(163, 133, 255, 0.55);
	background: linear-gradient(180deg, #ffffff 30%, #c9bcff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.mltc-sub {
	margin: 0;
	font-family: var(--tc-serif);
	font-size: 24px;
	font-weight: 500;
	color: #b6a2ff;
}
.mltc-pill {
	margin: 2px 0 0;
	padding: 6px 18px;
	font-family: var(--tc-display);
	font-size: 17px;
	font-weight: 600;
	color: #f2cf6b;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1.5px solid #e8b83e;
	border-radius: 999px;
	box-shadow: 0 0 14px rgba(232, 184, 62, 0.4), inset 0 0 10px rgba(232, 184, 62, 0.15);
}
.mltc-status {
	margin: 4px 0 0;
	padding: 6px 16px;
	font-size: 11px;
	font-weight: 500;
	color: #e6e2ff;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	background: rgba(30, 24, 80, 0.7);
	border: 1px solid rgba(138, 120, 255, 0.8);
	border-radius: 999px;
	transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.mltc[data-state="sealed"] .mltc-status,
.mltc[data-state="open"] .mltc-status {
	border-color: rgba(52, 227, 162, 0.7);
	box-shadow: 0 0 12px rgba(52, 227, 162, 0.25);
}
.mltc[data-state="won"] .mltc-status {
	color: #241a00;
	background: linear-gradient(180deg, #fdef8b, #e8b83e);
	border-color: #fdef8b;
	box-shadow: 0 0 16px rgba(232, 184, 62, 0.6);
}
.mltc[data-state="failed"] .mltc-status,
.mltc[data-state="void"] .mltc-status,
.mltc[data-state="unconfirmed"] .mltc-status {
	border-color: rgba(232, 184, 62, 0.7);
	color: #f2cf6b;
}

.mltc-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--tc-line);
	border-bottom: 1px solid var(--tc-line);
}
.mltc-meta > div {
	min-width: 0;
	padding: 0 16px;
}
.mltc-meta > div + div {
	border-left: 1px solid var(--tc-line);
}
.mltc-meta > div:first-child {
	padding-left: 0;
}
.mltc-meta dt,
.mltc-k {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	color: var(--tc-dim);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.mltc-meta dd {
	margin: 4px 0 0;
	font-family: var(--tc-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
}

/* one ticket: big balls */
.mltc-single {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 18px;
}
.mltc-nums,
.mltc-moonball {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mltc-moonball {
	align-items: center;
	padding-left: 18px;
	border-left: 1px solid var(--tc-line);
}
.mltc-balls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mltc-ball {
	--d: 52px;
	display: inline-grid;
	place-items: center;
	width: var(--d);
	height: var(--d);
	font-family: var(--tc-serif);
	font-size: calc(var(--d) * 0.46);
	font-weight: 700;
	line-height: 1;
	color: #141432;
	background: radial-gradient(circle at 34% 30%, #ffffff 0%, #e6e0ff 45%, #a596e8 100%);
	border-radius: 50%;
	box-shadow: 0 0 14px rgba(163, 133, 255, 0.45), 0 6px 10px rgba(0, 0, 0, 0.35);
}
.mltc-ball.is-moon {
	color: #f6f2ff;
	background: radial-gradient(circle at 34% 30%, #9b7cff 0%, #5a2fc9 55%, #24125e 100%);
	box-shadow: 0 0 0 2.5px #e8b83e, 0 0 18px rgba(232, 184, 62, 0.55);
}
.mltc-ball.is-all {
	font-size: calc(var(--d) * 0.3);
	letter-spacing: 0.04em;
}
.mltc-ball.is-sm {
	--d: 30px;
}
.mltc-ball.is-hit {
	color: #2a1c00;
	background: radial-gradient(circle at 34% 30%, #ffffff 0%, #fff1b8 45%, #d9a836 100%);
	box-shadow: 0 0 18px rgba(253, 239, 139, 0.8);
}
.mltc-ball.is-moon.is-hit {
	color: #2a1c00;
	box-shadow: 0 0 0 2.5px #fdef8b, 0 0 22px rgba(253, 239, 139, 0.85);
}
.mltc-result {
	grid-column: 1 / -1;
	margin: 0;
	font-family: var(--tc-serif);
	font-size: 20px;
	font-weight: 600;
	color: #f2cf6b;
}

/* several tickets: a list, 10 a page */
.mltc-games-k {
	font-family: var(--tc-serif);
	font-size: 17px;
	letter-spacing: 0.3em;
	color: #d7ceff;
}
.mltc-list-head,
.mltc-r {
	display: grid;
	grid-template-columns: 48px 1fr 40px 74px;
	align-items: center;
	gap: 10px;
}
.mltc-list-head {
	margin-top: 10px;
	padding-bottom: 6px;
	font-size: 10px;
	color: var(--tc-dim);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.mltc-list-head span:last-child {
	grid-column: 3 / 5;
}
.mltc-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mltc-r {
	padding: 7px 0;
	border-top: 1px solid rgba(163, 133, 255, 0.16);
}
.mltc-r-n {
	font-family: var(--tc-serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--tc-soft);
}
.mltc-r-nums {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-family: var(--tc-serif);
	font-size: 20px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.mltc-r-nums .is-hit {
	font-weight: 700;
	color: #fdef8b;
	text-shadow: 0 0 10px rgba(253, 239, 139, 0.7);
}
.mltc-r-tag {
	font-size: 10px;
	color: var(--tc-dim);
	letter-spacing: 0.12em;
	text-align: right;
	text-transform: uppercase;
}
.mltc-r-tag.is-win {
	color: #f2cf6b;
}
.mltc-r.is-unconfirmed > :not(.mltc-r-tag),
.mltc-r.is-not-bought > :not(.mltc-r-tag) {
	opacity: 0.45;
}
.mltc-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
}
.mltc-pager-text {
	font-family: var(--tc-serif);
	font-size: 16px;
	color: var(--tc-soft);
}
.mltc-pager-btns {
	display: flex;
	gap: 6px;
}
.mltc-page {
	width: 32px;
	height: 32px;
	padding: 0;
	font-family: var(--tc-serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--tc-soft);
	cursor: pointer;
	background: transparent;
	border: 1px solid rgba(163, 133, 255, 0.45);
	border-radius: 50%;
}
.mltc-page.is-on {
	color: #fff;
	background: radial-gradient(circle at 35% 30%, #a385ff, #6a3fe0);
	border-color: #a385ff;
	box-shadow: 0 0 10px rgba(138, 92, 249, 0.7);
}
.mltc-page:focus-visible {
	outline: 2px solid var(--ml-cyan, #64c8f2);
	outline-offset: 2px;
}
.mltc-gap {
	align-self: center;
	color: var(--tc-dim);
}

.mltc-foot {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 6px;
	padding-top: 18px;
	border-top: 2px dashed rgba(200, 190, 255, 0.5);
}
.mltc-idv {
	margin: 4px 0 0;
	font-family: var(--tc-serif);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.mltc-foot-r {
	text-align: right;
}
.mltc-tx,
.mltc-by {
	margin: 0;
	font-family: var(--tc-serif);
	font-size: 16px;
	color: var(--tc-soft);
}
.mltc-by strong {
	font-size: 18px;
	color: var(--tc-ink);
}
.mltc-testnet {
	margin: -6px 0 0;
	font-size: 9px;
	color: #8f86c0;
	letter-spacing: 0.24em;
	text-align: center;
	text-transform: uppercase;
}
.mltc-stamp {
	position: absolute;
	z-index: 2;
	top: 132px;
	right: 30px;
	margin: 0;
	padding: 8px 16px;
	font-family: var(--tc-display);
	font-size: 15px;
	font-weight: 600;
	color: #34e3a2;
	letter-spacing: 0.08em;
	border: 2.5px solid rgba(52, 227, 162, 0.75);
	border-radius: 8px;
	opacity: 0;
	transform: rotate(-10deg) scale(1.6);
	pointer-events: none;
}
.mltc[data-state="sealed"] .mltc-stamp {
	opacity: 0.9;
	transform: rotate(-10deg) scale(1);
	transition: opacity 0.25s ease-out, transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1);
}

/* building: balls pop in one by one; sealing: they shimmer behind frosted glass */
.mltc[data-state="building"] .mltc-ball,
.mltc[data-state="building"] .mltc-r {
	animation: mltc-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
	animation-delay: calc(var(--i, 0) * 0.09s);
}
@keyframes mltc-pop {
	from {
		opacity: 0;
		transform: scale(0.4) translateY(10px);
	}
}
.mltc[data-state="sealing"] .mltc-body {
	position: relative;
}
.mltc[data-state="sealing"] .mltc-body::after {
	content: "";
	position: absolute;
	inset: -6px;
	background: linear-gradient(100deg, transparent 20%, rgba(200, 185, 255, 0.35) 45%, transparent 70%) 0 0 / 220% 100%, rgba(14, 12, 44, 0.35);
	border-radius: 14px;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: mltc-sheen 1.4s linear infinite;
}
@keyframes mltc-sheen {
	from {
		background-position: 120% 0, 0 0;
	}
	to {
		background-position: -120% 0, 0 0;
	}
}
.mltc[data-state="approving"] .mltc-status,
.mltc[data-state="sending"] .mltc-status,
.mltc[data-state="landing"] .mltc-status,
.mltc[data-state="sealing"] .mltc-status {
	animation: mltc-pulse 1.4s ease-in-out infinite;
}
@keyframes mltc-pulse {
	50% {
		box-shadow: 0 0 16px rgba(163, 133, 255, 0.75);
	}
}
.mltc[data-state="failed"] .mltc-body,
.mltc[data-state="failed"] .mltc-meta {
	opacity: 0.5;
	filter: grayscale(0.6);
}

/* the download button under a card */
.mltc-dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--ml-ink, #e6e9ff);
	cursor: pointer;
	background: rgba(138, 92, 249, 0.16);
	border: 1px solid rgba(163, 133, 255, 0.6);
	border-radius: 999px;
}
.mltc-dl:hover {
	background: rgba(138, 92, 249, 0.3);
}
.mltc-dl:disabled {
	cursor: progress;
	opacity: 0.7;
}
.mltc-dl:focus-visible {
	outline: 2px solid var(--ml-cyan, #64c8f2);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.mltc {
		gap: 14px;
		padding: 20px 18px 16px;
	}
	.mltc-brand {
		font-size: 20px;
	}
	.mltc-private span {
		display: none;
	}
	.mltc-meta {
		grid-template-columns: 1fr 1fr;
		row-gap: 10px;
	}
	.mltc-meta > div:nth-child(3) {
		grid-column: 1 / -1;
		padding-left: 0;
		border-left: 0;
	}
	.mltc-meta dd {
		font-size: 18px;
	}
	.mltc-ball {
		--d: 40px;
	}
	.mltc-ball.is-sm {
		--d: 26px;
	}
	.mltc-single {
		grid-template-columns: 1fr;
	}
	.mltc-moonball {
		flex-direction: row;
		align-items: center;
		padding: 10px 0 0;
		border-top: 1px solid var(--tc-line);
		border-left: 0;
	}
	.mltc-list-head,
	.mltc-r {
		grid-template-columns: 30px 1fr 30px;
	}
	.mltc-r-tag,
	.mltc-list-head span:last-child {
		display: none;
	}
	.mltc-r-nums {
		gap: 2px 8px;
		font-size: 17px;
	}
	.mltc-stamp {
		top: 70px;
		right: 16px;
		font-size: 12px;
	}
	.mltc-moon,
		.mltc-foot {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.mltc-foot-r {
		text-align: left;
	}
	.mltc-idv {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mltc *,
	.mltc *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------------------------------------------------------------- the portrait ticket (the Maxi concept)
 * Several games, or any ticket beside the purchase window: a quieter moon, notches at
 * the details row and at the tear-off line, one game opened up as balls. */
.mltc--multi {
	--tc-pad: 26px;
	gap: 16px;
	padding: 26px var(--tc-pad) 18px;
}
.mltc--multi .mltc-word {
	font-size: clamp(42px, 10vw, 64px);
}
.mltc--multi .mltc-title {
	gap: 10px;
}
.mltc--multi .mltc-pill {
	padding: 4px 20px;
	font-size: 17px;
}
.mltc--multi .mltc-status {
	padding: 5px 26px;
	font-size: 10px;
	background: rgba(24, 20, 70, 0.55);
}
.mltc--multi .mltc-meta {
	position: relative;
	padding: 12px 0;
}
.mltc--multi .mltc-meta::before,
.mltc--multi .mltc-meta::after {
	content: "";
	position: absolute;
	top: -13px;
	width: 24px;
	height: 24px;
	background: var(--tc-notch, #05040f);
	border: 1.5px solid rgba(163, 133, 255, 0.85);
	border-radius: 50%;
}
.mltc--multi .mltc-meta::before {
	left: calc(-1 * var(--tc-pad) - 14px);
}
.mltc--multi .mltc-meta::after {
	right: calc(-1 * var(--tc-pad) - 14px);
}
.mltc--multi .mltc-meta dd {
	font-size: 21px;
}
.mltc--multi .mltc-games-k {
	margin: 4px 0 0;
	font-size: 18px;
	letter-spacing: 0.32em;
}
.mltc--multi .mltc-list-head,
.mltc--multi .mltc-r {
	grid-template-columns: 46px minmax(0, 1fr) 52px;
	gap: 6px;
}
.mltc--multi .mltc-list-head {
	margin-top: 8px;
}
.mltc--multi .mltc-list-head span:last-child {
	grid-column: 3;
	justify-self: center;
	white-space: nowrap;
	letter-spacing: 0.12em;
	text-align: center;
}
.mltc--multi .mltc-r {
	position: relative;
	min-height: 44px;
	padding: 6px 0;
}
.mltc--multi .mltc-r-n {
	display: flex;
	flex-direction: column;
	font-size: 23px;
	line-height: 1;
}
.mltc--multi .mltc-r-n small {
	margin-bottom: 3px;
	font-family: Geist, sans-serif;
	font-size: 8px;
	font-weight: 500;
	color: var(--tc-dim);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.mltc--multi .mltc-r-nums {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	align-items: center;
	gap: 4px 2px;
	font-size: 19px;
	text-align: center;
}
.mltc--multi .mltc-r .mltc-ball.is-moon {
	justify-self: center;
}
.mltc--multi .mltc-r > .mltc-ball {
	position: relative;
}
.mltc--multi .mltc-r > .mltc-ball::before {
	content: "";
	position: absolute;
	top: -8px;
	bottom: -8px;
	left: -10px;
	border-left: 1px solid var(--tc-line);
}
.mltc--multi .mltc-r-tag {
	grid-column: 1 / -1;
	margin-top: 2px;
	font-family: Geist, sans-serif;
	font-size: 9px;
	text-align: left;
}
.mltc--multi .mltc-r.is-win .mltc-r-tag {
	color: #f2cf6b;
}
.mltc--multi .mltc-r.is-win .mltc-r-n {
	color: #f2cf6b;
}
.mltc-r-tg {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	color: var(--tc-soft);
	cursor: pointer;
	background: none;
	border: 0;
	border-radius: 50%;
}
.mltc-r-tg svg {
	width: 18px;
	height: 18px;
}
.mltc-r-tg:hover {
	color: #fff;
	background: rgba(163, 133, 255, 0.16);
}
.mltc-r-tg:focus-visible {
	outline: 2px solid var(--ml-cyan, #64c8f2);
	outline-offset: 1px;
}
/* the opened game */
.mltc--multi .mltc-r.is-open {
	margin: 4px -10px;
	padding: 10px;
	background: linear-gradient(180deg, rgba(110, 80, 230, 0.2), rgba(60, 40, 150, 0.12));
	border: 1.5px solid rgba(163, 133, 255, 0.75);
	border-top-color: rgba(163, 133, 255, 0.75);
	border-radius: 14px;
	box-shadow: 0 0 18px rgba(138, 92, 249, 0.35), inset 0 0 16px rgba(138, 92, 249, 0.15);
}
.mltc--multi .mltc-r.is-open + .mltc-r {
	border-top-color: transparent;
}
.mltc--multi .mltc-r.is-open .mltc-r-nums {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.mltc-ball.is-row {
	--d: 36px;
}
.mltc-ball.is-moon.is-row {
	--d: 42px;
}
.mltc--multi .mltc-pager {
	margin-top: 10px;
}
.mltc-next svg {
	width: 16px;
	height: 16px;
}
.mltc-next {
	display: inline-grid;
	place-items: center;
}
.mltc-next:disabled {
	cursor: default;
	opacity: 0.35;
}
/* footer: ticket id | games · draw, then "Powered by" in the middle */
.mltc--multi .mltc-foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 16px;
}
.mltc-foot-sum {
	margin: 0;
	padding-left: 18px;
	font-family: var(--tc-serif);
	font-size: 19px;
	border-left: 1px solid var(--tc-line);
}
.mltc--multi .mltc-tx {
	font-size: 13px;
	color: var(--tc-dim);
}
.mltc--multi .mltc-by {
	grid-column: 1 / -1;
	margin-top: 4px;
	text-align: center;
}
/* the portrait ticket has no stamp (as in the concept): its status pill lights up instead */
.mltc--multi .mltc-stamp {
	display: none;
}
.mltc--multi[data-state="sealed"] .mltc-status {
	color: #d9fff0;
	background: rgba(20, 70, 56, 0.55);
	animation: mltc-sealed 1.2s ease-out 1;
}
@keyframes mltc-sealed {
	from {
		box-shadow: 0 0 0 0 rgba(52, 227, 162, 0.9);
	}
	to {
		box-shadow: 0 0 0 14px rgba(52, 227, 162, 0);
	}
}
@media (max-width: 560px) {
	.mltc--multi {
		--tc-pad: 18px;
	}
	.mltc--multi .mltc-meta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.mltc--multi .mltc-meta > div:nth-child(3) {
		grid-column: auto;
		padding-left: 12px;
		border-left: 1px solid var(--tc-line);
	}
	.mltc--multi .mltc-meta dd {
		font-size: 16px;
	}
	.mltc--multi .mltc-list-head,
	.mltc--multi .mltc-r {
		grid-template-columns: 34px minmax(0, 1fr) 40px;
	}
	.mltc--multi .mltc-list-head span:last-child {
		display: block;
	}
	.mltc--multi .mltc-r-nums {
		font-size: 16px;
	}
	.mltc-ball.is-row {
		--d: 26px;
	}
	.mltc-ball.is-moon.is-row {
		--d: 30px;
	}
	.mltc--multi .mltc-foot {
		display: grid;
	}
	.mltc--multi .mltc-foot-r {
		text-align: left;
	}
}

/* ---------------------------------------------------------------- the purchase window with its ticket
 * On a screen at least 900 px wide the purchase window becomes one wide window
 * (Jack's mockup): the ticket on the left, in a box headed with the draw and when
 * sales close, a divider, and the steps on the right under the moon. One violet
 * border round both. wallet.js scales the whole window down (zoom) to fit a short
 * screen. Narrower, only the steps show (the ticket is in My tickets and its JPG
 * button is in the window's buttons). */
.mlb-card {
	display: none;
}
@media (min-width: 900px) {
	.mlb.has-card {
		width: min(1140px, calc(100vw - 32px));
		max-height: none;
		background: radial-gradient(ellipse at 75% 0%, rgba(var(--ml-violet-rgb), 0.16), transparent 55%), #070a17;
		border: 1px solid rgba(var(--ml-violet-rgb), 0.6);
		border-radius: 18px;
		box-shadow: 0 0 0 1px rgba(var(--ml-violet-rgb), 0.12), 0 0 36px rgba(var(--ml-violet-rgb), 0.32), 0 0 90px rgba(var(--ml-violet-rgb), 0.14), 0 24px 64px rgba(0, 0, 0, 0.6);
		zoom: var(--mlb-zoom, 1);
	}
	.mlb.has-card:focus,
	.mlb.has-card:focus-visible {
		outline: none; /* the dialog itself takes focus when it opens; its violet border is the edge */
	}
	.mlb.has-card[open] {
		display: grid;
		grid-template-columns: minmax(0, 560px) minmax(380px, 1fr);
		align-items: stretch;
	}
	.mlb.has-card .mlb-card:not([hidden]) {
		display: block;
		padding: 24px;
		border-right: 1px solid rgba(var(--ml-violet-rgb), 0.28);
	}
	.mlb-card-box {
		padding: 14px 14px 16px;
		background: #060913;
		border: 1px solid rgba(var(--ml-violet-rgb), 0.38);
		border-radius: 14px;
		box-shadow: inset 0 0 30px rgba(var(--ml-violet-rgb), 0.08);
	}
	.mlb-card-head {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 4px 12px;
		margin: 2px 4px 12px;
	}
	.mlb-card-draw {
		font-family: 'Lunardraw Cinzel', Georgia, serif;
		font-size: 18px;
		letter-spacing: 0.06em;
		color: var(--ml-ink);
	}
	.mlb-card-sale {
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: #4ade80;
	}
	.mlb-card-sale::before {
		content: '';
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-right: 7px;
		vertical-align: 1px;
		background: currentColor;
		border-radius: 50%;
		box-shadow: 0 0 8px currentColor;
	}
	.mlb-card-sale.is-closed {
		color: var(--ml-muted);
	}
	.mlb-card-sale.is-closed::before {
		box-shadow: none;
	}
	.mlb-card .mltc {
		--tc-pad: 20px;
		--tc-notch: #060913;
		gap: 12px;
		padding: 20px 20px 14px;
	}
	.mlb-card .mltc-word {
		font-size: 50px;
	}
	.mlb-card .mltc-ball.is-row {
		--d: 27px;
	}
	.mlb-card .mltc-ball.is-moon.is-row {
		--d: 32px;
	}
	.mlb-card .mltc-r-nums {
		font-size: 17px;
	}
	.mlb-card .mltc-pill {
		font-size: 15px;
	}
	.mlb-card .mltc-meta dd {
		font-size: 18px;
	}
	/* the ticket's small labels, a size up in the window (it is often scaled down to fit) */
	.mlb-card .mltc-meta dt {
		font-size: 12.5px;
		letter-spacing: 0.16em;
	}
	.mlb-card .mltc--multi .mltc-status {
		font-size: 12px;
	}
	.mlb-card .mltc--multi .mltc-list-head {
		font-size: 11.5px;
	}
	.mlb-card .mltc--multi .mltc-r-n small {
		font-size: 10px;
	}
	.mlb-card .mltc-testnet {
		font-size: 10.5px;
		letter-spacing: 0.18em;
	}
	.mlb-card-sale {
		font-size: 12.5px;
	}
	.mlb-card-draw {
		font-size: 20px;
	}
	/* the steps side: no panel of its own, the moon and its little ticket without the band */
	.mlb.has-card .mlb-box {
		justify-content: center;
		padding: 8px 32px 28px;
		background: none;
		border: 0;
	}
	.mlb.has-card .mlb-scene {
		height: 236px;
		margin: 0;
		background: none;
		border: 0;
	}
	.mlb.has-card .mlb-orbit {
		top: 10px;
		width: 128px;
		height: 128px;
		margin-left: -64px;
	}
	.mlb.has-card .mlb-moon {
		inset: 38px;
	}
	/* the little sealing ticket (its numbers scramble while it's sealed) stays under the moon */
	.mlb.has-card .mlb-ticket {
		bottom: 10px;
		width: 360px;
		margin-left: -180px;
		padding: 12px 18px;
	}
	.mlb.has-card .mlb-ticket-head {
		font-size: 13px;
	}
	.mlb.has-card .mlb-ticket-nums {
		font-size: 21px;
	}
	.mlb.has-card .mlb-ticket-seal {
		font-size: 14px;
	}
	.mlb.has-card .mlb-text {
		text-align: center;
	}
	/* bigger type on the steps side, so it reads easily even when the window is scaled down */
	.mlb.has-card .mlb-text .mlw-title {
		font-size: 30px;
	}
	.mlb.has-card .mlb-sub {
		font-size: 18px;
	}
	.mlb.has-card .mlb-steps {
		gap: 8px;
	}
	.mlb.has-card .mlb-steps li {
		gap: 14px;
		padding: 11px 14px;
		font-size: 19px;
	}
	.mlb.has-card .mlb-steps li::before {
		width: 13px;
		height: 13px;
	}
	.mlb.has-card .mlb-bar {
		height: 6px;
		border-radius: 3px;
	}
	.mlb.has-card .mlb-log {
		max-height: 150px;
		font-size: 15px;
		line-height: 1.5;
	}
	.mlb.has-card .mlb-why,
	.mlb.has-card .mlb-why p {
		font-size: 16px;
	}
	.mlb.has-card .mlb-actions .mlw-btn {
		min-height: 50px;
		font-size: 17px;
	}
}

/* ---------------------------------------------------------------- My tickets */
.mlt-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 12px 0 18px;
	--tc-notch: var(--ml-panel, #070c1d);
}
.mlt-card .mltc {
	width: 100%;
	max-width: 760px;
}

/* the numbers spin, then lock in */
.mltc .is-spinning {
	color: var(--tc-soft);
	filter: blur(0.4px);
}
.mltc-ball.is-spinning {
	color: #6d62a8;
}
.mltc .is-locked {
	animation: mltc-lock 0.35s cubic-bezier(0.2, 1.8, 0.4, 1);
}
@keyframes mltc-lock {
	from {
		transform: scale(1.25);
		text-shadow: 0 0 12px rgba(253, 239, 139, 0.9);
	}
}
.mltc-ball.is-moon.is-spinning {
	color: #d9ccff;
}

/* veiled: empty glass balls until the numbers arrive with a shooting star */
.mltc-r.is-veiled .mltc-ball {
	color: transparent;
	background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(190, 175, 255, 0.08) 55%, rgba(120, 100, 220, 0.05) 100%);
	box-shadow: inset 0 0 0 1px rgba(200, 185, 255, 0.35), 0 0 8px rgba(163, 133, 255, 0.15);
}
.mltc-r.is-veiled .mltc-ball.is-moon {
	box-shadow: inset 0 0 0 1px rgba(232, 184, 62, 0.45), 0 0 8px rgba(232, 184, 62, 0.15);
}
.mltc-r.is-landing .mltc-ball {
	animation: mltc-land 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
	animation-delay: calc(var(--i, 0) * 0.04s);
}
.mltc-r.is-landing .mltc-ball.is-moon {
	animation-delay: 0.3s;
}
@keyframes mltc-land {
	from {
		opacity: 0.2;
		transform: scale(1.4);
		box-shadow: 0 0 9px 1px rgba(255, 236, 170, 0.75);
	}
	50% {
		opacity: 1;
		box-shadow: 0 0 8px rgba(255, 236, 170, 0.45);
	}
}
.mltc-r.is-landing {
	animation: mltc-row-glow 1s ease-out;
}
@keyframes mltc-row-glow {
	from {
		box-shadow: 0 0 14px rgba(255, 236, 170, 0.4), inset 0 0 10px rgba(255, 236, 170, 0.15);
	}
}
/* the shooting star: a bright head with a long fading tail behind it */
.mltc-star {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	background: #fffbe8;
	border-radius: 50%;
	box-shadow: 0 0 10px 4px rgba(255, 246, 210, 0.95), 0 0 30px 10px rgba(190, 170, 255, 0.6);
	opacity: 0;
	pointer-events: none;
	transform-origin: 5px 5px;
}
.mltc-star::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 5px;
	width: 320px;
	height: 3px;
	margin-top: -1.5px;
	background: linear-gradient(90deg, transparent, rgba(190, 170, 255, 0.35) 45%, rgba(255, 250, 225, 0.95));
	border-radius: 3px;
	filter: blur(0.5px);
}
.mltc-star::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 5px;
	width: 180px;
	height: 10px;
	margin-top: -5px;
	background: linear-gradient(90deg, transparent, rgba(220, 205, 255, 0.35));
	border-radius: 50%;
	filter: blur(3px);
}

/* every game in a box of white balls; a winning game is outlined in gold */
.mltc--multi .mltc-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mltc--multi .mltc-r.is-open {
	margin: 0 -10px;
}
.mltc--multi .mltc-r.is-open + .mltc-r {
	border-top-color: rgba(163, 133, 255, 0.75);
}
.mltc--multi .mltc-r.is-win {
	border-color: rgba(253, 239, 139, 0.85);
	box-shadow: 0 0 18px rgba(232, 184, 62, 0.35), inset 0 0 16px rgba(232, 184, 62, 0.12);
}
.mltc--multi .mltc-r.is-open .mltc-r-tag {
	flex-basis: 100%;
	color: #f2cf6b;
}
/* a winning number: a gold ball with dark digits */
.mltc-r-nums .mltc-ball.is-hit {
	color: #2a1c00;
	text-shadow: none;
}

/* the numbers spread across the row and grow with it, up to the Moonball's size */
.mltc--multi .mltc-r.is-open .mltc-r-nums {
	display: grid;
	grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr));
	justify-items: center;
	gap: 6px 4px;
	container-type: inline-size;
}
.mltc--multi .mltc-r.is-open .mltc-r-nums .mltc-ball {
	width: min(42px, 100%);
	height: auto;
	aspect-ratio: 1;
	font-size: clamp(11px, 6cqi, 19px);
}
.mltc--multi .mltc-r.is-open .mltc-r-nums .mltc-r-tag {
	grid-column: 1 / -1;
	justify-self: start;
}
/* My tickets: every ticket the same size, the games scrolling inside it */
.mlt-card .mltc,
.mlt-card .mltc--multi {
	max-width: none;
}
.mltc--scroll .mltc-rows {
	height: 292px;
	padding: 2px 10px 2px 0;
	margin-right: -10px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(163, 133, 255, 0.6) transparent;
}
.mltc--scroll .mltc-rows::-webkit-scrollbar {
	width: 6px;
}
.mltc--scroll .mltc-rows::-webkit-scrollbar-thumb {
	background: rgba(163, 133, 255, 0.6);
	border-radius: 3px;
}
.mltc--scroll .mltc-r.is-open {
	margin: 0;
}
/* the draws side by side, two to a row on a wide screen */
.mlt [data-tickets-list] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
	align-items: start;
	gap: 18px;
}
.mlt [data-tickets-list] > :not(.mlt-draw) {
	grid-column: 1 / -1;
}
/* the ticket fits its draw's column, not the other way round */
.mlt [data-tickets-list] > .mlt-draw,
.mlt-card,
.mlt-card .mltc {
	min-width: 0;
}
.mlt-card {
	align-items: stretch;
}
.mlt-card .mltc-dl {
	align-self: flex-start;
}
/* padding inside the ticket's width, not added to it */
.mltc,
.mltc *,
.mltc *::before,
.mltc *::after {
	box-sizing: border-box;
}
/* rows keep their height in a scrolling list (they scroll, they don't squash) */
.mltc--multi .mltc-rows > .mltc-r {
	flex-shrink: 0;
}

/* a game's result (Div 6, Unconfirmed, Not bought): a badge on its box's top edge */
.mltc--multi .mltc-r > .mltc-r-tag {
	position: absolute;
	top: -8px;
	left: 12px;
	z-index: 1;
	margin: 0;
	padding: 1px 8px;
	font-family: Geist, sans-serif;
	font-size: 9px;
	font-weight: 600;
	line-height: 14px;
	color: #c9bcff;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	background: #1a1440;
	border: 1px solid rgba(163, 133, 255, 0.7);
	border-radius: 999px;
}
.mltc--multi .mltc-r.is-win > .mltc-r-tag {
	color: #241a00;
	background: linear-gradient(180deg, #fdef8b, #e8b83e);
	border-color: #fdef8b;
}
.mltc--scroll .mltc-rows {
	padding-top: 9px;
}
/* the draws sit in a grid now: no stacking gap above each one, so a row's tickets line up */
.mlt .mlt-list > * + * {
	margin-top: 0;
}
/* the details row stays one line high: a long value ("System 8 Moonhit") shrinks to fit its column */
/* the details row always has room for two lines, so a long value ("System 8 Moonhit") wraps at
   full size without making its ticket bigger than the others */
.mltc--multi .mltc-meta dd {
	min-height: 2.3em;
	line-height: 1.15;
	white-space: normal;
}
/* phones: Draw and Draw closes side by side, Entry on its own line (the same on every ticket) */
@media (max-width: 560px) {
	.mltc--multi .mltc-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 10px;
	}
	.mltc--multi .mltc-meta > div:nth-child(3) {
		grid-column: 1 / -1;
		padding-left: 0;
		border-left: 0;
	}
}
/* the status pill stays one line too */
.mltc-status {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 560px) {
	.mltc--multi .mltc-status {
		padding: 5px 14px;
		letter-spacing: 0.12em;
	}
}

/* the draw's winning numbers, on the ticket once drawn: a gold row above the games.
 * The games list gives up the row's height, so a drawn ticket is the same size as the rest. */
.mltc-win {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}
.mltc-win .mltc-win-k {
	color: #f2cf6b;
}
.mltc--multi .mltc-win .mltc-r.mltc-win-r {
	margin: 0 -10px;
	padding: 8px 10px;
	background: linear-gradient(180deg, rgba(232, 184, 62, 0.16), rgba(140, 100, 20, 0.08));
	border: 1.5px solid rgba(232, 184, 62, 0.7);
	border-radius: 14px;
	box-shadow: 0 0 16px rgba(232, 184, 62, 0.22), inset 0 0 14px rgba(232, 184, 62, 0.1);
}
.mltc-win-r .mltc-r-n,
.mltc-win-r .mltc-r-n small {
	color: #f2cf6b;
}
.mltc-ball.is-drawn {
	color: #2a1c00;
	background: radial-gradient(circle at 34% 30%, #fffbe6 0%, #fde58a 45%, #d9a836 100%);
	box-shadow: 0 0 12px rgba(253, 220, 120, 0.55), 0 4px 8px rgba(0, 0, 0, 0.35);
}
.mltc-ball.is-moon.is-drawn {
	color: #f6f2ff;
	background: radial-gradient(circle at 34% 30%, #9b7cff 0%, #5a2fc9 55%, #24125e 100%);
	box-shadow: 0 0 0 2.5px #fdef8b, 0 0 18px rgba(253, 220, 120, 0.7);
}
.mltc--scroll.has-win .mltc-rows {
	height: calc(292px - var(--tc-win, 86px));
}
