.quest-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 16px;
}

.quest-header {
	border-radius: 20px;
	padding: 28px 24px;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #2a1f5c 0%, #1a1a2e 100%);
	position: relative;
	overflow: hidden;
}
.quest-header::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(127,111,201,.15) 0%, transparent 70%);
	pointer-events: none;
}
.quest-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}
.quest-header__title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	color: #fff;
}
.quest-header__meta {
	font-size: 13px;
	color: #b5a8ff;
	display: flex;
	align-items: center;
	gap: 8px;
}
.quest-header__meta b {
	color: #fff;
	text-transform: capitalize;
}
.quest-header__meta-sep {
	opacity: .3;
}
.quest-header__progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #b5a8ff;
	margin-bottom: 8px;
}
.quest-header__progress-info b {
	color: #fff;
}
.quest-header__progress-bar {
	background: rgba(0,0,0,.35);
	border-radius: 100px;
	height: 10px;
	overflow: hidden;
}
.quest-header__progress-fill {
	height: 100%;
	border-radius: 100px;
	background: linear-gradient(90deg, #ffc107, #ff9800);
	transition: width .6s cubic-bezier(.4,0,.2,1);
}
.quest-header__reward {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}
.quest-header__reward-label {
	color: #b5a8ff;
	font-weight: 500;
}
.quest-header__reward-value {
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}
.quest-header__claim {
	margin-top: 14px;
	padding: 12px 28px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffc107, #ff9800);
	color: #1a1a2e;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(255,152,0,.35);
	transition: transform .2s, box-shadow .2s;
	width: auto;
	display: inline-block;
}
.quest-header__claim:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255,152,0,.45);
}
.quest-header__claim:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none !important;
}
.quest-header__claimed {
	margin-top: 14px;
	display: inline-block;
	padding: 8px 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #2fb344, #1a8738);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
}

.quest-section {
	margin-bottom: 28px;
}
.quest-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}
.quest-section__count {
	padding: 2px 10px;
	border-radius: 12px;
	background: rgba(127,111,201,.2);
	color: #b5a8ff;
	font-size: 12px;
	font-weight: 600;
}

.quest-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 16px;
}
.quest-grid--bonus {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

@keyframes questFadeIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.quest-card {
	border-radius: 20px;
	padding: 22px;
	min-height: 220px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: questFadeIn .5s ease-out both;
	transition: transform .2s, box-shadow .2s;
	color: #fff;
}
.quest-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.quest-card:nth-child(1) { animation-delay: .05s; }
.quest-card:nth-child(2) { animation-delay: .1s; }
.quest-card:nth-child(3) { animation-delay: .15s; }
.quest-card:nth-child(4) { animation-delay: .2s; }
.quest-card:nth-child(5) { animation-delay: .25s; }
.quest-card:nth-child(6) { animation-delay: .3s; }

.quest-card::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -30%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
	pointer-events: none;
}

.quest-card--purple {
	background: linear-gradient(135deg, #230037 0%, #600090 100%);
	box-shadow: 0 4px 20px rgba(96,0,144,.25);
}
.quest-card--blue {
	background: linear-gradient(135deg, #000B48 0%, #002FC9 100%);
	box-shadow: 0 4px 20px rgba(0,47,201,.25);
}
.quest-card--gold {
	background: linear-gradient(135deg, #7D5100 0%, #FFB200 100%);
	box-shadow: 0 4px 20px rgba(255,178,0,.2);
}
.quest-card--green {
	background: linear-gradient(135deg, #014421 0%, #02a64f 100%);
	box-shadow: 0 4px 20px rgba(2,166,79,.2);
}
.quest-card--pink {
	background: linear-gradient(135deg, #3B0044 0%, #FF18E4 100%);
	box-shadow: 0 4px 20px rgba(255,24,228,.15);
}
.quest-card--red {
	background: linear-gradient(135deg, #7d0000 0%, #ff3838 100%);
	box-shadow: 0 4px 20px rgba(255,56,56,.2);
}
.quest-card--aqua {
	background: linear-gradient(135deg, #005f6b 0%, #00c1d4 100%);
	box-shadow: 0 4px 20px rgba(0,193,212,.15);
}
.quest-card--super {
	background: linear-gradient(135deg, #3d2a10 0%, #b8860b 100%);
	box-shadow: 0 4px 24px rgba(184,134,11,.3), inset 0 1px 0 rgba(255,255,255,.1);
	border: 1px solid rgba(255,178,0,.2);
}
.quest-card--super:hover {
	box-shadow: 0 12px 36px rgba(184,134,11,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.quest-card--meta {
	background: linear-gradient(135deg, #2a1f4a 0%, #6b21a8 100%);
	box-shadow: 0 4px 24px rgba(107,33,168,.3), inset 0 1px 0 rgba(255,255,255,.1);
	border: 1px solid rgba(157,141,241,.2);
}
.quest-card--meta:hover {
	box-shadow: 0 12px 36px rgba(107,33,168,.4), inset 0 1px 0 rgba(255,255,255,.1);
}

.quest-card--locked {
	background: linear-gradient(135deg, #1a1a2e 0%, #12121f 50%, #1a1a2e 100%) !important;
	box-shadow: none !important;
	opacity: .55;
	border: 1px solid rgba(255,255,255,.05);
}
.quest-card--locked:hover {
	transform: none;
	box-shadow: none !important;
}

.quest-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}
.quest-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.quest-card__badge {
	flex-shrink: 0;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	white-space: nowrap;
}
.quest-card__badge--active {
	background: linear-gradient(135deg, #206bc4, #4d9fff);
	color: #fff;
}
.quest-card__badge--completed {
	background: linear-gradient(135deg, #ffc107, #ff9800);
	color: #1a1a2e;
}
.quest-card__badge--claimed {
	background: linear-gradient(135deg, #2fb344, #1a8738);
	color: #fff;
}
.quest-card__badge--locked {
	background: rgba(255,255,255,.1);
	color: #8a8aa0;
}

.quest-card__desc {
	margin: 0 0 14px;
	font-size: 13px;
	color: rgba(255,255,255,.65);
	line-height: 1.45;
}

.quest-card__targets {
	margin: -2px 0 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.quest-card__target-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 11px;
	text-decoration: none;
	transition: opacity .2s;
}
.quest-card__target-badge:hover { opacity: .8; }
.quest-card__target-badge--games {
	background: rgba(32,107,196,.3);
	color: #b5cfe8;
}
.quest-card__target-badge--provider {
	background: rgba(168,85,247,.25);
	color: #d8b4fe;
}
.quest-card__target-badge--amount {
	background: rgba(255,152,0,.2);
	color: #ffcc80;
}
.quest-card__target-badge--time {
	background: rgba(47,179,68,.2);
	color: #8fd099;
}

.quest-card__progress {
	margin-bottom: 6px;
}
.quest-card__progress-bar {
	background: rgba(0,0,0,.3);
	border-radius: 100px;
	height: 8px;
	overflow: hidden;
	position: relative;
}
.quest-card__progress-fill {
	height: 100%;
	border-radius: 100px;
	transition: width .6s cubic-bezier(.4,0,.2,1);
	position: relative;
}
.quest-card--purple .quest-card__progress-fill,
.quest-card--meta .quest-card__progress-fill {
	background: linear-gradient(90deg, #9d8df1, #c4b5fd);
}
.quest-card--blue .quest-card__progress-fill {
	background: linear-gradient(90deg, #4d9fff, #93c5fd);
}
.quest-card--gold .quest-card__progress-fill,
.quest-card--super .quest-card__progress-fill {
	background: linear-gradient(90deg, #ffc107, #ffe082);
}
.quest-card--green .quest-card__progress-fill {
	background: linear-gradient(90deg, #4ade80, #86efac);
}
.quest-card--pink .quest-card__progress-fill {
	background: linear-gradient(90deg, #f472b6, #fbcfe8);
}
.quest-card--red .quest-card__progress-fill {
	background: linear-gradient(90deg, #f87171, #fca5a5);
}
.quest-card--aqua .quest-card__progress-fill {
	background: linear-gradient(90deg, #22d3ee, #67e8f9);
}
.quest-card__progress-fill::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
	border-radius: 100px;
}
.quest-card__progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: rgba(255,255,255,.5);
	margin-top: 4px;
}
.quest-card__progress-pct {
	font-weight: 700;
	color: #fff;
}

.quest-card__reward {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,.08);
}
.quest-card__reward-label {
	font-size: 11px;
	color: rgba(255,255,255,.4);
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 6px;
}
.quest-card__reward-value {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.quest-card__locked-body {
	text-align: center;
	padding: 20px 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.quest-card__locked-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	display: flex;
	align-items: center;
	justify-content: center;
}
.quest-card__locked-icon svg {
	width: 22px;
	height: 22px;
	color: #8a8aa0;
}
.quest-card__locked-time {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}
.quest-card__locked-hint {
	font-size: 12px;
	color: #8a8aa0;
}

.quest-card__claim {
	width: 100%;
	margin-top: 14px;
	padding: 13px 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffc107, #ff9800);
	color: #1a1a2e;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(255,152,0,.35);
	transition: transform .2s, box-shadow .2s;
}
.quest-card__claim:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255,152,0,.45);
}
.quest-card__claim:active {
	transform: translateY(0);
}
.quest-card__claim:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none !important;
}

.quest-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.7);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(4px);
}
.quest-modal__inner {
	background: var(--bg_primary__100, #252540);
	border-radius: 20px;
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.quest-modal__header {
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.quest-modal__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}
.quest-modal__close {
	background: transparent;
	border: 0;
	color: #8a8aa0;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	transition: color .2s;
}
.quest-modal__close:hover { color: #fff; }
.quest-modal__body {
	padding: 16px 20px;
	overflow-y: auto;
}
.quest-modal__footer {
	padding: 12px 20px;
	border-top: 1px solid rgba(255,255,255,.08);
	font-size: 12px;
	color: #8a8aa0;
	text-align: center;
}
.quest-modal__game {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);
	border-radius: 12px;
	padding: 10px 12px;
}
.quest-modal__game-provider {
	font-size: 10px;
	text-transform: uppercase;
	color: #a855f7;
	letter-spacing: .5px;
	margin-bottom: 2px;
}
.quest-modal__game-name {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

@media screen and (max-width: 768px) {
	.quest-page { padding: 16px 12px; }
	.quest-header { padding: 20px 16px; border-radius: 16px; }
	.quest-header__title { font-size: 22px; }
	.quest-card { padding: 18px; border-radius: 16px; min-height: 190px; }
	.quest-card__title { font-size: 15px; }
	.quest-grid { gap: 12px; }
}
