/**
 * Juegos y retos — premium mobile experience.
 *
 * @package PasionGift_App
 */

.pg-games {
	--pg-g-wine: var(--pg-color-brand-wine, #6b1c3a);
	--pg-g-rose: var(--pg-color-brand-rose, #e8b4c4);
	--pg-g-nude: var(--pg-color-brand-nude, #f3e6e0);
	--pg-g-ink: var(--pg-color-text, #1c1c1c);
	--pg-g-surface: var(--pg-color-surface, #fff);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	min-width: 0;
	padding-bottom: 1.5rem;
	color: var(--pg-g-ink);
	background:
		radial-gradient(110% 50% at 0% 0%, color-mix(in srgb, var(--pg-g-rose) 42%, transparent), transparent 55%),
		linear-gradient(180deg, color-mix(in srgb, var(--pg-g-nude) 60%, #fff) 0%, var(--pg-g-surface) 38%);
}

.pg-games__header {
	display: grid;
	grid-template-columns: 2.5rem 1fr 2.5rem;
	align-items: center;
	gap: 0.35rem;
}

.pg-games__back,
.pg-games__help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 18%, transparent);
	background: var(--pg-g-surface);
	color: var(--pg-g-wine);
	text-decoration: none;
	font-weight: 700;
}

.pg-games__title {
	margin: 0;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 750;
	color: var(--pg-g-wine);
}

.pg-games-hero__card {
	border-radius: 1.25rem;
	padding: 1.35rem 1.2rem;
	background: linear-gradient(145deg, color-mix(in srgb, var(--pg-g-wine) 92%, #111), var(--pg-g-wine));
	color: #fff;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--pg-g-wine) 24%, transparent);
	animation: pg-g-in 0.45s ease both;
}

.pg-games-hero__kicker {
	margin: 0 0 0.45rem;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
}

.pg-games-hero__text {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	line-height: 1.4;
	opacity: 0.95;
	max-width: 18rem;
}

.pg-games-hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 2.4rem;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: #fff;
	color: var(--pg-g-wine);
	font-weight: 750;
	font-size: 0.88rem;
	text-decoration: none;
}

.pg-games-nav {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
}

.pg-games-nav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.7rem 0.25rem;
	border-radius: 1rem;
	background: var(--pg-g-surface);
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 12%, transparent);
	color: var(--pg-g-wine);
	text-decoration: none;
	text-align: center;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.2;
	animation: pg-g-in 0.5s ease 0.05s both;
}

.pg-games-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pg-g-rose) 40%, #fff);
	font-size: 0.95rem;
}

.pg-games-progress,
.pg-games-block,
.pg-games-help {
	padding: 1rem;
	border-radius: 1rem;
	background: var(--pg-g-surface);
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 12%, transparent);
}

.pg-games-progress__kicker,
.pg-games-section__title {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: color-mix(in srgb, var(--pg-g-ink) 55%, transparent);
}

.pg-games-section__title {
	font-size: 1rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--pg-g-wine);
	font-weight: 750;
}

.pg-games-progress__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 750;
	color: var(--pg-g-wine);
}

.pg-games-progress__bar {
	margin: 0.65rem 0;
	height: 0.45rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pg-g-rose) 35%, #fff);
	overflow: hidden;
}

.pg-games-progress__bar span {
	display: block;
	height: 100%;
	background: var(--pg-g-wine);
	border-radius: inherit;
}

.pg-games-progress__note,
.pg-games-empty {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.4;
	color: color-mix(in srgb, var(--pg-g-ink) 70%, transparent);
}

.pg-games-progress__link {
	display: inline-block;
	margin-top: 0.55rem;
	color: var(--pg-g-wine);
	font-weight: 700;
	font-size: 0.86rem;
	text-decoration: none;
}

.pg-games-active__scroller {
	display: flex;
	gap: 0.65rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.pg-games-active__card {
	flex: 0 0 72%;
	max-width: 16rem;
	padding: 0.9rem;
	border-radius: 1rem;
	background: var(--pg-g-surface);
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 12%, transparent);
	scroll-snap-align: start;
}

.pg-games-active__badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pg-g-rose) 45%, #fff);
	color: var(--pg-g-wine);
	font-size: 0.68rem;
	font-weight: 700;
}

.pg-games-active__title {
	margin: 0.45rem 0 0.25rem;
	font-size: 1rem;
	color: var(--pg-g-wine);
}

.pg-games-active__desc {
	margin: 0 0 0.65rem;
	font-size: 0.82rem;
	line-height: 1.35;
}

.pg-games-active__cta,
.pg-games-list__cta,
.pg-games-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.4rem;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	background: var(--pg-g-wine);
	color: #fff;
	font-weight: 750;
	font-size: 0.86rem;
	text-decoration: none;
	border: 0;
}

.pg-games-list__cta--disabled {
	opacity: 0.45;
	background: color-mix(in srgb, var(--pg-g-wine) 40%, #999);
}

.pg-games-cta {
	width: 100%;
	min-height: 2.85rem;
	font-size: 0.95rem;
}

.pg-games-cta--ghost {
	margin-top: 0.45rem;
	background: transparent;
	color: var(--pg-g-wine);
	border: 1.5px solid color-mix(in srgb, var(--pg-g-wine) 30%, transparent);
}

.pg-games-cross {
	padding: 1rem;
	border-radius: 1rem;
	background: color-mix(in srgb, var(--pg-g-rose) 38%, #fff);
	color: var(--pg-g-wine);
}

.pg-games-cross p { margin: 0 0 0.45rem; font-weight: 700; }
.pg-games-cross a { color: var(--pg-g-wine); font-weight: 750; }
.pg-games-cross__note { font-weight: 500 !important; font-size: 0.78rem; opacity: 0.85; }

.pg-games-filters {
	display: flex;
	gap: 0.4rem;
	overflow-x: auto;
	padding-bottom: 0.15rem;
}

.pg-games-filters__chip {
	flex: 0 0 auto;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--pg-g-surface);
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 14%, transparent);
	color: var(--pg-g-wine);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.pg-games-filters__chip.is-active {
	background: var(--pg-g-wine);
	color: #fff;
	border-color: var(--pg-g-wine);
}

.pg-games-list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pg-games-list__item {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 0.75rem;
	padding: 0.85rem;
	border-radius: 1rem;
	background: var(--pg-g-surface);
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 12%, transparent);
}

.pg-games-list__art {
	border-radius: 0.85rem;
	background: linear-gradient(145deg, var(--pg-g-rose), #fff);
	min-height: 4.5rem;
}

.pg-games-list__art--reto { background: linear-gradient(145deg, var(--pg-g-wine), var(--pg-g-rose)); }
.pg-games-list__art--trivia { background: linear-gradient(145deg, #f0c9a0, var(--pg-g-rose)); }
.pg-games-list__art--especiales { background: linear-gradient(145deg, var(--pg-g-nude), #fff); }

.pg-games-list__tag {
	display: inline-block;
	margin-bottom: 0.25rem;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pg-g-rose) 40%, #fff);
	color: var(--pg-g-wine);
	font-size: 0.68rem;
	font-weight: 700;
}

.pg-games-list__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	color: var(--pg-g-wine);
}

.pg-games-list__desc {
	margin: 0 0 0.45rem;
	font-size: 0.82rem;
	line-height: 1.35;
}

.pg-games-list__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	color: color-mix(in srgb, var(--pg-g-ink) 60%, transparent);
}

.pg-games-list__item--pending { opacity: 0.88; }

.pg-games-help p {
	margin: 0 0 0.65rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

/* Quiz stepped play */
.pg-quiz-cover {
	border-radius: 1rem;
	padding: 1rem 1.1rem;
	background: linear-gradient(135deg, var(--pg-g-wine), color-mix(in srgb, var(--pg-g-wine) 70%, var(--pg-g-rose)));
	color: #fff;
}

.pg-quiz-cover__text { margin: 0 0 0.35rem; font-weight: 750; line-height: 1.3; }
.pg-quiz-cover__note { margin: 0; font-size: 0.78rem; opacity: 0.9; }

.pg-quiz__progress-label {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 650;
	color: var(--pg-g-wine);
}

.pg-quiz__progress-bar {
	height: 0.4rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pg-g-rose) 35%, #fff);
	overflow: hidden;
}

.pg-quiz__progress-bar span {
	display: block;
	height: 100%;
	background: var(--pg-g-wine);
	transition: width 0.25s ease;
}

.pg-quiz__question {
	margin: 0;
	padding: 0;
	border: 0;
}

.pg-quiz__question-text {
	margin-bottom: 0.75rem;
	font-size: 1.05rem;
	font-weight: 750;
	color: var(--pg-g-ink);
}

.pg-quiz__options {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.pg-quiz__option {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.8rem 0.9rem;
	border-radius: 0.9rem;
	border: 1.5px solid color-mix(in srgb, var(--pg-g-wine) 16%, transparent);
	background: #fff;
	cursor: pointer;
}

.pg-quiz__option input { margin-top: 0.15rem; }
.pg-quiz__option.is-selected {
	border-color: var(--pg-g-wine);
	background: color-mix(in srgb, var(--pg-g-rose) 22%, #fff);
}

.pg-quiz__fun {
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.8rem;
	border-radius: 0.85rem;
	background: color-mix(in srgb, var(--pg-g-nude) 70%, #fff);
	font-size: 0.82rem;
	line-height: 1.4;
}

.pg-quiz__actions {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.85rem;
}

.pg-quiz__next,
.pg-quiz__submit {
	min-height: 2.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--pg-g-wine);
	color: #fff;
	font-weight: 750;
	font-size: 0.95rem;
	cursor: pointer;
}

.pg-quiz__next:disabled,
.pg-quiz__submit:disabled { opacity: 0.5; cursor: not-allowed; }

.pg-quiz__exit {
	text-align: center;
	color: var(--pg-g-wine);
	font-weight: 650;
	font-size: 0.86rem;
}

.pg-quiz__hint {
	margin: 0;
	color: var(--pg-g-wine);
	font-size: 0.82rem;
	font-weight: 650;
}

.pg-quiz-result {
	text-align: center;
	padding: 1rem;
	border-radius: 1rem;
	background: var(--pg-g-surface);
	border: 1px solid color-mix(in srgb, var(--pg-g-wine) 12%, transparent);
}

.pg-quiz-result__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 0.65rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pg-g-rose) 50%, #fff);
	color: var(--pg-g-wine);
	font-size: 1.6rem;
	font-weight: 800;
}

.pg-quiz-result__title { margin: 0 0 0.45rem; color: var(--pg-g-wine); }
.pg-quiz-result__text { margin: 0 0 0.85rem; font-size: 0.9rem; line-height: 1.4; }

.pg-quiz-result__reward {
	margin: 0 0 0.85rem;
	padding: 0.85rem;
	border-radius: 0.9rem;
	background: color-mix(in srgb, var(--pg-g-nude) 65%, #fff);
}

.pg-quiz-result__reward-label {
	margin: 0 0 0.25rem;
	font-weight: 750;
	color: var(--pg-g-wine);
}

.pg-quiz-result__reward-note {
	margin: 0;
	font-size: 0.8rem;
	color: color-mix(in srgb, var(--pg-g-ink) 65%, transparent);
}

.pg-quiz-result__products {
	margin: 0 0 0.85rem;
	padding: 0;
	list-style: none;
	text-align: left;
}

.pg-quiz-result__products a {
	color: var(--pg-g-wine);
	font-weight: 650;
}

@keyframes pg-g-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
	.pg-games { max-width: 28rem; margin-inline: auto; }
}
