/* HNC Rewards — consumes the theme tokens, degrades sanely under other themes. */

.hnc-rewards { display: flex; flex-direction: column; gap: 34px; }

.hnc-rw-h {
	font-size: 19px;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--hnc-line, #e4e4e4);
}

/* ---------- hero ---------- */

.hnc-rw-hero {
	background: var(--hnc-ink, #0a0a0a);
	color: var(--hnc-base, #fff);
	border-radius: var(--hnc-radius, 4px);
	padding: 32px clamp(18px, 4vw, 36px);
	text-align: center;
}
.hnc-rw-hero__eyebrow {
	display: block;
	font-size: 11.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--hnc-accent, #ff4500);
	font-weight: 700;
	margin-bottom: 12px;
}
.hnc-rw-hero__prize {
	font-size: clamp(20px, 3.2vw, 30px);
	margin: 0 auto 14px;
	max-width: 30ch;
	color: var(--hnc-base, #fff);
	text-transform: none;
	line-height: 1.25;
}
.hnc-rw-hero__timer {
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .72);
}
.hnc-rw-hero__timer strong { color: var(--hnc-accent, #ff4500); font-size: 17px; }
.hnc-rw-hero__rules {
	display: inline-block;
	margin-top: 14px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .72);
	text-decoration: underline;
}
.hnc-rw-hero__rules:hover { color: #fff; }

/* ---------- your stats ---------- */

.hnc-rw-you {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--hnc-line, #e4e4e4);
	border: 1px solid var(--hnc-line, #e4e4e4);
	border-radius: var(--hnc-radius, 4px);
	overflow: hidden;
}
.hnc-rw-stat {
	background: var(--hnc-base, #fff);
	padding: 18px 12px;
	text-align: center;
}
.hnc-rw-stat strong {
	display: block;
	font-family: var(--hnc-display, Impact, sans-serif);
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.hnc-rw-stat span {
	display: block;
	margin-top: 5px;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--hnc-muted, #6b6b6b);
}

/* ---------- invite ---------- */

.hnc-rw-invite {
	background: var(--hnc-surface, #f4f4f4);
	border-radius: var(--hnc-radius, 4px);
	padding: 22px;
}
.hnc-rw-invite__lede {
	font-size: 14px;
	color: var(--hnc-muted, #6b6b6b);
	margin: 0 0 14px;
	max-width: 60ch;
}
.hnc-rw-invite__row { display: flex; gap: 8px; flex-wrap: wrap; }
.hnc-rw-invite__input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid var(--hnc-line, #e4e4e4);
	border-radius: var(--hnc-radius, 4px);
	background: var(--hnc-base, #fff);
	color: var(--hnc-ink, #0a0a0a);
	font: inherit;
	font-size: 14px;
}
.hnc-rw-copy.is-copied { background: #1a7f37; border-color: #1a7f37; }

/* ---------- rules ---------- */

.hnc-rw-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hnc-rw-rules li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14.5px;
	padding: 8px 0;
	border-bottom: 1px solid var(--hnc-line, #e4e4e4);
}
.hnc-rw-rules li:last-child { border-bottom: 0; }
.hnc-rw-rules__pts {
	min-width: 44px;
	font-weight: 700;
	color: var(--hnc-accent, #ff4500);
	font-variant-numeric: tabular-nums;
}
.hnc-rw-note { font-size: 13px; color: var(--hnc-muted, #6b6b6b); margin: 12px 0 0; }

/* ---------- leaderboard ---------- */

.hnc-lb { list-style: none; margin: 0; padding: 0; counter-reset: lb; }
.hnc-lb__row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	border-bottom: 1px solid var(--hnc-line, #e4e4e4);
	border-radius: var(--hnc-radius, 4px);
	font-size: 14.5px;
}
.hnc-lb__row.is-me { background: var(--hnc-surface, #f4f4f4); font-weight: 700; }
.hnc-lb__rank {
	min-width: 26px;
	font-family: var(--hnc-display, Impact, sans-serif);
	font-size: 17px;
	color: var(--hnc-muted, #6b6b6b);
	font-variant-numeric: tabular-nums;
}
.hnc-lb__row:nth-child(1) .hnc-lb__rank,
.hnc-lb__row:nth-child(2) .hnc-lb__rank,
.hnc-lb__row:nth-child(3) .hnc-lb__rank { color: var(--hnc-accent, #ff4500); }
.hnc-lb__avatar { border-radius: 50%; }
.hnc-lb__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hnc-lb__pts {
	margin-left: auto;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--hnc-ink, #0a0a0a);
}

/* ---------- badges ---------- */

.hnc-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}
.hnc-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border: 1px solid var(--hnc-line, #e4e4e4);
	border-radius: var(--hnc-radius, 4px);
	font-size: 13px;
	font-weight: 700;
}
.hnc-badge__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: var(--hnc-ink, #0a0a0a);
	color: var(--hnc-base, #fff);
	font-size: 13px;
}
.hnc-badge.is-locked { opacity: .42; }
.hnc-badge.is-locked .hnc-badge__icon { background: var(--hnc-muted, #6b6b6b); }

/* ---------- misc ---------- */

.hnc-rw-join {
	text-align: center;
	background: var(--hnc-surface, #f4f4f4);
	border-radius: var(--hnc-radius, 4px);
	padding: 28px 20px;
}
.hnc-rw-join p { max-width: 46ch; margin: 0 auto 16px; color: var(--hnc-muted, #6b6b6b); }

.hnc-rw-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--hnc-accent, #ff4500);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

@media (max-width: 560px) {
	.hnc-rw-you { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hnc-rw-stat { padding: 14px 6px; }
	.hnc-rw-stat span { font-size: 10px; letter-spacing: .03em; }
	.hnc-rw-invite__row .hnc-btn { width: 100%; }
}

@media (hover: none) and (pointer: coarse) {
	.hnc-rw-invite__input { min-height: 44px; }
	.hnc-lb__name { display: inline-block; min-height: 24px; padding-block: 4px; }
}
