/* 全域色彩變數 */
:root {
	--primary-red: #993432;
	--secondary-red: #dc2626;
	--accent-pink: #ec4899;
	--light-pink: #fce7f3;
	--dark-red: #7a2a28;
	--gold: #ffd700;
	--gold-light: #ffed4e;
	--gold-dark: #b8860b;
	--silver: #c0c0c0;
	--bronze: #cd7f32;
	--casino-red: #8b0000;
	--casino-green: #006400;
	--neon-blue: #00ffff;
	--neon-pink: #ff1493;
	--rank-size: 28px;
	--rank-bg: #ffc107;
	--rank-color: #212529;
	--rank-container-bg: rgba(255,255,255,0.08);
	--rank-container-border: #ffc107;
}

body {
	background: linear-gradient(135deg, #0a0a0a, #1a0a0a, #2d1b1b, #1a0a0a, #0a0a0a);
	color: white;
	font-family: 'Noto Sans TC', sans-serif;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

	/* 賭場背景動畫 */
	body::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 20, 147, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 60%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
		animation: casinoAmbient 8s ease-in-out infinite alternate;
		z-index: -1;
		pointer-events: none;
	}

@keyframes casinoAmbient {
	0% {
		opacity: 0.3;
		transform: scale(1);
	}

	100% {
		opacity: 0.7;
		transform: scale(1.1);
	}
}

/* SweetAlert 自定義樣式 - 登入成功訊息優化 */
.swal2-popup {
	font-size: 16px !important;
}

.swal2-html-container {
	text-align: left !important;
	line-height: 1.6 !important;
	padding: 1rem !important;
}

.swal2-title {
	text-align: center !important;
	font-size: 1.5rem !important;
	margin-bottom: 1rem !important;
}

/* 手機優化 */
@media (max-width: 768px) {
	.swal2-popup {
		width: 90% !important;
		max-width: 400px !important;
		font-size: 14px !important;
	}

	.swal2-html-container {
		padding: 0.8rem !important;
		font-size: 14px !important;
	}

	.swal2-title {
		font-size: 1.3rem !important;
	}
}

/* 金幣雨動畫 */
.coin-rain {
	position: fixed;
	top: -50px;
	left: 0;
	width: 100%;
	height: 100vh;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.coin {
	position: absolute;
	width: 20px;
	height: 20px;
	background: linear-gradient(45deg, var(--gold), var(--gold-light));
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
	animation: coinFall 3s linear infinite;
}

	.coin::before {
		content: '¥';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		font-size: 12px;
		font-weight: bold;
		color: var(--gold-dark);
	}

@keyframes coinFall {
	0% {
		transform: translateY(-50px) rotate(0deg);
		opacity: 0;
	}

	10% {
		opacity: 1;
	}

	90% {
		opacity: 1;
	}

	100% {
		transform: translateY(100vh) rotate(360deg);
		opacity: 0;
	}
}

.logout-btn {
	background: linear-gradient(45deg, #2c3e50, #34495e);
	color: #ffffff;
	border: 2px solid var(--gold);
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.9rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
}

	.logout-btn::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
		transition: left 0.5s ease;
	}

	.logout-btn:hover::before {
		left: 100%;
	}

	.logout-btn:hover {
		background: linear-gradient(45deg, #e74c3c, #c0392b);
		transform: translateY(-2px) scale(1.05);
		box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5), 0 8px 16px rgba(231, 76, 60, 0.3);
		text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
		border-color: #ffffff;
	}

/* SweetAlert 自定義樣式 */
.casino-logout-popup {
	border: 3px solid var(--gold) !important;
	border-radius: 20px !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
	backdrop-filter: blur(15px) !important;
	position: relative;
	overflow: hidden;
}

	.casino-logout-popup::before {
		content: '';
		position: absolute;
		top: -50%;
		left: -50%;
		width: 200%;
		height: 200%;
		background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
		animation: swalShimmer 4s linear infinite;
		z-index: -1;
	}

@keyframes swalShimmer {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.casino-logout-title {
	color: var(--gold) !important;
	font-weight: 700 !important;
	text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6) !important;
	font-size: 1.5rem !important;
}

.casino-logout-content {
	color: #ffffff !important;
	font-size: 1rem !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* SweetAlert 按鈕樣式 */
.swal2-confirm {
	background: linear-gradient(45deg, #e74c3c, #c0392b) !important;
	border: 2px solid var(--gold) !important;
	border-radius: 25px !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
	box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4), 0 0 20px rgba(255, 215, 0, 0.3) !important;
	transition: all 0.3s ease !important;
}

	.swal2-confirm:hover {
		transform: translateY(-2px) scale(1.05) !important;
		box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6), 0 0 30px rgba(255, 215, 0, 0.5) !important;
	}

.swal2-cancel {
	background: linear-gradient(45deg, #6c757d, #5a6268) !important;
	border: 2px solid #adb5bd !important;
	border-radius: 25px !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
	box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
	transition: all 0.3s ease !important;
}

	.swal2-cancel:hover {
		transform: translateY(-2px) scale(1.05) !important;
		box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6) !important;
	}

/* 頂部狀態欄 */
.game-status-bar {
	background: linear-gradient(135deg, rgba(44,24,16,0.95) 0%, rgba(139,69,19,0.85) 100%);
	padding: 1rem;
	position: relative;
	margin-top: 75px; /* 為固定的主選單留出空間 */
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
	border-top: 3px solid #8b4513;
	border-bottom: 3px solid #8b4513;
	backdrop-filter: blur(10px);
	animation: statusBarGlow 3s ease-in-out infinite alternate;
}

@keyframes statusBarGlow {
	0% {
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.4);
	}

	100% {
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.6);
	}
}

.status-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.player-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.player-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(45deg, #8b4513, #a0522d, #cd853f);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	border: 4px solid #8b4513;
	animation: avatarGlow 2s ease-in-out infinite alternate;
	position: relative;
	box-shadow: 0 0 20px #8b4513, inset 0 0 20px rgba(255, 255, 255, 0.3);
}

	.player-avatar::before {
		content: '';
		position: absolute;
		top: -8px;
		left: -8px;
		right: -8px;
		bottom: -8px;
		border: 2px solid rgba(139, 69, 19, 0.5);
		border-radius: 50%;
		animation: avatarRing 3s linear infinite;
	}

@keyframes avatarGlow {
	0% {
		box-shadow: 0 0 20px #8b4513, inset 0 0 20px rgba(255, 255, 255, 0.3);
		transform: scale(1);
	}

	100% {
		box-shadow: 0 0 40px #8b4513, 0 0 60px #a0522d, inset 0 0 30px rgba(255, 255, 255, 0.5);
		transform: scale(1.05);
	}
}

@keyframes avatarRing {
	0% {
		transform: rotate(0deg) scale(1);
		opacity: 0.8;
	}

	50% {
		opacity: 0.4;
	}

	100% {
		transform: rotate(360deg) scale(1.1);
		opacity: 0.8;
	}
}

.player-details h4 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.player-level {
	background: #8b4513;
	color: #fff;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	font-size: 0.8rem;
	font-weight: 700;
	margin-top: 0.25rem;
	display: inline-block;
}

.coins-display {
	text-align: center;
}

.coins-amount {
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--gold);
	text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4), 2px 2px 4px rgba(0, 0, 0, 0.8);
	animation: coinsPulse 1.5s ease-in-out infinite;
	position: relative;
	display: inline-block;
}

	.coins-amount::before {
		content: '💰';
		position: absolute;
		left: -40px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 1.5rem;
		animation: coinSpin 2s linear infinite;
	}

	.coins-amount::after {
		content: '💎';
		position: absolute;
		right: -40px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 1.2rem;
		animation: diamondSparkle 1.8s ease-in-out infinite alternate;
	}

@keyframes coinsPulse {
	0%, 100% {
		transform: scale(1);
		text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
	}

	50% {
		transform: scale(1.1);
		text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.8), 0 0 45px rgba(255, 215, 0, 0.6);
	}
}

@keyframes coinSpin {
	0% {
		transform: translateY(-50%) rotateY(0deg);
	}

	100% {
		transform: translateY(-50%) rotateY(360deg);
	}
}

@keyframes diamondSparkle {
	0% {
		transform: translateY(-50%) scale(1) rotate(0deg);
		opacity: 0.8;
	}

	100% {
		transform: translateY(-50%) scale(1.2) rotate(180deg);
		opacity: 1;
	}
}

/* 個人資訊區塊統一高度 */
.info-stat-card {
	height: 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
}

	.info-stat-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	}

.exp-bar {
	text-align: right;
}

.exp-progress {
	background: rgba(255, 255, 255, 0.2);
	height: 20px;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	margin-bottom: 0.5rem;
}

.exp-fill {
	background: linear-gradient(90deg, var(--gold), #ffed4e);
	height: 100%;
	width: 65%;
	animation: expGlow 2s ease-in-out infinite alternate;
}

@keyframes expGlow {
	0% {
		box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.5);
	}

	100% {
		box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.8);
	}
}

/*  NFC 區域 */
.hero-section {
	background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.2), transparent 60%), radial-gradient(circle at 70% 70%, rgba(255, 20, 147, 0.15), transparent 60%), radial-gradient(circle at center, rgba(139, 0, 0, 0.4), rgba(10, 10, 10, 0.9));
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	padding-top: 75px;
	animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
	0% {
		background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.2), transparent 60%), radial-gradient(circle at 70% 70%, rgba(255, 20, 147, 0.15), transparent 60%), radial-gradient(circle at center, rgba(139, 0, 0, 0.4), rgba(10, 10, 10, 0.9));
	}

	100% {
		background: radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.3), transparent 70%), radial-gradient(circle at 60% 60%, rgba(255, 20, 147, 0.2), transparent 70%), radial-gradient(circle at center, rgba(139, 0, 0, 0.5), rgba(10, 10, 10, 0.8));
	}
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gaming-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,215,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23gaming-grid)"/></svg>');
	z-index: 1;
}

.nfc-scanner {
	width: 250px;
	height: 250px;
	border: 6px solid var(--gold);
	border-radius: 50%;
	/* background:
						radial-gradient(circle at center, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1) 50%, transparent),
						conic-gradient(from 0deg, var(--gold), var(--neon-blue), var(--neon-pink), var(--gold)); */
	animation: scannerRotate 3s linear infinite;
	position: relative;
	box-shadow: 0 0 30px var(--gold), 0 0 60px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.2);
}

	.nfc-scanner::before {
		content: '';
		position: absolute;
		top: -15px;
		left: -15px;
		right: -15px;
		bottom: -15px;
		border: 3px solid rgba(255, 215, 0, 0.4);
		border-radius: 50%;
		animation: scannerPulse 2s ease-in-out infinite;
	}

@keyframes slotMachine {
	0%, 100% {
		transform: translate(-50%, -50%) scale(1) rotate(0deg);
	}

	50% {
		transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
	}
}

.nfc-scanner.active {
	border-color: #10b981;
	background: rgba(16, 185, 129, 0.2);
	box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

@keyframes scannerRotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes scannerPulse {
	0%, 100% {
		opacity: 0.3;
		transform: scale(1);
	}

	50% {
		opacity: 0.8;
		transform: scale(1.1);
	}
}

@keyframes floatUp {
	0% {
		transform: translateY(100vh);
		opacity: 0;
	}

	10%, 90% {
		opacity: 1;
	}

	100% {
		transform: translateY(-100px);
		opacity: 0;
	}
}

.floating-heart {
	position: absolute;
	color: var(--gold);
	font-size: 24px;
	animation: floatUp 10s infinite linear;
	pointer-events: none;
	z-index: 1;
}

/* 功能卡片 */
.feature-card {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(139, 0, 0, 0.2), rgba(255, 20, 147, 0.1));
	border: 3px solid rgba(255, 215, 0, 0.5);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	backdrop-filter: blur(15px);
	color: white;
	position: relative;
	overflow: hidden;
}

	.feature-card::before {
		content: '';
		position: absolute;
		top: -50%;
		left: -50%;
		width: 200%;
		height: 200%;
		background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
		animation: cardShimmer 4s linear infinite;
		z-index: -1;
	}

@keyframes cardShimmer {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.feature-card:hover {
	transform: translateY(-15px) scale(1.05);
	border-color: var(--gold);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3);
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.feature-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold)), radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
	border-radius: 50%;
	color: #1a1a1a;
	font-size: 2rem;
	animation: iconFloat 3s ease-in-out infinite;
	border: 3px solid var(--gold);
	box-shadow: 0 0 20px var(--gold), inset 0 0 20px rgba(255, 255, 255, 0.4);
	position: relative;
}

	.feature-icon::before {
		content: '';
		position: absolute;
		top: -5px;
		left: -5px;
		right: -5px;
		bottom: -5px;
		border: 2px solid rgba(255, 215, 0, 0.5);
		border-radius: 50%;
		animation: iconRing 2s linear infinite;
	}

@keyframes iconFloat {
	0%, 100% {
		transform: translateY(0px) scale(1);
		box-shadow: 0 0 20px var(--gold), inset 0 0 20px rgba(255, 255, 255, 0.4);
	}

	50% {
		transform: translateY(-8px) scale(1.05);
		box-shadow: 0 0 30px var(--gold), 0 0 50px rgba(255, 215, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.6);
	}
}

@keyframes iconRing {
	0% {
		transform: rotate(0deg) scale(1);
		opacity: 0.8;
	}

	100% {
		transform: rotate(360deg) scale(1.1);
		opacity: 0.3;
	}
}

/* 儀表板 */
.dashboard-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
	border: 2px solid rgba(153, 52, 50, 0.3);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	color: white;
}

	.dashboard-card:hover {
		transform: translateY(-5px);
		border-color: var(--primary-red);
		box-shadow: 0 15px 40px rgba(153, 52, 50, 0.3);
	}

/* 任務卡片 */
.task-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
	border: 2px solid rgba(236, 72, 153, 0.3);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	color: white;
	height: 100%;
	display: flex;
	flex-direction: column;
}

	.task-card:hover {
		transform: translateY(-5px);
		border-color: var(--accent-pink);
		box-shadow: 0 15px 40px rgba(236, 72, 153, 0.3);
	}

/* 增強任務卡片樣式 */
.task-card {
	background: linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(184, 134, 11, 0.2));
	border: 2px solid var(--gold);
	border-radius: 20px;
	padding: 25px;
	backdrop-filter: blur(10px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 215, 0, 0.2);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 300px;
}

	.task-card::before {
		content: '';
		position: absolute;
		top: 0;
		left: -100%;
		width: 100%;
		height: 100%;
		background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
		transition: left 0.5s ease;
	}

	.task-card:hover::before {
		left: 100%;
	}

	.task-card:hover {
		transform: translateY(-10px);
		box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 215, 0, 0.4);
		border-color: var(--neon-gold);
	}

.special-task {
	background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(255, 69, 0, 0.2));
	border: 2px solid #ff4500;
	animation: specialGlow 2s ease-in-out infinite alternate;
}

@keyframes specialGlow {
	from {
		box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 69, 0, 0.3);
	}

	to {
		box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 50px rgba(255, 69, 0, 0.6);
	}
}

.task-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

	.task-header h4 {
		margin: 0;
		font-weight: bold;
		text-shadow: 0 0 10px currentColor;
	}

.task-list {
	space-y: 15px;
}

/* task-item 用於網格系統的包裝器 */
.task-item {
	margin-bottom: 1.5rem;
}

	.task-item.legendary {
		background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.2));
		border: 2px solid #8a2be2;
		animation: legendaryPulse 3s ease-in-out infinite;
	}

@keyframes legendaryPulse {
	0%, 100% {
		box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
	}

	50% {
		box-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
	}
}

.task-item.epic {
	background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(255, 69, 0, 0.2));
	border: 2px solid #ff8c00;
	animation: epicShimmer 2s ease-in-out infinite;
}

@keyframes epicShimmer {
	0%, 100% {
		box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
	}

	50% {
		box-shadow: 0 0 30px rgba(255, 140, 0, 0.7);
	}
}

.task-info {
	flex: 1;
	margin-right: 15px;
}

	.task-info h6 {
		color: var(--gold);
		font-weight: bold;
		margin-bottom: 8px;
		text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
	}

.task-reward {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.task-btn {
	min-width: 80px;
	font-weight: bold;
	border-radius: 25px;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

	.task-btn:hover {
		transform: scale(1.05);
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	}

.badge.bg-purple {
	background-color: #8a2be2 !important;
}

/* 升級系統樣式 */
.level-card {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(184, 134, 11, 0.1));
	border: 2px solid var(--gold);
	border-radius: 25px;
	padding: 30px;
	backdrop-filter: blur(15px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.3);
	position: relative;
	overflow: hidden;
}

	.level-card::before {
		content: '';
		position: absolute;
		top: -50%;
		left: -50%;
		width: 200%;
		height: 200%;
		background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.1), transparent);
		animation: levelRotate 8s linear infinite;
	}

@keyframes levelRotate {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.level-header {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	position: relative;
	z-index: 1;
}

.level-avatar {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--gold), var(--bronze));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-right: 20px;
	box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
	animation: levelPulse 2s ease-in-out infinite;
}

@keyframes levelPulse {
	0%, 100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.level-avatar i {
	font-size: 1.5rem;
	color: var(--dark-bg);
	position: absolute;
	top: 10px;
}

.level-number {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--dark-bg);
	position: absolute;
	bottom: 8px;
}

.level-info {
	flex: 1;
}

.level-progress {
	margin-bottom: 25px;
	position: relative;
	z-index: 1;
}

.progress-info {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.progress-bar-container {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 15px;
	height: 20px;
	overflow: hidden;
	position: relative;
}

.progress-bar {
	width: 100%;
	height: 100%;
	position: relative;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--gold), var(--neon-gold));
	border-radius: 15px;
	position: relative;
	transition: width 0.5s ease;
	animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
	0%, 100% {
		box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
	}

	50% {
		box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
	}
}

.level-benefits {
	position: relative;
	z-index: 1;
}

.benefit-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.benefit-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: rgba(255, 215, 0, 0.1);
	border-radius: 10px;
	transition: all 0.3s ease;
}

	.benefit-item:hover {
		background: rgba(255, 215, 0, 0.2);
		transform: translateX(5px);
	}

.level-ladder {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
	border: 2px solid rgba(255, 215, 0, 0.3);
	border-radius: 20px;
	padding: 25px;
	backdrop-filter: blur(10px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ===== 登入框美化樣式 ===== */
.login-card {
	background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(40, 20, 10, 0.98) 50%, rgba(20, 20, 20, 0.95) 100%) !important;
	border: 3px solid transparent !important;
	background-image:
		linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 20, 10, 0.98)),
		linear-gradient(135deg, #ffd700, #ff8c00, #ffd700, #ff8c00) !important;
	background-origin: border-box !important;
	background-clip: padding-box, border-box !important;
	box-shadow:
		0 0 40px rgba(255, 215, 0, 0.4),
		0 0 80px rgba(255, 140, 0, 0.3),
		0 20px 60px rgba(0, 0, 0, 0.8),
		inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
	position: relative;
	overflow: hidden;
	animation: loginCardGlow 3s ease-in-out infinite alternate;
}

	/* 登入框背景動態效果 */
	.login-card::before {
		content: '';
		position: absolute;
		top: -50%;
		left: -50%;
		width: 200%;
		height: 200%;
		background: conic-gradient(
			from 0deg,
			transparent,
			rgba(255, 215, 0, 0.1),
			transparent 30%,
			transparent 60%,
			rgba(255, 140, 0, 0.1),
			transparent
		);
		animation: loginRotate 8s linear infinite;
		z-index: 0;
	}

	/* 登入框光暈效果 */
	.login-card::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 80%;
		height: 80%;
		background: radial-gradient(
			circle,
			rgba(255, 215, 0, 0.15) 0%,
			transparent 70%
		);
		animation: loginPulse 2s ease-in-out infinite;
		z-index: 0;
	}

/* 登入框內容層級 */
.login-card > * {
	position: relative;
	z-index: 1;
}

/* 登入框動畫 */
@keyframes loginCardGlow {
	0% {
		box-shadow:
			0 0 30px rgba(255, 215, 0, 0.3),
			0 0 60px rgba(255, 140, 0, 0.2),
			0 20px 60px rgba(0, 0, 0, 0.8);
	}
	100% {
		box-shadow:
			0 0 50px rgba(255, 215, 0, 0.5),
			0 0 100px rgba(255, 140, 0, 0.4),
			0 20px 60px rgba(0, 0, 0, 0.8);
	}
}

@keyframes loginRotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes loginPulse {
	0%, 100% {
		opacity: 0.3;
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		opacity: 0.6;
		transform: translate(-50%, -50%) scale(1.1);
	}
}

/* 登入標題圖標動畫 */
.login-card .fa-crown {
	animation: crownFloat 3s ease-in-out infinite;
	filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

@keyframes crownFloat {
	0%, 100% {
		transform: translateY(0px) rotate(-5deg);
	}
	50% {
		transform: translateY(-10px) rotate(5deg);
	}
}

/* 輸入框美化 */
.login-card .input-group-text {
	background: rgba(255, 215, 0, 0.1) !important;
	border: 2px solid rgba(255, 215, 0, 0.3) !important;
	transition: all 0.3s ease;
}

.login-card .form-control {
	background: rgba(0, 0, 0, 0.5) !important;
	border: 2px solid rgba(255, 215, 0, 0.3) !important;
	color: #ffffff !important;
	transition: all 0.3s ease;
}

	.login-card .form-control:focus {
		background: rgba(0, 0, 0, 0.7) !important;
		border-color: #ffd700 !important;
		box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
		color: #ffffff !important;
	}

	.login-card .form-control::placeholder {
		color: rgba(255, 255, 255, 0.5) !important;
	}

.login-card .input-group:focus-within .input-group-text {
	background: rgba(255, 215, 0, 0.2) !important;
	border-color: #ffd700 !important;
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 記住帳密 checkbox 美化 */
.remember-checkbox {
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
}

	.remember-checkbox:hover {
		transform: translateX(3px);
	}

	.remember-checkbox input[type="checkbox"] {
		width: 18px;
		height: 18px;
		cursor: pointer;
		accent-color: #ffd700;
	}

	.remember-checkbox label {
		cursor: pointer;
		margin-left: 8px;
		color: rgba(255, 255, 255, 0.9);
		font-weight: 500;
	}

/* 登入按鈕增強 */
.login-card .btn-warning {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 700;
}

	.login-card .btn-warning::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 0;
		height: 0;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.3);
		transform: translate(-50%, -50%);
		transition: width 0.6s, height 0.6s;
	}

	.login-card .btn-warning:hover::before {
		width: 300px;
		height: 300px;
	}

	.login-card .btn-warning:hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
	}

	.login-card .btn-warning:active {
		transform: translateY(-1px);
	}

/* ===== 三層連動下拉選單樣式 ===== */
.selection-panel {
	animation: selectionPanelFadeIn 0.5s ease-out;
}

@keyframes selectionPanelFadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffc107' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
	border-color: #ffd700;
	box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
	background-color: rgba(0, 0, 0, 0.9) !important;
}

.form-select:hover:not(:disabled) {
	border-color: #ffd700;
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
	transform: translateY(-2px);
}

.form-select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 選項動畫效果 */
.form-select option {
	background-color: #1a1a1a;
	color: white;
}

.form-select option:checked {
	background-color: #ffc107;
	color: #000;
}

/* 夥伴資訊面板動畫 */
#memberInfoPanel.active {
	opacity: 1 !important;
	animation: memberInfoSlideIn 0.5s ease-out;
}

@keyframes memberInfoSlideIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 金幣卡片脈衝效果 */
.info-stat-card.pulse {
	animation: coinsPulseEffect 0.5s ease-out;
}

@keyframes coinsPulseEffect {
	0%, 100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

/* 文字脈動效果（用於資訊更新） */
.pulse-effect {
	animation: textPulseEffect 0.8s ease-out;
}

@keyframes textPulseEffect {
	0% {
		transform: scale(1);
		color: inherit;
	}

	50% {
		transform: scale(1.15);
		color: #ffd700;
		text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
	}

	100% {
		transform: scale(1);
		color: inherit;
	}
}

.ladder-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.ladder-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border-radius: 15px;
	transition: all 0.3s ease;
	position: relative;
}

	.ladder-item.completed {
		background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
		border: 1px solid rgba(34, 197, 94, 0.3);
	}

	.ladder-item.current {
		background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
		border: 2px solid var(--gold);
		animation: currentLevel 2s ease-in-out infinite;
	}

@keyframes currentLevel {
	0%, 100% {
		box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
	}

	50% {
		box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
	}
}

.ladder-item.next {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
	border: 1px solid rgba(59, 130, 246, 0.3);
}

.ladder-item.locked {
	background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(107, 114, 128, 0.1));
	border: 1px solid rgba(107, 114, 128, 0.3);
	opacity: 0.6;
}

.ladder-item.legendary {
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(75, 0, 130, 0.2));
	border: 2px solid #8a2be2;
	animation: legendaryGlow 3s ease-in-out infinite;
}

@keyframes legendaryGlow {
	0%, 100% {
		box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
	}

	50% {
		box-shadow: 0 0 40px rgba(138, 43, 226, 0.8);
	}
}

.ladder-level {
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--gold), var(--bronze));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: var(--dark-bg);
	margin-right: 15px;
	box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.ladder-info {
	flex: 1;
}

	.ladder-info h6 {
		margin-bottom: 5px;
		color: var(--gold);
		font-weight: bold;
	}

	.ladder-info p {
		margin: 0;
		color: rgba(255, 255, 255, 0.7);
		font-size: 0.9rem;
	}

/* 獎勵卡片 */
.reward-card {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
	border: 2px solid var(--gold);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	color: white;
}

	.reward-card:hover {
		transform: translateY(-5px) scale(1.02);
		box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
	}

	/* 獎勵商店卡片 - 統一高度和美化樣式 */
	.reward-card.compact {
		background: linear-gradient(135deg, #fff 0%, #f5deb3 100%);
		border: 3px solid #daa520;
		border-radius: 20px;
		padding: 20px;
		min-height: 220px;
		height: 220px;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		box-shadow: 0 15px 35px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
		transition: all 0.4s ease;
		position: relative;
		overflow: hidden;
	}

		.reward-card.compact:hover {
			transform: translateY(-8px) scale(1.05);
			box-shadow: 0 25px 50px rgba(0,0,0,0.3);
		}

		.reward-card.compact::before {
			content: '';
			position: absolute;
			top: 0;
			left: -100%;
			width: 100%;
			height: 100%;
			background: linear-gradient(90deg, transparent, rgba(218,165,32,0.2), transparent);
			transition: left 0.7s ease;
		}

		.reward-card.compact:hover::before {
			left: 100%;
		}

		.reward-card.compact .reward-icon {
			width: 60px;
			height: 60px;
			background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 12px;
			box-shadow: 0 8px 20px rgba(218,165,32,0.4);
			border: 3px solid #fff;
		}

			.reward-card.compact .reward-icon i {
				font-size: 1.8rem;
				color: #fff;
				text-shadow: 0 2px 4px rgba(0,0,0,0.3);
			}

		.reward-card.compact h4 {
			font-size: 0.9rem;
			margin-bottom: 10px;
			line-height: 1.3;
			height: 2.6em;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #2c1810;
			font-weight: 700;
			font-family: 'Cinzel', serif;
		}

		.reward-card.compact .reward-price {
			font-size: 0.85rem;
			font-weight: bold;
			color: #daa520;
			margin-bottom: 15px;
			font-family: 'Cinzel', serif;
		}

		.reward-card.compact .exchange-btn {
			background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
			color: #fff;
			border: 2px solid #fff;
			padding: 8px 16px;
			border-radius: 20px;
			font-weight: 700;
			cursor: pointer;
			transition: all 0.3s ease;
			width: 100%;
			font-size: 0.8rem;
			font-family: 'Cinzel', serif;
			box-shadow: 0 6px 15px rgba(218,165,32,0.3);
			margin-top: auto;
			position: relative;
			overflow: hidden;
		}

			.reward-card.compact .exchange-btn:hover {
				background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
				transform: translateY(-2px);
				box-shadow: 0 8px 20px rgba(218,165,32,0.5);
			}

			.reward-card.compact .exchange-btn:active {
				transform: translateY(0px);
				box-shadow: 0 4px 10px rgba(218,165,32,0.3);
			}

			.reward-card.compact .exchange-btn::before {
				content: '';
				position: absolute;
				top: 0;
				left: -100%;
				width: 100%;
				height: 100%;
				background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
				transition: left 0.5s ease;
			}

			.reward-card.compact .exchange-btn:hover::before {
				left: 100%;
			}

/* 通訊卡片 */
.communication-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
	border: 2px solid rgba(59, 130, 246, 0.3);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	color: white;
}

.communication-item {
	padding: 1rem;
	margin-bottom: 0.75rem;
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
	cursor: pointer;
}

	.communication-item:hover {
		background: rgba(255, 255, 255, 0.1);
		transform: translateX(5px);
	}

	.communication-item.unread {
		background: rgba(255, 215, 0, 0.1);
		border-left: 4px solid var(--gold);
	}

@media (max-width: 768px) {

	.hero-section {
		min-height: 80vh;
	}

	.status-grid {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 1rem;
	}

	.feature-card, .dashboard-card, .reward-card {
		padding: 1rem;
	}

	.task-card {
		padding: 1.25rem;
		min-height: 280px;
	}

	.task-icon-wrapper {
		width: 50px !important;
		height: 50px !important;
	}

	.task-icon-wrapper i {
		font-size: 1.5rem !important;
	}
	/* 手機版選單優化 */
	.quick-nav-menu {
		padding: 0.5rem;
	}

	.quick-nav-content {
		flex-direction: column;
		gap: 0.75rem;
	}

	.nav-links {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.5rem;
		width: 100%;
	}

		.nav-links a {
			font-size: 0.75rem;
			padding: 0.4rem 0.3rem;
			text-align: center;
			white-space: nowrap;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			min-height: 50px;
		}

			.nav-links a i {
				margin-bottom: 0.25rem !important;
				margin-right: 0 !important;
			}

	.logout-btn {
		padding: 0.4rem 0.8rem;
		font-size: 0.8rem;
		width: 100%;
		max-width: 200px;
	}
	/* 手機版狀態欄需要更多上方間距 */
	.game-status-bar {
		margin-top: 140px; /* 增加間距避免被多行選單遮擋 */
	}
}

/* 更小螢幕的額外優化 */
@media (max-width: 480px) {
	.nav-links {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.4rem;
	}

		.nav-links a {
			font-size: 0.8rem;
			padding: 0.3rem 0.2rem;
			min-height: 45px;
		}

	.quick-nav-menu {
		padding: 0.4rem;
	}
	/* 更小螢幕的狀態欄間距調整 */
	.game-status-bar {
		margin-top: 160px; /* 2x3 網格需要更多空間 */
	}
}

/* 排行榜隱藏項目 */
.ranking-hidden {
	display: none !important;
}

/* 分類標籤按鈕樣式 */
.btn-outline-warning {
	border-color: #ffc107;
	color: #ffc107;
	background-color: transparent;
	transition: all 0.3s ease;
}

.btn-outline-warning:hover {
	background-color: #ffc107;
	color: #212529;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning.active {
	background-color: #ffc107;
	color: #212529;
	border-color: #ffc107;
	box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

/* 分類標籤動畫 */
.gift-category-badge,
.task-category-badge {
	cursor: pointer;
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* 隱藏的禮品/任務項目淡出效果 */
.gift-item,
.task-item {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.gift-item[style*="display: none"],
.task-item[style*="display: none"] {
	opacity: 0;
	transform: scale(0.95);
}

/* 額外的動畫定義 - 整合自 JavaScript */
@keyframes celebrationFall {
	0% { transform: translateY(-100px) scale(0); opacity: 1; }
	50% { transform: translateY(50vh) scale(1.2); opacity: 1; }
	100% { transform: translateY(100vh) scale(0.8); opacity: 0; }
}


@keyframes winExplosion {
	0% { transform: scale(0) rotate(0deg); opacity: 1; }
	50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
	100% { transform: scale(0.5) rotate(360deg); opacity: 0; }
}

@keyframes enhancedCoinFall {
	0% { transform: translateY(-100px) rotate(0deg) scale(0); opacity: 1; }
	10% { transform: translateY(-50px) rotate(36deg) scale(1); opacity: 1; }
	90% { transform: translateY(calc(100vh - 50px)) rotate(324deg) scale(1); opacity: 1; }
	100% { transform: translateY(100vh) rotate(360deg) scale(0); opacity: 0; }
}

@keyframes slideInRight {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
	from { transform: translateX(0); opacity: 1; }
	to { transform: translateX(100%); opacity: 0; }
}

@keyframes taskAcceptPulse {
	0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
	50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
	100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes taskCompleteFloat {
	0% { transform: translateY(0) scale(1); opacity: 1; }
	100% { transform: translateY(-50px) scale(1.2); opacity: 0; }
}

@keyframes legendaryParticle {
	0% { transform: scale(0) rotate(0deg); opacity: 1; }
	50% { transform: scale(1) rotate(180deg); opacity: 1; }
	100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes levelUpGlow {
	0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
	50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6); }
}