:root {
	color-scheme: light;
	--bg: #eef2f0;
	--surface: #ffffff;
	--fg: #14261f;
	--muted: #55665e;
	--accent: #1f5e45;
	--forest: #163f30;
	--sun: #f2b33d;
	--sky: #d8e6ec;
	--border: #d5ddd8;
	--danger: #b42318;
	--radius: 6px;
	--radius-lg: 14px;
	--space: 1rem;
	--shadow: 0 1px 2px rgba(20, 38, 31, 0.06), 0 6px 18px rgba(20, 38, 31, 0.06);
	--font: "Figtree", ui-sans-serif, system-ui, sans-serif;
	--display: "Bricolage Grotesque", "Figtree", ui-sans-serif, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.shell {
	max-width: 42rem;
	margin: 0 auto;
	padding: calc(var(--space) * 3) var(--space);
}

h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	letter-spacing: -0.02em;
}

.lede {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}

.hint {
	margin: 0;
	color: var(--muted);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.9rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.btn:hover {
	filter: brightness(1.05);
}

.btn-secondary {
	background: transparent;
	color: var(--fg);
	border-color: var(--border);
}

.card {
	padding: var(--space);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
}

.input,
.select,
.textarea {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--fg);
	font: inherit;
}

.field {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.35rem;
	margin-bottom: var(--space);
}

.field > label {
	font-size: 0.875rem;
	color: var(--muted);
}

/*
 * 390px-safe, like .grid below. A grid with no column list gets one implicit
 * auto column, and an auto column is never narrower than its widest item's
 * min-content width. One nowrap scrolling strip (days, time slots) anywhere
 * inside an item therefore widened the whole column past the screen: the page
 * scrolled sideways instead of the strip scrolling on its own. minmax(0, 1fr)
 * caps the column at the container; the min-width rule keeps a child from
 * bringing the same floor back if an app redefines the columns. :where() adds
 * no specificity, so a min-width the app sets on a child still wins.
 */
.stack {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space);
}

:where(.field, .stack, .list) > * {
	min-width: 0;
}

.row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/*
 * 390px-safe. An unclamped minmax track overflows a 390px viewport once the
 * shell padding is subtracted, and nothing in the pipeline ever looked at a
 * phone-width layout, so every generated app inherited the horizontal scroll.
 * min() clamps the track to the container instead.
 */
.grid {
	display: grid;
	gap: var(--space);
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.table {
	width: 100%;
	border-collapse: collapse;
}

.table th,
.table td {
	padding: 0.6rem 0.5rem;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.table th {
	font-size: 0.8125rem;
	color: var(--muted);
	font-weight: 600;
}

.empty {
	padding: calc(var(--space) * 2);
	text-align: center;
	color: var(--muted);
}

.empty-title {
	margin: 0 0 0.25rem;
	color: var(--fg);
	font-weight: 600;
}

/* Loading. Every fetch has one; without a primitive each app invented its own. */
.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: calc(var(--space) * 1.5);
	color: var(--muted);
}

.spinner {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid var(--border);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: fab-spin 0.7s linear infinite;
}

@keyframes fab-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Placeholder for content whose shape is known before its data arrives. */
.skeleton {
	display: block;
	height: 1rem;
	border-radius: calc(var(--radius) / 2);
	background: linear-gradient(90deg, var(--border), transparent, var(--border));
	background-size: 200% 100%;
	animation: fab-shimmer 1.2s linear infinite;
}

@keyframes fab-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* Error strip: a failure the user can see and retry, never a silent no-op. */
.alert {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--border);
	border-left: 3px solid var(--muted);
	border-radius: var(--radius);
}

.alert-error {
	border-left-color: var(--danger);
	color: var(--danger);
}

.badge {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--muted);
}

/*
 * The scaffold had exactly one @media rule (prefers-color-scheme) and no width
 * breakpoint at all, so the shell was a 42rem column at every size.
 * Mobile-first stays the default; these only widen it.
 */
@media (min-width: 48rem) {
	.shell {
		max-width: 52rem;
		padding: calc(var(--space) * 3) calc(var(--space) * 1.5);
	}
}

@media (min-width: 64rem) {
	.shell {
		max-width: 64rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spinner,
	.skeleton {
		animation: none;
	}
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- TrailCrew ---------- */
h1, h2, h3, .display {
	font-family: var(--display);
	letter-spacing: -0.02em;
	line-height: 1.1;
}
h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.center { display: flex; justify-content: center; padding-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-color: transparent; }
.input, .select, .textarea { background: var(--surface); min-height: 44px; }
.textarea { resize: vertical; }
.field > label { color: var(--fg); font-weight: 600; }

.btn { min-height: 44px; font-weight: 600; justify-content: center; transition: transform 0.08s; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--fg); padding-inline: 0.6rem; }
.btn-ghost:hover { background: rgba(20, 38, 31, 0.06); }
.btn-sun { background: var(--sun); color: var(--forest); }
.btn-danger { background: transparent; color: var(--danger); border-color: currentColor; }
.back { justify-self: start; padding-left: 0.2rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Landing */
.landing { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
.landing-hero {
	position: relative; overflow: hidden;
	background: var(--forest); color: #f1f5ef;
	padding: 2rem 1.25rem 6rem;
}
.landing-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.landing-brand svg { color: #2e7a5a; }
.landing-hero .display { font-size: clamp(2.4rem, 8vw, 4.4rem); font-weight: 800; margin: 2rem 0 1rem; max-width: 14ch; }
.landing-hero .lede { color: #c9d7cf; max-width: 46ch; }
.perks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.perks li { display: flex; gap: 0.7rem; align-items: center; }
.perks svg { color: var(--sun); flex: none; }
.ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; fill: var(--bg); }
.landing-form { padding: 0 1rem 3rem; margin-top: -3rem; position: relative; }
.auth-card { max-width: 26rem; margin: 0 auto; padding: 1.5rem; }
.auth-card h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.auth-card .alert { margin-bottom: 1rem; }
.switch { text-align: center; color: var(--muted); margin: 1rem 0 0; }
@media (min-width: 56rem) {
	.landing { grid-template-columns: 1.2fr 1fr; }
	.landing-hero { padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }
	.ridge { display: none; }
	.landing-form { margin: 0; display: flex; align-items: center; padding: 2rem; }
	.auth-card { width: 100%; }
}

[hidden] { display: none !important; }
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.landing-hero .landing-back { color: #fff; }
.landing-hero .landing-back:hover { background: rgba(255, 255, 255, 0.12); }
.landing-hero {
	background:
		linear-gradient(160deg, rgba(22, 63, 48, 0.93) 30%, rgba(22, 63, 48, 0.72)),
		url("https://images.pexels.com/photos/9896412/pexels-photo-9896412.jpeg?auto=compress&cs=tinysrgb&w=1600") center / cover;
}

/* Home hero */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: var(--radius-lg); min-height: 30rem;
	display: flex; align-items: flex-end; color: #fff;
	box-shadow: 0 20px 50px -20px rgba(20, 38, 31, 0.55);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); }
.hero-shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(10, 28, 21, 0.1) 0%, rgba(10, 28, 21, 0.55) 45%, rgba(10, 28, 21, 0.92) 100%),
		linear-gradient(90deg, rgba(10, 28, 21, 0.55), transparent 70%);
}
.hero-content { padding: 1.5rem 1.25rem; display: grid; gap: 0.9rem; max-width: 40rem; }
.hero-kicker {
	justify-self: start; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	background: rgba(242, 179, 61, 0.95); color: var(--forest); padding: 0.3rem 0.7rem; border-radius: 999px;
}
.hero-title { font-family: var(--display); font-size: clamp(2.3rem, 8vw, 4rem); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.hero-lede { margin: 0; color: #e3ebe6; font-size: 1.05rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }
.btn-lg { min-height: 50px; padding-inline: 1.4rem; font-size: 1.02rem; }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }
.hero-stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem;
	margin-top: 0.6rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-stats div { display: grid; gap: 0.1rem; min-width: 0; }
.hero-stats strong { font-family: var(--display); font-size: 1.7rem; line-height: 1; color: var(--sun); }
.hero-stats span { font-size: 0.82rem; color: #d3ddd7; }
@media (min-width: 48rem) {
	.hero { min-height: 34rem; }
	.hero-content { padding: 2.5rem 2.75rem; }
}

.how {
	display: grid; gap: 0; background: var(--surface); border-radius: var(--radius-lg);
	overflow: hidden; box-shadow: var(--shadow);
}
.how-img { width: 100%; height: 13rem; object-fit: cover; display: block; }
.how-body { padding: 1.4rem 1.25rem; display: grid; gap: 0.8rem; align-content: center; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.how-steps li { display: flex; gap: 0.85rem; align-items: flex-start; }
.how-steps p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.how-icon {
	flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
	display: grid; place-items: center; background: #e2efe8; color: var(--accent);
}
@media (min-width: 48rem) {
	.how { grid-template-columns: 1fr 1.2fr; }
	.how-img { height: 100%; min-height: 18rem; }
	.how-body { padding: 2rem; }
}

.list-title { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.5rem 0 0.25rem; scroll-margin-top: 7rem; }
#hike-list { scroll-margin-top: 7rem; }
.hike-card { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.hike-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 38, 31, 0.06), 0 14px 30px rgba(20, 38, 31, 0.12); }
.guest-note { background: linear-gradient(135deg, #fff 55%, #fbf1d9); }

/* App chrome */
.topbar { background: var(--forest); color: #fff; position: sticky; top: 0; z-index: 5; }
.topbar-inner { max-width: 64rem; margin: 0 auto; padding: 0.6rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; background: none; border: 0; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; cursor: pointer; padding: 0.3rem; min-height: 44px; }
.brand svg { color: #2e7a5a; }
.topbar-actions { gap: 0.25rem; }
.topbar .btn-ghost { color: #fff; }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.hello { color: #c9d7cf; font-size: 0.9rem; display: none; }
@media (min-width: 40rem) { .hello { display: inline; } }
.tabs { max-width: 64rem; margin: 0 auto; display: flex; gap: 0.25rem; padding: 0 0.75rem; overflow-x: auto; }
.tab { background: none; border: 0; color: #c9d7cf; font: inherit; font-weight: 600; padding: 0.7rem 0.8rem; min-height: 44px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab-active { color: #fff; border-bottom-color: var(--sun); }
.shell { padding-top: 1.5rem; padding-bottom: 4rem; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 0.25rem; }
.page-head p { margin: 0; }
.section-title { font-size: 1.3rem; display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.section-title .muted { font-family: var(--font); font-size: 0.9rem; font-weight: 500; letter-spacing: 0; }

.filters { display: grid; gap: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { min-height: 40px; padding: 0 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font: inherit; font-weight: 600; color: var(--fg); cursor: pointer; }
.chip-on { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Hike cards */
.hike-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); }
.hike-card {
	display: flex; gap: 1rem; text-align: left; width: 100%;
	background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-lg);
	box-shadow: var(--shadow); padding: 1rem; font: inherit; color: inherit; cursor: pointer;
}
.hike-card:hover { border-color: var(--accent); }
.date-block { flex: none; width: 4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sky); border-radius: var(--radius); padding: 0.5rem 0; align-self: flex-start; }
.date-month { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.date-day { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.date-week { font-size: 0.8rem; color: var(--muted); }
.hike-body { min-width: 0; display: grid; gap: 0.35rem; }
.hike-top { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.hike-body h3 { font-size: 1.2rem; }
.hike-loc { display: flex; gap: 0.35rem; align-items: center; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.hike-loc svg { flex: none; }
.facts { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.9rem; color: var(--muted); }
.facts span { display: inline-flex; gap: 0.3rem; align-items: center; }

.level { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 4px; justify-self: start; }
.level-easy { background: #d9efe2; color: #1c5a3c; }
.level-moderate { background: #fbedc9; color: #7a5300; }
.level-hard { background: #f6d6cf; color: #8f2a15; }
.tag { font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 4px; background: var(--sky); color: #24485a; }
.tag-done { background: var(--forest); color: #fff; }

/* Detail */
.detail-hero { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem; display: grid; gap: 0.9rem; border-top: 6px solid var(--forest); }
.detail-hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0; }
.detail-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.detail-stats > div { background: var(--bg); border-radius: var(--radius); padding: 0.7rem; display: grid; grid-template-columns: auto 1fr; column-gap: 0.5rem; align-items: center; }
.detail-stats svg { color: var(--accent); grid-row: span 2; }
.detail-stats strong { font-size: 1.1rem; }
.detail-stats span { font-size: 0.8rem; color: var(--muted); }
@media (min-width: 48rem) { .detail-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.detail-cols { display: grid; gap: var(--space); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .detail-cols { grid-template-columns: 1.4fr 1fr; } }
.crew, .comments, .leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.crew li, .leaders li { display: flex; align-items: center; gap: 0.7rem; }
.crew-name { flex: 1; min-width: 0; }
.avatar { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sky); color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.comments li { display: flex; gap: 0.7rem; align-items: flex-start; }
.comments li > div { min-width: 0; }
.comment-meta { margin: 0 0 0.15rem; }
.comment-form { display: grid; gap: 0.6rem; }
.comment-form .btn { justify-self: end; }
.celebrate { background: var(--sun); color: var(--forest); border-radius: var(--radius-lg); padding: 1rem 1.25rem; display: grid; gap: 0.5rem; scroll-margin-top: 8rem; animation: pop 0.35s ease-out; }
.celebrate strong { font-family: var(--display); font-size: 1.4rem; }
.celebrate-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.celebrate-badge { display: inline-flex; gap: 0.4rem; align-items: center; background: rgba(255, 255, 255, 0.55); padding: 0.3rem 0.6rem; border-radius: var(--radius); font-weight: 600; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

.form-card { padding: 1.5rem; max-width: 44rem; width: 100%; }
.form-card h1 { margin-bottom: 0.25rem; }
.form-card > .muted { margin-top: 0; margin-bottom: 1.25rem; }
.form-card .alert { margin-bottom: 1rem; }
.form-2 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; }
@media (min-width: 36rem) { .form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Progress */
.level-card { background: var(--forest); color: #e6eee9; border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.level-ring { flex: none; width: 6.5rem; height: 6.5rem; border-radius: 50%; border: 5px solid var(--sun); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.level-num { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: #fff; }
.level-word { font-size: 0.8rem; color: var(--sun); font-weight: 700; }
.level-info { flex: 1; min-width: 12rem; display: grid; gap: 0.4rem; }
.level-info h1 { margin: 0; font-size: clamp(2rem, 6vw, 3rem); color: #fff; }
.level-info p { margin: 0; }
.level-card .bar { background: rgba(255, 255, 255, 0.15); }
.bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--sun); transform-origin: left; transition: transform 0.6s ease-out; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: 0.6rem; }
.stat { background: var(--surface); border-radius: var(--radius-lg); padding: 0.9rem 1rem; box-shadow: var(--shadow); display: grid; }
.stat strong { font-family: var(--display); font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.85rem; }
.mission { display: grid; gap: 0.4rem; }
.mission-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.mission-done { outline: 2px solid var(--forest); }
.badge-grid { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); }
.badge-tile { background: var(--surface); border-radius: var(--radius-lg); padding: 1rem; display: grid; gap: 0.35rem; justify-items: start; box-shadow: var(--shadow); }
.badge-tile .bar { width: 100%; }
.badge-medal { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: #9aa8a1; border: 2px dashed #b9c5bf; }
.badge-on .badge-medal { background: var(--sun); color: var(--forest); border: 2px solid var(--forest); }
.leaders li { padding: 0.5rem; border-radius: var(--radius); }
.leaders li.me { background: #fdf3da; }
.rank { width: 1.5rem; text-align: center; font-weight: 700; color: var(--muted); }
.leader-name { flex: 1; min-width: 0; display: grid; }
