/* Mobile Tap Hint Overlay */
#tap-hint {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 500;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	gap: 0.5rem;
	/* pointer-events: auto; default */
	cursor: pointer;
	opacity: 1;
	transition: opacity 0.3s ease-out;
	background: rgba(64, 64, 64, 0.85);
	padding: 1.5rem;
	border-radius: 12px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

#tap-hint.hidden {
	opacity: 0;
	pointer-events: none;
	display: none;
}

.tap-icon {
	width: 48px;
	height: 48px;
	filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
	animation: tap-pulse 2s ease-in-out infinite;
	position: relative;
}

.tap-icon::before {
	content: '';
	position: absolute;
	top: -8px;
	left: -8px;
	width: 64px;
	height: 64px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	animation: ripple 2s ease-out infinite;
}

.tap-text {
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	letter-spacing: 0.5px;
}

@keyframes tap-pulse {

	0%,
	100% {
		transform: scale(1);
		opacity: 0.85;
	}

	50% {
		transform: scale(1.1);
		opacity: 1;
	}
}

@keyframes ripple {
	0% {
		transform: scale(0.8);
		opacity: 0.8;
	}

	100% {
		transform: scale(1.4);
		opacity: 0;
	}
}

/* Hide on desktop */
@media (min-width: 992px) {
	#tap-hint {
		display: none !important;
	}
}

/* Mobile Expand Button */
#mobile-expand-btn {
	display: none;
	align-items: center;
	justify-content: center;
	position: fixed;
	z-index: 1001;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);

	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;

	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0;
}

#mobile-expand-btn:hover {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#mobile-expand-btn:active {
	transform: translateX(-50%) scale(0.95);
}

#mobile-expand-btn .toggle-icon {
	font-size: 1.5rem;
	color: #334155;
	transition: transform 0.3s ease;
	line-height: 1;
}

/* Show on mobile only */
@media (max-width: 991px) {
	#mobile-expand-btn {
		display: flex !important;
	}
}

/* Extra small phones (height < 700px) */
@media (max-width: 991px) and (max-height: 700px) {
	#mobile-expand-btn {
		bottom: 60px;
	}
}

/* Standard phones (height 700px - 900px) */
@media (max-width: 991px) and (min-height: 700px) and (max-height: 900px) {
	#mobile-expand-btn {
		bottom: 70px;
	}
}

/* Larger phones/tablets (height > 900px) */
@media (max-width: 991px) and (min-height: 900px) {
	#mobile-expand-btn {
		bottom: 80px;
	}
}

/* Hide on desktop */
@media (min-width: 992px) {
	#mobile-expand-btn {
		display: none !important;
	}

	#tap-hint {
		display: none !important;
	}
}

/* Smooth hide animation */
#tap-hint.fade-out {
	animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	to {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.95);
	}
}