/* ===== Finch Splash Screen ===== */
.finch-splash {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: #0a0a0a;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: opacity 0.6s ease;
}

.finch-splash.fade-out {
	opacity: 0;
	pointer-events: none;
}

.finch-splash-content {
	text-align: center;
	animation: splashFadeIn 0.8s ease;
}

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

.finch-splash-logo {
	font-size: 4em;
	margin-bottom: 0.3em;
	animation: splashLogoFloat 2s ease-in-out infinite;
}

@keyframes splashLogoFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.finch-splash-title {
	font-family: 'Playfair Display', serif;
	font-size: 3em;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.08em;
	margin: 0 0 1.5em 0;
	text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.finch-splash-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.finch-splash-bar {
	width: 200px;
	height: 3px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	overflow: hidden;
}

.finch-splash-bar-fill {
	width: 0%;
	height: 100%;
	background: linear-gradient(90deg, #D4762C, #E8943A);
	border-radius: 3px;
	transition: width 0.3s ease;
}

.finch-splash-text {
	font-family: 'Playfair Display', serif;
	font-size: 0.8em;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0.2em;
	margin: 0;
}

@media screen and (max-width: 480px) {
	.finch-splash-logo {
		font-size: 3em;
	}
	.finch-splash-title {
		font-size: 2em;
	}
	.finch-splash-bar {
		width: 150px;
	}
}

/* ===== Start Screen Overlay ===== */
.start-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: transparent;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	animation: fadeInOverlay 0.8s ease;
}

.start-spacer {
	flex: 0.3;
}

.start-buttons-row {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-bottom: 12px;
}

.start-btn {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	font-size: 1.2em;
	padding: 14px 48px;
}

.start-btn-play {
	background: linear-gradient(135deg, #D4762C, #E8943A);
	box-shadow: 0 6px 25px rgba(212, 118, 44, 0.5), 0 0 60px rgba(212, 118, 44, 0.2);
	animation: btnPulse 2s ease-in-out infinite;
}

.start-btn-shop {
	background: linear-gradient(135deg, #2C8DD4, #3AA0E8);
	box-shadow: 0 6px 25px rgba(44, 141, 212, 0.5), 0 0 60px rgba(44, 141, 212, 0.2);
}

.start-btn-daily {
	background: linear-gradient(135deg, #8B5CF6, #A78BFA);
	box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.15);
	font-size: 0.95em;
	padding: 10px 32px;
}

.start-btn:hover {
	transform: translateY(-3px) scale(1.05);
	animation: none;
}

.start-btn:active {
	transform: translateY(0) scale(0.98);
}

.start-overlay.hidden {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.start-content {
	text-align: center;
	animation: slideUp 0.8s ease;
}

.start-title {
	font-family: 'Playfair Display', serif;
	font-size: 5em;
	font-weight: 700;
	color: #fff;
	margin: 0;
	text-shadow:
		0 0 30px rgba(212, 118, 44, 0.6),
		0 4px 20px rgba(0, 0, 0, 0.5);
	letter-spacing: -0.02em;
}

.start-subtitle {
	font-family: 'Playfair Display', serif;
	font-size: 1.1em;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: #D4762C;
	margin: 0.3em 0 1.5em 0;
	text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.start-dna {
	font-size: 4em;
	margin-bottom: 1.2em;
	animation: dnaFloat 3s ease-in-out infinite;
}

@keyframes dnaFloat {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-15px) rotate(15deg); }
}

.start-play-btn {
	margin-top: 80px;
	font-family: 'Playfair Display', serif;
	font-size: 1.4em;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: #fff;
	background: linear-gradient(135deg, #D4762C, #E8943A);
	border: none;
	border-radius: 50px;
	padding: 18px 64px;
	cursor: pointer;
	box-shadow:
		0 6px 25px rgba(212, 118, 44, 0.5),
		0 0 60px rgba(212, 118, 44, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	animation: btnPulse 2s ease-in-out infinite;
}

.start-play-btn:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow:
		0 10px 35px rgba(212, 118, 44, 0.6),
		0 0 80px rgba(212, 118, 44, 0.3);
	animation: none;
}

.start-play-btn:active {
	transform: translateY(0) scale(0.98);
}

@keyframes btnPulse {
	0%, 100% { box-shadow: 0 6px 25px rgba(212, 118, 44, 0.5), 0 0 60px rgba(212, 118, 44, 0.2); }
	50% { box-shadow: 0 6px 30px rgba(212, 118, 44, 0.7), 0 0 80px rgba(212, 118, 44, 0.35); }
}

.start-hint {
	font-family: 'Playfair Display', serif;
	font-size: 0.85em;
	color: rgba(255, 255, 255, 0.45);
	margin-top: 1.5em;
	letter-spacing: 0.15em;
}

@media screen and (max-width: 768px) {
	.start-title {
		font-size: 2.8em;
	}
	.start-subtitle {
		font-size: 0.7em;
		letter-spacing: 0.25em;
	}
	.start-dna {
		font-size: 2.5em;
	}
	.start-play-btn {
		font-size: 1.1em;
		padding: 14px 48px;
	}
	.start-btn {
		font-size: 0.9em;
		padding: 10px 28px;
	}
	.start-buttons-row {
		gap: 10px;
	}
	.start-hint {
		font-size: 0.7em;
	}
}

@media screen and (max-width: 480px) {
	.start-title {
		font-size: 2em;
	}
	.start-subtitle {
		font-size: 0.6em;
		letter-spacing: 0.15em;
	}
	.start-btn {
		font-size: 0.8em;
		padding: 8px 22px;
	}
	.start-buttons-row {
		gap: 8px;
	}
}

/* Mobile landscape start screen */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.start-overlay {
		justify-content: space-between;
		padding: 8px 0;
	}
	.start-spacer {
		flex: 1;
	}
	.start-content:first-child {
		margin-top: 8px;
	}
	.start-title {
		font-size: 3em;
	}
	.start-subtitle {
		font-size: 0.8em;
		letter-spacing: 0.25em;
		margin: 0.2em 0 0;
	}
	.start-btn {
		font-size: 0.95em;
		padding: 8px 22px;
	}
	.start-btn.start-btn-daily {
		font-size: 0.9em;
		padding: 6px 18px;
	}
	.start-buttons-row {
		gap: 6px;
		margin-bottom: 3px;
	}
	.start-hint {
		font-size: 0.5em;
		margin-top: 0.2em;
	}
	#cloudSaveBtn {
		font-size: 0.7em !important;
		padding: 6px 18px !important;
		margin-top: 4px !important;
	}
}

/* Mobile portrait start screen */
@media screen and (max-width: 768px) and (orientation: portrait) {
	.start-overlay {
		padding-top: 15vh;
	}
	.start-btn-daily {
		font-size: 0.75em;
		padding: 7px 20px;
	}
}

/* ===== Shop Overlay ===== */
.shop-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 3500;
	justify-content: center;
	align-items: center;
	animation: fadeInOverlay 0.4s ease;
}

.shop-panel {
	background: linear-gradient(145deg, rgba(20, 28, 45, 0.95), rgba(10, 15, 28, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 28px 32px;
	width: 92vw;
	max-width: 1100px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	animation: slideUp 0.5s ease;
}

.shop-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.shop-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.5em;
	font-weight: 700;
	color: #fff;
	margin: 0;
	text-shadow: 0 2px 10px rgba(255, 179, 0, 0.3);
}

.shop-coins {
	font-family: 'Playfair Display', serif;
	font-size: 1.1em;
	color: #FFD700;
	font-weight: 700;
}

.shop-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	font-size: 24px;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
	transition: all 0.2s;
}

.shop-close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.shop-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 4px;
}

.shop-tab {
	flex: 1;
	font-family: 'Playfair Display', serif;
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.45);
	background: transparent;
	border: none;
	border-radius: 10px;
	padding: 10px 16px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.shop-tab.active {
	color: #fff;
	background: rgba(255, 179, 0, 0.2);
	box-shadow: 0 2px 8px rgba(255, 179, 0, 0.15);
}

.shop-tab:hover:not(.active) {
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.05);
}

.shop-content {
	flex: 1;
	overflow-y: auto;
	padding-right: 4px;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

.shop-content::-webkit-scrollbar { width: 5px; }
.shop-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.shop-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

.shop-tab-content { display: none; }
.shop-tab-content.active { display: block; }

/* Vehicle Grid */
.shop-vehicles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.vehicle-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.25s ease;
	position: relative;
}

.vehicle-card:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.15);
}

.vehicle-card.selected {
	border-color: #FFB300;
	box-shadow: 0 0 20px rgba(255, 179, 0, 0.15);
}

.vehicle-card.locked {
	opacity: 0.5;
}

.vehicle-preview {
	width: 100%;
	height: 180px;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(135,206,235,0.15) 0%, rgba(26,138,125,0.1) 100%);
	margin-bottom: 10px;
	position: relative;
}

.vehicle-preview canvas {
	width: 100% !important;
	height: 100% !important;
}

.vehicle-lock-overlay {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 2em;
}

.vehicle-name {
	font-family: 'Playfair Display', serif;
	font-size: 0.95em;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px 0;
}

.vehicle-ability {
	font-family: 'Playfair Display', serif;
	font-size: 0.72em;
	color: rgba(135, 206, 235, 0.8);
	margin: 0 0 10px 0;
	text-align: center;
	line-height: 1.3;
	min-height: 2.6em;
}

.vehicle-btn {
	width: 100%;
	font-family: 'Playfair Display', serif;
	font-size: 0.85em;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	padding: 10px 0;
	cursor: pointer;
	transition: all 0.2s ease;
	letter-spacing: 0.05em;
}

.vehicle-btn--buy {
	background: linear-gradient(135deg, #FFB300, #FF8F00);
	color: #fff;
	box-shadow: 0 3px 12px rgba(255, 179, 0, 0.3);
}

.vehicle-btn--buy:hover {
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(255, 179, 0, 0.45);
}

.vehicle-btn--buy:disabled {
	background: linear-gradient(135deg, #555, #444);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.5;
}

.vehicle-btn--select {
	background: linear-gradient(135deg, #2E8B57, #3AA868);
	color: #fff;
	box-shadow: 0 3px 12px rgba(46, 139, 87, 0.3);
}

.vehicle-btn--select:hover {
	transform: translateY(-1px);
}

.vehicle-btn--selected {
	background: rgba(255, 179, 0, 0.15);
	color: #FFB300;
	border: 1px solid rgba(255, 179, 0, 0.3);
	cursor: default;
}

.vehicle-btn--locked {
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.3);
	cursor: not-allowed;
}

/* Upgrade Cards */
.shop-upgrades {
	display: flex;
	flex-direction: row;
	gap: 14px;
}

.upgrade-card {
	flex: 1;
}

.upgrade-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.25s ease;
}

.upgrade-card:hover {
	background: rgba(255, 255, 255, 0.07);
}

.upgrade-card.purchased {
	border-color: rgba(46, 139, 87, 0.3);
}

.upgrade-icon {
	font-size: 1.8em;
	flex-shrink: 0;
	width: 48px;
	text-align: center;
}

.upgrade-info {
	flex: 1;
}

.upgrade-name {
	font-family: 'Playfair Display', serif;
	font-size: 0.95em;
	font-weight: 700;
	color: #fff;
	margin: 0 0 3px 0;
}

.upgrade-desc {
	font-family: 'Playfair Display', serif;
	font-size: 0.75em;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
}

.upgrade-btn {
	font-family: 'Playfair Display', serif;
	font-size: 0.85em;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	padding: 10px 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.upgrade-btn--buy {
	background: linear-gradient(135deg, #FFB300, #FF8F00);
	color: #fff;
	box-shadow: 0 3px 10px rgba(255, 179, 0, 0.25);
}

.upgrade-btn--buy:hover { transform: translateY(-1px); }

.upgrade-btn--buy:disabled {
	background: linear-gradient(135deg, #555, #444);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.5;
}

.upgrade-btn--done {
	background: rgba(46, 139, 87, 0.15);
	color: #3AA868;
	cursor: default;
}

@media screen and (max-width: 900px) {
	.shop-vehicles { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 600px) {
	.shop-panel { padding: 20px 16px; }
	.shop-vehicles { grid-template-columns: repeat(2, 1fr); }
	.vehicle-preview { height: 120px; }
	.shop-title { font-size: 1.2em; }
}

/* Mobile landscape: horizontal carousel */
@media screen and (max-height: 500px) {
	.shop-panel {
		padding: 12px 14px;
		max-height: 95vh;
		border-radius: 14px;
	}
	.shop-header { margin-bottom: 8px; }
	.shop-tabs { margin-bottom: 10px; }
	.shop-tab { padding: 6px 10px; font-size: 0.78em; }
	.shop-title { font-size: 1em; }

	.shop-content {
		touch-action: auto;
	}

	/* Vehicles: horizontal carousel */
	.shop-vehicles {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 10px;
		padding-bottom: 6px;
	}
	.shop-vehicles::-webkit-scrollbar { height: 3px; }
	.shop-vehicles::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

	.vehicle-card {
		flex: 0 0 150px;
		min-width: 150px;
		scroll-snap-align: center;
		padding: 10px;
	}
	.vehicle-preview { height: 80px; margin-bottom: 6px; }
	.vehicle-name { font-size: 0.8em; margin-bottom: 2px; }
	.vehicle-ability { font-size: 0.62em; margin-bottom: 6px; min-height: 2em; }
	.vehicle-btn { font-size: 0.72em; padding: 6px 0; }

	.upgrade-card {
		padding: 10px 14px;
	}
	.upgrade-icon { font-size: 1.4em; width: 36px; }
	.upgrade-name { font-size: 0.82em; }
	.upgrade-desc { font-size: 0.68em; }
	.upgrade-btn { font-size: 0.75em; padding: 7px 14px; }
}

/* Mobile portrait: compact grid */
@media screen and (max-width: 480px) {
	.shop-panel {
		padding: 16px 12px;
		max-height: 90vh;
		width: 96vw;
	}
	.shop-header { margin-bottom: 10px; }
	.shop-tabs { margin-bottom: 12px; }
	.shop-tab { padding: 7px 8px; font-size: 0.75em; }

	.shop-vehicles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.vehicle-card { padding: 10px; }
	.vehicle-preview { height: 90px; margin-bottom: 6px; }
	.vehicle-name { font-size: 0.78em; }
	.vehicle-ability { font-size: 0.6em; min-height: 2em; margin-bottom: 6px; }
	.vehicle-btn { font-size: 0.72em; padding: 6px 0; }

	.shop-upgrades { flex-direction: column; gap: 8px; }
	.upgrade-card { padding: 10px 12px; gap: 10px; }
	.upgrade-icon { font-size: 1.4em; width: 36px; }
	.upgrade-name { font-size: 0.82em; }
	.upgrade-desc { font-size: 0.65em; }
	.upgrade-btn { font-size: 0.75em; padding: 7px 14px; }
}
/* ===== Boss UI ===== */
.boss-ui {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	width: 320px;
}

.boss-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.boss-name {
	color: #ff4444;
	font-size: 16px;
	font-weight: 800;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
	letter-spacing: 2px;
}

.boss-timer {
	color: #ffcc00;
	font-size: 14px;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.boss-hp-bar-bg {
	width: 100%;
	height: 12px;
	background: rgba(0,0,0,0.5);
	border-radius: 6px;
	border: 2px solid rgba(255,68,68,0.6);
	overflow: hidden;
}

.boss-hp-bar {
	height: 100%;
	background: linear-gradient(90deg, #ff2222, #ff6644);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.boss-fire-btn {
	border-color: rgba(255, 50, 50, 0.8) !important;
	background: linear-gradient(135deg, rgba(255, 50, 50, 0.4), rgba(255, 0, 0, 0.5)) !important;
	box-shadow: 0 4px 20px rgba(255, 50, 50, 0.5) !important;
	animation: bossPulse 1s infinite;
}

.boss-arena-overlay {
	position: fixed;
	inset: 0;
	z-index: 1600;
	pointer-events: none;
}

.boss-arena-bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 72px;
	background: linear-gradient(180deg, rgba(8, 10, 20, 0.92), rgba(8, 10, 20, 0.12));
}

.boss-arena-bar--top {
	top: 0;
}

.boss-arena-bar--bottom {
	bottom: 0;
	transform: rotate(180deg);
}

.boss-arena-center {
	position: absolute;
	left: 50%;
	top: 17%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 24px;
	border-radius: 999px;
	background: radial-gradient(circle, rgba(255, 90, 90, 0.32), rgba(20, 8, 18, 0.18) 65%, rgba(0, 0, 0, 0));
}

.boss-arena-kicker {
	font-family: 'Playfair Display', serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.42em;
	color: rgba(255, 219, 176, 0.8);
}

.boss-arena-title {
	font-family: 'Playfair Display', serif;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #fff1da;
	text-shadow: 0 0 18px rgba(255, 90, 90, 0.4);
}

@keyframes bossPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

/* ===== Ability Button ===== */
.ability-ui {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.ufo-dual-ui {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 24px;
}

.ufo-laser-btn {
	border-color: rgba(0, 255, 136, 0.6) !important;
	background: linear-gradient(135deg, rgba(0, 200, 100, 0.25), rgba(0, 255, 136, 0.35)) !important;
	box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3) !important;
}

.ufo-booster-btn {
	border-color: rgba(255, 100, 0, 0.6) !important;
	background: linear-gradient(135deg, rgba(255, 100, 0, 0.25), rgba(255, 60, 0, 0.35)) !important;
	box-shadow: 0 4px 20px rgba(255, 100, 0, 0.3) !important;
}

.ability-btn {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 3px solid rgba(255, 179, 0, 0.6);
	background: linear-gradient(135deg, rgba(255, 179, 0, 0.25), rgba(255, 140, 0, 0.35));
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	box-shadow: 0 4px 20px rgba(255, 179, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ability-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 28px rgba(255, 179, 0, 0.5);
}

.ability-btn:active {
	transform: scale(0.95);
}

.ability-btn:disabled {
	border-color: rgba(150, 150, 150, 0.3);
	background: rgba(80, 80, 80, 0.3);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.5;
}

.ability-count {
	position: absolute;
	top: -6px;
	right: -6px;
	background: #D4762C;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	font-family: 'Playfair Display', serif;
}

.ability-flash {
	animation: abilityFlash 0.5s ease;
}

@keyframes abilityFlash {
	0% { box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.8); }
	50% { box-shadow: 0 0 30px 10px rgba(255, 179, 0, 0.5); }
	100% { box-shadow: 0 4px 20px rgba(255, 179, 0, 0.3); }
}

.game-holder {
	position: absolute;
	width: 100%;
	height: 100%;
	background: -webkit-linear-gradient(#B0D4F1, #87CEEB);
	background: linear-gradient(#B0D4F1, #87CEEB);
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.world {
	position: absolute;
	overflow: hidden;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
	pointer-events: none;
	z-index: 1;
	padding: 1.5rem;
	display: flex;
	align-items: flex-start;
}

.header__title-wrap {
	text-align: left;
}

.header h1 {
	font-family: 'Playfair Display';
	font-size: clamp(1.5em, 4vw, 4.5em);
	line-height: 1;
	margin: 0 0 0.15em 0;
	letter-spacing: -0.025em;
	color: #3D6A8E;
}

.header h1 span {
	font-size: 0.2em;
	font-style: italic;
	display: block;
	margin: 0 0 -1.5em -7em;
	letter-spacing: 0px;
}

.header h2 {
	font-size: clamp(0.3em, 0.55vw, 0.585em);
	margin: 0.4em 0;
	white-space: nowrap;
	text-indent: 1em;
	letter-spacing: clamp(0.3em, 0.8vw, 1em);
	text-transform: uppercase;
	color: #D4762C;
}

.score {
	display: flex;
	justify-content: center;
	margin: 0 0 0 auto;
	text-align: center;
	white-space: nowrap;
}

.score__content {
	position: relative;
	display: inline-block;
	padding: 0 clamp(0.3em, 0.8vw, 1em);
	vertical-align: top;
}

.score__content--bordered {
	border-right: 1px solid #4A7A9B;
	border-left: 1px solid #4A7A9B;
}
#coins .score__value,
#dist .score__value {
	display: inline-block;
	min-width: 2.5em;
	text-align: right;
}

.score__label {
	font-size: 9px;
	position: relative;
	margin: 0 0 0.5em 0;
	text-align: center;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #2E5F7F;
}

.score__value {
	font-family: 'Playfair Display';
	font-weight: bold;
	color: #1B4060;
	font-variant-numeric: tabular-nums;
}

.score__value--level {
	font-size: clamp(16px, 2.2vw, 26px);
}

.score__value--dist {
	font-size: clamp(18px, 2.5vw, 30px);
}

.score__unit {
	font-size: 10px;
	color: #4A7A9B;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-top: 2px;
}

.level-circle {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(28px, 3.8vw, 46px);
	margin: 0;
	-webkit-transform: translate(-50%, -50%) rotate(-90deg);
	transform: translate(-50%, -50%) rotate(-90deg);
}

.score__value--hearts {
	font-size: clamp(11px, 1.5vw, 18px);
	margin-top: clamp(8px, 1.2vw, 14px);
	display: flex;
	gap: clamp(1px, 0.2vw, 2px);
}

.heart {
	transition: transform 0.3s ease, opacity 0.3s ease;
	display: inline-block;
}

.heart.active {
	transform: scale(1);
	opacity: 1;
}

.heart.lost {
	transform: scale(0.5);
	opacity: 0.3;
}

@keyframes heartPop {
	0% { transform: scale(1); }
	30% { transform: scale(1.4); }
	100% { transform: scale(1); }
}

.heart.gain {
	animation: heartPop 0.4s ease;
}

.message {
	font-weight: bold;
	position: absolute;
	left: 0;
	width: 100%;
	text-align: center;
	text-transform: uppercase;
	pointer-events: none;
}

.message--replay {
	font-size: 1.25vw;
	bottom: 40vh;
	display: none;
	text-indent: 0.5em;
	letter-spacing: 0.5em;
	color: #d1b790;
}

.message--instructions {
	font-family: 'Playfair Display';
	font-size: 0.85em;
	bottom: 8vh;
	letter-spacing: 0.2em;
	color: #68c3c0;
}

.message--instructions span {
	display: block;
	color: #d6483b;
	white-space: nowrap;
}

@-webkit-keyframes blinking {
	0% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes blinking {
	0% { opacity: 1; }
	50% { opacity: 0; }
	100% { opacity: 1; }
}

@media screen and (max-width: 768px) {
	.header {
		top: 2vh;
		left: 2vw;
	}
	.header h1 {
		font-size: 1.8em;
		margin-bottom: 0.1em;
	}
	.header h2 {
		font-size: 0.35em;
		letter-spacing: 0.35em;
		text-indent: 0.4em;
		margin: 0.15em 0;
	}
	.score {
		top: 2vh;
		right: 2vw;
		transform: scale(0.65);
		transform-origin: top right;
	}
}

/* ===== Game Over Overlay ===== */
.gameover-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 2000;
	justify-content: center;
	align-items: center;
	animation: fadeInOverlay 0.5s ease;
}

@keyframes fadeInOverlay {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

.gameover-panel {
	background: linear-gradient(145deg, rgba(30, 40, 60, 0.92), rgba(15, 20, 35, 0.95));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 36px 40px;
	min-width: min(500px, 90vw);
	max-width: 620px;
	width: 90vw;
	max-height: 80vh;
	overflow-y: auto;
	box-sizing: border-box;
	box-shadow:
		0 25px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	animation: slideUp 0.6s ease;
}

.gameover-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.6em;
	font-weight: 700;
	color: #fff;
	text-align: center;
	margin: 0 0 24px 0;
	text-shadow: 0 2px 12px rgba(212, 118, 44, 0.4);
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.gameover-stats {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 28px;
}

.gameover-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 14px 16px;
	min-width: 100px;
	flex: 1;
	transition: transform 0.2s ease;
}

.gameover-stat:hover {
	transform: translateY(-2px);
}

.gameover-stat-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 6px;
	white-space: nowrap;
}

.gameover-stat-value {
	font-family: 'Playfair Display', serif;
	font-size: 1.6em;
	font-weight: 700;
	color: #D4762C;
}

.gameover-stat-form {
	font-size: 1.2em;
	color: #87CEEB;
	word-break: normal;
	white-space: nowrap;
	text-align: center;
	line-height: 1.2;
}

.gameover-stat--wide {
	flex: 2;
}

.gameover-stat--full {
	width: 100%;
	flex-direction: row;
	justify-content: center;
	gap: 8px;
}

.gameover-input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.gameover-input {
	flex: 1;
	padding: 12px 16px;
	font-family: 'Playfair Display', serif;
	font-size: 16px;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gameover-input::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

.gameover-input:focus {
	border-color: #D4762C;
	box-shadow: 0 0 16px rgba(212, 118, 44, 0.25);
}

.gameover-btn {
	font-family: 'Playfair Display', serif;
	font-size: 15px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	padding: 12px 24px;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.5px;
}

.gameover-btn--submit {
	background: linear-gradient(135deg, #D4762C, #E8943A);
	color: #fff;
	box-shadow: 0 4px 15px rgba(212, 118, 44, 0.35);
}

.gameover-btn--submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212, 118, 44, 0.5);
}

.gameover-btn--skip {
	display: inline-block;
	background: transparent;
	color: rgba(255, 255, 255, 0.4);
	font-size: 13px;
	padding: 10px 16px;
	margin-top: 4px;
}

.gameover-btn--skip:hover {
	color: rgba(255, 255, 255, 0.7);
}

.gameover-btn--ranking {
	display: inline-block;
	background: linear-gradient(135deg, #3A7BD5, #5B9BF0);
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1px;
	padding: 10px 20px;
	margin-top: 4px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(58, 123, 213, 0.3);
}

.gameover-btn--ranking:hover {
	background: linear-gradient(135deg, #5B9BF0, #3A7BD5);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(58, 123, 213, 0.5);
}

.gameover-btn--replay {
	display: block;
	width: 100%;
	margin-top: 20px;
	background: linear-gradient(135deg, #2E8B57, #3AA868);
	color: #fff;
	box-shadow: 0 4px 15px rgba(46, 139, 87, 0.35);
}

.gameover-btn--replay:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(46, 139, 87, 0.5);
}

/* ===== Continue Prompt Overlay ===== */
.continue-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 2000;
	justify-content: center;
	align-items: center;
	animation: fadeInOverlay 0.5s ease;
}

.continue-panel {
	text-align: center;
	animation: slideUp 0.6s ease;
	width: 320px;
}

.continue-title {
	font-family: 'Playfair Display', serif;
	font-size: 3em;
	font-weight: 700;
	color: #FF4444;
	margin: 0 0 4px 0;
	text-shadow:
		0 0 30px rgba(255, 68, 68, 0.5),
		0 4px 20px rgba(0, 0, 0, 0.5);
}

.continue-subtitle {
	font-family: 'Playfair Display', serif;
	font-size: 0.9em;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 28px 0;
	letter-spacing: 0.2em;
}

.continue-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.continue-btn {
	display: block;
	width: 100%;
	font-family: 'Playfair Display', serif;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
	background: linear-gradient(135deg, #FFB300, #FF8F00);
	border: none;
	border-radius: 14px;
	padding: 16px 0;
	cursor: pointer;
	box-shadow:
		0 4px 20px rgba(255, 179, 0, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.continue-btn:hover {
	transform: translateY(-2px);
	box-shadow:
		0 6px 28px rgba(255, 179, 0, 0.5);
}

.continue-btn:active {
	transform: translateY(0) scale(0.98);
}

.continue-btn:disabled {
	background: linear-gradient(135deg, #555, #444);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.5;
}

.continue-stop-btn {
	display: block;
	width: 100%;
	font-family: 'Playfair Display', serif;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	padding: 16px 0;
	cursor: pointer;
	transition: all 0.25s ease;
}

.continue-stop-btn:hover {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

.continue-coins-info {
	font-family: 'Playfair Display', serif;
	font-size: 0.8em;
	color: rgba(255, 255, 255, 0.35);
	margin: 0;
}

.continue-coins-info .coin-balance {
	color: #FFD700;
	font-weight: 700;
}

.continue-remaining {
	font-family: 'Playfair Display', serif;
	font-size: 0.75em;
	color: rgba(255, 255, 255, 0.25);
	margin: 4px 0 0 0;
}

.continue-no-coins {
	font-family: 'Playfair Display', serif;
	font-size: 0.8em;
	color: #FF6B6B;
	margin: 0 0 6px 0;
}

@media screen and (max-width: 520px) {
	.continue-panel {
		width: 260px;
	}
	.continue-title {
		font-size: 2em;
	}
	.continue-btn, .continue-stop-btn {
		font-size: 1em;
		padding: 14px 0;
	}
}

/* ===== Ranking Table ===== */
.ranking-table-wrap {
	max-height: 360px;
	overflow-y: auto;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.ranking-table-wrap::-webkit-scrollbar {
	width: 6px;
}

.ranking-table-wrap::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.03);
}

.ranking-table-wrap::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
}

.ranking-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ranking-table thead {
	position: sticky;
	top: 0;
	z-index: 1;
}

.ranking-table th {
	font-family: 'Playfair Display', serif;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(15, 20, 35, 0.95);
	padding: 10px 12px;
	text-align: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table td {
	padding: 10px 12px;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	transition: background 0.2s ease;
}

.ranking-table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.04);
}

.ranking-table .rank-highlight td {
	color: #fff;
	background: rgba(212, 118, 44, 0.15);
	font-weight: 700;
}

.ranking-table .rank-highlight td:first-child {
	border-left: 3px solid #D4762C;
}

.rank-medal {
	font-size: 1.2em;
}

/* ===== Mobile Pause Button ===== */
.mobile-pause-btn {
	display: none;
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 900;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	color: rgba(255, 255, 255, 0.75);
	font-size: 20px;
	line-height: 44px;
	text-align: center;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.mobile-pause-btn:active {
	background: rgba(0, 0, 0, 0.45);
}

@media screen and (max-width: 768px) {
	.mobile-pause-btn {
		display: block;
	}
}

/* Mobile landscape: treat as mobile if height is low */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.mobile-pause-btn {
		display: block;
	}
}

/* Responsive - mobile portrait */
@media screen and (max-width: 520px) {
	.gameover-panel {
		min-width: auto;
		width: 92vw;
		padding: 20px 16px;
	}
	.gameover-stats {
		flex-direction: column;
		gap: 8px;
	}
	.gameover-stat {
		flex-direction: row;
		justify-content: space-between;
		padding: 10px 12px;
		min-width: auto;
	}
	.gameover-stat-value {
		font-size: 1.2em;
	}
	.gameover-title {
		font-size: 1.4em;
		margin-bottom: 16px;
	}
	.gameover-btn {
		font-size: 13px;
		padding: 10px 16px;
	}
	.gameover-input {
		font-size: 14px;
		padding: 10px 12px;
	}
	.ranking-table {
		font-size: 12px;
	}
}

/* Responsive - mobile landscape */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.gameover-panel {
		min-width: auto;
		width: 70vw;
		max-height: 90vh;
		padding: 16px 20px;
	}
	.gameover-title {
		font-size: 1.2em;
		margin-bottom: 12px;
	}
	.gameover-stats {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px;
	}
	.gameover-stat {
		padding: 8px 10px;
		min-width: auto;
	}
	.gameover-stat-value {
		font-size: 1.1em;
	}
	.gameover-btn {
		font-size: 13px;
		padding: 8px 16px;
	}
	.gameover-input {
		font-size: 14px;
		padding: 8px 12px;
	}
	.continue-panel {
		width: 280px;
	}
	.continue-title {
		font-size: 2em;
	}
	.continue-btn,
	.continue-stop-btn {
		padding: 12px 0;
		font-size: 0.95em;
	}
}

/* ===== Daily Attendance & Mission Overlay ===== */
.daily-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 3500;
	justify-content: center;
	align-items: center;
	animation: fadeInOverlay 0.3s ease;
}

.daily-panel {
	background: linear-gradient(145deg, rgba(30, 40, 60, 0.95), rgba(15, 20, 35, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 28px 32px;
	width: min(480px, 92vw);
	max-height: 85vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	box-sizing: border-box;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.4s ease;
}

.daily-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.daily-title {
	font-family: 'Playfair Display', serif;
	font-size: 1.3em;
	font-weight: 700;
	color: #fff;
	margin: 0;
	flex: 1;
}

.daily-coins {
	font-family: 'Playfair Display', serif;
	font-size: 1em;
	color: #FFD700;
	margin-right: 16px;
}

.daily-close {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.daily-close:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.daily-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.daily-tab {
	flex: 1;
	font-family: 'Playfair Display', serif;
	font-size: 0.85em;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 10px 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.daily-tab.active {
	color: #fff;
	background: rgba(212, 118, 44, 0.2);
	border-color: rgba(212, 118, 44, 0.4);
}

.daily-tab-content {
	display: none;
}

.daily-tab-content.active {
	display: block;
}

/* Attendance Grid */
.attendance-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

.attendance-day {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 10px 4px;
	text-align: center;
	transition: all 0.2s ease;
}

.attendance-day.claimed {
	background: rgba(46, 139, 87, 0.25);
	border-color: rgba(46, 139, 87, 0.5);
}

.attendance-day.today {
	border-color: rgba(212, 118, 44, 0.6);
	box-shadow: 0 0 12px rgba(212, 118, 44, 0.2);
}

.attendance-day.today.claimed {
	background: rgba(46, 139, 87, 0.3);
	border-color: rgba(46, 139, 87, 0.6);
}

.attendance-day-label {
	font-family: 'Playfair Display', serif;
	font-size: 0.65em;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.attendance-day-coins {
	font-family: 'Playfair Display', serif;
	font-size: 1em;
	font-weight: 700;
	color: #FFD700;
	margin: 4px 0 2px;
}

.attendance-day-check {
	font-size: 0.9em;
	color: #2E8B57;
}

.attendance-claim-btn {
	display: block;
	width: 100%;
	font-family: 'Playfair Display', serif;
	font-size: 1em;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #D4762C, #E8943A);
	border: none;
	border-radius: 12px;
	padding: 14px 0;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(212, 118, 44, 0.35);
	transition: all 0.25s ease;
}

.attendance-claim-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212, 118, 44, 0.5);
}

.attendance-claim-btn:disabled {
	background: linear-gradient(135deg, #555, #444);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 0.5;
}

.attendance-status {
	font-family: 'Playfair Display', serif;
	font-size: 0.8em;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
	margin-top: 10px;
}

/* Missions List */
.missions-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.mission-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: all 0.2s ease;
}

.mission-card.completed {
	border-color: rgba(46, 139, 87, 0.4);
	background: rgba(46, 139, 87, 0.1);
}

.mission-card.claimed {
	opacity: 0.5;
}

.mission-icon {
	font-size: 1.5em;
	flex-shrink: 0;
}

.mission-info {
	flex: 1;
	min-width: 0;
}

.mission-name {
	font-family: 'Playfair Display', serif;
	font-size: 0.9em;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}

.mission-desc {
	font-family: 'Playfair Display', serif;
	font-size: 0.75em;
	color: rgba(255, 255, 255, 0.4);
}

.mission-progress {
	font-family: 'Playfair Display', serif;
	font-size: 0.7em;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 4px;
}

.mission-progress-bar {
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	margin-top: 4px;
	overflow: hidden;
}

.mission-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #D4762C, #E8943A);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.mission-reward {
	flex-shrink: 0;
	text-align: center;
}

.mission-reward-amount {
	font-family: 'Playfair Display', serif;
	font-size: 0.95em;
	font-weight: 700;
	color: #FFD700;
}

.mission-reward-label {
	font-size: 0.6em;
	color: rgba(255, 255, 255, 0.3);
}

.mission-claim-btn {
	font-family: 'Playfair Display', serif;
	font-size: 0.75em;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #2E8B57, #3AA868);
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	cursor: pointer;
	margin-top: 4px;
	transition: all 0.2s ease;
}

.mission-claim-btn:hover {
	transform: translateY(-1px);
}

.missions-hint {
	font-family: 'Playfair Display', serif;
	font-size: 0.75em;
	color: rgba(255, 255, 255, 0.3);
	text-align: center;
}

/* Notification dot */
.daily-notify {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #FF4444;
	border-radius: 50%;
	margin-left: 6px;
	vertical-align: middle;
	animation: dailyPulse 1.5s ease-in-out infinite;
}

@keyframes dailyPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.5; transform: scale(1.3); }
}

/* Daily responsive */
@media screen and (max-width: 520px) {
	.daily-panel {
		padding: 20px 16px;
	}
	.daily-title {
		font-size: 1.1em;
	}
	.attendance-grid {
		gap: 4px;
	}
	.attendance-day {
		padding: 8px 2px;
	}
	.attendance-day-coins {
		font-size: 0.85em;
	}
	.attendance-day-label {
		font-size: 0.55em;
	}
}

@media screen and (max-height: 500px) and (orientation: landscape) {
	.daily-panel {
		padding: 16px 20px;
		max-height: 90vh;
	}
	.attendance-grid {
		gap: 4px;
	}
	.attendance-day {
		padding: 6px 2px;
	}
}

/* ===== Level Up Text ===== */
.level-up-text {
	visibility: hidden;
	color: white;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1500;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.level-up-text.show {
	visibility: visible;
	animation: levelUpScale 1.5s ease-in-out forwards;
}

.level-up-text .level-label {
	margin: 0;
	font-family: 'Playfair Display', serif;
	font-size: 50px;
	font-weight: 600;
	line-height: 1em;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.level-up-text .level-number {
	margin: 0;
	font-family: 'Playfair Display', serif;
	font-size: 200px;
	line-height: 1em;
	font-weight: bold;
	text-shadow:
		0 0 40px rgba(212, 118, 44, 0.8),
		0 0 80px rgba(212, 118, 44, 0.4),
		0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes levelUpScale {
	from {
		transform: scale(0.5);
		opacity: 1;
	}
	to {
		transform: scale(5);
		opacity: 0;
	}
}

@media screen and (max-width: 768px) {
	.level-up-text {
		font-size: 60px;
	}
}

/* ===== Account Dropdown ===== */
.account-dropdown {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 6px;
	background: rgba(0,0,0,0.85);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 12px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	overflow: hidden;
	min-width: 140px;
	z-index: 100;
}
.account-dropdown-item {
	display: block;
	width: 100%;
	padding: 10px 18px;
	font-family: 'Playfair Display', serif;
	font-size: 0.78em;
	letter-spacing: 0.03em;
	color: rgba(255,255,255,0.85);
	background: none;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s;
}
.account-dropdown-item:hover {
	background: rgba(255,255,255,0.12);
}
.account-dropdown-item--danger {
	color: #ff6b6b;
}
.account-dropdown-item--danger:hover {
	background: rgba(255,80,80,0.15);
}
