/* Missions, Tournaments & Rewards — public-facing styles. */

.mat-cards-grid {
	display: grid;
	gap: 20px;
}

.mat-card {
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
}

.mat-card__thumb {
	position: relative;
	display: block;
}

.mat-card__img {
	width: 100%;
	height: auto;
	display: block;
}

.mat-card__img--placeholder {
	aspect-ratio: 16 / 9;
	background: rgba(255, 255, 255, 0.05);
}

.mat-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.mat-card__badge--large {
	position: static;
	display: inline-block;
	margin: 8px 0;
}

.mat-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.mat-card__title {
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	color: inherit;
}

.mat-card__dates {
	font-size: 13px;
	opacity: 0.7;
}

.mat-card__progress-bar {
	position: relative;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	overflow: hidden;
}

.mat-card__progress-bar span {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--accent-color, #ffb800);
}

.mat-card__progress-label {
	font-size: 12px;
	opacity: 0.75;
}

.mat-card__cta-note {
	font-size: 13px;
	opacity: 0.8;
}

.mat-card__event,
.mat-card__prize-preview {
	font-size: 13px;
	opacity: 0.85;
	margin: 0;
}

.mat-hub__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.mat-hub__cards {
	display: grid;
}

.mat-hub__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	text-decoration: none;
	color: inherit;
}

.mat-hub__card-cta {
	display: inline-flex;
	align-self: flex-start;
}

.mat-tournament__header {
	margin-bottom: 24px;
}

.mat-tournament__dates span {
	margin-right: 16px;
	font-size: 14px;
	opacity: 0.75;
}

.mat-tournament__events,
.mat-tournament__prizes {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mat-tournament__event,
.mat-tournament__prize {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
}

.mat-tournament__leaderboard {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
}

.mat-tournament__leaderboard th,
.mat-tournament__leaderboard td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mat-tournament__leaderboard-row--me {
	background: rgba(255, 184, 0, 0.08);
}

.mat-reward-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	text-decoration: none;
	color: inherit;
}

.mat-reward-card__title {
	font-weight: 600;
}

.mat-reward-card__status {
	font-size: 12px;
	opacity: 0.75;
	text-transform: uppercase;
}

.mat-my-rewards__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.mat-my-rewards__tabs {
	display: flex;
	gap: 8px;
}

.mat-my-rewards__tab {
	padding: 8px 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.05);
	text-decoration: none;
	color: inherit;
	font-size: 14px;
}

.mat-my-rewards__tab.is-active {
	background: var(--accent-color, #ffb800);
	color: #111;
}

.mat-my-rewards__status-filter select {
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: inherit;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.mat-claim-detail {
	max-width: 520px;
}

.mat-claim-detail__back {
	display: inline-block;
	margin-bottom: 16px;
	opacity: 0.75;
	text-decoration: none;
	color: inherit;
}

.mat-claim-detail__code code {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	font-size: 18px;
	letter-spacing: 1px;
	margin-bottom: 16px;
}

.mat-claim-form__message.is-error {
	color: #ff5c5c;
}

.mat-claim-form__message.is-success {
	color: #35c46a;
}

[data-mat-join-mission].is-busy,
[data-mat-join-tournament].is-busy,
[data-mat-collect-claim].is-busy {
	opacity: 0.6;
	pointer-events: none;
}
