/* Typography: Inter and Manrope are bundled (fonts/fonts.css) rather than loaded from a font service, so they are
   there offline (PWA); MudTheme's Typography (MainLayout) names them for MudBlazor's own components, this covers
   the plain HTML around them and the moment before the theme loads */
html, body {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* The full-width bands (.page-header, .home-hero) are 100vw wide, and 100vw includes a desktop browser's vertical
   scrollbar, so they overhang the visible page by its width; clip that instead of showing a horizontal scrollbar */
html {
	overflow-x: hidden;
}

/* FocusOnNavigate moves focus to the page title (h1) for screen readers; the focus ring on a heading is just noise */
h1:focus {
	outline: none;
}

.loading-text {
	display: grid;
	place-items: center;
	height: 100vh;
	color: #594AE2;
	font-size: 1.25rem;
}

#blazor-error-ui {
	color-scheme: light only;
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

#blazor-error-ui .dismiss {
	cursor: pointer;
	position: absolute;
	right: 0.75rem;
	top: 0.5rem;
}

/* Staff-written Markdown (MarkdownView): plain HTML elements need the typography MudBlazor only gives its own components */
.markdown-body {
	font-size: 1rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.markdown-body > :first-child {
	margin-top: 0;
}

.markdown-body > :last-child {
	margin-bottom: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
	margin: 0 0 0.75rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
	margin: 1rem 0 0.5rem;
	line-height: 1.3;
}

.markdown-body h1 { font-size: 1.5rem; }
.markdown-body h2 { font-size: 1.3rem; }
.markdown-body h3 { font-size: 1.15rem; }

.markdown-body a {
	color: var(--mud-palette-primary);
}

.markdown-body blockquote {
	margin: 0 0 0.75rem;
	padding-left: 1rem;
	border-left: 3px solid var(--mud-palette-lines-default);
	color: var(--mud-palette-text-secondary);
}

.markdown-body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

/* MudSimpleTable renders a plain <table> with no responsive/stacking mode of its own -- this lets a wide one
   scroll horizontally instead of overflowing the viewport or squeezing columns unreadably on a phone */
.table-scroll {
	overflow-x: auto;
}

/* The audit log's details column: what an action carried, as "key: value" pairs. Small, and allowed to wrap anywhere so a long
   value (a name, a JSON fragment) never widens the table past the viewport */
.audit-log .audit-details {
	font-size: 0.8rem;
	overflow-wrap: anywhere;
	background: none;
}

.audit-log .audit-trace {
	font-family: monospace;
}

/* "Nothing here yet" placeholder text (an empty list, no results, ...) -- italic so it reads as an absence, not
   as a row of real data */
.placeholder-text {
	font-style: italic;
}

/* Marks a panel as holding controls that change what's shown below it (a filter, a search box, a view toggle) --
   an accent border in the theme's derived Secondary color (AccentPalette.Secondary), so a group of controls
   visually announces itself instead of looking like any other outlined content panel on the page. The extra
   .mud-paper-outlined in the selector beats that class's own border on specificity, no !important needed. */
.mud-paper-outlined.control-panel {
	border-left: 4px solid var(--mud-palette-secondary);
}

/* The period a report's summary or bookings are for, after the heading's own words: lighter, so the heading still reads as the section */
.report-period {
	margin-inline-start: 0.75rem;
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--mud-palette-text-secondary);
}

/* PageHeader: breaks out of MudMainContent's centered, max-width MudContainer to span the full viewport width,
   regardless of how wide the page's own body content below is -- a standard CSS trick (position:relative + a
   negative viewport-width margin centers the breakout on the *container's* center, which coincides with the
   viewport's own center only because the container itself is horizontally centered). .page-header-inner's own
   max-width/padding mirror MudContainer's (MaxWidth.Large's 1280px; Gutters' 16px below 600px, 24px from it) so
   the title text lines up with the content below it. */
.page-header {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-bottom: 1rem;
	background-color: var(--mud-palette-secondary);
	background-image: linear-gradient(100deg, var(--mud-palette-secondary), var(--mud-palette-primary));
	color: var(--mud-palette-secondary-text);
}

/* A primary button on the band ("New ...") would be orange on the orange end of the gradient; a light button with dark
   text stands out in both themes */
.page-header .mud-button-root.mud-button-filled {
	background-color: #ffffff;
	color: #231f20;
}

.page-header .mud-button-root.mud-button-filled:hover {
	background-color: #ffe9d9;
}

.page-header h1 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.page-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1rem 16px;
}

@media (min-width: 600px) {
	.page-header-inner {
		padding: 1rem 24px;
	}
}

/* EventCalendar's month grid: a CSS grid (not MudGrid -- seven equal fractional columns aren't a natural fit for
   its 12-column model). It is only shown from the Md breakpoint (960px) upward (EventViews shows the list below that),
   where seven columns of at least ~120px fit without scrolling; minmax(0, 1fr) lets a column shrink below its longest
   event title, which then truncates. */
.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	background-color: var(--mud-palette-lines-default);
}

.calendar-weekday {
	background-color: var(--mud-palette-background);
	padding: 0.5rem;
	font-weight: 500;
	text-align: center;
}

.calendar-day {
	background-color: var(--mud-palette-background);
	padding: 0.5rem;
	min-height: 7rem;
}

/* A leading/trailing day from the month before/after, shown only to fill out the grid's full weeks */
.calendar-day-outside {
	opacity: 0.5;
}

.calendar-day-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
}

/* Today: the whole cell is tinted and outlined, besides the filled circle around its number */
.calendar-day-current {
	background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-background));
	box-shadow: inset 0 0 0 2px var(--mud-palette-primary);
}

.calendar-day-today {
	background-color: var(--mud-palette-primary);
	color: var(--mud-palette-primary-text);
}

.calendar-event {
	display: block;
	font-size: 0.8rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The basic facts at the top of a detail page (when, where, who, ...): a label/value grid, two columns where there is
   room, one column on a phone. It is a real <dl>, so a screen reader announces each label with its value. */
.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.25rem;
	margin: 0 0 1rem;
}

.facts dt {
	font-weight: 600;
}

.facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 599px) {
	.facts {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.facts dd {
		margin-bottom: 0.5rem;
	}
}

/* A compact bulleted list inside a card or tile (a group's current series) */
.bullet-list {
	list-style: disc;
	margin: 0.25rem 0 0;
	padding-inline-start: 1.25rem;
}

/* A short list of links under a section heading (the groups at a location, the locations of a group) */
.link-list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.link-list li {
	margin: 0.25rem 0;
}

/* Cards: a soft shadow with a hairline border instead of a hard outline, and a small lift under the pointer */
.mud-card.mud-paper-outlined {
	border-color: var(--mud-palette-lines-default);
	box-shadow: 0 1px 3px rgba(35, 31, 32, 0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mud-card.mud-paper-outlined:hover {
	box-shadow: 0 6px 16px rgba(35, 31, 32, 0.14);
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.mud-card.mud-paper-outlined {
		transition: none;
	}

	.mud-card.mud-paper-outlined:hover {
		transform: none;
	}
}

/* EmptyState: a muted icon over the message */
.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 2rem 1rem;
	color: var(--mud-palette-text-secondary);
	text-align: center;
}

/* GroupChip, SeriesChip: a tint per group or series (--chip-hue, set from its id, see IdColor) behind the normal text color */
.mud-chip.group-chip,
.mud-chip.series-chip {
	background-color: hsl(var(--chip-hue) 65% 50% / 0.2);
	border: 1px solid hsl(var(--chip-hue) 65% 45% / 0.45);
}

/* An event of a series: the same tint over the card, with a stronger edge; a one-off event keeps no tint */
.mud-paper.series-tint {
	background-color: hsl(var(--chip-hue) 65% 50% / 0.1);
	border: 1px solid hsl(var(--chip-hue) 65% 45% / 0.45);
	border-left: 4px solid hsl(var(--chip-hue) 65% 45% / 0.9);
}

/* ... and on the calendar */
.calendar-event.series-tint {
	background-color: hsl(var(--chip-hue) 65% 50% / 0.18);
	border-left: 3px solid hsl(var(--chip-hue) 65% 45% / 0.9);
	border-radius: 3px;
	padding-left: 0.25rem;
}

/* Text for screen readers only */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* LoadingPlaceholder: no pulsing for people who ask for less motion */
@media (prefers-reduced-motion: reduce) {
	.loading-placeholder .mud-skeleton {
		animation: none;
	}
}

/* Dialog titles: a tinted band with the icon, title and what the dialog is about (DialogHeader) */
.mud-dialog-title:has(.dialog-header) {
	background-color: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface));
	border-bottom: 1px solid var(--mud-palette-lines-default);
	padding: 12px 24px;
}

.mud-dialog-title:has(.dialog-header) .mud-dialog-close-button,
.mud-dialog-title:has(.dialog-header) .mud-button-close {
	margin-inline-start: auto;
}

.dialog-header h2 {
	margin: 0;
}

.dialog-subtitle {
	color: var(--mud-palette-text-secondary);
}

/* Home hero: a full-width band like .page-header, taller, with the welcome, intro and the two main ways in. The image
   is the brand's HeroImageUrl, which MainLayout exposes as --hero-image; it is darkened under the text. */
.home-hero {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-bottom: 1.5rem;
	padding: 3rem 0;
	background-color: var(--mud-palette-secondary);
	background-image:
		linear-gradient(rgba(35, 31, 32, 0.45), rgba(35, 31, 32, 0.45)),
		var(--hero-image, linear-gradient(100deg, var(--mud-palette-secondary), var(--mud-palette-primary)));
	background-size: cover;
	background-position: center;
	color: #ffffff;
}

.home-hero-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 600px) {
	.home-hero-inner { padding: 0 24px; }
}

.home-hero h1 {
	max-width: 24ch;
	text-wrap: balance;
}

.home-hero p {
	max-width: 48ch;
	margin-top: 0.5rem;
}

.home-hero .mud-button-filled {
	background-color: #ffffff;
	color: #231f20;
}

.home-hero .mud-button-outlined {
	border-color: #ffffff;
	color: #ffffff;
}

.home-highlight {
	height: 100%;
}

.home-more {
	display: inline-block;
	margin-top: 0.5rem;
}

/* The notification bell's menu and the notification list: an icon, the text, and a dot while unread */
.notification-popover {
	min-width: 20rem;
	max-width: min(26rem, 94vw);
	max-height: 70vh;
	overflow-y: auto;
}

.notification-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
}

.notification-text {
	flex: 1;
	min-width: 0;
}

.notification-title {
	font-weight: 500;
	overflow-wrap: anywhere;
}

.notification-unread .notification-title {
	font-weight: 700;
}

.notification-message {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
}

.notification-message-full {
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.notification-time {
	display: block;
	opacity: 0.7;
}

.notification-dot {
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--mud-palette-primary);
}

/* The buttons of a notification sit at the right, under its text */
.notification-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

/* In the bell's menu a notification and its buttons are one block, set off from the next by a line (and a tint while unread), so
   it is clear which buttons belong to which notification */
.notification-entry {
	padding-bottom: 0.25rem;
}

.notification-entry + .notification-entry {
	border-top: 1px solid var(--mud-palette-lines-default);
}

.notification-entry-unread {
	background-color: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
}

/* The unread count: smaller than MudBlazor's badge, and kept inside the button instead of hanging past the edge of the screen */
.notification-badge .mud-badge.mud-badge-top.right.mud-badge-overlap {
	height: 1rem;
	min-width: 1rem;
	padding: 0 0.25rem;
	font-size: 0.65rem;
	inset: auto auto calc(100% - 1.25rem) calc(100% - 1.4rem);
}

.notification-card {
	border-left: 4px solid transparent;
}

.notification-unread-card {
	border-left-color: var(--mud-palette-primary);
}

/* The page is at least a screen tall, with the footer at the bottom of it (it is the last child of MudMainContent) */
.mud-main-content {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	box-sizing: border-box;
}

.mud-main-content > .mud-container {
	flex: 1 0 auto;
}

/* Footer: the language and timezone menus on one side, the credits on the other, wrapping on a narrow screen */
.app-footer {
	margin-top: auto;
	border-top: 1px solid var(--mud-palette-lines-default);
	background-color: var(--mud-palette-background);
	color: var(--mud-palette-text-secondary);
}

.app-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.5rem 16px;
}

@media (min-width: 600px) {
	.app-footer-inner { padding: 0.5rem 24px; }
}

/* The menus name a language and a time zone ("Europe/Sofia"), which read badly in capitals */
.app-footer .mud-button-root {
	text-transform: none;
}

.app-footer-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1rem;
	min-width: 0;
}

/* The app bar's two logos (MainLayout): the narrow one alone below the Sm breakpoint (600px), the wide one from there up */
.brand-wide {
	display: none;
}

.brand-narrow {
	display: block;
}

@media (min-width: 600px) {
	.brand-wide { display: block; }
	.brand-narrow { display: none; }
}

/* The unread chip and "Mark as read" button of a notification on the notifications page: beside the text, or below it on
   a phone, where four things in one row would squeeze the text to a few letters per line */
.notification-side {
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
}

@media (max-width: 599px) {
	.notification-card .notification-item {
		flex-wrap: wrap;
	}

	.notification-side {
		flex-basis: 100%;
		justify-content: flex-end;
	}

	/* MudGrid's 24px spacing pulls the grid 8px past the screen's edge next to the page's 16px gutter; 16px fits it */
	.mud-grid.mud-grid-spacing-xs-6 {
		width: calc(100% + 16px);
		margin-left: -16px;
		margin-top: -16px;
	}

	.mud-grid.mud-grid-spacing-xs-6 > .mud-grid-item {
		padding-left: 16px;
		padding-top: 16px;
	}
}

/* In the bell's menu a long title takes at most two lines, so a few notifications don't fill a phone's screen */
.notification-popover .notification-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ScanCheckInDialog: the answer to the last scan comes first (the host watches it, so it has a tinted band as well as the icon; the
   icon floats at the left and the text flows around it, which takes less room than a row of its own), then the camera, and the box a hardware
   reader types into */
.scan-camera {
	position: relative;
	margin-bottom: 8px;
}

.scan-video {
	display: block;
	width: 100%;
	max-height: 32vh;
	object-fit: cover;
	border-radius: var(--mud-default-borderradius);
	background-color: #000;
}

.scan-torch {
	position: absolute !important;
	top: 6px;
	right: 6px;
}

.scan-result {
	overflow: hidden;
	padding: 8px 12px;
	margin-bottom: 8px;
	border-radius: var(--mud-default-borderradius);
	border: 1px solid var(--mud-palette-lines-default);
}

.scan-result-pass {
	border-color: var(--mud-palette-success);
	background-color: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
}

.scan-result-fail {
	border-color: var(--mud-palette-error);
	background-color: color-mix(in srgb, var(--mud-palette-error) 14%, transparent);
}

.scan-result-icon {
	float: left;
	margin: 2px 10px 2px 0;
	font-size: 2.25rem !important;
	width: 2.25rem !important;
	height: 2.25rem !important;
}

.scan-input {
	width: 100%;
	padding: 6px 8px;
	margin-bottom: 8px;
	border: 1px solid var(--mud-palette-lines-default);
	border-radius: var(--mud-default-borderradius);
	background-color: transparent;
	color: var(--mud-palette-text-primary);
	font: inherit;
}

/* The box takes what the button leaves (its width of 100% alone squeezed the button, and wrapped its label), and the button never shrinks */
.scan-manual {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	margin-bottom: 0;
}

.scan-manual-row .mud-button-root {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* In Manual the box a reader types into is moved out of sight, not removed: it can still take focus and a reader still has somewhere to type */
.scan-offscreen {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.scan-recent {
	max-height: 7.5rem;
	overflow-y: auto;
}

/* The attendee list (AttendancePanel): button labels never break, and on a phone a row's buttons drop to a line of their own under the
   name and status instead of squeezing them */
.attendee-actions .mud-button-root {
	white-space: nowrap;
}

.attendee-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
}

/* The card's number is the first column: digits of one width, in a piece */
.attendee-number-cell {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 599.95px) {
	/* MudSimpleTable sets a row's and a cell's display itself, with selectors this has to outweigh */
	.mud-simple-table.attendee-table table * tr {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		border-bottom: 1px solid var(--mud-palette-table-lines);
	}

	.mud-simple-table.attendee-table table * tr > td {
		border-bottom: 0;
	}

	.mud-simple-table.attendee-table table * tr > td.attendee-number-cell {
		flex: 0 0 auto;
	}

	.mud-simple-table.attendee-table table * tr > td.attendee-name-cell {
		flex: 1 1 50%;
	}

	.mud-simple-table.attendee-table table * tr > td.attendee-actions-cell {
		flex: 1 1 100%;
		padding-top: 0;
	}

	.attendee-actions {
		justify-content: flex-start;
	}
}

/* The steps of the iOS install help (InstallHelpDialog) */
.install-steps {
	margin: 0;
	padding-left: 1.25rem;
}

.install-steps li + li {
	margin-top: 0.5rem;
}

/* The QR code of a card on its own (QrCodeView): square, on white, as big as the page allows up to a comfortable size for scanning off a screen */
.qr-code {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	border: 1px solid var(--mud-palette-lines-default);
	border-radius: 4px;
}

.account-number {
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	letter-spacing: 0.12em;
}

/* Printing the card page: only the card, at the size of a bank card, with its colors (browsers leave out backgrounds by default) */
@media print {
	.no-print,
	.mud-appbar,
	.mud-drawer,
	.app-footer {
		display: none !important;
	}

	/* The page is at least a screen tall on screen (for the footer). Printed, that "screen" is the page, and on a phone it comes out taller
	   than what the page can hold once its margins are taken off, so a second, blank page follows the card: here the page is only as
	   tall as the card */
	html,
	body,
	.mud-layout,
	.mud-main-content {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
	}

	.mud-main-content {
		padding-top: 0 !important;
	}

	.mud-main-content > .mud-container {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	body {
		background: #fff !important;
	}

	.qr-code-print {
		break-inside: avoid;
		width: 40mm;
		max-width: none;
		height: 40mm;
		border: 0;
		border-radius: 0;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.loyalty-card-print {
		break-inside: avoid;
		width: 85.6mm;
		max-width: none;
		height: 54mm;
		border-radius: 0;
		box-shadow: none;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

/* The achievements page (Achievements.razor): each badge in a card, its name and how to earn it written beside the image, so nothing depends on a tooltip or on colour */
.badge-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.badge-card {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	height: 100%;
	padding: 0.75rem;
}

.badge-image {
	flex: 0 0 auto;
	width: 3.5rem;
	height: 3.5rem;
}

/* The latest badges and cups next to a name: small, in the line of text, and a "+3" that is a link */
.name-badges {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-inline-start: 0.5rem;
	vertical-align: middle;
}

.name-badge {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
}

.name-badges-more {
	font-size: 0.8125rem;
	white-space: nowrap;
}

/* A leaderboard: the cup beside the first three places, and the viewer's own row picked out */
.leaderboard-place {
	white-space: nowrap;
}

.cup-image {
	width: 1.5rem;
	height: 1.5rem;
	margin-inline-end: 0.5rem;
	vertical-align: middle;
}

.leaderboard-you {
	background-color: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

.leaderboard-you-tag {
	margin-inline-start: 0.5rem;
	font-size: 0.8125rem;
}

.leaderboard-anonymous {
	font-style: italic;
}

/* A badge not earned yet is shown paler: the words "Not earned yet" say it, so this only helps those who can see it */
/* The plastic card the person is eligible for: an icon, then the words */
.plastic-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
}

.badge-locked {
	opacity: 0.45;
	filter: grayscale(0.6);
}

.badge-text {
	min-width: 0;
}

.badge-state {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.badge-earnings {
	margin: 0.25rem 0 0;
	padding-left: 1.25rem;
	font-size: 0.8rem;
}
