.hlpt,
.hlpt * {
	box-sizing: border-box;
}

.hlpt {
	--hlpt-page: #FBF8F1;
	--hlpt-card: #FFFEFA;
	--hlpt-ink: #4B3022;
	--hlpt-muted: #76665a;
	--hlpt-gold: #C6A15A;
	--hlpt-line: #C6A15A;
	--hlpt-accent: #C6A15A;
	--hlpt-tint: #FBF8F1;
	max-width: 100%;
	margin-block: 1.5rem;
	padding: clamp(.9rem, 2vw, 1.4rem);
	border-radius: 18px;
	background: var(--hlpt-page);
	color: var(--hlpt-ink);
	font-family: inherit;
	line-height: 1.6;
}

.hlpt__header {
	margin: 0 0 1.15rem;
	padding: 0 0 .95rem;
	border-bottom: 1px solid rgba(198, 161, 90, .65);
}

.hlpt__header h2 {
	position: relative;
	margin: 0 0 .7rem;
	color: var(--hlpt-ink);
	font-family: inherit;
	font-size: clamp(1.45rem, 2.8vw, 1.9rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.015em;
}

.hlpt__header h2::after {
	display: block;
	width: 4rem;
	height: 4px;
	margin-top: .55rem;
	border-radius: 999px;
	background: var(--hlpt-gold);
	content: "";
}

.hlpt__description {
	max-width: 68ch;
	margin: 0;
	color: var(--hlpt-muted);
}

.hlpt__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 1rem;
}

.hlpt__card {
	--hlpt-accent: #C6A15A;
	--hlpt-tint: #FBF8F1;
	display: flex;
	grid-column: span 2;
	min-width: 0;
	min-height: 216px;
	flex-direction: column;
	align-items: flex-start;
	gap: .55rem;
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--hlpt-gold);
	border-radius: 16px;
	background: var(--hlpt-card);
	box-shadow: 0 5px 18px rgba(75, 48, 34, .08);
	color: var(--hlpt-ink);
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.hlpt__card--birth {
	--hlpt-accent: #0e6c66;
}

.hlpt__card--numbers {
	--hlpt-accent: #6740b2;
}

.hlpt__card--dreams {
	--hlpt-accent: #4258ae;
}

.hlpt__card--lottery {
	--hlpt-accent: #ad394d;
}

.hlpt__card--calendar {
	--hlpt-accent: #1c5e9a;
}

.hlpt__card--auspicious {
	--hlpt-accent: #935300;
}

.hlpt__card--other {
	--hlpt-accent: #286943;
}

.hlpt--count-4 .hlpt__card {
	grid-column: span 3;
}

.hlpt--count-5 .hlpt__card:nth-child(4) {
	grid-column: 2 / span 2;
}

.hlpt--count-5 .hlpt__card:nth-child(5) {
	grid-column: 4 / span 2;
}

.hlpt__card:hover {
	border-color: var(--hlpt-gold);
	background: var(--hlpt-card);
	box-shadow: 0 12px 26px rgba(75, 48, 34, .14);
	color: var(--hlpt-ink);
	text-decoration: none;
	transform: translateY(-3px);
}

.hlpt__card:focus-visible {
	outline: 3px solid var(--hlpt-gold);
	outline-offset: 3px;
}

.hlpt__card-top {
	display: flex;
	width: 100%;
	align-items: center;
	gap: .65rem;
}

.hlpt__icon {
	display: inline-flex;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(198, 161, 90, .75);
	border-radius: 50%;
	background: var(--hlpt-accent);
	box-shadow: 0 4px 11px rgba(75, 48, 34, .13);
	color: #fff;
}

.hlpt__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.hlpt__category {
	min-width: 0;
	padding: .25rem .68rem;
	border: 1px solid var(--hlpt-accent);
	border-radius: 999px;
	background: var(--hlpt-tint);
	color: var(--hlpt-accent);
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.35;
}

.hlpt__card-title {
	margin: .2rem 0 0;
	color: var(--hlpt-ink);
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.45;
}

.hlpt__card-description {
	margin: 0;
	color: var(--hlpt-muted);
	font-size: .9rem;
	line-height: 1.55;
}

.hlpt__card-action {
	display: flex;
	width: 100%;
	min-height: 38px;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	margin-top: auto;
	padding: .35rem .6rem .35rem .78rem;
	border: 1px solid var(--hlpt-gold);
	border-radius: 10px;
	background: var(--hlpt-ink);
	color: #fff;
	font-size: .9rem;
	font-weight: 700;
	transition: filter .18s ease;
}

.hlpt__card-action > span {
	display: inline-grid;
	width: 27px;
	height: 27px;
	flex: 0 0 27px;
	place-items: center;
	border-radius: 50%;
	background: rgba(198, 161, 90, .32);
	color: #fff;
	font-size: 1rem;
	line-height: 1;
}

.hlpt__card:hover .hlpt__card-action {
	filter: brightness(.92);
}

@media (max-width: 900px) {
	.hlpt__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hlpt__card,
	.hlpt--count-4 .hlpt__card,
	.hlpt--count-5 .hlpt__card:nth-child(4),
	.hlpt--count-5 .hlpt__card:nth-child(5) {
		grid-column: span 1;
	}

	.hlpt--count-5 .hlpt__card:last-child {
		grid-column: 1 / -1;
		width: 50%;
		justify-self: center;
	}
}

@media (max-width: 600px) {
	.hlpt {
		padding: .75rem;
		border-radius: 14px;
	}

	.hlpt__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: .65rem;
	}

	.hlpt__card,
	.hlpt--count-4 .hlpt__card,
	.hlpt--count-5 .hlpt__card:nth-child(4),
	.hlpt--count-5 .hlpt__card:nth-child(5),
	.hlpt--count-5 .hlpt__card:last-child {
		grid-column: 1;
		width: auto;
	}

	.hlpt__card {
		min-height: 170px;
		padding: .9rem;
	}

	.hlpt__header {
		margin-bottom: .9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hlpt__card,
	.hlpt__card-action {
		transition-duration: .01ms !important;
	}
}
