.selfo-content-cards,
.selfo-progress-lock {
	direction: rtl;
	font-family: inherit;
}

.selfo-content-cards {
	max-width: 1080px;
	margin: 24px auto;
	padding: 22px 16px 26px;
	border-radius: 28px;
	background: linear-gradient(150deg, #e9fbff 0%, #d7f6e8 48%, #fff3c7 100%);
	box-shadow: 0 14px 35px rgba(16, 85, 105, .18);
}

.selfo-content-cards__header {
	max-width: 680px;
	margin: 0 auto 20px;
	text-align: center;
}

.selfo-content-cards__header h2 {
	margin: 0;
	color: #a34d10;
	font-size: clamp(1.35rem, 4.8vw, 2rem);
	line-height: 1.35;
}

.selfo-content-cards__header p {
	margin: 6px 0 0;
	color: #315f63;
	font-size: clamp(.95rem, 3.8vw, 1.15rem);
	line-height: 1.65;
}

.selfo-content-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
	gap: 14px;
}

.selfo-content-card {
	position: relative;
	display: flex;
	min-height: 232px;
	flex-direction: column;
	align-items: center;
	padding: 13px 11px 14px;
	border: 3px solid rgba(104, 61, 21, .66);
	border-radius: 25px;
	color: #56310d;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 7px 0 rgba(104, 61, 21, .4), 0 12px 18px rgba(70, 77, 50, .18);
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
	-webkit-tap-highlight-color: transparent;
}

.selfo-content-card:hover,
.selfo-content-card:focus-visible {
	color: #56310d;
	transform: translateY(-4px);
	box-shadow: 0 10px 0 rgba(104, 61, 21, .4), 0 16px 24px rgba(70, 77, 50, .24);
	outline: 4px solid #276f8a;
	outline-offset: 3px;
}

.selfo-content-card:active {
	transform: translateY(3px);
	box-shadow: 0 4px 0 rgba(104, 61, 21, .4);
}

.selfo-content-card--tone-0 { background: #fff0c6; }
.selfo-content-card--tone-1 { background: #dff7e8; }
.selfo-content-card--tone-2 { background: #e3f4ff; }
.selfo-content-card--tone-3 { background: #f8e2ff; }
.selfo-content-card--tone-4 { background: #ffe0dd; }

.selfo-content-card__art {
	display: grid;
	width: 82px;
	height: 82px;
	margin-bottom: 7px;
	place-items: center;
	overflow: hidden;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #f9ffff;
	box-shadow: 0 3px 8px rgba(65, 82, 75, .2);
}

.selfo-content-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.selfo-content-card__emoji {
	font-size: 2.55rem;
	line-height: 1;
}

.selfo-content-card__eyebrow {
	display: block;
	margin-bottom: 4px;
	color: #677447;
	font-size: .79rem;
	font-weight: 800;
}

.selfo-content-card__title {
	display: block;
	font-size: 1.08rem;
	line-height: 1.32;
}

.selfo-content-card__description {
	display: -webkit-box;
	margin-top: 5px;
	overflow: hidden;
	color: #75582c;
	font-size: .84rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.selfo-content-card__status {
	margin-top: auto;
	padding-top: 9px;
	color: #28725e;
	font-size: .8rem;
	font-weight: 800;
	line-height: 1.3;
}

.selfo-content-card--complete {
	border-color: #2b9d73;
}

.selfo-content-card--complete .selfo-content-card__status::before {
	content: "✓ ";
}

.selfo-content-card--locked {
	cursor: not-allowed;
	filter: saturate(.35);
	opacity: .82;
}

.selfo-content-card--locked .selfo-content-card__status {
	color: #754b37;
}

.selfo-content-card__lock {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	width: 33px;
	height: 33px;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	font-size: 1.05rem;
	box-shadow: 0 2px 5px rgba(61, 37, 20, .2);
}

.selfo-content-cards__empty,
.selfo-progress-lock {
	max-width: 620px;
	margin: 24px auto;
	padding: 22px 18px;
	border: 3px dashed #d38b2a;
	border-radius: 24px;
	background: #fff8d9;
	color: #75451e;
	text-align: center;
	line-height: 1.7;
}

.selfo-progress-lock__icon {
	display: block;
	margin-bottom: 4px;
	font-size: 2.2rem;
}

.selfo-progress-lock h2 {
	margin: 0;
	font-size: clamp(1.2rem, 5vw, 1.65rem);
}

.selfo-progress-lock p {
	margin: 6px 0 0;
}

@media (max-width: 480px) {
	.selfo-content-cards {
		margin-right: -4px;
		margin-left: -4px;
		padding: 18px 10px 22px;
		border-radius: 22px;
	}

	.selfo-content-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 11px;
	}

	.selfo-content-card {
		min-height: 218px;
		padding: 11px 8px;
		border-radius: 21px;
	}

	.selfo-content-card__art {
		width: 70px;
		height: 70px;
	}

	.selfo-content-card__title {
		font-size: .98rem;
	}
}

@media (max-width: 330px) {
	.selfo-content-cards__grid {
		grid-template-columns: 1fr;
	}

	.selfo-content-card {
		min-height: 185px;
	}
}
